delvtech/hyperdrive-rs

extra return variables in calc functions

Opened this issue · 0 comments

these woulld be useful for setting up trades.

interactive_econ does a conversion to get both base and bonds for a max trade, which could be returned directly instead: https://github.com/delvtech/hyperdrive-experiments/blob/78ec67d9866012515dc83bde336a492a0ae9361c/interactive_econ.py#L210-L214

also here in lpandarb.py: https://github.com/delvtech/agent0/blob/f2b8232352be2e9d070aaa60b3de539d21589055/lib/agent0/agent0/hyperdrive/policies/lpandarb.py#L357-L359

similar would be useful for a calc_open/close_long/short functions as well, I think.