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

# Cancel a combo RFQ

> Cancel/delete an open combo RFQ on Kalshi or Polymarket US.



## OpenAPI

````yaml api-reference/openapi.json DELETE /rfqs/{id}
openapi: 3.0.0
info:
  title: Lean API
  version: 0.1.0
  description: >-
    Programmatic access to Lean: canonical sports markets, quotes, orders,
    positions and balances.
servers:
  - url: '{baseUrl}/v1'
    description: Lean API
    variables:
      baseUrl:
        default: https://api.lean.xyz
        description: >-
          The Lean API base URL, without /v1. Same value as LEAN_API_URL in the
          guides.
security:
  - apiKey: []
paths:
  /rfqs/{id}:
    delete:
      tags:
        - RFQs
      summary: Cancel an open combo RFQ
      description: Cancel/delete an open combo RFQ on Kalshi or Polymarket US.
      operationId: cancelComboRfq
      parameters:
        - schema:
            type: string
            format: uuid
            description: Lean RFQ id returned by POST /v1/rfqs.
          required: true
          description: Lean RFQ id returned by POST /v1/rfqs.
          name: id
          in: path
      responses:
        '200':
          description: Canceled RFQ status
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      success:
                        type: boolean
                        enum:
                          - true
                      data:
                        type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                          client_request_id:
                            type: string
                            minLength: 1
                          venue:
                            type: string
                            enum:
                              - kalshi
                              - polymarket_us
                          status:
                            type: string
                            enum:
                              - resolving
                              - pending
                              - quoted
                              - no_quote
                              - canceled
                              - unsupported_combo
                              - credentials_required
                              - error
                              - failed
                          venue_request_id:
                            type: string
                            nullable: true
                          combo_ticker:
                            type: string
                            nullable: true
                          combo_lean_url:
                            type: string
                            nullable: true
                            format: uri
                          combo_venue_url:
                            type: string
                            nullable: true
                            format: uri
                          legs:
                            type: array
                            items:
                              type: object
                              properties:
                                ticker:
                                  type: string
                                  minLength: 1
                                event_ticker:
                                  type: string
                                  minLength: 1
                                side:
                                  type: string
                                  enum:
                                    - 'yes'
                                    - 'no'
                              required:
                                - ticker
                                - event_ticker
                                - side
                          budget_usd:
                            type: string
                            pattern: ^\d{1,4}(\.\d{1,2})?$
                          quote_only:
                            type: boolean
                          quotes:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  minLength: 1
                                side:
                                  type: string
                                  enum:
                                    - 'yes'
                                    - 'no'
                                price_usd:
                                  type: string
                                quantity:
                                  type: string
                                  nullable: true
                                  pattern: ^\d+(?:\.\d+)?$
                                payout_usd:
                                  type: string
                                  nullable: true
                                  pattern: ^\d+(?:\.\d+)?$
                                received_at:
                                  type: string
                                  format: date-time
                              required:
                                - id
                                - side
                                - price_usd
                                - quantity
                                - payout_usd
                                - received_at
                          acceptance:
                            type: object
                            nullable: true
                            properties:
                              status:
                                type: string
                                enum:
                                  - order_submitted
                                  - accepted
                                  - acceptance_unconfirmed
                                  - rejected
                              quote_id:
                                type: string
                                minLength: 1
                              order_id:
                                type: string
                                nullable: true
                              reason:
                                type: string
                                nullable: true
                            required:
                              - status
                              - quote_id
                              - order_id
                              - reason
                          reason:
                            type: string
                            nullable: true
                          created_at:
                            type: string
                            format: date-time
                          livemode:
                            type: boolean
                        required:
                          - id
                          - client_request_id
                          - venue
                          - status
                          - venue_request_id
                          - combo_ticker
                          - combo_lean_url
                          - combo_venue_url
                          - legs
                          - budget_usd
                          - quote_only
                          - quotes
                          - acceptance
                          - reason
                          - created_at
                          - livemode
                      meta:
                        type: object
                        properties:
                          timestampMs:
                            type: integer
                            minimum: 0
                          requestId:
                            type: string
                            minLength: 1
                          traceId:
                            type: string
                            minLength: 1
                          cachedAtMs:
                            type: integer
                            minimum: 0
                          source:
                            type: string
                            enum:
                              - cache
                              - database
                              - clickhouse
                              - upstream
                              - fallback
                              - internal
                        required:
                          - timestampMs
                          - requestId
                    required:
                      - success
                      - data
                      - meta
                  - $ref: '#/components/schemas/ApiError'
        '401':
          description: Missing, invalid, expired or revoked API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: UNAUTHORIZED
                  message: Invalid, expired or revoked API key
                meta:
                  timestampMs: 1792771200000
                  requestId: 7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17
        '403':
          description: The key lacks the scope this route needs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: FORBIDDEN
                  message: This API key lacks the scope this route needs
                meta:
                  timestampMs: 1792771200000
                  requestId: 7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17
        '404':
          description: RFQ not found or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: NOT_FOUND
                  message: RFQ not found or expired
                meta:
                  timestampMs: 1792771200000
                  requestId: 7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17
        '429':
          description: API error
          headers:
            Retry-After:
              description: Seconds remaining in the upstream read cooldown, when available
              schema:
                type: integer
                minimum: 0
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: RATE_LIMITED
                  message: Too many requests for this API key
                meta:
                  timestampMs: 1792771200000
                  requestId: 7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17
        '500':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: INTERNAL_ERROR
                  message: An internal error occurred.
                meta:
                  timestampMs: 1792771200000
                  requestId: 7d2c9f4e-1b3a-4e8d-9c6f-2a5b8e0d4f17
components:
  schemas:
    ApiError:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - VALIDATION_ERROR
                - NOT_FOUND
                - UNAUTHORIZED
                - FORBIDDEN
                - CONFLICT
                - UPSTREAM_ERROR
                - RATE_LIMITED
                - INTERNAL_ERROR
                - FEATURE_DISABLED
                - CONDITIONAL_SELL_REJECTED
                - CONDITIONAL_SELL_ACTIVE
            message:
              type: string
              minLength: 1
            details:
              nullable: true
          required:
            - code
            - message
        meta:
          type: object
          properties:
            timestampMs:
              type: integer
              minimum: 0
            requestId:
              type: string
              minLength: 1
            traceId:
              type: string
              minLength: 1
            cachedAtMs:
              type: integer
              minimum: 0
            source:
              type: string
              enum:
                - cache
                - database
                - clickhouse
                - upstream
                - fallback
                - internal
          required:
            - timestampMs
            - requestId
      required:
        - success
        - error
        - meta
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        A Lean API key, sent as `Authorization: Bearer <key>`. A test key
        (`lean_sk_test_...`) simulates orders and fills with no money; a live
        key (`lean_sk_live_...`) trades for real within the key's limits. Every
        successful response says which mode answered in `data.livemode`.

````

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