-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(launcher): arby integration #495
Conversation
06ceec3
to
50922b6
Compare
@@ -396,6 +396,25 @@ def update_raiden(self, parsed): | |||
node = self.nodes["raiden"] | |||
self.update_ports(node, parsed) | |||
|
|||
def update_arby(self, parsed): | |||
"""Update arby related configurations from parsed TOML arby section | |||
:param parsed: Parsed xud TOML section |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xud -> arby
This is ready for testing by us @raladev To be tested:
Not to be tested for now:
|
Also as of latest master it's now: |
While I like the personal note, maybe simply
While status reports fine and container is up, arby logs show it exited, not sure why but I am sure v2 will solve this:
|
im not tested it fully, but it seems:
|
Notes from first run session:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Let's fix the order update interval to 5s, at the moment orders are getting replaced that fast that our matching routine can't keep up:
simnet > buy 1 eth/btc mkt
matched 1 ETH @ 0.024507483 with peer ConsiderMoral order 039a7cc0-aef8-11ea-9144-37681cbd4116, attempting swap...
failed to swap 1 ETH due to OrderNotFound with peer order 039a7cc0-aef8-11ea-9144-37681cbd4116, continuing with matching routine...
matched 1 ETH @ 0.024505481 with peer ConsiderMoral order 03c3fdc0-aef8-11ea-9144-37681cbd4116, attempting swap...
failed to swap 1 ETH due to UnknownError with peer order 03c3fdc0-aef8-11ea-9144-37681cbd4116, continuing with matching routine...
matched 1 ETH @ 0.024503479 with peer ConsiderMoral order 087ec6b0-aef8-11ea-9144-37681cbd4116, attempting swap...
successfully swapped 1 ETH with peer order 087ec6b0-aef8-11ea-9144-37681cbd4116
- Another thing: you are always using
replace_order_id
when issuing new orders, right? I am confused by local xud/arby logs sayingremoved order
and creating new orders, but but there were no remova p2p packets. In that case, I'd remove this arby log statement since it's confusing:[OpenDEX] trace: Removed all open orders for ETH/BTC
On testnet this is not connecting to me xud, could you check what changes are needed to make arby work with the testnet setup (xud port 18885 etc) @reliveyy And please give it a rebase while you are at it. |
* add disabled option * add disabled in template simnet.conf * fix config option missing * fix container missing when disabled * add disabled container status * comment out simnet.conf arby options * fix syntax * add arby to testnet and mainnet too
arby will be enabled on default once it's stable. Disabling by default now is only to make things controllable since arby is in alpha stage. So please no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general: works
Tested on simnet & testnet with xud -b feat/arby --arby.disabled=false
-> worked.
Ran with
[arby]
binance-api-key = "123"
binance-api-secret = "321"
margin = "0.04"
disabled = false
-> arby was removed:
- Container testnet_arby_1: disabled
A new version is available. Would you like to upgrade (Warning: this may restart your environment and cancel all open orders)? [Y/n]
Removing testnet_arby_1...
So something is wrong in how we interpret the .conf file [arby] disabled
option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested again, works!
|
That is intended behavior @raladev as we discussed above we default to arby.disabled = true until arby is stable. So you will need to run
|
It seems inconvenient for command line parameters, but understood. |
Arby defaulting to |
How to use:
bash xud.sh -b feat/arby
Down the environment:
down
Edit
~/.xud-docker/simnet/simnet.conf
:Start the environment again and
restart arby
.docker logs -f simnet_arby_1
Arby should now create buy/sell orders.
Known issues:
disabled = false/true
to$DOCKER_DIR/$NETWORK/$NETWORK.conf
- will be done in a separate PR by @reliveyyrestart arby
when starting the environment - will be solved by v2