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
> marginPrices
array
yes
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:
Name
Type
Required
Description
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
For example:
Sign Liquidation
For more detail please refer to Golang example in SDK
Last updated