const res = await fetch('https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/apply', {
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",
"version": "2026-11-03",
"label": "Bolsador swap file 2026-11-03",
"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"
}
],
"confirm": []
}),
})
const data = await res.json()curl -X POST 'https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/apply' \
-H "Authorization: Bearer $TRDRS_VENUE_KEY" \
-H 'Idempotency-Key: example-request-1' \
-H 'content-type: application/json' \
-d '{"basedOn":"2026-11-02","version":"2026-11-03","label":"Bolsador swap file 2026-11-03","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"}],"confirm":[]}'import requests
url = "https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/apply"
payload = {
"basedOn": "2026-11-02",
"version": "2026-11-03",
"label": "Bolsador swap file 2026-11-03",
"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"
}
],
"confirm": []
}
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/apply",
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',
'version' => '2026-11-03',
'label' => 'Bolsador swap file 2026-11-03',
'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'
]
],
'confirm' => [
]
]),
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/apply"
payload := strings.NewReader("{\n \"basedOn\": \"2026-11-02\",\n \"version\": \"2026-11-03\",\n \"label\": \"Bolsador swap file 2026-11-03\",\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 \"confirm\": []\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/apply")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"basedOn\": \"2026-11-02\",\n \"version\": \"2026-11-03\",\n \"label\": \"Bolsador swap file 2026-11-03\",\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 \"confirm\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/apply")
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 \"version\": \"2026-11-03\",\n \"label\": \"Bolsador swap file 2026-11-03\",\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 \"confirm\": []\n}"
response = http.request(request)
puts response.read_body{
"publication": {
"policyId": "meridian-fx",
"version": "2026-11-03",
"sequence": 4,
"publishedAt": "2026-09-14T12:00:00.000Z",
"pools": 12
},
"version": {
"policyId": "meridian-fx",
"version": "2026-11-03",
"contentDigest": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"created": true
},
"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"
}Apply a financing sheet
Reads the sheet again, as the preview does, and publishes a new version of the policy with the financing row of each contract the sheet names replaced, each figure’s source naming your label, who uploaded it and when. Every other term and row stays as it is, and the version is published as any other, so every account held to the policy takes it. It is refused whole while a row naming a contract the policy finances is refused, or a held row isn’t named in confirm. A symbol the policy doesn’t finance is left out, and the preview in the response names it. 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:configure. 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/apply', {
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",
"version": "2026-11-03",
"label": "Bolsador swap file 2026-11-03",
"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"
}
],
"confirm": []
}),
})
const data = await res.json()curl -X POST 'https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/apply' \
-H "Authorization: Bearer $TRDRS_VENUE_KEY" \
-H 'Idempotency-Key: example-request-1' \
-H 'content-type: application/json' \
-d '{"basedOn":"2026-11-02","version":"2026-11-03","label":"Bolsador swap file 2026-11-03","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"}],"confirm":[]}'import requests
url = "https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/apply"
payload = {
"basedOn": "2026-11-02",
"version": "2026-11-03",
"label": "Bolsador swap file 2026-11-03",
"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"
}
],
"confirm": []
}
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/apply",
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',
'version' => '2026-11-03',
'label' => 'Bolsador swap file 2026-11-03',
'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'
]
],
'confirm' => [
]
]),
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/apply"
payload := strings.NewReader("{\n \"basedOn\": \"2026-11-02\",\n \"version\": \"2026-11-03\",\n \"label\": \"Bolsador swap file 2026-11-03\",\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 \"confirm\": []\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/apply")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"basedOn\": \"2026-11-02\",\n \"version\": \"2026-11-03\",\n \"label\": \"Bolsador swap file 2026-11-03\",\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 \"confirm\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/venues/{venueId}/risk-policies/{policyId}/financing/apply")
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 \"version\": \"2026-11-03\",\n \"label\": \"Bolsador swap file 2026-11-03\",\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 \"confirm\": []\n}"
response = http.request(request)
puts response.read_body{
"publication": {
"policyId": "meridian-fx",
"version": "2026-11-03",
"sequence": 4,
"publishedAt": "2026-09-14T12:00:00.000Z",
"pools": 12
},
"version": {
"policyId": "meridian-fx",
"version": "2026-11-03",
"contentDigest": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"created": true
},
"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.