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

# /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 orders
id: orders
title: Orders
description: ''
servers:
  - id: production
    protocol: wss
    host: poly.drive.markets/ws
    bindings: []
    variables: []
address: orders
parameters: []
bindings: []
operations:
  - &ref_1
    id: orders.publish
    title: Orders.publish
    type: receive
    messages:
      - &ref_3
        id: publish.message.0
        payload:
          - name: Place Multiple Orders
            description: >
              Place up to 15 orders in a single request.


              [Polymarket
              Docs](https://docs.polymarket.com/developers/CLOB/orders/create-order-batch)
            type: object
            properties:
              - name: id
                type: string
                description: Unique request ID.
                required: false
              - name: path
                type: string
                enumValues:
                  - /orders
                required: true
              - name: method
                type: string
                enumValues:
                  - POST
                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: string
                description: Order array generated by the CLOB client
                required: true
        headers: []
        jsonPayloadSchema:
          title: Place Multiple Orders Payload
          type: object
          required:
            - path
            - method
            - headers
            - body
          properties:
            id:
              type: string
              description: Unique request ID.
              x-parser-schema-id: <anonymous-schema-20>
            path:
              type: string
              enum:
                - /orders
              default: /orders
              x-parser-schema-id: <anonymous-schema-21>
            method:
              type: string
              enum:
                - POST
              default: POST
              x-parser-schema-id: <anonymous-schema-22>
            headers:
              type: object
              description: Required L2 Headers for Polymarket CLOB API.
              properties:
                POLY-API-KEY:
                  type: string
                  x-parser-schema-id: <anonymous-schema-24>
                POLY-SIGNATURE:
                  type: string
                  x-parser-schema-id: <anonymous-schema-25>
                POLY-TIMESTAMP:
                  type: string
                  x-parser-schema-id: <anonymous-schema-26>
                POLY-NONCE:
                  type: string
                  x-parser-schema-id: <anonymous-schema-27>
              x-parser-schema-id: <anonymous-schema-23>
            body:
              type: string
              description: Order array generated by the CLOB client
              x-parser-schema-id: <anonymous-schema-28>
          x-parser-schema-id: PlaceOrdersRequest
        title: Place Multiple Orders
        description: >
          Place up to 15 orders in a single request.


          [Polymarket
          Docs](https://docs.polymarket.com/developers/CLOB/orders/create-order-batch)
        example: |-
          {
            "id": "<string>",
            "path": "<string>",
            "method": "<string>",
            "headers": {
              "POLY-API-KEY": "<string>",
              "POLY-SIGNATURE": "<string>",
              "POLY-TIMESTAMP": "<string>",
              "POLY-NONCE": "<string>"
            },
            "body": "<string>"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: publish.message.0
      - &ref_4
        id: publish.message.1
        payload:
          - name: Cancel Multiple Orders
            description: >
              Cancel multiple orders by ID.


              [Polymarket
              Docs](https://docs.polymarket.com/developers/CLOB/orders/cancel-orders#cancel-multiple-orders)
            type: object
            properties:
              - name: id
                type: string
                description: Unique request ID.
                required: false
              - name: path
                type: string
                enumValues:
                  - /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: string
                description: List of order IDs to cancel.
                required: true
        headers: []
        jsonPayloadSchema:
          title: Cancel Multiple Orders Payload
          type: object
          required:
            - path
            - method
            - headers
            - body
          properties:
            id:
              type: string
              description: Unique request ID.
              x-parser-schema-id: <anonymous-schema-29>
            path:
              type: string
              enum:
                - /orders
              default: /orders
              x-parser-schema-id: <anonymous-schema-30>
            method:
              type: string
              enum:
                - DELETE
              default: DELETE
              x-parser-schema-id: <anonymous-schema-31>
            headers:
              type: object
              description: Required L2 Headers for Polymarket CLOB API.
              properties:
                POLY-API-KEY:
                  type: string
                  x-parser-schema-id: <anonymous-schema-33>
                POLY-SIGNATURE:
                  type: string
                  x-parser-schema-id: <anonymous-schema-34>
                POLY-TIMESTAMP:
                  type: string
                  x-parser-schema-id: <anonymous-schema-35>
                POLY-NONCE:
                  type: string
                  x-parser-schema-id: <anonymous-schema-36>
              x-parser-schema-id: <anonymous-schema-32>
            body:
              type: string
              description: List of order IDs to cancel.
              x-parser-schema-id: <anonymous-schema-37>
          x-parser-schema-id: CancelOrdersRequest
        title: Cancel Multiple Orders
        description: >
          Cancel multiple orders by ID.


          [Polymarket
          Docs](https://docs.polymarket.com/developers/CLOB/orders/cancel-orders#cancel-multiple-orders)
        example: |-
          {
            "id": "<string>",
            "path": "<string>",
            "method": "<string>",
            "headers": {
              "POLY-API-KEY": "<string>",
              "POLY-SIGNATURE": "<string>",
              "POLY-TIMESTAMP": "<string>",
              "POLY-NONCE": "<string>"
            },
            "body": "<string>"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: publish.message.1
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: orders
  - &ref_2
    id: orders.subscribe
    title: Orders.subscribe
    type: send
    messages:
      - &ref_5
        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
  - *ref_4
receiveMessages:
  - *ref_5
extensions:
  - id: x-parser-unique-object-id
    value: orders
securitySchemes: []

````