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

# Consultar cuenta

> Lee una cuenta con verificación vigente para tu token.

## Qué hace esta operación

La API comprueba el acceso al login y consulta los datos MT5. Un token válido no basta si el vínculo está vencido o revocado.

## Campos de respuesta

La respuesta exitosa contiene solo `retcode` y `answer`. Dentro de `answer` se
exponen únicamente `Login`, `Registration`, `LastAccess`, `Name`, `FirstName`,
`Balance` y `Credit`. Los campos ausentes en MT5 se omiten.

## 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}
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}:
    get:
      tags:
        - Cuentas
      summary: Consultar cuenta de trading
      operationId: account_api_v1_accounts__login__get
      parameters:
        - name: login
          in: path
          required: true
          schema:
            type: integer
            title: Login
      responses:
        '200':
          description: Respuesta satisfactoria
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountResponse'
        '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:
    AccountResponse:
      properties:
        retcode:
          type: string
          title: Retcode
        answer:
          $ref: '#/components/schemas/AccountData'
      additionalProperties: false
      type: object
      required:
        - retcode
        - answer
      title: AccountResponse
    AccountData:
      properties:
        Login:
          anyOf:
            - type: string
            - type: integer
            - type: 'null'
          title: Login
        Registration:
          anyOf:
            - type: string
            - type: integer
            - type: 'null'
          title: Registration
        LastAccess:
          anyOf:
            - type: string
            - type: integer
            - type: 'null'
          title: Lastaccess
        Name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        FirstName:
          anyOf:
            - type: string
            - type: 'null'
          title: Firstname
        Balance:
          anyOf:
            - type: string
            - type: integer
            - type: number
            - type: 'null'
          title: Balance
        Credit:
          anyOf:
            - type: string
            - type: integer
            - type: number
            - type: 'null'
          title: Credit
      additionalProperties: false
      type: object
      title: AccountData
  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.