const res = await fetch('https://app.trdrs.co/api/venues/{venueId}/earnings', {
headers: { Authorization: `Bearer ${process.env.TRDRS_VENUE_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/venues/{venueId}/earnings' \
-H "Authorization: Bearer $TRDRS_VENUE_KEY"import requests
url = "https://app.trdrs.co/api/venues/{venueId}/earnings"
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/venues/{venueId}/earnings",
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/venues/{venueId}/earnings"
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/venues/{venueId}/earnings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/venues/{venueId}/earnings")
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{
"earnings": {
"venueId": "00000000-0000-0000-0000-000000000001",
"environment": "sandbox",
"month": "2026-11",
"period": {
"from": "2026-11-01T00:00:00.000Z",
"to": "2026-11-10T16:00:00.000Z"
},
"asOf": "2026-11-10T16:00:00.000000Z",
"builderFees": [
{
"currency": "USDC",
"amount": "40",
"count": 2
}
],
"payoutShare": [
{
"currency": "USD",
"amount": "100",
"count": 1
}
],
"fundingKeptBack": [
{
"currency": "USD",
"amount": "100",
"count": 1
}
],
"pot": [
{
"currency": "USD",
"amount": "200"
},
{
"currency": "USDC",
"amount": "40"
}
],
"hedgeWallets": {
"asOf": "2026-11-10T16:00:00.000000Z",
"aboveDrawdown": [
{
"currency": "USDC",
"amount": "0",
"count": 1
}
],
"unread": [
{
"hedgeAccountId": "hedge-net-1",
"accountId": null,
"reason": "not_bound_to_one_account"
}
]
},
"accountSales": [
{
"currency": "USD",
"amount": "600",
"count": 1
}
],
"byGroup": [
{
"groupId": "instant-funding",
"name": "Instant funding",
"builderFees": [
{
"currency": "USDC",
"amount": "40",
"count": 2
}
],
"payoutShare": [
{
"currency": "USD",
"amount": "100",
"count": 1
}
],
"fundingKeptBack": [
{
"currency": "USD",
"amount": "100",
"count": 1
}
],
"hedgeWallets": {
"aboveDrawdown": [
{
"currency": "USDC",
"amount": "0",
"count": 1
}
]
},
"accountSales": [
{
"currency": "USD",
"amount": "600",
"count": 1
}
]
}
]
}
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}Read what the venue earned in a month
Reads the venue’s pot for one UTC month, by source, from what its records state, with each group’s part: the builder fee its hedge fills paid, on every hedge account, your company accounts included (each fill’s quantity times its price, unsigned, times the fee per side its order carried, in the hedge account’s currency, in the month the provider says the fill happened; a flatten sent without the builder, because the account’s approval fell short, pays none), its share of each payout the book recorded (the gross less the trader’s amount), and the part of an instant funding price it keeps back (where the stage an account opened under takes the loss limit from what the trader paid, that price less the loss limit, in US dollars, once for each account, in the month its first stage that records the price was recorded). pot adds the three per currency. Beside it, for the current month only, hedgeWallets reads what each hedge wallet holds above its trader’s drawdown now: its equity less the copy ratio times the paper account’s equity above its loss floor, a hedge wallet’s USDC set against US dollars one for one. It still holds the gross of any payout you haven’t paid out of it, and any price you kept back and left in it, so it is never added to the pot. A recorded fee, payout or price is the engine’s record, not proof that money moved: the engine doesn’t read the builder’s claimed rewards, a payment to a trader or a trader’s payment. A flatten’s fills, a fill matched to no hedge, and an evaluation’s price aren’t counted. Amounts in different currencies are never added. A payout and a kept back price count in the group the account is in now; a builder fee in the group its hedge was made for, and a hedging policy’s net in none. It changes nothing. Required scope: venue:read. Preview: served on the sandbox to every venue, and production availability is arranged when a venue qualifies. Trading API keys and pre-registration keys do not authorize these routes.
const res = await fetch('https://app.trdrs.co/api/venues/{venueId}/earnings', {
headers: { Authorization: `Bearer ${process.env.TRDRS_VENUE_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/venues/{venueId}/earnings' \
-H "Authorization: Bearer $TRDRS_VENUE_KEY"import requests
url = "https://app.trdrs.co/api/venues/{venueId}/earnings"
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/venues/{venueId}/earnings",
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/venues/{venueId}/earnings"
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/venues/{venueId}/earnings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/venues/{venueId}/earnings")
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{
"earnings": {
"venueId": "00000000-0000-0000-0000-000000000001",
"environment": "sandbox",
"month": "2026-11",
"period": {
"from": "2026-11-01T00:00:00.000Z",
"to": "2026-11-10T16:00:00.000Z"
},
"asOf": "2026-11-10T16:00:00.000000Z",
"builderFees": [
{
"currency": "USDC",
"amount": "40",
"count": 2
}
],
"payoutShare": [
{
"currency": "USD",
"amount": "100",
"count": 1
}
],
"fundingKeptBack": [
{
"currency": "USD",
"amount": "100",
"count": 1
}
],
"pot": [
{
"currency": "USD",
"amount": "200"
},
{
"currency": "USDC",
"amount": "40"
}
],
"hedgeWallets": {
"asOf": "2026-11-10T16:00:00.000000Z",
"aboveDrawdown": [
{
"currency": "USDC",
"amount": "0",
"count": 1
}
],
"unread": [
{
"hedgeAccountId": "hedge-net-1",
"accountId": null,
"reason": "not_bound_to_one_account"
}
]
},
"accountSales": [
{
"currency": "USD",
"amount": "600",
"count": 1
}
],
"byGroup": [
{
"groupId": "instant-funding",
"name": "Instant funding",
"builderFees": [
{
"currency": "USDC",
"amount": "40",
"count": 2
}
],
"payoutShare": [
{
"currency": "USD",
"amount": "100",
"count": 1
}
],
"fundingKeptBack": [
{
"currency": "USD",
"amount": "100",
"count": 1
}
],
"hedgeWallets": {
"aboveDrawdown": [
{
"currency": "USDC",
"amount": "0",
"count": 1
}
]
},
"accountSales": [
{
"currency": "USD",
"amount": "600",
"count": 1
}
]
}
]
}
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}Authorizations
The Venue key (trdrs_vk_sandbox_… or trdrs_vk_production_…), in preview. It belongs to one venue in one environment and carries the scopes it was created with. The venue's verified owner creates it while signed in. It works on the /api/venues/{venueId} routes and, with trader:read or trader:trade, on the account, market, trading and Connect routes, reading the venue's own traders' accounts and Connect, routing their orders and connecting their own accounts, each request naming its trader in x-trdrs-trader. A trdrs_sk_… key can't be used in its place. It reaches its venue's routes and its venue's own traders, and the owner manages keys from a signed-in session. Keep it on your server.