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.
Discover RFQs
GET /mm/v1/rfqs
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
expiresAtMsfirst; RFQs with the same expiry are ordered byrfqId. - Paging. Pass
nextCursorback ascursor, unchanged.nextCursor: nullmeans you have the last page. A cursor from another route returns400 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
statusandtradingPausedfromGET /mm/v1/marketsto skip those markets.
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 callingGET /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:
- Request
GET /mm/v1/rfqswith no cursor. - If
nextCursoris notnull, request the next page until it is. Usually there is only one page. - Skip any
rfqIdyou have already handled. Forget anrfqIdonce itsexpiresAtMshas passed.
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
The RFQ, from
GET /mm/v1/rfqs. The RFQ is taken from the path only; do not send it in the body.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.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.Exactly the RFQ’s
quantity, with the same units and decimals. A quote always covers the whole RFQ.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.units, a query string, a body over 4 KiB or a missing Content-Type: application/json returns 400 MALFORMED_REQUEST.
Response
What a new quote needs
- trading available for your account, a trading key, and an active account (otherwise
403 TRADING_DISABLED,403 DEALER_SUSPENDEDor403 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_REQUESTfor attlMsout of range); - no other
ACTIVEquote 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).
clientQuoteId.
A refused quote creates nothing.
clientQuoteId and idempotency
AclientQuoteId 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, sameclientQuoteId, same body. Do not recomputettlMsfor the retry; a differentttlMsis a different quote and returns409 IDEMPOTENCY_CONFLICT. - Never send the same logical quote again under a new
clientQuoteIdjust 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 with409 QUOTE_LIMITwhile the first is active. - You can also find the quote in
GET /mm/v1/rfq-quotes, which includes each quote’sclientQuoteId.
Quote funding
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).
- 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. WhendealerSide 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.
nextCursor from the previous page. See Pagination.{ 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 }.
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
{}. 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_ACTIVEand the execution stands. Read the quote:ACCEPTEDwith anexecutionIdmeans 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.
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
ACCEPTEDand itsexecutionIdis 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.
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.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.