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 | yes | The fee amount | |
feeToken | yes | The token id of the fee | |
signature | yes | The ZkLink L3 signature of Liquidation |
where the ContractPrice
and SpotPriceInfo
defined as below:
For example:
Sign Liquidation
For more detail please refer to Golang example in SDK
Last updated