TypeScript
const res = await fetch('https://app.trdrs.co/api/account/pnl/round-trips', {
headers: { Authorization: `Bearer ${process.env.TRDRS_API_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/account/pnl/round-trips' \
-H "Authorization: Bearer $TRDRS_API_KEY"import requests
url = "https://app.trdrs.co/api/account/pnl/round-trips"
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/round-trips",
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/round-trips"
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/round-trips")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/account/pnl/round-trips")
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{
"roundTrips": [
{
"broker": "rithmic",
"accountNumber": "PA-4821-07",
"instrument": "ESU6",
"root": "ES",
"direction": "long",
"qty": 3,
"entryAvgPrice": 6462.25,
"exitAvgPrice": 6470,
"openedAt": 1787569200,
"closedAt": 1787574600,
"tradeDay": "2026-08-24",
"realizedPnl": 1162.5,
"commission": 12.6,
"fees": 3.15,
"entrySourceExecId": "ex_9f27a8",
"closeSourceExecId": "ex_9f27b3"
}
],
"nextCursor": null
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}Account
List closed round trips
Returns the closed round-trip ledger, cursor-paged and newest first. The cursor has three components (${epochSeconds}:${closeExecId}:${entryExecId}) because rows can share a (closedAt, closeExecId) pair and are only made unique by the entry exec id; a two-part cursor would skip or duplicate those siblings. Treat it as opaque and pass back nextCursor verbatim.
GET
/
api
/
account
/
pnl
/
round-trips
TypeScript
const res = await fetch('https://app.trdrs.co/api/account/pnl/round-trips', {
headers: { Authorization: `Bearer ${process.env.TRDRS_API_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/account/pnl/round-trips' \
-H "Authorization: Bearer $TRDRS_API_KEY"import requests
url = "https://app.trdrs.co/api/account/pnl/round-trips"
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/round-trips",
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/round-trips"
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/round-trips")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/account/pnl/round-trips")
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{
"roundTrips": [
{
"broker": "rithmic",
"accountNumber": "PA-4821-07",
"instrument": "ESU6",
"root": "ES",
"direction": "long",
"qty": 3,
"entryAvgPrice": 6462.25,
"exitAvgPrice": 6470,
"openedAt": 1787569200,
"closedAt": 1787574600,
"tradeDay": "2026-08-24",
"realizedPnl": 1162.5,
"commission": 12.6,
"fees": 3.15,
"entrySourceExecId": "ex_9f27a8",
"closeSourceExecId": "ex_9f27b3"
}
],
"nextCursor": null
}{
"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.
Required range:
1 <= x <= 500