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

sync rust & interface #1618

Closed
dpaiton opened this issue Jul 22, 2024 · 0 comments · Fixed by #1622
Closed

sync rust & interface #1618

dpaiton opened this issue Jul 22, 2024 · 0 comments · Fixed by #1622
Assignees

Comments

@dpaiton
Copy link
Member

dpaiton commented Jul 22, 2024

We have some functions in the rust api that need to be added to the interface. A full audit is required, but namely:

calculate_market_value_long
calculate_market_value_short
calc_scaled_normalized_time_remaining

all need to be included and then used in src/agent0/chainsync/analysis/calc_position_value.py.

There have also been some breaking changes in function names (specifically the pool deltas after long & short functions, but possibly elsewhere) that need to be fixed to sync with the latest hyperdrive-rs

@dpaiton dpaiton self-assigned this Jul 22, 2024
dpaiton added a commit to delvtech/hyperdrive-rs that referenced this issue Jul 24, 2024
# Resolved Issues
#138
delvtech/agent0#1618

# Description
This PR adds python bindings for `calculate_market_value_long`,
`calculate_market_value_short`, and
`calc_scaled_normalized_time_remaining`.
@dpaiton dpaiton linked a pull request Aug 1, 2024 that will close this issue
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 a pull request may close this issue.

1 participant