1. CRX
  2. API reference
  3. Maker
  4. Decline an RFQ

Decline an RFQ

POST/rfqs/{rfq_id}/decline

Declines an RFQ you have not quoted, within its quote window. Makers only. Send {} or one reason.

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.

Request body

FieldTypeDescription
reasonstring market_closed tenor_not_offered size_not_offered price_unavailable

Decline reason: market_closed (your market for the pair is closed), tenor_not_offered, size_not_offered or price_unavailable. If every decline gives the same reason, the taker sees it; for market_closed, with the time the pair opens.

Responses

200

RFQ declined.

FieldTypeDescription
rfq_id requiredstring

ID of the declined RFQ.

400

bad_request: the body is empty, or not {} or one known reason.

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_rfq: no such RFQ, or a test RFQ of another maker. not_found: declines are disabled.

code unknown_rfq not_found

408

timeout: no answer within 30 seconds.

code timeout

409

quote_window_closed: the quote window has closed. conflict: your own RFQ, a close round, or an RFQ you quoted.

code quote_window_closed conflict

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.