v22

latestOpenAPI 3.0.0raw.githubusercontent.com2026-03-03327794.1 KB
Performance

List PNL Sums

List historical PNL summations for a given account over a given date range, filtered on the given query parameters.

get/accounts/{account_id}/pnl-sums

Path parameters

account_idstring required

Account ID for the account.

Example:100000

Query parameters

starting_dateinteger required

Integer in YYYYMMDD representing a date.

Example:20240101
ending_dateinteger required

Integer in YYYYMMDD representing a date.

Example:20240101

Response

Successful response

starting_dateinteger

Integer in YYYYMMDD representing a date.

ending_dateinteger

Integer in YYYYMMDD representing a date.

entity_idstring

Entity ID for the legal entity.

account_idstring

Account ID for the account.

account_numberstring

Account number for the account.

starting_equitynumber double

The equity at the start of the date range. Start of day equity of the starting date in the date range.

ending_equitynumber double

The equity at the end of the date range. End of day equity of the ending date in the date range.

day_pnlnumber double

Sum of profit and loss from intraday trading activities for the given date range across all symbols.

position_pnlnumber double

Sum of profit and loss from previous trading date across all symbols.

unrealized_pnlnumber double

Sum of profit and loss from market changes across all symbols.

realized_pnlnumber double

Sum of profit and loss realized from position closing trading activity across all symbols.

total_pnlnumber double

realized_pnl + unrealized_pnl

net_pnlnumber double

P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses

Example response

{
  "starting_date": 20240101,
  "ending_date": 20240101,
  "entity_id": "100000",
  "account_id": "100000",
  "account_number": "ACC0001",
  "data": [
    {
      "symbol": "AAPL",
      "sold_quantity": "100",
      "bought_quantity": "100"
    }
  ]
}
All 32 operations