positions endpoint

This commit is contained in:
itsdeka
2023-01-26 15:25:00 +01:00
committed by Davide Casale
parent 3565811ec9
commit 4fbe1b89c6
5 changed files with 98 additions and 18 deletions

View File

@@ -437,4 +437,32 @@ class PositionHistory(_Type):
MTS_CREATE: int
MTS_UPDATE: int
@dataclass
class PositionSnapshot(_Type):
SYMBOL: str
STATUS: str
AMOUNT: float
BASE_PRICE: float
FUNDING: float
FUNDING_TYPE: int
POSITION_ID: int
MTS_CREATE: int
MTS_UPDATE: int
@dataclass
class PositionAudit(_Type):
SYMBOL: str
STATUS: str
AMOUNT: float
BASE_PRICE: float
FUNDING: float
FUNDING_TYPE: int
POSITION_ID: int
MTS_CREATE: int
MTS_UPDATE: int
TYPE: int
COLLATERAL: float
COLLATERAL_MIN: float
META: JSON
#endregion