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

# Place a pending order

> Submit a limit, stop, or stop-limit order.

Requires a verified account, trading enabled, the endpoint scope, and `Idempotency-Key`.
See [types, prices, and examples](/trading/pending) and [recovery](/trading/idempotency).


## OpenAPI

````yaml openapi.json POST /api/v1/orders/pending
openapi: 3.1.0
info:
  title: MT5 API — Partner Portal
  description: >-
    Secure endpoints for account ownership verification, market data, and
    trading on previously verified accounts.
  version: 0.1.0
servers:
  - url: https://api-trading.vexprofx.com
    description: API Trading · Partners
security: []
paths:
  /api/v1/orders/pending:
    post:
      tags:
        - Trading
      summary: Place a pending order
      operationId: pending_order_api_v1_orders_pending_post
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            minLength: 16
            maxLength: 128
            pattern: ^[A-Za-z0-9._:-]{16,128}$
            example: 550e8400-e29b-41d4-a716-446655440000
          description: >-
            Persisted key for this intent. Reuse the same key and body when
            retrying; use a new key for another opening or closing order.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PendingOrderRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Pending Order Api V1 Orders Pending Post
        '400':
          description: Missing or invalid Idempotency-Key.
        '409':
          description: Key reused with different data or request still pending.
        '422':
          description: Invalid request or incompatible closing parameters.
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    type: string
              example:
                detail: Invalid request
      security:
        - HTTPBearer: []
components:
  schemas:
    PendingOrderRequest:
      properties:
        login:
          type: integer
          exclusiveMinimum: 0
          title: Login
          examples:
            - 104205
          example: 104205
        symbol:
          type: string
          maxLength: 32
          minLength: 1
          pattern: ^[A-Za-z0-9._-]+$
          title: Symbol
          examples:
            - EURUSD
          example: EURUSD
        volume:
          type: integer
          exclusiveMinimum: 0
          title: Volume
          description: 'MT5 volume units: 100 = 0.01 lots; 10000 = 1 lot.'
          example: 100
        order_type:
          type: string
          enum:
            - buy_limit
            - sell_limit
            - buy_stop
            - sell_stop
            - buy_stop_limit
            - sell_stop_limit
          title: Order Type
        price:
          type: number
          exclusiveMinimum: 0
          title: Price
          description: Pending order price; activation price for stop-limit.
          example: 1.1
        stop_limit_price:
          anyOf:
            - type: number
              exclusiveMinimum: 0
            - type: 'null'
          title: Stop Limit Price
          description: >-
            Limit order price after activation; required only for stop-limit
            orders.
        comment:
          type: string
          maxLength: 31
          title: Comment
          default: REST API
      additionalProperties: false
      type: object
      required:
        - login
        - symbol
        - volume
        - order_type
        - price
      title: PendingOrderRequest
      examples:
        - comment: REST API
          login: 104205
          order_type: buy_limit
          price: 1.09
          symbol: EURUSD
          volume: 100
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      description: >-
        Send the provider-issued token in the Authorization header using Bearer
        authentication.

````

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