AutoDeleveraging
Last updated
Last updated
Name | Type | Required | Description |
---|---|---|---|
where the ContractPrice
and SpotPriceInfo
defined as below:
Name | Type | Required | Description |
---|---|---|---|
For example:
For more detail please refer to Golang example in SDK
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
ContractPrice array
> marginPrices
array
yes
SpotPriceInfo array
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
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
tokenId
yes
The pair id of trade pair, for example the id of BTC-USDT pair
price
yes
The spot price