Liquidation
Name | Type | Required | Description |
---|---|---|---|
type | String | yes | The value is "Liquidation" |
accountId | yes | The account id of Liquidation | |
subAccountId | yes | The subaccount id | |
subAccountIdNonce | yes | The Nonce of subaccount id | |
oraclePrices | struct | yes | contains all infomation about contract price and margin price |
> contractPrices | array | yes | ContractPrice array |
> marginPrices | array | yes | SpotPriceInfo array |
liquidationAccountId | yes | The account id of liquidation | |
fee | BugUint | yes | The fee amount |
feeToken | yes | The token id of the fee | |
signature | yes | The ZkLink L3 signature of Liquidation |
where the type ContractPrice and SpotPriceInfo are as follows:
Name | Type | Description |
---|---|---|
pairId | The pair id | |
marketPrice | BigUint | The market price of the pair id |
For example:
Sign Liquidation
For more detail please refer to Golang example in SDK
Last updated