Skip to content

Get History Trades

Returns closed trade history for a login within a time range.

GET

https://{some_domain}/trades/history/login

Authorization

All requests must include a JWT token:

Authorization: <JWT_TOKEN>

Request

Content-Type: application/json

Body Parameters

Field Type Required Description
login int Yes Account login
from int Yes Range start timestamp
to int Yes Range end timestamp

Response

Success (200)

{
  "structure": [
    "order", "login", "cmd", "state", "symbol", "reason", "volume", "open_time", "close_time",
    "open_price", "close_price", "sl", "tp", "profit", "commission", "storage", "comment",
    "digits", "expiration"
  ],
  "rows": [
    [1001234, 1001, 0, 2, "EURUSD", 2, 100, 1713400000, 1713500000, 1.1010, 1.1040, 1.0900, 1.1200, 30.0, -1.2, -0.4, "", 5, 0]
  ]
}

Error Responses

Code Error Description
400 INVALID_DATA Validation failed
4xx/5xx RET_* Trade history retrieval error