const res = await fetch('https://app.trdrs.co/api/instruments', {
headers: { Authorization: `Bearer ${process.env.TRDRS_API_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/instruments' \
-H "Authorization: Bearer $TRDRS_API_KEY"import requests
url = "https://app.trdrs.co/api/instruments"
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/instruments",
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/instruments"
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/instruments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/instruments")
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{
"instruments": [
{
"root": "ES",
"name": "E-mini S&P 500",
"exchange": "CME",
"tickSize": 0.25,
"tickValue": 12.5,
"multiplier": 50,
"cycle": "quarterly"
},
{
"root": "CL",
"name": "Crude Oil",
"exchange": "NYMEX",
"tickSize": 0.01,
"tickValue": 10,
"multiplier": 1000,
"cycle": null,
"months": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
]
},
{
"root": "ZN",
"name": "10-Year T-Note",
"exchange": "CBOT",
"tickSize": 0.015625,
"tickValue": 15.625,
"multiplier": 1000,
"cycle": "quarterly",
"fractionalPrice": true,
"priceFraction": {
"denominator": 64,
"subFraction": 2
}
}
]
}{
"error": "invalid_instrument"
}Get the futures catalog
Returns static reference data, one row per futures product root: the listing exchange, tick size and tick value, the dollar multiplier, the roll cycle, and — for products whose roll the engine does not approximate — the calendar months that list contracts, so an order ticket can offer the month picker such an order needs. Fetch once and keep it. A root the exchange quotes in thirty-seconds carries priceFraction as well, the denominator and sub-fraction its prices are written and traded in, so a ticket reads that fact rather than deriving one from the tick. These are the facts the trdrs ticket itself sizes, snaps and prices with. Crypto instruments are not here: their grid comes from each venue and is resolved client-side. No per-user state, no secrets.
const res = await fetch('https://app.trdrs.co/api/instruments', {
headers: { Authorization: `Bearer ${process.env.TRDRS_API_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/instruments' \
-H "Authorization: Bearer $TRDRS_API_KEY"import requests
url = "https://app.trdrs.co/api/instruments"
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/instruments",
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/instruments"
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/instruments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/instruments")
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{
"instruments": [
{
"root": "ES",
"name": "E-mini S&P 500",
"exchange": "CME",
"tickSize": 0.25,
"tickValue": 12.5,
"multiplier": 50,
"cycle": "quarterly"
},
{
"root": "CL",
"name": "Crude Oil",
"exchange": "NYMEX",
"tickSize": 0.01,
"tickValue": 10,
"multiplier": 1000,
"cycle": null,
"months": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
]
},
{
"root": "ZN",
"name": "10-Year T-Note",
"exchange": "CBOT",
"tickSize": 0.015625,
"tickValue": 15.625,
"multiplier": 1000,
"cycle": "quarterly",
"fractionalPrice": true,
"priceFraction": {
"denominator": 64,
"subFraction": 2
}
}
]
}{
"error": "invalid_instrument"
}Authorizations
Your firm’s API key (the API calls this the tenant key; trdrs_sk_…), server-to-server only.
Response
The contract catalog (InstrumentsResponse)
InstrumentsResponse. The futures contract catalog this engine trades, one row per product root.
Show child attributes
Show child attributes