Skip to main content
A request for quote (RFQ) is a customer asking for a price on one market, side and quantity. Eligible market makers see the request, and each can privately quote a price. The customer accepts one quote, and only that quote executes. RFQ is a second way to trade on D1, alongside the order book. It does not replace it. RFQ trades use the same account, balances, positions and settlement as your order-book fills, and they arrive in the same execution feed.
There is no RFQ-specific scope or key. Discovery and quote reads use any key with mm:read. Submitting and withdrawing use your trading key (mm:trade), the same one that places orders. A new quote also needs trading to be available for your account, exactly as a new order does: check trading.available in GET /mm/v1/status. See Authentication and Trading availability. Market makers never accept quotes. Only the customer can accept, and nothing under /mm/v1 accepts a quote.

Private competition

  • Every eligible market maker can discover an open RFQ and submit its own quote.
  • You never see other market makers’ quotes. The API does not show another quote’s price, how many quotes an RFQ has, or which quote won.
  • The customer’s identity is not exposed. A discovered RFQ shows the market, side, quantity and times. It never shows the customer’s account, wallet or the customer’s own request ID.
  • Your identity is not shown to the customer. The customer sees prices, not who quoted them.
Price each RFQ on its own terms. Nothing in the API lets you, or anyone else, react to competing quotes.

Discover RFQs

GET /mm/v1/rfqs
integer
default:"100"
1–100.
string
nextCursor from the previous page.
No other parameters are accepted.
  • Only open RFQs. The list contains only RFQs that are open at D1’s clock. Expired, cancelled and executed RFQs are never listed. An RFQ drops out at its expiresAtMs.
  • Order. Soonest expiresAtMs first; RFQs with the same expiry are ordered by rfqId.
  • Paging. Pass nextCursor back as cursor, unchanged. nextCursor: null means you have the last page. A cursor from another route returns 400 INVALID_CURSOR; drop it and start again from the first page. See Pagination.
  • The market may not be tradable. An open RFQ can be on a market that is paused or past expiry. A quote on such a market is refused. Use status and tradingPaused from GET /mm/v1/markets to skip those markets.
There is no route to read a single RFQ. The discovery row is everything you need to price, and you follow your own quote after you submit it.

Polling

RFQ V1 uses polling. D1 does not send a webhook, callback or push message for new RFQs, and it never connects to your servers. You discover RFQs by calling GET /mm/v1/rfqs. We recommend polling about every 500 ms while you are actively quoting. This is a recommended cadence for V1, not a protocol requirement. Every RFQ is open for at least 5 seconds, so a slower client still sees it, with less time to quote. Each polling cycle:
  1. Request GET /mm/v1/rfqs with no cursor.
  2. If nextCursor is not null, request the next page until it is. Usually there is only one page.
  3. Skip any rfqId you have already handled. Forget an rfqId once its expiresAtMs has passed.
Each cycle sees every RFQ that is open when it runs. An RFQ created during a multi-page walk, with an earlier expiry than your cursor, is picked up on the next cycle. Discovery has its own rate-limit budget: 400 requests per account and 240 per API key per minute. 240 per key is one request every 250 ms. Polling every 500 ms uses about 120 requests per minute, half of one key’s budget, which leaves room for extra pages and retries. Discovery does not use the budgets of any other endpoint, so polling at this cadence does not reduce your capacity for order-book reads, executions or trading. See Rate Limits.
Polling is the RFQ V1 discovery transport, not a permanent part of the protocol. D1 may later offer a push transport, such as WebSocket or SSE. If it does, the lifecycle stays the same: discover an RFQ, submit a quote, the customer accepts, the execution appears in the execution feed.

Submit a quote

POST /mm/v1/rfqs/{rfqId}/quotes
string
required
The RFQ, from GET /mm/v1/rfqs. The RFQ is taken from the path only; do not send it in the body.
string
required
Your identifier for this quote. 1–64 characters: a letter or digit, then letters, digits, ., _, : or - (the same format as clientOrderId). Unique per account, permanently. See clientQuoteId and idempotency.
Exact
required
Price per contract as { units, decimals }, per the market’s premiumUnit. It must be a multiple of the market’s priceTick, written with the same decimals. units is a positive integer string with no sign or leading zeros.
Exact
required
Exactly the RFQ’s quantity, with the same units and decimals. A quote always covers the whole RFQ.
integer
required
How long the quote stays open, in milliseconds: 1,000 to 300,000. The quote expires at min(now + ttlMs, the RFQ's expiresAtMs), so it never outlives its RFQ.
Every field is required, and nothing else is accepted. An unknown field (such as an account or the RFQ ID), a JSON number instead of a string for units, a query string, a body over 4 KiB or a missing Content-Type: application/json returns 400 MALFORMED_REQUEST.

Response

The quote’s fields are described in Quote fields.

What a new quote needs

  • trading available for your account, a trading key, and an active account (otherwise 403 TRADING_DISABLED, 403 DEALER_SUSPENDED or 403 INSUFFICIENT_SCOPE);
  • the RFQ exists and is still open (404 RFQ_NOT_FOUND, 409 RFQ_EXPIRED, 409 RFQ_NOT_OPEN);
  • the market is tradable and not paused (409 MARKET_NOT_TRADING, 409 MARKET_PAUSED);
  • valid terms (400 INVALID_PRICE, 400 INVALID_QUANTITY, 400 MALFORMED_REQUEST for a ttlMs out of range);
  • no other ACTIVE quote of yours on this RFQ, at most 4 quotes of yours on this RFQ in total, and room on the RFQ, which holds at most 32 quotes from all market makers (409 QUOTE_LIMIT).
To change your price, withdraw your active quote, then submit a new one with a new clientQuoteId. A refused quote creates nothing.

clientQuoteId and idempotency

A clientQuoteId identifies one logical quote: “sell 2 on this RFQ at 110 for 10 seconds”. D1 keeps at most one quote per clientQuoteId on your account, forever. Both of your keys share the same clientQuoteId space. It is separate from your clientOrderIds. “Terms” means the RFQ in the path, price, quantity and ttlMs. Using a clientQuoteId on a different RFQ is a conflict too. A retry is answered as a duplicate even if the RFQ has since closed, trading has been disabled, or your account has been suspended. The duplicate shows the quote’s current status, which may by then be EXPIRED, LOST or ACCEPTED. Generate a new, unique clientQuoteId for each logical quote and store it, with the RFQ and the exact body, before you send. If the request times out, the connection drops or you get a 5xx, the quote may or may not exist:
  • Retry the identical request: same rfqId, same clientQuoteId, same body. Do not recompute ttlMs for the retry; a different ttlMs is a different quote and returns 409 IDEMPOTENCY_CONFLICT.
  • Never send the same logical quote again under a new clientQuoteId just because a response was lost. That can leave you with a second quote you do not know about. If the first one was created, a new one on the same RFQ is refused with 409 QUOTE_LIMIT while the first is active.
  • You can also find the quote in GET /mm/v1/rfq-quotes, which includes each quote’s clientQuoteId.
Replays count against the quote submission rate limit.

Quote funding

Posting a quote does not reserve capital. D1 does not check or set aside any settlement asset, position or exposure when you submit a quote. Your available balance, your positions and your order capacity are unchanged.
D1 checks whether you can trade only when the customer accepts your quote. At that moment it revalidates your current state, and the quote executes only if all of these hold:
  • your account is active and trading is available for it;
  • the key that posted the quote is still active and still a trading key;
  • the trade fits your open-order exposure limit (maxOpenExposure) together with your resting orders;
  • for a quote where you BUY: your available settlement-asset balance covers the premium;
  • for a quote where you SELL: your unreserved long position covers the quantity (see Sell-to-close).
If any of these fails, nothing trades. The customer is told only that the price is no longer available, never why. Your quote is not executed, and you receive nothing in your execution feed. So a submitted quote is not a guarantee that it can still execute later. While your quotes are active:
  • keep enough available settlement asset, unreserved long inventory and exposure headroom to honour all of them, taking your resting orders into account;
  • withdraw quotes you can no longer honour;
  • remember that revoking a key stops every quote that key posted from executing.

Sell-to-close

RFQ follows the same sell-to-close rule as orders. You cannot write options or create a net short position through RFQ. When dealerSide is SELL, your quote can only execute if, at acceptance, you hold at least the RFQ’s quantity long in that market and have not already committed it to resting SELL orders. Contracts set aside for your resting SELL orders do not count. Holding the inventory when you submit the quote is not enough: D1 checks it when the customer accepts.

Read your quotes

GET /mm/v1/rfq-quotes: your quotes, newest first.
integer
default:"50"
1–100.
string
nextCursor from the previous page. See Pagination.
Returns { quotes, nextCursor, limit, serverTimeMs }. Quotes are sorted by creation time, newest first, and quotes created at the same time are ordered by quoteId. GET /mm/v1/rfq-quotes/{quoteId}: one of your quotes. Returns { quote, serverTimeMs }.
You can only read your own quotes. Another market maker’s quote returns 404 NOT_FOUND, exactly like a quote that does not exist.

Quote fields

Quote status

status is the quote’s current state, worked out from the quote, its RFQ and D1’s clock each time you read it. A quote can change from ACTIVE to EXPIRED or LOST without any write on your side, so always read the status again rather than caching it. Only ACCEPTED means you traded. LOST, EXPIRED and WITHDRAWN never change your balances or positions.

Withdraw a quote

POST /mm/v1/rfq-quotes/{quoteId}/withdraw
The body is empty or {}. If you send a body, send Content-Type: application/json.
  • Withdrawal is safe to retry. A repeated withdrawal returns ALREADY_WITHDRAWN. After a timeout, send it again.
  • Withdrawal does not undo a trade. If the customer accepted the quote first, the withdrawal returns 409 QUOTE_NOT_ACTIVE and the execution stands. Read the quote: ACCEPTED with an executionId means it traded.
  • You can only withdraw your own quotes. Another market maker’s quote returns 404 QUOTE_NOT_FOUND, exactly like one that does not exist.
  • Withdrawal stays available. Like order cancellation, it works while trading is disabled and while your account is suspended. It needs an active key with mm:trade; this does not have to be the key that posted the quote.

Expiry

Quotes and RFQs both expire:
  • A quote expires at its expiresAtMs: ttlMs (1–300 seconds) after it is created, or the RFQ’s expiry if that comes first.
  • An RFQ expires at its expiresAtMs, chosen by the customer. It is open for between 5 seconds and 5 minutes. When it expires, it can no longer be quoted or accepted, and every quote on it stops being executable.
The expiry instant itself counts as expired. D1’s clock decides; compare against serverTimeMs, not only your own clock. Do not assume a quote is still executable at or after its expiresAtMs.

When a quote executes

A quote executes only when the customer accepts that specific quote and D1’s checks at acceptance pass. Then, in one step:
  • your quote becomes ACCEPTED and its executionId is set;
  • the RFQ closes, and every other quote on it that was still active becomes LOST;
  • the trade appears in your execution feed with source: "RFQ", at the next number of your execution sequence;
  • your balance and position change exactly as they would for an order-book fill.
An RFQ executes at most once, and always for its full quantity. D1 never moves the RFQ to the order book, never substitutes another quote for the one the customer accepted, and never partially fills a quote. You are not notified when a quote is accepted. Learn about executions from GET /mm/v1/executions, which you are already polling for your order-book fills. RFQ does not need a separate recovery process.

Example integration loop

Two loops run side by side: one discovers and quotes RFQs, the other consumes the execution feed for both order-book and RFQ trades.
For executions, use the reference consumer loop unchanged, and branch on source when you apply each execution:

Errors

RFQ endpoints use the standard error format. The codes you need to handle: Funding, inventory and exposure are not checked when you submit a quote, so a quote submission never returns INSUFFICIENT_FUNDS, INSUFFICIENT_POSITION or RISK_LIMIT. Those checks happen at acceptance, and a failure there is not reported to you. See Quote funding.

V1 limitations

RFQ V1 does not provide:
  • multi-leg RFQs;
  • negotiation, chat or counter-offers;
  • auction rounds;
  • visibility of other market makers’ quotes;
  • streaming or push discovery;
  • routing between RFQ and the order book;
  • partial acceptance: a quote always covers the whole RFQ;
  • RFQ quoting by D1’s own internal market maker;
  • option writing, beyond the existing sell-to-close position policy;
  • RFQ-specific margin or hedging. Manage hedging on your overall portfolio.