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​
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int64 | Yes | The 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​
| Field | Type | Description |
|---|---|---|
points | array | Array of time-series data points |
points[].timestamp | string | ISO 8601 timestamp for the data point |
points[].pnl | float64 | Cumulative profit/loss value at that point |
Errors​
| Status | Code | Description |
|---|---|---|
| 400 | invalid_id | The provided ID is not valid |
| 401 | unauthorized | Token required for /me endpoint |
| 404 | user_not_found | No user exists with this ID |