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

# Listar órdenes activas

> Consulta las órdenes activas de una cuenta verificada.

## Qué hace esta operación

Usa offset desde 0 y total entre 1 y 100 (100 por defecto). Esta ruta no devuelve un histórico ni permite cancelar órdenes.

## Campos de respuesta

La respuesta exitosa contiene únicamente `retcode` y un arreglo `answer`.
Cada orden permite solo estos campos: `Order`, `Symbol`, `State`, `Type`, `TimeSetup`, `TimeExpiration`, `TypeTime`, `PriceOrder`, `PriceTrigger`, `PriceCurrent`, `PriceSL`, `PriceTP`, `VolumeInitial`, `VolumeCurrent`.

Los campos adicionales de MT5 se excluyen. Se conservan los valores y tipos
recibidos; los campos ausentes se omiten. Sin órdenes, `answer` es `[]`.
Los campos de tiempo usan segundos Unix y las variantes `Msc`, milisegundos;
los valores `0` recibidos se conservan. Los errores mantienen su formato habitual.

```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"
    }
  ]
}
```

## Proceso completo

Consulta [la guía paso a paso](/es/accounts) y [los errores y su tratamiento](/es/errors).

Los valores del explorador son ejemplos. Sustituye cuenta, símbolo, volumen y precio con datos válidos para tu integración.


## OpenAPI

````yaml es/openapi.json GET /api/v1/accounts/{login}/orders
openapi: 3.1.0
info:
  title: API MT5 — Portal de partners
  description: >-
    Endpoints seguros para verificar la propiedad de cuentas, consultar el
    mercado y operar en cuentas previamente verificadas.
  version: 0.1.0
servers:
  - url: https://api-trading.vexprofx.com
    description: API Trading · Partners
security: []
paths:
  /api/v1/accounts/{login}/orders:
    get:
      tags:
        - Órdenes
      summary: Listar órdenes activas
      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: Desplazamiento
        - name: total
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 100
            title: Total
      responses:
        '200':
          description: Respuesta satisfactoria
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrdersResponse'
        '422':
          description: Solicitud inválida o parámetros de cierre incompatibles.
          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: Símbolo
        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: >-
        Envía el token entregado por el proveedor en el encabezado Authorization
        mediante autenticación Bearer.

````

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