Retrieve earnings (P&L)
Retrieve a position'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 position 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 position 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
{
"cost_basis": "2000.00",
"gross_capital": "175.00",
"gross_income": "34.75",
"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"
}Changes
Changed in 3 of the 12 revisions of this API.18
- ○
added the required property
to the response with the statusresponse-required-property-added
- ○
added the required property
to the response with the statusresponse-required-property-added
- ○
- ▲
the
response's property type changed fromstringto no type for statusresponse-property-type-changed
- ○
added to the
response propertyallOflist for the response statusresponse-property-all-of-added
- ○
removed the
EURenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ○
removed the
GBPenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ○
removed the
USDenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ▲
- ○
api tag
performanceaddedapi-tag-added
- ○
api tag
Performanceremovedapi-tag-removed
This revision also has 53 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○