Retrieve earnings (P&L)
Retrieve an account's earnings (P&L) for the requested period. Note the period supports full date-times, with timezone information.
Path parameters
Query parameters
Predefined period over which earnings are computed. Takes precedence over period_start/period_end when provided.
The period start (in ISO 8601 format). If omitted, it defaults to the account opening date/time. Note that the period is interpreted as a half-open interval with period_start included and period_end excluded.
The period start (in ISO 8601 format). If omitted, it defaults to the account opening date/time. Note that the period is interpreted as a half-open interval with period_start included and period_end excluded.
The period end (in ISO 8601 format). If omitted, it defaults to the current date/time. Note the period is interpreted as a half-open interval with period_start included and period_end excluded.
The period end (in ISO 8601 format). If omitted, it defaults to the current date/time. Note the period is interpreted as a half-open interval with period_start included and period_end excluded.
Response
OK
Example response
{
"fees": "7.25",
"gross_realized": "125.50",
"gross_total": "209.75",
"gross_unrealized": "84.25",
"net_realized": "118.25",
"net_total": "202.50",
"net_unrealized": "84.25",
"period_end": "2026-03-31T23:59:59Z",
"period_start": "2026-01-01T00:00:00Z",
"position_earnings": [
{
"cost_basis": "2000.00",
"gross_realized": "125.50",
"gross_total": "209.75",
"gross_unrealized": "84.25",
"gross_unrealized_percentage": "0.0421",
"period_end": "2026-03-31T23:59:59Z",
"period_start": "2026-01-01T00:00:00Z",
"realized_capital": "100.00",
"realized_income": "25.50",
"unrealized_capital": "75.00",
"unrealized_income": "9.25"
}
],
"realized_capital": "100.00",
"realized_income": "25.50",
"unrealized_capital": "75.00",
"unrealized_income": "9.25"
}