Skip to content

Profit & Loss (PnL)

Calculates the total Profit and Loss for the user’s predictions.

POST/prediction/v1/pnl
Terminal window
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"
}'
FieldRequirement
pnl_type1: Unrealized, 2: Realized.
{
"status": { "type": "SUCCESS" },
"pnl": "250.00",
"pnl_percentage": "15.5"
}
FieldTypeDescription
statusStatusOperation status.