TypeScript
const res = await fetch('https://app.trdrs.co/api/account/pnl/history', {
headers: { Authorization: `Bearer ${process.env.TRDRS_API_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/account/pnl/history' \
-H "Authorization: Bearer $TRDRS_API_KEY"import requests
url = "https://app.trdrs.co/api/account/pnl/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.trdrs.co/api/account/pnl/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.trdrs.co/api/account/pnl/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.trdrs.co/api/account/pnl/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/account/pnl/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"days": [
{
"broker": "rithmic",
"accountNumber": "PA-4821-07",
"tradingDay": "2026-08-21",
"matchedRealizedPnl": 387.5,
"matchedCommission": 8.4,
"matchedFees": 2.1,
"brokerRealizedPnl": 387.5,
"brokerUnrealizedPnl": 0,
"brokerNetLiq": 50120.3,
"brokerBalance": 50120.3,
"brokerCommission": 8.4,
"updatedAt": 1787344200
},
{
"broker": "rithmic",
"accountNumber": "PA-4821-07",
"tradingDay": "2026-08-24",
"matchedRealizedPnl": 245.5,
"matchedCommission": 4.2,
"matchedFees": 1.05,
"brokerRealizedPnl": 245.5,
"brokerUnrealizedPnl": 75,
"brokerNetLiq": 50320.5,
"brokerBalance": 50245.5,
"brokerCommission": 4.2,
"updatedAt": 1787581920
}
]
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}Account
Get daily P&L history
Returns the per-day realized P&L series — the equity curve. from/to are optional bounds and must be exactly YYYY-MM-DD; a present-but-malformed bound is a 400 rather than a silently widened range.
GET
/
api
/
account
/
pnl
/
history
TypeScript
const res = await fetch('https://app.trdrs.co/api/account/pnl/history', {
headers: { Authorization: `Bearer ${process.env.TRDRS_API_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/account/pnl/history' \
-H "Authorization: Bearer $TRDRS_API_KEY"import requests
url = "https://app.trdrs.co/api/account/pnl/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.trdrs.co/api/account/pnl/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.trdrs.co/api/account/pnl/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.trdrs.co/api/account/pnl/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/account/pnl/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"days": [
{
"broker": "rithmic",
"accountNumber": "PA-4821-07",
"tradingDay": "2026-08-21",
"matchedRealizedPnl": 387.5,
"matchedCommission": 8.4,
"matchedFees": 2.1,
"brokerRealizedPnl": 387.5,
"brokerUnrealizedPnl": 0,
"brokerNetLiq": 50120.3,
"brokerBalance": 50120.3,
"brokerCommission": 8.4,
"updatedAt": 1787344200
},
{
"broker": "rithmic",
"accountNumber": "PA-4821-07",
"tradingDay": "2026-08-24",
"matchedRealizedPnl": 245.5,
"matchedCommission": 4.2,
"matchedFees": 1.05,
"brokerRealizedPnl": 245.5,
"brokerUnrealizedPnl": 75,
"brokerNetLiq": 50320.5,
"brokerBalance": 50245.5,
"brokerCommission": 4.2,
"updatedAt": 1787581920
}
]
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}Authorizations
Your firm’s API key (the API calls this the tenant key; trdrs_sk_…), server-to-server only.
Query Parameters
Pick a connected broker. Omitted = the priority default. A present-but-unknown value is a 400, never a silent fallback.
Pick an account within that broker. Validated against the caller's own set; out-of-set is a 400.
Pattern:
^\d{4}-\d{2}-\d{2}$Pattern:
^\d{4}-\d{2}-\d{2}$Response
The per-day rows
Show child attributes
Show child attributes