const res = await fetch('https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare', {
method: 'POST',
headers: {
'content-type': 'application/json',
Authorization: `Bearer ${process.env.TRDRS_VENUE_KEY}`,
},
body: JSON.stringify({
"accounts": [
{
"accountId": "example-account",
"balance": "30116.5",
"positions": [
{
"instrumentId": "FX:EURUSD",
"quantity": "100000"
}
],
"fills": {
"from": "2026-11-02T00:00:00Z",
"to": "2026-11-03T00:00:00Z",
"items": [
{
"executionId": "exec-91d0",
"side": "buy",
"quantity": "100000",
"price": "1.0848"
}
]
}
},
{
"accountId": "example-account-2",
"balance": "9870"
}
]
}),
})
const data = await res.json()curl -X POST 'https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare' \
-H "Authorization: Bearer $TRDRS_VENUE_KEY" \
-H 'content-type: application/json' \
-d '{"accounts":[{"accountId":"example-account","balance":"30116.5","positions":[{"instrumentId":"FX:EURUSD","quantity":"100000"}],"fills":{"from":"2026-11-02T00:00:00Z","to":"2026-11-03T00:00:00Z","items":[{"executionId":"exec-91d0","side":"buy","quantity":"100000","price":"1.0848"}]}},{"accountId":"example-account-2","balance":"9870"}]}'import requests
url = "https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare"
payload = { "accounts": [
{
"accountId": "example-account",
"balance": "30116.5",
"positions": [
{
"instrumentId": "FX:EURUSD",
"quantity": "100000"
}
],
"fills": {
"from": "2026-11-02T00:00:00Z",
"to": "2026-11-03T00:00:00Z",
"items": [
{
"executionId": "exec-91d0",
"side": "buy",
"quantity": "100000",
"price": "1.0848"
}
]
}
},
{
"accountId": "example-account-2",
"balance": "9870"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accounts' => [
[
'accountId' => 'example-account',
'balance' => '30116.5',
'positions' => [
[
'instrumentId' => 'FX:EURUSD',
'quantity' => '100000'
]
],
'fills' => [
'from' => '2026-11-02T00:00:00Z',
'to' => '2026-11-03T00:00:00Z',
'items' => [
[
'executionId' => 'exec-91d0',
'side' => 'buy',
'quantity' => '100000',
'price' => '1.0848'
]
]
]
],
[
'accountId' => 'example-account-2',
'balance' => '9870'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare"
payload := strings.NewReader("{\n \"accounts\": [\n {\n \"accountId\": \"example-account\",\n \"balance\": \"30116.5\",\n \"positions\": [\n {\n \"instrumentId\": \"FX:EURUSD\",\n \"quantity\": \"100000\"\n }\n ],\n \"fills\": {\n \"from\": \"2026-11-02T00:00:00Z\",\n \"to\": \"2026-11-03T00:00:00Z\",\n \"items\": [\n {\n \"executionId\": \"exec-91d0\",\n \"side\": \"buy\",\n \"quantity\": \"100000\",\n \"price\": \"1.0848\"\n }\n ]\n }\n },\n {\n \"accountId\": \"example-account-2\",\n \"balance\": \"9870\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accounts\": [\n {\n \"accountId\": \"example-account\",\n \"balance\": \"30116.5\",\n \"positions\": [\n {\n \"instrumentId\": \"FX:EURUSD\",\n \"quantity\": \"100000\"\n }\n ],\n \"fills\": {\n \"from\": \"2026-11-02T00:00:00Z\",\n \"to\": \"2026-11-03T00:00:00Z\",\n \"items\": [\n {\n \"executionId\": \"exec-91d0\",\n \"side\": \"buy\",\n \"quantity\": \"100000\",\n \"price\": \"1.0848\"\n }\n ]\n }\n },\n {\n \"accountId\": \"example-account-2\",\n \"balance\": \"9870\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accounts\": [\n {\n \"accountId\": \"example-account\",\n \"balance\": \"30116.5\",\n \"positions\": [\n {\n \"instrumentId\": \"FX:EURUSD\",\n \"quantity\": \"100000\"\n }\n ],\n \"fills\": {\n \"from\": \"2026-11-02T00:00:00Z\",\n \"to\": \"2026-11-03T00:00:00Z\",\n \"items\": [\n {\n \"executionId\": \"exec-91d0\",\n \"side\": \"buy\",\n \"quantity\": \"100000\",\n \"price\": \"1.0848\"\n }\n ]\n }\n },\n {\n \"accountId\": \"example-account-2\",\n \"balance\": \"9870\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"comparison": {
"asOf": "2026-11-03T12:00:00.000000Z",
"matched": 1,
"differing": 1,
"notFound": 0,
"accounts": [
{
"accountId": "example-account",
"state": "differs",
"revision": 44,
"currency": "USD",
"differences": [
{
"subject": "balance",
"state": "mismatched",
"ours": "30115.26",
"theirs": "30116.5",
"difference": "-1.24"
},
{
"subject": "fill",
"executionId": "exec-7f3a",
"state": "missing",
"ours": {
"side": "sell",
"quantity": "100000",
"price": "1.0861"
},
"theirs": null,
"fields": []
}
]
},
{
"accountId": "example-account-2",
"state": "matched",
"revision": 12,
"currency": "USD",
"differences": []
}
]
}
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}Compare your figures with the book
Compares your own figures for up to 100 accounts with the book at one instant, asOf, and returns every difference: an account’s balance, its open positions by instrument and the fills of a period by execution id, each part only where you send it. A position is compared by its instrument’s net quantity, and the list you send is the whole list, so an instrument the book holds that you leave out is missing. A fill you send may state its side, quantity and price to check them. An account that isn’t this venue’s, or whose books trdrs doesn’t keep, is not_found. It reads and changes nothing, so send it as often as you like, with no Idempotency-Key. Compare figures taken at the same moment; for a past instant, read the closing balance of a statement whose period ends then. Required scope: account: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}/reconciliation/compare', {
method: 'POST',
headers: {
'content-type': 'application/json',
Authorization: `Bearer ${process.env.TRDRS_VENUE_KEY}`,
},
body: JSON.stringify({
"accounts": [
{
"accountId": "example-account",
"balance": "30116.5",
"positions": [
{
"instrumentId": "FX:EURUSD",
"quantity": "100000"
}
],
"fills": {
"from": "2026-11-02T00:00:00Z",
"to": "2026-11-03T00:00:00Z",
"items": [
{
"executionId": "exec-91d0",
"side": "buy",
"quantity": "100000",
"price": "1.0848"
}
]
}
},
{
"accountId": "example-account-2",
"balance": "9870"
}
]
}),
})
const data = await res.json()curl -X POST 'https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare' \
-H "Authorization: Bearer $TRDRS_VENUE_KEY" \
-H 'content-type: application/json' \
-d '{"accounts":[{"accountId":"example-account","balance":"30116.5","positions":[{"instrumentId":"FX:EURUSD","quantity":"100000"}],"fills":{"from":"2026-11-02T00:00:00Z","to":"2026-11-03T00:00:00Z","items":[{"executionId":"exec-91d0","side":"buy","quantity":"100000","price":"1.0848"}]}},{"accountId":"example-account-2","balance":"9870"}]}'import requests
url = "https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare"
payload = { "accounts": [
{
"accountId": "example-account",
"balance": "30116.5",
"positions": [
{
"instrumentId": "FX:EURUSD",
"quantity": "100000"
}
],
"fills": {
"from": "2026-11-02T00:00:00Z",
"to": "2026-11-03T00:00:00Z",
"items": [
{
"executionId": "exec-91d0",
"side": "buy",
"quantity": "100000",
"price": "1.0848"
}
]
}
},
{
"accountId": "example-account-2",
"balance": "9870"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accounts' => [
[
'accountId' => 'example-account',
'balance' => '30116.5',
'positions' => [
[
'instrumentId' => 'FX:EURUSD',
'quantity' => '100000'
]
],
'fills' => [
'from' => '2026-11-02T00:00:00Z',
'to' => '2026-11-03T00:00:00Z',
'items' => [
[
'executionId' => 'exec-91d0',
'side' => 'buy',
'quantity' => '100000',
'price' => '1.0848'
]
]
]
],
[
'accountId' => 'example-account-2',
'balance' => '9870'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare"
payload := strings.NewReader("{\n \"accounts\": [\n {\n \"accountId\": \"example-account\",\n \"balance\": \"30116.5\",\n \"positions\": [\n {\n \"instrumentId\": \"FX:EURUSD\",\n \"quantity\": \"100000\"\n }\n ],\n \"fills\": {\n \"from\": \"2026-11-02T00:00:00Z\",\n \"to\": \"2026-11-03T00:00:00Z\",\n \"items\": [\n {\n \"executionId\": \"exec-91d0\",\n \"side\": \"buy\",\n \"quantity\": \"100000\",\n \"price\": \"1.0848\"\n }\n ]\n }\n },\n {\n \"accountId\": \"example-account-2\",\n \"balance\": \"9870\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accounts\": [\n {\n \"accountId\": \"example-account\",\n \"balance\": \"30116.5\",\n \"positions\": [\n {\n \"instrumentId\": \"FX:EURUSD\",\n \"quantity\": \"100000\"\n }\n ],\n \"fills\": {\n \"from\": \"2026-11-02T00:00:00Z\",\n \"to\": \"2026-11-03T00:00:00Z\",\n \"items\": [\n {\n \"executionId\": \"exec-91d0\",\n \"side\": \"buy\",\n \"quantity\": \"100000\",\n \"price\": \"1.0848\"\n }\n ]\n }\n },\n {\n \"accountId\": \"example-account-2\",\n \"balance\": \"9870\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/venues/{venueId}/reconciliation/compare")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accounts\": [\n {\n \"accountId\": \"example-account\",\n \"balance\": \"30116.5\",\n \"positions\": [\n {\n \"instrumentId\": \"FX:EURUSD\",\n \"quantity\": \"100000\"\n }\n ],\n \"fills\": {\n \"from\": \"2026-11-02T00:00:00Z\",\n \"to\": \"2026-11-03T00:00:00Z\",\n \"items\": [\n {\n \"executionId\": \"exec-91d0\",\n \"side\": \"buy\",\n \"quantity\": \"100000\",\n \"price\": \"1.0848\"\n }\n ]\n }\n },\n {\n \"accountId\": \"example-account-2\",\n \"balance\": \"9870\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"comparison": {
"asOf": "2026-11-03T12:00:00.000000Z",
"matched": 1,
"differing": 1,
"notFound": 0,
"accounts": [
{
"accountId": "example-account",
"state": "differs",
"revision": 44,
"currency": "USD",
"differences": [
{
"subject": "balance",
"state": "mismatched",
"ours": "30115.26",
"theirs": "30116.5",
"difference": "-1.24"
},
{
"subject": "fill",
"executionId": "exec-7f3a",
"state": "missing",
"ours": {
"side": "sell",
"quantity": "100000",
"price": "1.0861"
},
"theirs": null,
"fields": []
}
]
},
{
"accountId": "example-account-2",
"state": "matched",
"revision": 12,
"currency": "USD",
"differences": []
}
]
}
}{
"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.