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

# /cancel-market-orders

<Tip>
  Although this documentation separates operations into different channels for clarity, all messages are sent over `wss://poly.drive.markets`.

  You must ensure the `path` property in your JSON payload matches the intended operation. [Using WebSockets](/using-websockets)
</Tip>


## AsyncAPI

````yaml api-reference/asyncapi.yaml cancel-market-orders
id: cancel-market-orders
title: Cancel-market-orders
description: ''
servers:
  - id: production
    protocol: wss
    host: poly.drive.markets/ws
    bindings: []
    variables: []
address: cancel-market-orders
parameters: []
bindings: []
operations:
  - &ref_1
    id: cancel-market-orders.publish
    title: Cancel-market-orders.publish
    type: receive
    messages:
      - &ref_3
        id: publish.message
        payload:
          - name: Cancel Market Orders
            description: >
              Cancel orders from a specific market.


              [Polymarket
              Docs](https://docs.polymarket.com/developers/CLOB/orders/cancel-orders#cancel-orders-from-market)
            type: object
            properties:
              - name: id
                type: string
                description: Unique request ID.
                required: false
              - name: path
                type: string
                enumValues:
                  - /cancel-market-orders
                required: true
              - name: method
                type: string
                enumValues:
                  - DELETE
                required: true
              - name: headers
                type: object
                description: Required L2 Headers for Polymarket CLOB API.
                required: true
                properties:
                  - name: POLY-API-KEY
                    type: string
                    required: false
                  - name: POLY-SIGNATURE
                    type: string
                    required: false
                  - name: POLY-TIMESTAMP
                    type: string
                    required: false
                  - name: POLY-NONCE
                    type: string
                    required: false
              - name: body
                type: object
                required: true
                properties:
                  - name: market
                    type: string
                    description: Condition ID of the market.
                    required: false
                  - name: asset_id
                    type: string
                    description: ID of the asset/token.
                    required: false
        headers: []
        jsonPayloadSchema:
          title: Cancel Market Orders Payload
          type: object
          required:
            - path
            - method
            - headers
            - body
          properties:
            id:
              type: string
              description: Unique request ID.
              x-parser-schema-id: <anonymous-schema-46>
            path:
              type: string
              enum:
                - /cancel-market-orders
              default: /cancel-market-orders
              x-parser-schema-id: <anonymous-schema-47>
            method:
              type: string
              enum:
                - DELETE
              default: DELETE
              x-parser-schema-id: <anonymous-schema-48>
            headers:
              type: object
              description: Required L2 Headers for Polymarket CLOB API.
              properties:
                POLY-API-KEY:
                  type: string
                  x-parser-schema-id: <anonymous-schema-50>
                POLY-SIGNATURE:
                  type: string
                  x-parser-schema-id: <anonymous-schema-51>
                POLY-TIMESTAMP:
                  type: string
                  x-parser-schema-id: <anonymous-schema-52>
                POLY-NONCE:
                  type: string
                  x-parser-schema-id: <anonymous-schema-53>
              x-parser-schema-id: <anonymous-schema-49>
            body:
              type: object
              properties:
                market:
                  type: string
                  description: Condition ID of the market.
                  x-parser-schema-id: <anonymous-schema-55>
                asset_id:
                  type: string
                  description: ID of the asset/token.
                  x-parser-schema-id: <anonymous-schema-56>
              x-parser-schema-id: <anonymous-schema-54>
          x-parser-schema-id: CancelMarketOrdersRequest
        title: Cancel Market Orders
        description: >
          Cancel orders from a specific market.


          [Polymarket
          Docs](https://docs.polymarket.com/developers/CLOB/orders/cancel-orders#cancel-orders-from-market)
        example: |-
          {
            "id": "<string>",
            "path": "<string>",
            "method": "<string>",
            "headers": {
              "POLY-API-KEY": "<string>",
              "POLY-SIGNATURE": "<string>",
              "POLY-TIMESTAMP": "<string>",
              "POLY-NONCE": "<string>"
            },
            "body": {
              "market": "<string>",
              "asset_id": "<string>"
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: publish.message
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: cancel-market-orders
  - &ref_2
    id: cancel-market-orders.subscribe
    title: Cancel-market-orders.subscribe
    type: send
    messages:
      - &ref_4
        id: subscribe.message
        payload:
          - type: string
            x-parser-schema-id: ResponsePayload
            name: Response
            description: >
              Responses are structured to match Polymarket's CLOB API response
              format.


              Refer to Polymarket's [Order
              API](https://docs.polymarket.com/developers/CLOB/orders/orders)
              for more information on the response format.
        headers: []
        jsonPayloadSchema:
          type: string
          x-parser-schema-id: ResponsePayload
        title: Response
        description: >
          Responses are structured to match Polymarket's CLOB API response
          format.


          Refer to Polymarket's [Order
          API](https://docs.polymarket.com/developers/CLOB/orders/orders) for
          more information on the response format.
        example: '{}'
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribe.message
    bindings: []
    extensions: *ref_0
sendOperations:
  - *ref_1
receiveOperations:
  - *ref_2
sendMessages:
  - *ref_3
receiveMessages:
  - *ref_4
extensions:
  - id: x-parser-unique-object-id
    value: cancel-market-orders
securitySchemes: []

````