Skip to main content

Documentation Index

Fetch the complete documentation index at: https://orderly.network/docs/llms.txt

Use this file to discover all available pages before exploring further.

Daily snapshots of account value plus cumulative PnL, UTC-day-aligned. Weight: 5

Request

{
  "type": "portfolio",
  "address": "0x1234567890abcdef1234567890abcdef12345678",
  "interval": "1d",
  "start_time": 1712000000000,
  "end_time": 1715000000000,
  "limit": 90
}
FieldTypeRequiredDefaultNotes
addressstringYesWallet address
broker_idstringNoOptional
account_idstringNoOptional
intervalstringNo"1d"Only "1d" is supported — anything else throws INVALID_PARAM
start_timeint64Noend_time − 90dms epoch
end_timeint64Nonowms epoch
limitintNo901..365
cursorstringNoOpaque cursor

Response

FieldTypeNotes
rows[]arrayDESC by timestamp
.account_valuestringDaily collateral snapshot (holding + frozen + upnl)
.cumulative_pnlstringAccount value change since the earliest day in the returned window
.timestampint64UTC-day-aligned ms epoch

Notes

  • Throws INVALID_PARAM for interval ≠ "1d" or limit ∉ [1, 365]
  • For real-time collateral / unrealized PnL breakdown, use accountState.
{
  "success": true,
  "data": {
    "rows": [
      {
        "account_value": "50000.5",
        "cumulative_pnl": "2500",
        "timestamp": 1715000000000
      }
    ],
    "next_cursor": null
  },
  "ts": 1779269143700
}