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

# Place Order

> Place a unified order (LIMIT_BUY, LIMIT_SELL, MARKET_BUY_VALUE, MARKET_BUY_QTY, MARKET_SELL)



## OpenAPI

````yaml /swagger.json post /trade/order
openapi: 3.0.1
info:
  contact: {}
  title: VoxFi API
  version: 0.0.1
servers:
  - url: https://data-api-dev.voxfi.com.br/v1
security: []
paths:
  /trade/order:
    post:
      tags:
        - trade
      summary: Place Order
      description: >-
        Place a unified order (LIMIT_BUY, LIMIT_SELL, MARKET_BUY_VALUE,
        MARKET_BUY_QTY, MARKET_SELL)
      parameters:
        - name: x-api-key
          in: header
          description: API Key
          required: true
          schema:
            type: string
      requestBody:
        description: Place Order Input
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/models.PlaceOrderRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.PlaceOrderResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
components:
  schemas:
    models.PlaceOrderRequest:
      required:
        - market_id
        - order_type
        - outcome
      type: object
      properties:
        market_id:
          type: string
          example: 08e1fcc2-6c1d-41f7-aec4-f2aa4d83cd48
        order_type:
          type: string
          description: >-
            "LIMIT", "LIMIT_BUY", "LIMIT_SELL", "MARKET_BUY_VALUE",
            "MARKET_BUY_QTY", "MARKET_SELL"
          example: LIMIT_BUY
        outcome:
          type: string
          description: '"YES" or "NO"'
          example: 'YES'
        price_ticks:
          type: integer
          description: >-
            price in ticks (0-100)  - For LIMIT orders (optional when using
            LIMIT_BUY or LIMIT_SELL)
          example: 27
        quantity:
          type: integer
          description: >-
            number of contracts  - For quantity-based orders (LIMIT_BUY,
            LIMIT_SELL, MARKET_BUY_QTY, MARKET_SELL)
          example: 100
        value_cents:
          type: integer
          description: maximum value to spend in cents  - For MARKET_BUY_VALUE
          example: 10000
    models.PlaceOrderResponse:
      type: object
      properties:
        message:
          type: string
        order_id:
          type: integer
          description: Order ID
        success:
          type: boolean
        order_status:
          description: >-
            Status of the order. One of "PLACED", "PARTIALLY_FILLED", "FILLED",
            "FAILED"
          type: string
        timestamp:
          type: string
          description: Timestamp of the order (RFC3339)
        wanted:
          type: integer
          description: Wanted quantity of contracts
        filled:
          type: integer
          description: Filled quantity of contracts
        filled_amount:
          type: integer
          description: Filled amount in cents
        remaining:
          type: integer
          description: Remaining quantity of contracts

````