v13

latestOpenAPI 3.1.0raw.githubusercontent.com2026-04-0815390371.2 KB
Portfolio

Get Portfolio History

Get the historical state of all or filtered accounts portfolio with pagination and interval sampling.

The interval parameter allows you to control data granularity:

  • 5m: Raw data (default, collected every 5 minutes)
  • 15m: One data point every 15 minutes
  • 30m: One data point every 30 minutes
  • 1h: One data point every hour
  • 4h: One data point every 4 hours
  • 12h: One data point every 12 hours
  • 1d: One data point every day

Using larger intervals significantly reduces response size and improves performance.

Args: filter_request: JSON payload with filtering criteria (account_names, connector_names, start_time, end_time, limit, cursor, interval)

Returns: Paginated response with historical portfolio data sampled at the requested interval

post/portfolio/history

Request body

limitinteger

Number of items per page

start_timeinteger nullable

Start time as Unix timestamp in milliseconds

end_timeinteger nullable

End time as Unix timestamp in milliseconds

cursorstring nullable

Cursor for next page

account_namesstring[] nullable

List of account names to filter by

connector_namesstring[] nullable

List of connector names to filter by

intervalstring nullable

Data sampling interval: 5m, 15m, 30m, 1h, 4h, 12h, 1d. Default is 5m (raw data)

Response

Successful Response

dataobject[] required
paginationobject required

Example response

{
  "data": [],
  "pagination": {
    "has_more": true,
    "limit": 100,
    "next_cursor": "2024-01-10T12:00:00",
    "total_count": 500
  }
}