---
title: "Get Portfolio Summary Graph"
method: GET
path: "/v1/portfolio/summary/graph"
tags: ["Portfolio"]
---

# Get Portfolio Summary Graph

`GET /v1/portfolio/summary/graph`

Returns time-series portfolio snapshots for the authenticated account. Optional query parameter `range` controls the bucket size: 7d (default), 24h, 30d, or all.

## Query parameters

- `range` '7d' | '24h' | '30d' | 'all'

## Response `200`

Array of portfolio graph points (time-series)

- object
  - `success` boolean, required — Whether the request was successful
  - `error` string — Error message, present only on failure
  - `error_code` string — Semantic error code. See each endpoint's error responses for the specific codes it can return.
  - `deprecated` string — Deprecation notice, if applicable
  - `result` PortfolioGraphPoint[]
    - `time` string, date-time — Timestamp of the snapshot
    - `marginBalance` string — Margin balance at this time
    - `totalPnL` string — Total PnL at this time
    - `realizedPnl` string — Realized PnL at this time
    - `netInvested` string — Net invested at this time
    - `fillVolume` string — Cumulative fill volume at this time
    - `allTimeDeposits` string — All-time deposits at this time
    - `allTimeWithdrawals` string — All-time withdrawals at this time

## Other responses

- `400` — Bad request. The request was malformed or failed validation.
- `401` — Authentication required. Provide a valid JWT or API key.
- `403` — Access denied. The authenticated account does not have permission.
- `429` — Rate limit exceeded. Slow down request frequency.
- `500` — Internal server error.

---

[API](https://skmtc.net/ondoperps/apis/ondo-perps-rest-api.md) · [All operations](https://skmtc.net/ondoperps/apis/ondo-perps-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ondoperps/ondo-perps-rest-api/revisions/39df6b2fa672/schema)
