Skip to main content
GET
/
api
/
v1
/
portfolio
/
pnl-history
Get P&L time series
curl --request GET \
  --url https://carboncopy.inc/api/v1/portfolio/pnl-history \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "items": [
      {
        "date": "2026-03-01T12:00:00.000Z",
        "timestamp": 1772400000000,
        "value": 12.5,
        "realizedPnl": 8,
        "unrealisedPnl": 4.5
      }
    ]
  },
  "meta": {
    "requestId": "cf7301af-0c1e-4354-85a8-9153db69ae6d",
    "timestamp": 1741600000000
  }
}

Authorizations

Authorization
string
header
required

API key in the format cc_<64 hex characters>. Obtain from the Dashboard under Settings → API Keys.

Query Parameters

days
integer
default:30

Number of days of history to return.

Required range: 1 <= x <= 90
interval
enum<string>

Aggregation interval — returns the last snapshot per bucket. Use 1h or 4h for more granularity.

Available options:
1h,
4h,
1d

Response

P&L time series.

data
object
meta
object