Liquidations

private/liquidate

Changed on

Bids on an open liquidation auction. Names the bidder's own subaccount, the account being auctioned, the fraction of it to absorb as a whole percent (a multiple of 0.01), and a signed limit price. The limit is compared against the discounted price of the whole remaining account — the quote's estimated_bid_price — not against the cash the bid actually moves, and it is negative for an insolvent auction where the security module pays the bidder. The realized fill is capped at the auction's current maximum proportion, so it can land below the requested percent. Quote the auction first with public/get_live_auctions or the auctions.watch channel: both the price and the fraction on offer move with wall-clock and with the account's mark.

post/private/liquidate

Request

  • Base URL
    https://api.derive.xyz/v3
  • Auth
    API key in header X-DeriveWallet and API key in header X-DeriveTimestamp and API key in header X-DeriveSignature

Request body

PrivateLiquidateRequest required
liquidate_subaccount_id, integer required

Subaccount being liquidated.

nonce, string required
percent_of_acc, string decimal required

Fraction of the account to liquidate ("1.0" = 100%), decimal string or JSON number. Must be a whole percent, i.e. a multiple of "0.01".

price_limit, string decimal required

Max total cash paid for the filled portion; negative is a minimum payout in insolvent auctions. "0" opts out. Decimal string or JSON number.

signature, string required
signature_expiry_sec, integer required
signer, string required
subaccount_id, integer required

Bidder subaccount.

Response

Success

PrivateLiquidateResponse required
op_uuid, string required
operation_id, integer required

Changes

    • info

      the endpoint scheme security DeriveWallet AND DeriveTimestamp AND DeriveSignature was added to the API

    • info

      added the media type application/json for the response with the status