> ## 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.

# List active orders

> Query active orders for a verified account.

## What this operation does

Use offset from 0 and total from 1 to 100 (100 by default). This route does not return history or allow order cancellation.

## Response fields

A successful response contains only `retcode` and an `answer` array.
Each order allows only these fields: `Order`, `Symbol`, `State`, `Type`, `TimeSetup`, `TimeExpiration`, `TypeTime`, `PriceOrder`, `PriceTrigger`, `PriceCurrent`, `PriceSL`, `PriceTP`, `VolumeInitial`, `VolumeCurrent`.

Additional MT5 fields are excluded. Received values and types are preserved;
missing fields are omitted. With no orders, `answer` is `[]`.
Time fields use Unix seconds and `Msc` variants use milliseconds; received
`0` values are preserved. Errors retain their usual format.

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "retcode": "0 Done",
  "answer": [
    {
      "Order": "84406847",
      "Symbol": "EURUSD",
      "State": "1",
      "Type": "2",
      "TimeSetup": "1790788487",
      "TimeExpiration": "0",
      "TypeTime": "0",
      "PriceOrder": "1.12403",
      "PriceTrigger": "0.00000",
      "PriceCurrent": "1.13405",
      "PriceSL": "0.00000",
      "PriceTP": "0.00000",
      "VolumeInitial": "100",
      "VolumeCurrent": "100"
    }
  ]
}
```

## Complete workflow

See [the step-by-step guide](/accounts) and [errors and their handling](/errors).

Playground values are examples. Replace the account, symbol, volume, and price with valid data for your integration.


## OpenAPI

````yaml openapi.json GET /api/v1/accounts/{login}/orders
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/accounts/{login}/orders:
    get:
      tags:
        - Orders
      summary: List active orders
      operationId: open_orders_api_v1_accounts__login__orders_get
      parameters:
        - name: login
          in: path
          required: true
          schema:
            type: integer
            title: Login
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - name: total
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 100
            title: Total
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrdersResponse'
        '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:
    OrdersResponse:
      properties:
        retcode:
          type: string
          title: Retcode
        answer:
          items:
            $ref: '#/components/schemas/OrderData'
          type: array
          title: Answer
      additionalProperties: false
      type: object
      required:
        - retcode
        - answer
      title: OrdersResponse
    OrderData:
      properties:
        Order:
          anyOf:
            - type: string
            - type: integer
            - type: 'null'
          title: Order
        Symbol:
          anyOf:
            - type: string
            - type: 'null'
          title: Symbol
        State:
          anyOf:
            - type: string
            - type: integer
            - type: 'null'
          title: State
        Type:
          anyOf:
            - type: string
            - type: integer
            - type: 'null'
          title: Type
        TimeSetup:
          anyOf:
            - type: string
            - type: integer
            - type: 'null'
          title: Timesetup
        TimeExpiration:
          anyOf:
            - type: string
            - type: integer
            - type: 'null'
          title: Timeexpiration
        TypeTime:
          anyOf:
            - type: string
            - type: integer
            - type: 'null'
          title: Typetime
        PriceOrder:
          anyOf:
            - type: string
            - type: integer
            - type: number
            - type: 'null'
          title: Priceorder
        PriceTrigger:
          anyOf:
            - type: string
            - type: integer
            - type: number
            - type: 'null'
          title: Pricetrigger
        PriceCurrent:
          anyOf:
            - type: string
            - type: integer
            - type: number
            - type: 'null'
          title: Pricecurrent
        PriceSL:
          anyOf:
            - type: string
            - type: integer
            - type: number
            - type: 'null'
          title: Pricesl
        PriceTP:
          anyOf:
            - type: string
            - type: integer
            - type: number
            - type: 'null'
          title: Pricetp
        VolumeInitial:
          anyOf:
            - type: string
            - type: integer
            - type: 'null'
          title: Volumeinitial
        VolumeCurrent:
          anyOf:
            - type: string
            - type: integer
            - type: 'null'
          title: Volumecurrent
      additionalProperties: false
      type: object
      title: OrderData
  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.