Skip to main content

GET /api/v1/users/{id}/pnl/chart

Returns profit-and-loss chart data as a time-series for the specified user. Also available as GET /api/v1/users/me/pnl/chart for the currently authenticated user.

Authentication​

Optional for /users/{id}/pnl/chart (public profile data). Required for /users/me/pnl/chart.

Request​

Path Parameters​

ParameterTypeRequiredDescription
idint64YesThe user's ID (use me for the current user)

Example​

# By user ID
curl -X GET https://intotes.com/api/v1/users/42/pnl/chart

# For current user
curl -X GET https://intotes.com/api/v1/users/me/pnl/chart \
-H "Authorization: Bearer <token>"

Response​

200 OK​

{
"points": [
{
"timestamp": "2025-07-01T00:00:00Z",
"pnl": 0.00
},
{
"timestamp": "2025-07-02T00:00:00Z",
"pnl": 45.30
},
{
"timestamp": "2025-07-03T00:00:00Z",
"pnl": -12.50
},
{
"timestamp": "2025-07-04T00:00:00Z",
"pnl": 78.20
}
]
}

Response Fields​

FieldTypeDescription
pointsarrayArray of time-series data points
points[].timestampstringISO 8601 timestamp for the data point
points[].pnlfloat64Cumulative profit/loss value at that point

Errors​

StatusCodeDescription
400invalid_idThe provided ID is not valid
401unauthorizedToken required for /me endpoint
404user_not_foundNo user exists with this ID