> ## Documentation Index
> Fetch the complete documentation index at: https://docs.d1.exchange/llms.txt
> Use this file to discover all available pages before exploring further.

# RFQ

> Discover customer requests for quote, submit private quotes, and recover RFQ executions from the execution feed.

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](https://docs.d1.exchange/market-makers/executions.md).

```text theme={null}
Customer creates an RFQ
→ eligible market makers discover it      GET  /mm/v1/rfqs
→ you submit a private quote              POST /mm/v1/rfqs/{rfqId}/quotes
→ the customer receives competing prices
→ the customer explicitly accepts one quote
→ the winning market maker gets an RFQ execution
→ you recover it from the execution feed  GET  /mm/v1/executions  (source: "RFQ")
```

| Method | Path | Scope | Purpose |
| - | - | - | - |
| `GET` | `/mm/v1/rfqs` | `mm:read` | Discover open RFQs |
| `POST` | `/mm/v1/rfqs/{rfqId}/quotes` | `mm:trade` | Submit a quote |
| `GET` | `/mm/v1/rfq-quotes` | `mm:read` | List your quotes |
| `GET` | `/mm/v1/rfq-quotes/{quoteId}` | `mm:read` | Read one of your quotes |
| `POST` | `/mm/v1/rfq-quotes/{quoteId}/withdraw` | `mm:trade` | Withdraw one of your quotes |

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](https://docs.d1.exchange/market-makers/authentication.md) and [Trading availability](https://docs.d1.exchange/market-makers/trading-rules.md#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`

**limit** `integer` (default: 100)

1–100.

**cursor** `string`

`nextCursor` from the previous page.

No other parameters are accepted.

```bash theme={null}
curl "$D1_API_URL/mm/v1/rfqs?limit=100" \
  -H "Authorization: Bearer $D1_MM_API_KEY"
```

```json theme={null}
{
  "rfqs": [
    {
      "rfqId": "<rfq-id>",
      "instrumentId": "<instrument-id>",
      "customerSide": "BUY",
      "dealerSide": "SELL",
      "quantity": { "units": "2", "decimals": 0 },
      "createdAtMs": "1800000000000",
      "expiresAtMs": "1800000060000"
    }
  ],
  "nextCursor": null,
  "limit": 100,
  "serverTimeMs": "1800000000456"
}
```

| Field | Description |
| - | - |
| `rfqId` | The RFQ's identifier. Treat it as an opaque string. |
| `instrumentId` | The market, as in `GET /mm/v1/markets`. |
| `customerSide` | The side the customer wants: `BUY` or `SELL`. |
| `dealerSide` | The side **your** quote takes. Always the opposite of `customerSide`. |
| `quantity` | The size in contracts. A quote must be for exactly this quantity. |
| `createdAtMs` | When the customer created the RFQ. |
| `expiresAtMs` | When the RFQ expires. At this instant and after, it is no longer open. |

* **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](https://docs.d1.exchange/market-makers/market-data.md#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](https://docs.d1.exchange/market-makers/rate-limits.md#rfq-endpoints).

> [!NOTE]
>
> 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`

```bash theme={null}
curl -X POST "$D1_API_URL/mm/v1/rfqs/$RFQ_ID/quotes" \
  -H "Authorization: Bearer $D1_MM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "clientQuoteId": "rq-20270115-000123",
    "price": { "units": "110", "decimals": 0 },
    "quantity": { "units": "2", "decimals": 0 },
    "ttlMs": 10000
  }'
```

**rfqId** `string` *required*

The RFQ, from `GET /mm/v1/rfqs`. The RFQ is taken from the path only; do not send it in the body.

**clientQuoteId** `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](#clientquoteid-and-idempotency).

**price** `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.

**quantity** `Exact` *required*

Exactly the RFQ's `quantity`, with the same `units` and `decimals`. A quote always covers the whole RFQ.

**ttlMs** `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

| Status | Meaning |
| - | - |
| `201 Created` | D1 created a new quote. `duplicate: false`. |
| `200 OK` | This `clientQuoteId` already has a quote with the same terms. Nothing new was created. `duplicate: true`, and `quote` is that quote's **current** state. |

```json theme={null}
{
  "quote": {
    "quoteId": "<quote-id>",
    "clientQuoteId": "rq-20270115-000123",
    "rfqId": "<rfq-id>",
    "instrumentId": "<instrument-id>",
    "side": "SELL",
    "price": { "units": "110", "decimals": 0 },
    "quantity": { "units": "2", "decimals": 0 },
    "createdAtMs": "1800000000100",
    "expiresAtMs": "1800000010100",
    "status": "ACTIVE",
    "executionId": null
  },
  "duplicate": false,
  "serverTimeMs": "1800000000110"
}
```

The quote's fields are described in [Quote fields](#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](#withdraw-a-quote) 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 `clientOrderId`s.

| You send | D1 answers |
| - | - |
| A new `clientQuoteId` | A new quote (`201`), or a refusal that creates nothing. |
| The same `clientQuoteId` with the same terms | The existing quote's current state (`200`, `duplicate: true`). Nothing is re-checked or created. |
| The same `clientQuoteId` with different terms | `409 IDEMPOTENCY_CONFLICT`. |

"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](https://docs.d1.exchange/market-makers/rate-limits.md#rfq-endpoints).

## Quote funding

> [!WARNING]
>
> **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](#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](https://docs.d1.exchange/market-makers/trading-rules.md#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.

**limit** `integer` (default: 50)

1–100.

**cursor** `string`

`nextCursor` from the previous page. See [Pagination](https://docs.d1.exchange/market-makers/market-data.md#pagination).

```bash theme={null}
curl "$D1_API_URL/mm/v1/rfq-quotes?limit=50" \
  -H "Authorization: Bearer $D1_MM_API_KEY"
```

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 }`.

```bash theme={null}
curl "$D1_API_URL/mm/v1/rfq-quotes/$QUOTE_ID" \
  -H "Authorization: Bearer $D1_MM_API_KEY"
```

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

| Field | Description |
| - | - |
| `quoteId` | D1's identifier for the quote. |
| `clientQuoteId` | Your identifier for the quote. |
| `rfqId` | The RFQ the quote answers. |
| `instrumentId` | The market. |
| `side` | **Your** side: `BUY` or `SELL`. The RFQ's `dealerSide`. |
| `price` | Your price per contract, per the market's `premiumUnit`. |
| `quantity` | The quantity, equal to the RFQ's. |
| `createdAtMs` | When D1 created the quote. |
| `expiresAtMs` | When the quote expires: `min(createdAtMs + ttlMs, the RFQ's expiresAtMs)`. |
| `status` | The quote's current state. See below. |
| `executionId` | Set only when `status` is `ACCEPTED`: the RFQ execution in your [execution feed](https://docs.d1.exchange/market-makers/executions.md#rfq-executions). Otherwise `null`. |

### 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.

| `status` | Meaning | Final |
| - | - | - |
| `ACTIVE` | Open. The customer can still accept it. | No |
| `ACCEPTED` | The customer accepted it, and the trade executed. `executionId` is set and the execution is in your feed. | Yes |
| `WITHDRAWN` | You withdrew it. | Yes |
| `EXPIRED` | Its `expiresAtMs` passed (or the RFQ expired) while it was still active. | Yes |
| `LOST` | The RFQ closed while your quote was still active. This does **not** say whether another quote won or the customer cancelled. | Yes |

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`

```bash theme={null}
curl -X POST "$D1_API_URL/mm/v1/rfq-quotes/$QUOTE_ID/withdraw" \
  -H "Authorization: Bearer $D1_MM_API_KEY"
```

The body is empty or `{}`. If you send a body, send `Content-Type: application/json`.

```json theme={null}
{
  "quote": { "quoteId": "<quote-id>", "…": "…", "status": "WITHDRAWN", "executionId": null },
  "result": "WITHDRAWN",
  "serverTimeMs": "1800000005000"
}
```

| Status | `result` or `error` | Meaning |
| - | - | - |
| `200` | `WITHDRAWN` | The quote was active and is now withdrawn. The customer can no longer accept it. |
| `200` | `ALREADY_WITHDRAWN` | The quote was already withdrawn. Nothing changed. |
| `404` | `QUOTE_NOT_FOUND` | The quote does not exist, or it is not yours. |
| `409` | `QUOTE_EXPIRED` | The quote has already expired. It can no longer be accepted. |
| `409` | `QUOTE_NOT_ACTIVE` | The quote was already accepted, or its RFQ closed (`LOST`). |

* **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](https://docs.d1.exchange/market-makers/executions.md#rfq-executions) 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.

```ts theme={null}
type Exact = { units: string; decimals: number };
type Rfq = {
  rfqId: string; instrumentId: string;
  customerSide: "BUY" | "SELL"; dealerSide: "BUY" | "SELL";
  quantity: Exact; createdAtMs: string; expiresAtMs: string;
};

const BASE = process.env.D1_API_URL!;
const KEY = process.env.D1_MM_API_KEY!;
const auth = { Authorization: `Bearer ${KEY}` };
const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));

// Your pricing and storage.
declare function priceFor(rfq: Rfq): Exact | null; // null = do not quote
declare function saveQuoteIntent(rfqId: string, clientQuoteId: string, body: string): Promise<void>;

const seen = new Map<string, number>(); // rfqId -> expiresAtMs

async function sendQuote(rfqId: string, body: string): Promise<void> {
  for (let attempt = 0; attempt < 5; attempt++) {
    let res: Response;
    try {
      res = await fetch(`${BASE}/mm/v1/rfqs/${rfqId}/quotes`, {
        method: "POST",
        headers: { ...auth, "Content-Type": "application/json" },
        body, // always the identical body: same clientQuoteId, same ttlMs
      });
    } catch {
      await sleep(200 * 2 ** attempt); // unknown outcome: retry the same request
      continue;
    }
    if (res.status === 201 || res.status === 200) return; // created, or a replay of it
    if (res.status === 429) {
      await sleep(Number(res.headers.get("Retry-After") ?? "1") * 1000);
      continue;
    }
    if (res.status >= 500) { await sleep(200 * 2 ** attempt); continue; }
    return; // 4xx: refused, nothing was created. Log (await res.json()).error.
  }
}

async function quoteLoop(): Promise<never> {
  for (;;) {
    const now = Date.now();
    for (const [id, exp] of seen) if (exp <= now) seen.delete(id);

    let cursor: string | null = null;
    do {
      const url = `${BASE}/mm/v1/rfqs?limit=100${cursor ? `&cursor=${encodeURIComponent(cursor)}` : ""}`;
      const res = await fetch(url, { headers: auth });
      if (res.status === 429) { await sleep(Number(res.headers.get("Retry-After") ?? "1") * 1000); break; }
      if (!res.ok) break; // log and try again next cycle
      const page = (await res.json()) as { rfqs: Rfq[]; nextCursor: string | null };
      for (const rfq of page.rfqs) {
        if (seen.has(rfq.rfqId)) continue;
        seen.set(rfq.rfqId, Number(rfq.expiresAtMs));
        const price = priceFor(rfq);
        if (price === null) continue;
        const clientQuoteId = `rq-${crypto.randomUUID()}`;
        const body = JSON.stringify({ clientQuoteId, price, quantity: rfq.quantity, ttlMs: 10_000 });
        await saveQuoteIntent(rfq.rfqId, clientQuoteId, body); // persist before sending
        void sendQuote(rfq.rfqId, body);
      }
      cursor = page.nextCursor;
    } while (cursor !== null);

    await sleep(500); // recommended V1 cadence
  }
}
```

For executions, use the [reference consumer loop](https://docs.d1.exchange/market-makers/executions.md#reference-consumer-loop) unchanged, and branch on `source` when you apply each execution:

```ts theme={null}
function applyExecution(e: Execution) {
  if (e.source === "RFQ") {
    // e.executionId, e.rfqId, e.quoteId: mark the quote ACCEPTED in your records
  } else {
    // e.fillId, e.orderId: book the order-book fill
  }
  // Both: update inventory and risk from e.instrumentId, e.side, e.quantity, e.premium
}
```

## Errors

RFQ endpoints use the standard [error format](https://docs.d1.exchange/market-makers/errors.md#error-format). The codes you need to handle:

| HTTP | `error` | When | What to do |
| - | - | - | - |
| 401 | `AUTH_REQUIRED`, `INVALID_API_KEY`, `API_KEY_REVOKED` | Any route. | Stop and alert. Switch keys if one was revoked. |
| 403 | `INSUFFICIENT_SCOPE` | Submit or withdraw with a key without `mm:trade`. | Use your trading key. |
| 403 | `DEALER_SUSPENDED` | Discovery, quote reads, and new quotes, while your account is suspended. | Stop quoting, withdraw your quotes, contact D1. |
| 403 | `TRADING_DISABLED` | A new quote while trading is not available for your account. | Stop quoting, poll `GET /mm/v1/status`. |
| 400 | `MALFORMED_REQUEST` | Bad body, field or ID; `ttlMs` out of range. | Fix the request. |
| 400 | `INVALID_CURSOR` | A cursor from another route. | Restart from the first page. |
| 400 | `INVALID_PRICE` | Price not a multiple of `priceTick`, or the wrong `decimals`. | Fix the price. |
| 400 | `INVALID_QUANTITY` | Quantity not exactly the RFQ's. | Send the RFQ's `quantity`. |
| 404 | `RFQ_NOT_FOUND` | Submit: the RFQ does not exist. | Do not retry. |
| 404 | `QUOTE_NOT_FOUND` | Withdraw: the quote does not exist or is not yours. | Do not retry. |
| 404 | `NOT_FOUND` | Read: the quote does not exist or is not yours. Also any unknown path under `/mm/v1/rfqs/` or `/mm/v1/rfq-quotes/` on a `POST`. | Do not retry. |
| 409 | `RFQ_EXPIRED` | Submit: the RFQ has expired. | Drop the RFQ. |
| 409 | `RFQ_NOT_OPEN` | Submit: the RFQ was cancelled or has executed. | Drop the RFQ. |
| 409 | `QUOTE_LIMIT` | Submit: you already have an active quote on this RFQ, you have used your 4 quotes on it, or it holds the maximum number of quotes. | Withdraw first to replace a quote; otherwise drop the RFQ. |
| 409 | `QUOTE_EXPIRED` | Withdraw: the quote has expired. | Nothing to do; it can no longer execute. |
| 409 | `QUOTE_NOT_ACTIVE` | Withdraw: the quote was accepted or lost. | Read the quote; if `ACCEPTED`, book the execution. |
| 409 | `MARKET_NOT_TRADING`, `MARKET_PAUSED` | Submit: the market is not tradable or is paused. | Skip that market until its status changes. |
| 409 | `IDEMPOTENCY_CONFLICT` | Submit: the `clientQuoteId` was already used with different terms or another RFQ. | A bug in how you generate IDs. Do not retry. |
| 429 | `RATE_LIMITED` | Any route. | Wait `Retry-After` seconds and retry the same request. |
| 500 | `INTERNAL` | Any route. | Unknown result. Retry the identical request. |

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](#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](https://docs.d1.exchange/market-makers/trading-rules.md#sell-to-close) position policy;
* RFQ-specific margin or hedging. Manage hedging on your overall portfolio.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.