Retrieve position earnings (P&L)
Changed onRetrieve a position's earnings (P&L) for the requested period. Note the period supports full date-times, with timezone information.
Request
- Base URLhttps://api.engine.usesophic.com
- AuthHTTP bearer
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 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
Successful Response
Example response
{
"period_end": "2026-03-31T23:59:59Z",
"period_start": "2026-01-01T00:00:00Z",
"reporting": {
"simple_return": "0.0307",
"simple_return_annualised": "0.0127"
},
"trading": {
"simple_return": "0.0307",
"simple_return_annualised": "0.0127"
}
}Changes
- breaking
the
response's property type changed from no type toobjectfor status - breaking
the
response's property type changed from no type toobjectfor status - info
removed from the
response propertyallOflist for the response status - info
removed from the
response propertyallOflist for the response status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- breaking
- info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- info