Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

PerpAccount.base_token_value display issue #67

Open
0xhipo opened this issue Aug 7, 2022 · 0 comments
Open

PerpAccount.base_token_value display issue #67

0xhipo opened this issue Aug 7, 2022 · 0 comments

Comments

@0xhipo
Copy link

0xhipo commented Aug 7, 2022

>>> sl.net_value
« InstrumentValue:        -0.00040000 BTC »
>>> sl.perp_account.base_token_value
« InstrumentValue:       400.00000000 BTC »
>>> sl.perp_account.base_position_raw
Decimal('400')

Instrument value of perp base token position is shown in raw. Should convert by decimal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant