Method Name
private/liquidate
private/liquidateLiquidates a given subaccount using funds from another subaccount. This endpoint has a few limitations:
1. If succesful, the RPC will freeze the caller's subaccount until the bid is settled or is reverted on chain.
2. The caller's subaccount must not have any open orders.
3. The caller's subaccount must have enough withdrawable cash to cover the bid and the buffer margin requirements.
Required minimum session key permission level is admin
Parameters
cash_transfer
string required |
last_seen_trade_id
integer required |
liquidated_subaccount_id
integer required |
nonce
integer required |
percent_bid
string required |
price_limit
string required |
signature
string required |
signature_expiry_sec
integer required |
signer
string required |
subaccount_id
integer required |
Response
id string or integer required |
result object required |
result.
estimated_bid_price
string required |
result.
estimated_discount_pnl
string required |
result.
estimated_percent_bid
string required |
result.
transaction_id
string required |
Example
{request_example_shell}{request_example_javascript}{request_example_python}The above command returns JSON structured like this:
{response_example_json}