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 | OraclePrices | yes | it contains a list of [ContractPrice]() and list of [SpotPriceInfo]() |
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 |
adlPrice | BigUint | yes | The ADL price |
fee | BigUint | 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:
Name | Type | Required | Description |
---|---|---|---|
pairId | PairId | yes | The pair id of trade pair, for example the id of BTC-USDT pair |
marketPrice | BugUint | yes | The market price of the associated pair |
Name | Type | Required | Description |
---|---|---|---|
tokenId | TokenId | yes | The pair id of trade pair, for example the id of BTC-USDT pair |
price | BigUint | yes | The spot price |
For example:
Sign autoDeleveraging
For more detail please refer to Golang example in SDK
Last updated