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

replace elfpy market with ethpy HyperdriveInterface #909

Merged
merged 12 commits into from
Sep 28, 2023

Conversation

dpaiton
Copy link
Member

@dpaiton dpaiton commented Sep 27, 2023

This PR modifies the agent0 policies & accounts to use the new HyperdriveInterface API instead of the elfpy HyperdriveMarket.

The new interface lacks some features (e.g. all of the yieldspace math and variable rates) that were required for the smart long and short policies, so we are deleting those for now. I made several new issues to detail follow-up work that is still needed. They are #910 #911 #913

This PR also gets us very close to completely detaching elfpy from the rest of the monorepo, though the rest of the detachment should also happen in a follow-up PR.

@vercel
Copy link

vercel bot commented Sep 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
elf-simulations ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2023 6:21pm

Copy link
Contributor

@slundqui slundqui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great.

We chatted about this before, just putting this here for visibility.
One downside of passing in the interface object to agent policies is that our ideal workflow is we return a list of actions from the action method of policies, where it may be confusing to a policy implementer, since the interface also supports write operations (e.g., openLong) directly. One way we can fix this may be to split up the interface to be a read/write interface (I believe the frontend interface is doing this under the hood).

Not important for this PR or the trading competition.

@dpaiton dpaiton merged commit b23b140 into main Sep 28, 2023
4 checks passed
@dpaiton dpaiton deleted the dpaiton/agent0_market branch September 28, 2023 18:38
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.

rust-py: modify agent0 policies to use the rust-py market state
2 participants