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

# Create Market Order

> Places a market order using a known Polymarket outcome token ID. Use `/api/v1/markets/tokenId` first to resolve the token ID from a slug.



## OpenAPI

````yaml POST /api/v1/simpleOrders/createMarketOrder
openapi: 3.1.0
info:
  title: Vatic API
  version: 1.0.0
  description: >-
    Polymarket price targets, Hyperliquid prediction market data, market
    timestamps, fee calculators, and order management for systematic prediction
    market trading.
servers:
  - url: https://api.vatic.trading
    description: Production
security: []
paths:
  /api/v1/simpleOrders/createMarketOrder:
    post:
      tags:
        - Simple Orders
      summary: Market order by token ID
      description: >-
        Places a market order using a known Polymarket outcome token ID. Use
        `/api/v1/markets/tokenId` first to resolve the token ID from a slug.
      operationId: postCreateMarketOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - walletId
                - tokenId
                - side
                - amount
              properties:
                walletId:
                  type: string
                  format: uuid
                tokenId:
                  type: string
                side:
                  type: string
                  enum:
                    - BUY
                    - SELL
                amount:
                  type: number
                  description: USDC (BUY) or shares (SELL).
                negRisk:
                  type: boolean
                  description: Optional — auto-detected if omitted.
                orderType:
                  type: string
                  enum:
                    - FOK
                    - FAK
                  default: FOK
      responses:
        '200':
          description: Order result
        '400':
          description: Validation error or CLOB rejected
        '401':
          description: Invalid API key
      security:
        - ApiKey: []
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Required for order endpoints. Obtain your API key from the Vatic
        dashboard.

````