Open wakamex opened 1 month ago
This is needed in the UI as well: https://github.com/delvtech/hyperdrive-frontend/issues/1144
Given that https://github.com/delvtech/hyperdrive-frontend/issues/1144 is a priority, and I haven't heard anyone say that we shouldn't make this the default everywhere, I'm going to assume everyone is on-board with this, and we should do it earlier rather than later, to be in line with frontend.
Since frontend is already leading the way, that means rust sdk and python are the ones left to switch over. cc @dpaiton @slundqui
change sdk and instances where we calculate a position's value to using
market value
instead ofcloseout value
. this would impact:market value
isposition size * spot price
which basically assumes no market impact, or an infinitesimally small tradecloseout value
is the amount of base you get back from closing your positionprevious discussion
Mihai:
Matt:
Mazy:![image](https://github.com/delvtech/hyperdrive/assets/16990562/c212a8c1-45db-43da-ae26-64fc9a7eac65)
Mihai:
Mazy:
Mihai: