Skip to content
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

Merged
merged 113 commits into from
Jan 29, 2024
Merged

Omnipool stableswap arbitrage #169

merged 113 commits into from
Jan 29, 2024

Conversation

jepidoptera
Copy link
Contributor

No description provided.

@jepidoptera jepidoptera requested a review from poliwop January 26, 2024 22:03
poliwop and others added 3 commits January 29, 2024 11:14
# 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
Copy link
Collaborator

@poliwop poliwop left a 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.

hydradx/model/amm/agents.py Outdated Show resolved Hide resolved
hydradx/model/amm/amm.py Outdated Show resolved Hide resolved
hydradx/model/amm/amm.py Outdated Show resolved Hide resolved
hydradx/model/amm/amm.py Outdated Show resolved Hide resolved
hydradx/model/amm/arbitrage_agent_general.py Outdated Show resolved Hide resolved
hydradx/model/amm/arbitrage_agent_general.py Outdated Show resolved Hide resolved
@@ -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
Copy link
Collaborator

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?

Copy link
Contributor Author

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."
Copy link
Collaborator

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?

@jepidoptera jepidoptera merged commit 49023a5 into main Jan 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants