rename subdata to sub_data, add margin info endpoints

This commit is contained in:
itsdeka
2023-01-24 15:23:48 +01:00
committed by Davide Casale
parent 01c8192d10
commit 8047e3609d
4 changed files with 83 additions and 30 deletions

View File

@@ -473,4 +473,20 @@ Movement = generate_labeler_serializer("Movement", klass=types.Movement, labels=
"WITHDRAW_TRANSACTION_NOTE"
])
SymbolMarginInfo = generate_labeler_serializer("SymbolMarginInfo", klass=types.SymbolMarginInfo, labels=[
"SYMBOL",
"TRADABLE_BALANCE",
"GROSS_BALANCE",
"BUY",
"SELL"
])
BaseMarginInfo = generate_labeler_serializer("BaseMarginInfo", klass=types.BaseMarginInfo, labels=[
"USER_PL",
"USER_SWAPS",
"MARGIN_BALANCE",
"MARGIN_NET",
"MARGIN_MIN"
])
#endregion