const res = await fetch('https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/preview', {
method: 'POST',
headers: {
'content-type': 'application/json',
Authorization: `Bearer ${process.env.TRDRS_VENUE_KEY}`,
"Idempotency-Key": "example-request-1",
},
body: JSON.stringify({
"basedOn": "2026-11-02",
"rows": [
{
"symbol": "EURUSD",
"long": "-6.5",
"short": "2.1",
"unit": "points"
},
{
"symbol": "XAUUSD",
"long": "-2.5",
"short": "1",
"unit": "percent_per_year"
},
{
"symbol": "USDTRY",
"long": "-310",
"short": "95",
"unit": "points"
}
]
}),
})
const data = await res.json()curl -X POST 'https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/preview' \
-H "Authorization: Bearer $TRDRS_VENUE_KEY" \
-H 'Idempotency-Key: example-request-1' \
-H 'content-type: application/json' \
-d '{"basedOn":"2026-11-02","rows":[{"symbol":"EURUSD","long":"-6.5","short":"2.1","unit":"points"},{"symbol":"XAUUSD","long":"-2.5","short":"1","unit":"percent_per_year"},{"symbol":"USDTRY","long":"-310","short":"95","unit":"points"}]}'import requests
url = "https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/preview"
payload = {
"basedOn": "2026-11-02",
"rows": [
{
"symbol": "EURUSD",
"long": "-6.5",
"short": "2.1",
"unit": "points"
},
{
"symbol": "XAUUSD",
"long": "-2.5",
"short": "1",
"unit": "percent_per_year"
},
{
"symbol": "USDTRY",
"long": "-310",
"short": "95",
"unit": "points"
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"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}/risk-policies/{policyId}/financing/preview",
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([
'basedOn' => '2026-11-02',
'rows' => [
[
'symbol' => 'EURUSD',
'long' => '-6.5',
'short' => '2.1',
'unit' => 'points'
],
[
'symbol' => 'XAUUSD',
'long' => '-2.5',
'short' => '1',
'unit' => 'percent_per_year'
],
[
'symbol' => 'USDTRY',
'long' => '-310',
'short' => '95',
'unit' => 'points'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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}/risk-policies/{policyId}/financing/preview"
payload := strings.NewReader("{\n \"basedOn\": \"2026-11-02\",\n \"rows\": [\n {\n \"symbol\": \"EURUSD\",\n \"long\": \"-6.5\",\n \"short\": \"2.1\",\n \"unit\": \"points\"\n },\n {\n \"symbol\": \"XAUUSD\",\n \"long\": \"-2.5\",\n \"short\": \"1\",\n \"unit\": \"percent_per_year\"\n },\n {\n \"symbol\": \"USDTRY\",\n \"long\": \"-310\",\n \"short\": \"95\",\n \"unit\": \"points\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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}/risk-policies/{policyId}/financing/preview")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"basedOn\": \"2026-11-02\",\n \"rows\": [\n {\n \"symbol\": \"EURUSD\",\n \"long\": \"-6.5\",\n \"short\": \"2.1\",\n \"unit\": \"points\"\n },\n {\n \"symbol\": \"XAUUSD\",\n \"long\": \"-2.5\",\n \"short\": \"1\",\n \"unit\": \"percent_per_year\"\n },\n {\n \"symbol\": \"USDTRY\",\n \"long\": \"-310\",\n \"short\": \"95\",\n \"unit\": \"points\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"basedOn\": \"2026-11-02\",\n \"rows\": [\n {\n \"symbol\": \"EURUSD\",\n \"long\": \"-6.5\",\n \"short\": \"2.1\",\n \"unit\": \"points\"\n },\n {\n \"symbol\": \"XAUUSD\",\n \"long\": \"-2.5\",\n \"short\": \"1\",\n \"unit\": \"percent_per_year\"\n },\n {\n \"symbol\": \"USDTRY\",\n \"long\": \"-310\",\n \"short\": \"95\",\n \"unit\": \"points\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"preview": {
"policyId": "meridian-fx",
"basedOn": {
"version": "2026-11-02",
"sequence": 3
},
"currency": "USD",
"unnamed": [
"GBPUSD"
],
"summary": {
"accepted": 2,
"confirmationRequired": 0,
"refused": 1
},
"applicable": true,
"rows": [
{
"symbol": "EURUSD",
"contract": "EURUSD",
"unit": "points",
"uploaded": {
"long": "-6.5",
"short": "2.1",
"dayCountBasis": null,
"currency": null
},
"facts": {
"contractSize": "100000",
"tick": "0.00001",
"digits": 5,
"pointSize": "0.00001",
"asset": "USD"
},
"price": {
"bid": "1.085",
"ask": "1.0851",
"at": "2026-11-03T14:00:00.000Z"
},
"converted": {
"longRate": "-0.021564832734",
"shortRate": "0.006967741935",
"dayCountBasis": 360
},
"perLotPerNight": {
"long": "-6.5",
"short": "2.1",
"asset": "USD"
},
"current": {
"longRate": "-0.02",
"shortRate": "0.005",
"dayCountBasis": 360,
"perLotPerNight": {
"long": "-6.02833333",
"short": "1.50694444"
}
},
"change": {
"long": "1.078242",
"short": "1.393548"
},
"verdict": "accepted",
"reasons": []
},
{
"symbol": "XAUUSD",
"contract": "XAUUSD",
"unit": "percent_per_year",
"uploaded": {
"long": "-2.5",
"short": "1",
"dayCountBasis": null,
"currency": null
},
"facts": {
"contractSize": "100",
"tick": "0.01",
"digits": 2,
"pointSize": "0.01",
"asset": "USD"
},
"price": {
"bid": "2650.35",
"ask": "2650.55",
"at": "2026-11-03T14:00:00.000Z"
},
"converted": {
"longRate": "-0.025",
"shortRate": "0.01",
"dayCountBasis": 360
},
"perLotPerNight": {
"long": "-18.40659722",
"short": "7.36208333",
"asset": "USD"
},
"current": {
"longRate": "-0.024",
"shortRate": "0.01",
"dayCountBasis": 360,
"perLotPerNight": {
"long": "-17.67033333",
"short": "7.36208333"
}
},
"change": {
"long": "1.041667",
"short": "1"
},
"verdict": "accepted",
"reasons": []
},
{
"symbol": "USDTRY",
"contract": null,
"unit": "points",
"uploaded": {
"long": "-310",
"short": "95",
"dayCountBasis": null,
"currency": null
},
"facts": null,
"price": null,
"converted": null,
"perLotPerNight": null,
"current": null,
"change": null,
"verdict": "refused",
"reasons": [
{
"code": "unknown_symbol",
"side": null
}
]
}
]
}
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}{
"error": "invalid_instrument"
}Preview a financing sheet
Reads a swap file against the policy’s version in force, as its apply would, and writes nothing. Send the rows as your liquidity provider states them: per symbol, what a long and a short pay or earn each night and the unit. The response has, per row, the annual rate it reads as, the money one lot pays a night at that rate and today’s, the change, and a verdict. Each row is read on the venue’s own contract for the symbol (its digits, tick and contract size) and its quote now, never on the uploader’s idea of them. A rate beyond 100% a year either way is refused, as is a symbol the policy doesn’t finance, a contract that doesn’t resolve, a market with no quote, and money in another asset than the contract’s profit. A row whose daily rate moves to more than 3 times today’s or below a third of it, or flips sign, is held for confirmation: a percent typed where a fraction belongs, or points read on another digit count, moves a rate a hundredfold. 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}/risk-policies/{policyId}/financing/preview', {
method: 'POST',
headers: {
'content-type': 'application/json',
Authorization: `Bearer ${process.env.TRDRS_VENUE_KEY}`,
"Idempotency-Key": "example-request-1",
},
body: JSON.stringify({
"basedOn": "2026-11-02",
"rows": [
{
"symbol": "EURUSD",
"long": "-6.5",
"short": "2.1",
"unit": "points"
},
{
"symbol": "XAUUSD",
"long": "-2.5",
"short": "1",
"unit": "percent_per_year"
},
{
"symbol": "USDTRY",
"long": "-310",
"short": "95",
"unit": "points"
}
]
}),
})
const data = await res.json()curl -X POST 'https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/preview' \
-H "Authorization: Bearer $TRDRS_VENUE_KEY" \
-H 'Idempotency-Key: example-request-1' \
-H 'content-type: application/json' \
-d '{"basedOn":"2026-11-02","rows":[{"symbol":"EURUSD","long":"-6.5","short":"2.1","unit":"points"},{"symbol":"XAUUSD","long":"-2.5","short":"1","unit":"percent_per_year"},{"symbol":"USDTRY","long":"-310","short":"95","unit":"points"}]}'import requests
url = "https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/preview"
payload = {
"basedOn": "2026-11-02",
"rows": [
{
"symbol": "EURUSD",
"long": "-6.5",
"short": "2.1",
"unit": "points"
},
{
"symbol": "XAUUSD",
"long": "-2.5",
"short": "1",
"unit": "percent_per_year"
},
{
"symbol": "USDTRY",
"long": "-310",
"short": "95",
"unit": "points"
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"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}/risk-policies/{policyId}/financing/preview",
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([
'basedOn' => '2026-11-02',
'rows' => [
[
'symbol' => 'EURUSD',
'long' => '-6.5',
'short' => '2.1',
'unit' => 'points'
],
[
'symbol' => 'XAUUSD',
'long' => '-2.5',
'short' => '1',
'unit' => 'percent_per_year'
],
[
'symbol' => 'USDTRY',
'long' => '-310',
'short' => '95',
'unit' => 'points'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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}/risk-policies/{policyId}/financing/preview"
payload := strings.NewReader("{\n \"basedOn\": \"2026-11-02\",\n \"rows\": [\n {\n \"symbol\": \"EURUSD\",\n \"long\": \"-6.5\",\n \"short\": \"2.1\",\n \"unit\": \"points\"\n },\n {\n \"symbol\": \"XAUUSD\",\n \"long\": \"-2.5\",\n \"short\": \"1\",\n \"unit\": \"percent_per_year\"\n },\n {\n \"symbol\": \"USDTRY\",\n \"long\": \"-310\",\n \"short\": \"95\",\n \"unit\": \"points\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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}/risk-policies/{policyId}/financing/preview")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"basedOn\": \"2026-11-02\",\n \"rows\": [\n {\n \"symbol\": \"EURUSD\",\n \"long\": \"-6.5\",\n \"short\": \"2.1\",\n \"unit\": \"points\"\n },\n {\n \"symbol\": \"XAUUSD\",\n \"long\": \"-2.5\",\n \"short\": \"1\",\n \"unit\": \"percent_per_year\"\n },\n {\n \"symbol\": \"USDTRY\",\n \"long\": \"-310\",\n \"short\": \"95\",\n \"unit\": \"points\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"basedOn\": \"2026-11-02\",\n \"rows\": [\n {\n \"symbol\": \"EURUSD\",\n \"long\": \"-6.5\",\n \"short\": \"2.1\",\n \"unit\": \"points\"\n },\n {\n \"symbol\": \"XAUUSD\",\n \"long\": \"-2.5\",\n \"short\": \"1\",\n \"unit\": \"percent_per_year\"\n },\n {\n \"symbol\": \"USDTRY\",\n \"long\": \"-310\",\n \"short\": \"95\",\n \"unit\": \"points\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"preview": {
"policyId": "meridian-fx",
"basedOn": {
"version": "2026-11-02",
"sequence": 3
},
"currency": "USD",
"unnamed": [
"GBPUSD"
],
"summary": {
"accepted": 2,
"confirmationRequired": 0,
"refused": 1
},
"applicable": true,
"rows": [
{
"symbol": "EURUSD",
"contract": "EURUSD",
"unit": "points",
"uploaded": {
"long": "-6.5",
"short": "2.1",
"dayCountBasis": null,
"currency": null
},
"facts": {
"contractSize": "100000",
"tick": "0.00001",
"digits": 5,
"pointSize": "0.00001",
"asset": "USD"
},
"price": {
"bid": "1.085",
"ask": "1.0851",
"at": "2026-11-03T14:00:00.000Z"
},
"converted": {
"longRate": "-0.021564832734",
"shortRate": "0.006967741935",
"dayCountBasis": 360
},
"perLotPerNight": {
"long": "-6.5",
"short": "2.1",
"asset": "USD"
},
"current": {
"longRate": "-0.02",
"shortRate": "0.005",
"dayCountBasis": 360,
"perLotPerNight": {
"long": "-6.02833333",
"short": "1.50694444"
}
},
"change": {
"long": "1.078242",
"short": "1.393548"
},
"verdict": "accepted",
"reasons": []
},
{
"symbol": "XAUUSD",
"contract": "XAUUSD",
"unit": "percent_per_year",
"uploaded": {
"long": "-2.5",
"short": "1",
"dayCountBasis": null,
"currency": null
},
"facts": {
"contractSize": "100",
"tick": "0.01",
"digits": 2,
"pointSize": "0.01",
"asset": "USD"
},
"price": {
"bid": "2650.35",
"ask": "2650.55",
"at": "2026-11-03T14:00:00.000Z"
},
"converted": {
"longRate": "-0.025",
"shortRate": "0.01",
"dayCountBasis": 360
},
"perLotPerNight": {
"long": "-18.40659722",
"short": "7.36208333",
"asset": "USD"
},
"current": {
"longRate": "-0.024",
"shortRate": "0.01",
"dayCountBasis": 360,
"perLotPerNight": {
"long": "-17.67033333",
"short": "7.36208333"
}
},
"change": {
"long": "1.041667",
"short": "1"
},
"verdict": "accepted",
"reasons": []
},
{
"symbol": "USDTRY",
"contract": null,
"unit": "points",
"uploaded": {
"long": "-310",
"short": "95",
"dayCountBasis": null,
"currency": null
},
"facts": null,
"price": null,
"converted": null,
"perLotPerNight": null,
"current": null,
"change": null,
"verdict": "refused",
"reasons": [
{
"code": "unknown_symbol",
"side": null
}
]
}
]
}
}{
"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 and trading routes, reading the venue's own traders' accounts and routing their orders, 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.