Skip to main content
GET
/
api
/
v2
/
portfolio
/
pnl
GET /api/v2/portfolio/pnl — Aggregate PnL summary
curl --request GET \
  --url https://api.shuriken.trade/api/v2/portfolio/pnl \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "portfolioHistory": [
      {
        "timestamp": 123,
        "valueUsd": 123
      }
    ],
    "positionCount": 1,
    "totalBoughtUsd": 123,
    "totalPnlUsd": 123,
    "totalRealizedPnlUsd": 123,
    "totalSoldUsd": 123,
    "totalUnrealizedPnlUsd": 123,
    "totalValueUsd": 123
  },
  "requestId": "<string>",
  "pagination": {
    "hasMore": true,
    "limit": 1,
    "page": 1,
    "total": 1
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.shuriken.trade/llms.txt

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

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <jwt> for user auth or Authorization: Bearer sk_{keyId}_{secret} for API key auth.

Query Parameters

timeframe
string

Timeframe: 1d, 7d, 30d, lifetime (default: 30d)

Response

200 - application/json

Portfolio PnL summary

V2 success response envelope

data
object
required
requestId
string
required
pagination
object

Page-based pagination info (per RFC)