Skip to main content
GET
/
pnl
Get profit and loss
curl --request GET \
  --url https://v2.55-tech.com/pnl \
  --header 'X-ABP-API-KEY: <api-key>'
{
  "groupBy": "<string>",
  "pnl": [
    {
      "settledBets": 123,
      "wins": 123,
      "losses": 123,
      "voids": 123,
      "pushes": 123,
      "totalStaked": 123,
      "totalWon": 123,
      "totalLost": 123,
      "netPnl": 123,
      "bookmaker": "<string>",
      "account": "<string>",
      "userRef": "<string>",
      "winRate": 123
    }
  ],
  "count": 123,
  "totalNetPnl": 123,
  "totalStaked": 123,
  "totalSettledBets": 123,
  "status": "success"
}

Authorizations

X-ABP-API-KEY
string
header
required

API key for authentication. Contact admin to obtain a key.

Query Parameters

groupBy
string
default:bookmaker

Group PnL by: bookmaker, account, or userRef

bookmaker
string | null

Filter by bookmaker slug

userRef
string | null

Filter by user reference

account
string | null

Filter by account username

Response

Successfully retrieved PnL

Response for the PnL endpoint.

groupBy
string
required
pnl
PnlEntry · object[]
required
count
integer
required
totalNetPnl
number
required
totalStaked
number
required
totalSettledBets
integer
required
status
string
default:success