TypeScript
const res = await fetch('https://app.trdrs.co/api/account/list', {
headers: { Authorization: `Bearer ${process.env.TRDRS_API_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/account/list' \
-H "Authorization: Bearer $TRDRS_API_KEY"import requests
url = "https://app.trdrs.co/api/account/list"
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/list",
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/list"
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/list")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/account/list")
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{
"accounts": [
{
"accountId": "7a1f4c93b28d05e6f1a3c7d9b4e28f60",
"broker": "rithmic",
"environment": "live",
"accountNumber": "PA-4821-07",
"login": "Apex",
"loginId": "Apex",
"capabilities": {
"nativeBracket": true,
"stopLimit": true,
"multiTargetBracket": true,
"nativeAutoBreakeven": false,
"bracketLevelAmend": true,
"exits": true
},
"accountName": "Apex 50K Eval",
"status": "active",
"openPositions": 1,
"realizedPnl": 245.5,
"unrealizedPnl": 75,
"balance": 50245.5,
"currency": "USD",
"asOf": 1787581920
}
]
}{
"error": "invalid_instrument"
}Account
List accounts
Returns every connected account with its capabilities, one row per account. capabilities is the one place a client reads what to offer (exits, the entry types exits can attach to, …): the engine re-checks every gate server-side and fails closed, so capabilities drive what you render, never what is authorized. Money fields are the venue’s own or null, never a fabricated 0.
GET
/
api
/
account
/
list
TypeScript
const res = await fetch('https://app.trdrs.co/api/account/list', {
headers: { Authorization: `Bearer ${process.env.TRDRS_API_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/account/list' \
-H "Authorization: Bearer $TRDRS_API_KEY"import requests
url = "https://app.trdrs.co/api/account/list"
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/list",
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/list"
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/list")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/account/list")
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{
"accounts": [
{
"accountId": "7a1f4c93b28d05e6f1a3c7d9b4e28f60",
"broker": "rithmic",
"environment": "live",
"accountNumber": "PA-4821-07",
"login": "Apex",
"loginId": "Apex",
"capabilities": {
"nativeBracket": true,
"stopLimit": true,
"multiTargetBracket": true,
"nativeAutoBreakeven": false,
"bracketLevelAmend": true,
"exits": true
},
"accountName": "Apex 50K Eval",
"status": "active",
"openPositions": 1,
"realizedPnl": 245.5,
"unrealizedPnl": 75,
"balance": 50245.5,
"currency": "USD",
"asOf": 1787581920
}
]
}{
"error": "invalid_instrument"
}