Skip to main content
GET
Get user realized PnL, broken down by exchange

Headers

X-Broker-Key
string
required

Broker API key

Query Parameters

from
integer

Start of the period as unix timestamp in milliseconds (inclusive). Defaults to now - 30 days (1 day for hour resolution).

Required range: x <= 9007199254740991
Example:

1767225600000

resolution
enum<string>
default:day

Aggregation interval: day (UTC calendar day) or hour (UTC clock hour). from/to snap to interval boundaries. On series endpoints, items span one interval and hour limits the range to 7 days. Defaults to day.

Available options:
day,
hour
to
integer

End of the period as unix timestamp in milliseconds (inclusive). Defaults to now.

Required range: x <= 9007199254740991
Example:

1769903999000

userId
string<uuid>
required

User id to compute stats for.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

200 - application/json
exchangesPnl
BrokerUserExchangePnl · object
required

Net realized PnL per exchange over the period — trade PnL minus trading fees plus funding payments — for every trade on the connected accounts, not only api-placed orders.

totalPnl
string
required

Total net realized PnL across all exchanges over the period — trade PnL minus trading fees plus funding payments — for every trade on the connected accounts, not only api-placed orders.

Example:

"1250.00"