Profit & Loss (PnL)
Calculates the total Profit and Loss for the user’s predictions.
Endpoint
Section titled “Endpoint”POST
/prediction/v1/pnlRequest Body
Section titled “Request Body”curl -X POST https://api.juspredict.com/prediction/v1/pnl \-H 'Authorization: Bearer YOUR_TOKEN' \-H 'Content-Type: application/json' \-d '{"pnl_type": 1,"time_since": "2026-04-01T00:00:00Z"}'{"pnl_type": 1,"time_since": "2026-04-01T00:00:00Z"}Constraints
Section titled “Constraints”| Field | Requirement |
|---|---|
pnl_type | 1: Unrealized, 2: Realized. |
Response Body
Section titled “Response Body”{"status": { "type": "SUCCESS" },"pnl": "250.00","pnl_percentage": "15.5"}{"status": {"type": "ERROR","details": [ { "code": "401", "message": "Unauthorized access token." }]}}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
status | Status | Operation status. |