AutoDeleveraging
Name | Type | Required | Description |
---|---|---|---|
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 |
where the ContractPrice
and SpotPriceInfo
defined as below:
For example:
Sign autoDeleveraging
For more detail please refer to Golang example in SDK
Last updated