Skip to main content
GET
List open positions

What this operation does

Use offset from 0 and total from 1 to 1000 (100 by default). Traverse all pages and keep the Position ticket for closing orders.

Response fields

A successful response contains only retcode and an answer array. Each position allows only these fields: Position, Symbol, Action, TimeCreate, PriceOpen, PriceCurrent, PriceSL, PriceTP, Volume, Profit, Storage. Additional MT5 fields are excluded. Received values and types are preserved; missing fields are omitted. With no positions, answer is []. TimeCreate and TimeUpdate are Unix timestamps in seconds; their Msc variants use milliseconds. Errors retain their usual format.

Complete workflow

See the step-by-step guide and errors and their handling. Playground values are examples. Replace the account, symbol, volume, and price with valid data for your integration. See Volume: lots and MT5 units for conversions and each endpoint’s volume fields.

Authorizations

Authorization
string
header
required

Send the provider-issued token in the Authorization header using Bearer authentication.

Path Parameters

login
integer
required

Query Parameters

offset
integer
default:0
Required range: x >= 0
total
integer
default:100
Required range: 1 <= x <= 1000

Response

Successful Response

retcode
string
required
answer
PositionData · object[]
required