AutoDeleveraging
type
String
yes
The value is "AutoDeleveraging"
accountId
yes
Account id
subAccountId
yes
Subaccount id
subAccountNonce
yes
The nonce of subaccount
oraclePrices
struct
yes
contains all infomation about contract price and margin price
> contractPrices
array
yes
> marginPrices
array
yes
adlAccountId
yes
The ADL account id
pairId
yes
The pair id, for example the id of BTC-USDT pair
adlSize
BigUint
yes
The ADL size, the value can't be zero
adlPrice
yes
The ADL price, the value can't be zero
fee
yes
The fee
feeToken
yes
The token id of the fee
signature
yes
The pub key hash corresponding to the signature must be aligned with the initiator account
where the ContractPrice
and SpotPriceInfo
defined as below:
pairId
yes
The pair id of trade pair, for example the id of BTC-USDT pair
marketPrice
yes
The market price of the associated pair
For example:
Sign autoDeleveraging
For more detail please refer to Golang example in SDK
Last updated