Get exact realised PnL
GET
/
trade/v1/portfolio/pnl/realizedAuthorization
AuthorizationRequiredBearer <token>
Personal access token issued from the web app's Settings → API tokens page. Send as Authorization: Bearer agt_….
In: header
Scope: portfolio:read
Query Parameters
granularityRequiredstring
Required UTC bucket resolution. Use hour or day with fixed windows, and week with all.
Value in:
"hour" | "day" | "week"windowRequiredstring
Required UTC calendar window. Use 1d, 7d, or 30d with hour/day buckets, and all with week buckets.
Value in:
"1d" | "7d" | "30d" | "all"Timestamped UTC buckets for the requested calendar window, plus exact seven-day, thirty-day, and all-time totals since reporting started.