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

# Withdraw a quote

> Withdraw one of your ACTIVE quotes so it can no longer be accepted. The body is empty or {}. Safe to retry: an already-withdrawn quote returns result ALREADY_WITHDRAWN. Allowed while trading is disabled or your account is suspended. Does not undo an execution: an accepted quote returns 409 QUOTE_NOT_ACTIVE.

Guide: [Withdraw a quote](/market-makers/rfq#withdraw-a-quote).



## OpenAPI

````yaml /api-reference/openapi.json post /mm/v1/rfq-quotes/{quoteId}/withdraw
openapi: 3.1.0
info:
  title: D1 Market Maker API
  version: mm/v1
  description: >-
    API for authorized market makers: market data, account state, order
    placement and cancellation, RFQ discovery and quoting, fills and sequenced
    executions. Read endpoints require the mm:read scope; trading and RFQ
    quoting endpoints require mm:trade.
servers:
  - url: '{D1_API_URL}'
    description: Base URL provided by D1 during onboarding.
    variables:
      D1_API_URL:
        default: $D1_API_URL
        description: Provided by D1 during onboarding.
security:
  - bearerAuth:
      - mm:read
tags:
  - name: Status
  - name: Market data
  - name: Account
  - name: Orders
  - name: Trading
  - name: RFQ
    description: >-
      Discover customer requests for quote and submit, read and withdraw your
      private quotes. RFQ V1 discovery is by polling.
  - name: Executions
paths:
  /mm/v1/rfq-quotes/{quoteId}/withdraw:
    post:
      tags:
        - RFQ
      summary: Withdraw a quote
      description: >-
        Withdraw one of your ACTIVE quotes so it can no longer be accepted. The
        body is empty or {}. Safe to retry: an already-withdrawn quote returns
        result ALREADY_WITHDRAWN. Allowed while trading is disabled or your
        account is suspended. Does not undo an execution: an accepted quote
        returns 409 QUOTE_NOT_ACTIVE.


        Guide: [Withdraw a quote](/market-makers/rfq#withdraw-a-quote).
      operationId: withdrawRfqQuote
      parameters:
        - name: quoteId
          in: path
          required: true
          schema:
            type: string
          description: Quote identifier.
      responses:
        '200':
          description: WITHDRAWN or ALREADY_WITHDRAWN.
          content:
            application/json:
              schema:
                type: object
                properties:
                  quote:
                    $ref: '#/components/schemas/RfqQuote'
                  result:
                    type: string
                    enum:
                      - WITHDRAWN
                      - ALREADY_WITHDRAWN
                  serverTimeMs:
                    type: string
                    description: D1 server time, Unix milliseconds, as a decimal string.
                    example: '1800000000456'
                required:
                  - quote
                  - result
                  - serverTimeMs
              example:
                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: WITHDRAWN
                  executionId: null
                result: WITHDRAWN
                serverTimeMs: '1800000005000'
        '400':
          $ref: '#/components/responses/BadRequestWrite'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/WithdrawForbidden'
        '404':
          description: >-
            QUOTE_NOT_FOUND: the quote does not exist or is not yours. NOT_FOUND
            for an unknown path.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: QUOTE_NOT_FOUND
                message: …
        '409':
          description: >-
            QUOTE_EXPIRED (already expired) or QUOTE_NOT_ACTIVE (accepted, or
            its RFQ closed).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: QUOTE_NOT_ACTIVE
                message: …
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Internal'
      security:
        - bearerAuth:
            - mm:trade
components:
  schemas:
    RfqQuote:
      type: object
      description: One of your RFQ quotes, with its current (effective) status.
      properties:
        quoteId:
          type: string
          description: Quote identifier. Opaque.
        clientQuoteId:
          type: string
          description: Your identifier for the quote.
        rfqId:
          type: string
        instrumentId:
          type: string
        side:
          type: string
          enum:
            - BUY
            - SELL
          description: 'Your side: the RFQ''s dealerSide.'
        price:
          $ref: '#/components/schemas/Exact'
          description: Price per contract, per the market's premiumUnit.
        quantity:
          $ref: '#/components/schemas/Exact'
          description: Equal to the RFQ's quantity.
        createdAtMs:
          type: string
          description: Quote creation time, Unix milliseconds, as a decimal string.
          example: '1800000000100'
        expiresAtMs:
          type: string
          description: >-
            min(createdAtMs + ttlMs, the RFQ's expiresAtMs), Unix milliseconds,
            as a decimal string.
          example: '1800000010100'
        status:
          type: string
          enum:
            - ACTIVE
            - ACCEPTED
            - WITHDRAWN
            - EXPIRED
            - LOST
          description: >-
            Current state, derived at read time. LOST: the RFQ closed while the
            quote was active (does not say why). Only ACCEPTED means you traded.
        executionId:
          type:
            - string
            - 'null'
          description: >-
            Set only when status is ACCEPTED: the RFQ execution in GET
            /mm/v1/executions.
      required:
        - quoteId
        - clientQuoteId
        - rfqId
        - instrumentId
        - side
        - price
        - quantity
        - createdAtMs
        - expiresAtMs
        - status
        - executionId
    Error:
      type: object
      properties:
        error:
          type: string
          description: Stable error code.
          enum:
            - AUTH_REQUIRED
            - INVALID_API_KEY
            - API_KEY_REVOKED
            - DEALER_SUSPENDED
            - INSUFFICIENT_SCOPE
            - MALFORMED_REQUEST
            - INVALID_CURSOR
            - NOT_FOUND
            - RATE_LIMITED
            - INTERNAL
            - TRADING_DISABLED
            - UNKNOWN_INSTRUMENT
            - MARKET_NOT_TRADING
            - MARKET_PAUSED
            - INVALID_PRICE
            - INVALID_QUANTITY
            - IDEMPOTENCY_CONFLICT
            - INSUFFICIENT_FUNDS
            - INSUFFICIENT_POSITION
            - RISK_LIMIT
            - ORDER_NOT_FOUND
            - ORDER_NOT_CANCELLABLE
            - RFQ_NOT_FOUND
            - RFQ_NOT_OPEN
            - RFQ_EXPIRED
            - QUOTE_NOT_FOUND
            - QUOTE_NOT_ACTIVE
            - QUOTE_EXPIRED
            - QUOTE_LIMIT
        message:
          type: string
          description: Human-readable message. Do not parse.
        limit:
          type: string
          enum:
            - MAX_OPEN_EXPOSURE
            - MAX_RESTING_ORDERS
            - MAX_RESTING_ORDERS_PER_INSTRUMENT
          description: >-
            Present only when error is RISK_LIMIT: the limit the order would
            exceed.
      required:
        - error
        - message
    Exact:
      type: object
      properties:
        units:
          type: string
          description: >-
            Integer value as a decimal string. May be negative. May exceed 2^53
            − 1: parse with BigInt or a decimal library, never Number.
          example: '105000123456'
        decimals:
          type: integer
          minimum: 0
          description: Scale. value = units × 10^-decimals.
          example: 6
      required:
        - units
        - decimals
      description: Exact fixed-point number. value = units × 10^-decimals.
  responses:
    BadRequestWrite:
      description: MALFORMED_REQUEST.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: MALFORMED_REQUEST
            message: …
    Unauthorized:
      description: AUTH_REQUIRED, INVALID_API_KEY or API_KEY_REVOKED.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: INVALID_API_KEY
            message: …
    WithdrawForbidden:
      description: >-
        INSUFFICIENT_SCOPE (the key lacks mm:trade). A suspended account can
        still withdraw.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: INSUFFICIENT_SCOPE
            message: …
    RateLimited:
      description: >-
        RATE_LIMITED: not admitted. Wait Retry-After seconds, then retry the
        same request.
      headers:
        Retry-After:
          description: Seconds until the rate-limit window ends (at least 1).
          schema:
            type: integer
            minimum: 1
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: RATE_LIMITED
            message: Too many requests. Retry after the indicated delay.
    Internal:
      description: INTERNAL. Retry with backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: INTERNAL
            message: …
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Authorization: Bearer <your-api-key>. Scopes: mm:read (GET endpoints),
        mm:trade (POST endpoints).

````

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