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

# Place Order

> Queue a market order for async B-book execution.

Returns 202 Accepted immediately with a request_id.
The ExecutionEngine picks up the order from Kafka, executes it atomically
via Redis Lua (price lock + margin check), then writes to Postgres.

Poll GET /orders/request/{request_id} or subscribe to WebSocket for result.



## OpenAPI

````yaml /openapi.json post /orders
openapi: 3.1.0
info:
  title: Slate API
  version: 1.0.0
  description: Trading infrastructure API.
servers:
  - url: https://api.{your-broker}.slate-labs.com
    variables:
      your-broker:
        default: broker
security: []
tags:
  - name: Authentication
  - name: API Tokens
  - name: Customers
  - name: Accounts
  - name: Orders
  - name: Instruments & Groups
  - name: Transactions
  - name: Payments
  - name: Transfers
  - name: Risk
  - name: Workflow & CRM
  - name: Messaging
  - name: Integrations
  - name: Webhooks
  - name: Compliance
  - name: Promo codes
  - name: Reporting
  - name: Audit
  - name: Fraud & moderation
  - name: Broker settings
  - name: Users
  - name: Roles & Teams
  - name: Streams (SSE)
  - name: Simulator
  - name: Observability
  - name: Prop trading
paths:
  /orders:
    post:
      tags:
        - Orders
      summary: Place Order
      description: >-
        Queue a market order for async B-book execution.


        Returns 202 Accepted immediately with a request_id.

        The ExecutionEngine picks up the order from Kafka, executes it
        atomically

        via Redis Lua (price lock + margin check), then writes to Postgres.


        Poll GET /orders/request/{request_id} or subscribe to WebSocket for
        result.
      operationId: place_order_orders_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlaceOrderRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderQueuedResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PlaceOrderRequest:
      properties:
        login:
          type: integer
          title: Login
        symbol:
          type: string
          title: Symbol
        cmd:
          type: integer
          maximum: 1
          minimum: 0
          title: Cmd
        volume:
          type: number
          exclusiveMinimum: 0
          title: Volume
        sl:
          anyOf:
            - type: number
            - type: 'null'
          title: Sl
        tp:
          anyOf:
            - type: number
            - type: 'null'
          title: Tp
        trailing_stop:
          anyOf:
            - type: number
              minimum: 0
            - type: 'null'
          title: Trailing Stop
          description: Trailing stop percentage (e.g. 1.0 = 1%)
        comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Comment
      type: object
      required:
        - login
        - symbol
        - cmd
        - volume
      title: PlaceOrderRequest
    OrderQueuedResponse:
      properties:
        request_id:
          type: string
          title: Request Id
        status:
          type: string
          title: Status
          default: queued
      type: object
      required:
        - request_id
      title: OrderQueuedResponse
      description: Returned immediately by POST /orders (202 Accepted).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````