-
Notifications
You must be signed in to change notification settings - Fork 21
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
0994b4d
to
78343d5
Compare
713c45a
to
4e52765
Compare
4e52765
to
860fd1f
Compare
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 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.
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.