1. CRX
  2. API reference
  3. Maker
  4. Cancel a quote

Cancel a quote

DELETE/rfqs/{rfq_id}/quotes/{leg_id}

Cancels your quote immediately. Makers only. Follow quote.dropped on GET /trades.

Authentication

  • x-crx-address x-crx-ts x-crx-sig
  • x-crx-address x-crx-signer x-crx-ts x-crx-sig
  • x-crx-session

Parameters

NameInTypeDescription
rfq_id requiredpathstring

RFQ ID, 32-byte hex.

leg_id requiredpathstring

Your quote's leg_id, 32-byte hex.

Responses

200

Quote cancelled.

FieldTypeDescription
dropped requiredboolean true
leg_id requiredstring

leg_id of the cancelled quote.

at_ms requiredintegerminimum 0

First cancel time, in Unix time (milliseconds).

400

bad_request: a path ID is not 32-byte hex.

code bad_request

401

unauthorized: a signed header or the token is refused, or the account is not a maker.

code unauthorized

403

not_whitelisted: the account is not approved for this call.

code not_whitelisted

404

unknown_or_ended: you hold no live leg with this ID on the RFQ, or the RFQ ended.

code unknown_or_ended

408

timeout: no answer within 30 seconds.

code timeout

409

already_accepted: the taker accepted the quote first; details.trade_id is the trade, or null.

code already_accepted

429

rate_limited: retry after Retry-After seconds.

code rate_limited

HeaderTypeDescription
Retry-Afterinteger

Seconds until the next call is accepted.

ratelimit-limitinteger

Maximum calls in a burst.

ratelimit-remaininginteger

Calls remaining before the limit.

ratelimit-resetinteger

Seconds until the full limit is restored.

ratelimit-refillinteger

Calls restored per minute.