-
Notifications
You must be signed in to change notification settings - Fork 10
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
Omnipool stableswap arbitrage #169
Conversation
…ata. Also fixed error reporting for get_kraken_orderbook and added default rpc for get_omnipool_data
…l to liquidity, because that seems to match what's in production
# Conflicts: # hydradx/model/amm/arbitrage_agent_general.py # hydradx/model/amm/omnipool_amm.py # hydradx/model/amm/stableswap_amm.py # hydradx/model/processing.py # hydradx/notebooks/Misc/config/arbconfig3-refactor.txt # hydradx/tests/test_arbitrage_agent_refactor.py
…rbitrage # Conflicts: # hydradx/tests/test_arbitrage_agent_refactor.py
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.
See comments for small changes you may want to make, but they are not required. This looks good.
@@ -110,7 +110,7 @@ def test_calculate_arb_amount_bid( | |||
sell_ex_max_sell=init_agent.holdings[tkn], | |||
buy_ex_max_sell=init_agent.holdings[numeraire], | |||
precision=p, | |||
max_iters=100 | |||
max_iters=110 |
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.
This seems really high, was this change really needed to get sufficient accuracy?
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.
This came about because I was getting one of those "surprise" test fails (where a test that had been passing suddenly doesn't). Long story short, I forgot to change it back after I figured out what the problem actually was. I'll change it back.
"id": "fc7e81433023f150", | ||
"metadata": {}, | ||
"source": [ | ||
"Set `get_live_markets = True` to get live markets from Kraken. Set to `False` to use order books from file." |
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.
notebook appears to pull from Binance too?
No description provided.