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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Post a new order

> Creates a new order in the order book

Submit a new order to the CLOB API.

## Request contract

* **Method and path:** POST /apis/v1/polymarket/order
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/polymarket/order`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/polymarket-clob.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "post_any_polymarket_clob_apis_v1_polymarket_order",
  "method": "POST",
  "path": "/apis/v1/polymarket/order",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "example": {
            "summary": "Send order example",
            "value": {
              "deferExec": false,
              "order": {
                "builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
                "expiration": "1735689600",
                "maker": "0x1234567890123456789012345678901234567890",
                "makerAmount": "100000000",
                "metadata": "",
                "salt": 1234567890,
                "side": "BUY",
                "signature": "0x1234abcd...",
                "signatureType": 0,
                "signer": "0x1234567890123456789012345678901234567890",
                "takerAmount": "200000000",
                "timestamp": "1735689600000",
                "tokenId": "0xabc123def456..."
              },
              "orderType": "GTC",
              "owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
              "postOnly": false
            }
          }
        },
        "schema": {
          "properties": {
            "deferExec": {
              "default": false,
              "description": "Whether to defer execution",
              "type": "boolean"
            },
            "order": {
              "description": "Order payload submitted to the CLOB API. In CLOB V2, `expiration` remains in\nthe POST /order wire body for GTD/order-expiry handling, but it is not part\nof the EIP-712 signed order struct.\n",
              "properties": {
                "builder": {
                  "description": "Builder code (bytes32) for integrator attribution. `0x` + 64 hex chars or empty.",
                  "example": "0x0000000000000000000000000000000000000000000000000000000000000000",
                  "type": "string"
                },
                "expiration": {
                  "description": "Unix timestamp when the order expires. Present in the API wire body; not part of the CLOB V2 EIP-712 signed order struct.",
                  "example": "1735689600",
                  "type": "string"
                },
                "maker": {
                  "description": "Ethereum address of the maker (In the default case, this is your proxy address)",
                  "example": "0x1234567890123456789012345678901234567890",
                  "type": "string"
                },
                "makerAmount": {
                  "description": "Amount the maker is providing in fixed-math with 6 decimals",
                  "example": "100000000",
                  "type": "string"
                },
                "metadata": {
                  "description": "Reserved for future use",
                  "example": "",
                  "type": "string"
                },
                "salt": {
                  "description": "Random salt for order uniqueness",
                  "example": 1234567890,
                  "type": "integer"
                },
                "side": {
                  "description": "Order side",
                  "enum": [
                    "BUY",
                    "SELL"
                  ],
                  "example": "BUY",
                  "type": "string"
                },
                "signature": {
                  "description": "Cryptographic signature of the order",
                  "example": "0x1234abcd...",
                  "type": "string"
                },
                "signatureType": {
                  "description": "Type of signature (0 = EOA, 1 = POLY_PROXY, 2 = POLY_GNOSIS_SAFE)",
                  "enum": [
                    0,
                    1,
                    2
                  ],
                  "type": "integer"
                },
                "signer": {
                  "description": "Ethereum address of the signer",
                  "example": "0x1234567890123456789012345678901234567890",
                  "type": "string"
                },
                "takerAmount": {
                  "description": "Amount the taker is providing in fixed-math with 6 decimals",
                  "example": "200000000",
                  "type": "string"
                },
                "timestamp": {
                  "description": "Unix timestamp in milliseconds when the order was created (used for order uniqueness)",
                  "example": "1735689600000",
                  "type": "string"
                },
                "tokenId": {
                  "description": "Token ID (asset ID) for the order",
                  "example": "0xabc123def456...",
                  "type": "string"
                }
              },
              "required": [
                "maker",
                "signer",
                "tokenId",
                "makerAmount",
                "takerAmount",
                "side",
                "expiration",
                "timestamp",
                "builder",
                "signature",
                "salt",
                "signatureType"
              ],
              "type": "object"
            },
            "orderType": {
              "default": "GTC",
              "description": "Time in force",
              "enum": [
                "GTC",
                "FOK",
                "GTD",
                "FAK"
              ],
              "type": "string"
            },
            "owner": {
              "description": "UUID of the API key owner",
              "example": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
              "type": "string"
            },
            "postOnly": {
              "default": false,
              "description": "Whether the order must rest on the book and not match immediately. Only supported for GTC and GTD orders.",
              "type": "boolean"
            }
          },
          "required": [
            "order",
            "owner"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Published reference price: \$0.012 USD per successful request. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/polymarket-clob.json POST /apis/v1/polymarket/order
openapi: 3.1.0
info:
  description: ''
  title: Polymarket Clob
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    polymarket-clob:
      description: ''
      title: Polymarket Clob
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 82aea6f2c4f7a597f13ad38b776372a5289186335dfd2ac574ce675f273fca4f
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/polymarket/batch-prices-history
    - /apis/v1/polymarket/book
    - /apis/v1/polymarket/books
    - /apis/v1/polymarket/builder/trades
    - /apis/v1/polymarket/cancel-all
    - /apis/v1/polymarket/cancel-market-orders
    - /apis/v1/polymarket/clob-markets/{condition_id}
    - /apis/v1/polymarket/data/orders
    - /apis/v1/polymarket/fee-rate
    - /apis/v1/polymarket/fee-rate/{token_id}
    - /apis/v1/polymarket/heartbeats
    - /apis/v1/polymarket/last-trade-price
    - /apis/v1/polymarket/last-trades-prices
    - /apis/v1/polymarket/markets-by-token/{token_id}
    - /apis/v1/polymarket/midpoint
    - /apis/v1/polymarket/midpoints
    - /apis/v1/polymarket/order
    - /apis/v1/polymarket/order-scoring
    - /apis/v1/polymarket/order/{orderID}
    - /apis/v1/polymarket/orders
    - /apis/v1/polymarket/price
    - /apis/v1/polymarket/prices
    - /apis/v1/polymarket/prices-history
    - /apis/v1/polymarket/rebates/current
    - /apis/v1/polymarket/rewards/markets/current
    - /apis/v1/polymarket/rewards/markets/multi
    - /apis/v1/polymarket/rewards/markets/{condition_id}
    - /apis/v1/polymarket/rewards/user
    - /apis/v1/polymarket/rewards/user/markets
    - /apis/v1/polymarket/rewards/user/percentages
    - /apis/v1/polymarket/rewards/user/total
    - /apis/v1/polymarket/sampling-markets
    - /apis/v1/polymarket/sampling-simplified-markets
    - /apis/v1/polymarket/simplified-markets
    - /apis/v1/polymarket/spread
    - /apis/v1/polymarket/spreads
    - /apis/v1/polymarket/tick-size
    - /apis/v1/polymarket/tick-size/{token_id}
    - /apis/v1/polymarket/time
    - /apis/v1/polymarket/trades
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:a8dc9693db633e057fbb37a09c8dbc478620caf7f198add821694f86cdc66850
    facts_hash: 82aea6f2c4f7a597f13ad38b776372a5289186335dfd2ac574ce675f273fca4f
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: polymarket-clob
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/polymarket/order:
    post:
      tags:
        - default
      summary: Post a new order
      description: |-
        Creates a new order in the order book

        Submit a new order to the CLOB API.
      operationId: post_any_polymarket_clob_apis_v1_polymarket_order
      requestBody:
        content:
          application/json:
            examples:
              example:
                summary: Send order example
                value:
                  deferExec: false
                  order:
                    builder: >-
                      0x0000000000000000000000000000000000000000000000000000000000000000
                    expiration: '1735689600'
                    maker: '0x1234567890123456789012345678901234567890'
                    makerAmount: '100000000'
                    metadata: ''
                    salt: 1234567890
                    side: BUY
                    signature: 0x1234abcd...
                    signatureType: 0
                    signer: '0x1234567890123456789012345678901234567890'
                    takerAmount: '200000000'
                    timestamp: '1735689600000'
                    tokenId: 0xabc123def456...
                  orderType: GTC
                  owner: f4f247b7-4ac7-ff29-a152-04fda0a8755a
                  postOnly: false
            schema:
              properties:
                deferExec:
                  default: false
                  description: Whether to defer execution
                  type: boolean
                order:
                  description: >
                    Order payload submitted to the CLOB API. In CLOB V2,
                    `expiration` remains in

                    the POST /order wire body for GTD/order-expiry handling, but
                    it is not part

                    of the EIP-712 signed order struct.
                  properties:
                    builder:
                      description: >-
                        Builder code (bytes32) for integrator attribution. `0x`
                        + 64 hex chars or empty.
                      example: >-
                        0x0000000000000000000000000000000000000000000000000000000000000000
                      type: string
                    expiration:
                      description: >-
                        Unix timestamp when the order expires. Present in the
                        API wire body; not part of the CLOB V2 EIP-712 signed
                        order struct.
                      example: '1735689600'
                      type: string
                    maker:
                      description: >-
                        Ethereum address of the maker (In the default case, this
                        is your proxy address)
                      example: '0x1234567890123456789012345678901234567890'
                      type: string
                    makerAmount:
                      description: >-
                        Amount the maker is providing in fixed-math with 6
                        decimals
                      example: '100000000'
                      type: string
                    metadata:
                      description: Reserved for future use
                      example: ''
                      type: string
                    salt:
                      description: Random salt for order uniqueness
                      example: 1234567890
                      type: integer
                    side:
                      description: Order side
                      enum:
                        - BUY
                        - SELL
                      example: BUY
                      type: string
                    signature:
                      description: Cryptographic signature of the order
                      example: 0x1234abcd...
                      type: string
                    signatureType:
                      description: >-
                        Type of signature (0 = EOA, 1 = POLY_PROXY, 2 =
                        POLY_GNOSIS_SAFE)
                      enum:
                        - 0
                        - 1
                        - 2
                      type: integer
                    signer:
                      description: Ethereum address of the signer
                      example: '0x1234567890123456789012345678901234567890'
                      type: string
                    takerAmount:
                      description: >-
                        Amount the taker is providing in fixed-math with 6
                        decimals
                      example: '200000000'
                      type: string
                    timestamp:
                      description: >-
                        Unix timestamp in milliseconds when the order was
                        created (used for order uniqueness)
                      example: '1735689600000'
                      type: string
                    tokenId:
                      description: Token ID (asset ID) for the order
                      example: 0xabc123def456...
                      type: string
                  required:
                    - maker
                    - signer
                    - tokenId
                    - makerAmount
                    - takerAmount
                    - side
                    - expiration
                    - timestamp
                    - builder
                    - signature
                    - salt
                    - signatureType
                  type: object
                orderType:
                  default: GTC
                  description: Time in force
                  enum:
                    - GTC
                    - FOK
                    - GTD
                    - FAK
                  type: string
                owner:
                  description: UUID of the API key owner
                  example: f4f247b7-4ac7-ff29-a152-04fda0a8755a
                  type: string
                postOnly:
                  default: false
                  description: >-
                    Whether the order must rest on the book and not match
                    immediately. Only supported for GTC and GTD orders.
                  type: boolean
              required:
                - order
                - owner
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                delayed_order:
                  summary: Order delayed
                  value:
                    errorMsg: ''
                    makingAmount: '100000000'
                    orderID: '0xabcdef1234567890abcdef1234567890abcdef12'
                    status: delayed
                    success: true
                    takingAmount: '200000000'
                live_order:
                  summary: Order placed on book
                  value:
                    errorMsg: ''
                    makingAmount: '100000000'
                    orderID: '0xabcdef1234567890abcdef1234567890abcdef12'
                    status: live
                    success: true
                    takingAmount: '200000000'
                matched_order:
                  summary: Order immediately matched
                  value:
                    errorMsg: ''
                    makingAmount: '100000000'
                    orderID: '0xabcdef1234567890abcdef1234567890abcdef12'
                    status: matched
                    success: true
                    takingAmount: '200000000'
                    tradeIDs:
                      - trade-123
                    transactionsHashes:
                      - '0x1234567890abcdef1234567890abcdef12345678'
              schema:
                $ref: '#/components/schemas/ResponseDc26E95Ff83E_SendOrderResponse'
          description: Order successfully processed
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    ResponseDc26E95Ff83E_SendOrderResponse:
      properties:
        errorMsg:
          description: Error message (empty on success)
          example: ''
          type: string
        makingAmount:
          description: Amount the maker is providing in fixed-math with 6 decimals
          example: '100000000'
          type: string
        orderID:
          description: Unique identifier for the order (order hash)
          example: '0xabcdef1234567890abcdef1234567890abcdef12'
          type: string
        status:
          description: Status of the order after processing
          enum:
            - live
            - matched
            - delayed
          type: string
        success:
          description: Whether the order was successfully processed
          example: true
          type: boolean
        takingAmount:
          description: Amount the taker is providing in fixed-math with 6 decimals
          example: '200000000'
          type: string
        tradeIDs:
          description: Array of trade IDs (present when status is 'matched')
          items:
            type: string
          type: array
        transactionsHashes:
          description: Array of transaction hashes (present when status is 'matched')
          example:
            - '0x1234567890abcdef1234567890abcdef12345678'
          items:
            type: string
          type: array
      required:
        - success
        - orderID
        - status
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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