Skip to main content
GET
/
pnl
Get profit and loss
curl --request GET \
  --url https://v2.55-tech.com/pnl \
  --header 'x-api-key: <api-key>'
import requests

url = "https://v2.55-tech.com/pnl"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://v2.55-tech.com/pnl', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://v2.55-tech.com/pnl",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://v2.55-tech.com/pnl"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://v2.55-tech.com/pnl")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://v2.55-tech.com/pnl")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "status": "success",
  "groupBy": "bookmaker",
  "pnl": [
    {
      "bookmaker": "pinnacle",
      "settledBets": 42,
      "wins": 23,
      "losses": 17,
      "voids": 1,
      "pushes": 1,
      "totalStaked": 2100,
      "totalWon": 2350,
      "totalLost": 850,
      "netPnl": 250,
      "winRate": 54.8
    },
    {
      "bookmaker": "sharpbet",
      "settledBets": 15,
      "wins": 9,
      "losses": 5,
      "voids": 1,
      "pushes": 0,
      "totalStaked": 750,
      "totalWon": 900,
      "totalLost": 250,
      "netPnl": 150,
      "winRate": 60
    }
  ],
  "count": 2,
  "totalNetPnl": 400,
  "totalStaked": 2850,
  "totalSettledBets": 57
}

Authorizations

x-api-key
string
header
required

API key for authentication. Contact contact@55-tech.com to obtain a key.

Query Parameters

groupBy
enum<string>
default:bookmaker

Group PnL by: bookmaker, account, or userRef

Available options:
bookmaker,
account,
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

status
string
groupBy
string
pnl
object[]
count
integer
totalNetPnl
number
totalStaked
number
totalSettledBets
integer