Skip to main content
GET
/
v1
/
portfolio
/
summary
/
graph
Get Portfolio Summary Graph
curl --request GET \
  --url https://api.ondoperps.xyz/v1/portfolio/summary/graph \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "result": [
    {
      "time": "2025-03-04T00:00:00Z",
      "marginBalance": "4800.00",
      "totalPnL": "180.00",
      "realizedPnl": "200.00",
      "netInvested": "4620.00",
      "fillVolume": "240000.00",
      "allTimeDeposits": "5000.00",
      "allTimeWithdrawals": "500.00"
    },
    {
      "time": "2025-03-05T00:00:00Z",
      "marginBalance": "4950.00",
      "totalPnL": "232.00",
      "realizedPnl": "250.00",
      "netInvested": "4750.00",
      "fillVolume": "250000.00",
      "allTimeDeposits": "5000.00",
      "allTimeWithdrawals": "500.00"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

range
enum<string>
default:7d

Time range for bucketing: 7d (default), 24h, 30d, or all

Available options:
7d,
24h,
30d,
all

Response

Array of portfolio graph points (time-series)

success
boolean
required

Whether the request was successful

Example:

true

error
string

Error message, present only on failure

Example:

""

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

Example:

""

result
object[]