RFQ

private/cancel_block_proposal

Changed on

Ends an open block proposal and returns it. When the maker calls it, the status becomes cancelled. When the recipient_wallet of the proposal calls it, the status becomes declined. Only an open proposal can be cancelled or declined. After a successful call, the proposal can never execute. Fails with block_proposal_not_found (11117) if no proposal has that id, or if the caller is neither its maker nor its recipient. Fails with block_proposal_not_open (11118) if the proposal is not open, for example because it has executed or an accept is in progress. Requires the block_trade off-chain scope.

post/private/cancel_block_proposal

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

CancelBlockProposalRequest required
proposal_id, string uuid required

UUID v4 string

wallet, string required

The session's wallet: the maker or the recipient of the proposal.

Response

Success

BlockProposalPrivateResponse required

A block proposal as its maker and its recipient see it.

block_trade_id, string uuid nullable required

The block trade, once the proposal executes.

creation_timestamp, integer required
currency, string required
direction, 'buy' | 'sell' required

The maker's direction. The taker trades the opposite.

expires_at_sec, integer required

The last second (UTC) at which the proposal can be accepted.

last_update_timestamp, integer required
legs, PricedLegParamsAndResponse[] required
listed, boolean required

Whether the proposal is on the public list.

maker_wallet, string required

20-byte Ethereum address as a 0x-prefixed lowercase hex string.

proposal_id, string uuid required

UUID v4 string

recipient_wallet, string nullable

20-byte Ethereum address as a 0x-prefixed lowercase hex string.

risk_universe_id, integer required
status, union required

Changes