Liquidation
Name
Type
Required
Description
type
String
yes
The value is "Liquidation"
oraclePrices
struct
yes
contains all infomation about contract price and margin price
where the ContractPrice and SpotPriceInfo defined as below:
For example:
{
"type": "Liquidation",
"accountId": 0,
"subAccountId": 0,
"subAccountNonce": 0,
"oraclePrices": {
"contractPrices": [
{
"pairId": 1,
"marketPrice": "100"
}
],
"marginPrices": [
{
"tokenId": 1,
"price": "100"
}
]
},
"liquidationAccountId": 0,
"fee": "0",
"feeToken": 0,
"signature": {
"pubKey": "0x0000000000000000000000000000000000000000000000000000000000000000",
"signature": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}Sign Liquidation
For more detail please refer to Golang example in SDK
For more detail please refer to javascript example
Last updated
Was this helpful?