const res = await fetch('https://app.trdrs.co/api/venues/{venueId}/catalog', {
headers: { Authorization: `Bearer ${process.env.TRDRS_VENUE_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/venues/{venueId}/catalog' \
-H "Authorization: Bearer $TRDRS_VENUE_KEY"import requests
url = "https://app.trdrs.co/api/venues/{venueId}/catalog"
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/venues/{venueId}/catalog",
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/venues/{venueId}/catalog"
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/venues/{venueId}/catalog")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/venues/{venueId}/catalog")
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{
"items": [
{
"groupId": "builder",
"name": "Account builder",
"kind": "evaluation",
"offer": {
"custom": {
"minSize": "1000",
"maxSize": "100000",
"sizeStep": "1000",
"minFee": "100",
"maxFee": "5000",
"feeStep": "50"
}
},
"sales": "open",
"stages": [
{
"stageId": "builder",
"profitTarget": "0",
"maxLoss": {
"amount": "0.9",
"basis": "hedgeBudget",
"kind": "static"
},
"dailyLoss": null,
"minimumTradingDays": 0,
"maximumDays": null,
"payoutShare": "0.95"
}
],
"riskPolicyId": "spawn-crypto",
"leverage": [
{
"class": "crypto_derivative",
"market": null,
"leverage": "20"
}
],
"markets": [
{
"instrumentId": "btc-perp",
"symbol": "BTC",
"name": "Bitcoin",
"productModel": "linear_perpetual"
}
],
"price": null,
"startingBalance": null,
"minimumDeposit": null,
"terms": {
"stageId": "builder",
"profitTarget": "0",
"maxLoss": {
"amount": "0.9",
"basis": "hedgeBudget",
"kind": "static"
},
"dailyLoss": null,
"minimumTradingDays": 0,
"maximumDays": null,
"payoutShare": "0.95"
},
"custom": {
"minSize": "1000",
"maxSize": "100000",
"sizeStep": "1000",
"minFee": "100",
"maxFee": "5000",
"feeStep": "50"
}
},
{
"groupId": "challenge-50k",
"name": "Challenge 50K",
"kind": "evaluation",
"offer": {
"startingBalance": "50000",
"price": "299"
},
"sales": "open",
"stages": [
{
"stageId": "challenge",
"profitTarget": "4000",
"maxLoss": {
"amount": "0.06",
"basis": "initialBalance",
"kind": "trailing"
},
"dailyLoss": {
"amount": "1500",
"basis": "amount"
},
"minimumTradingDays": 3,
"maximumDays": null,
"payoutShare": null
},
{
"stageId": "funded",
"profitTarget": "0",
"maxLoss": {
"amount": "0.06",
"basis": "initialBalance",
"kind": "trailing"
},
"dailyLoss": {
"amount": "1500",
"basis": "amount"
},
"minimumTradingDays": 0,
"maximumDays": null,
"payoutShare": "0.9"
}
],
"riskPolicyId": "spawn-crypto",
"leverage": [
{
"class": "crypto_derivative",
"market": null,
"leverage": "20"
}
],
"markets": [
{
"instrumentId": "btc-perp",
"symbol": "BTC",
"name": "Bitcoin",
"productModel": "linear_perpetual"
},
{
"instrumentId": "eth-perp",
"symbol": "ETH",
"name": "Ether",
"productModel": "linear_perpetual"
}
],
"price": "299",
"startingBalance": "50000",
"minimumDeposit": null,
"terms": {
"stageId": "challenge",
"profitTarget": "4000",
"maxLoss": {
"amount": "0.06",
"basis": "initialBalance",
"kind": "trailing"
},
"dailyLoss": {
"amount": "1500",
"basis": "amount"
},
"minimumTradingDays": 3,
"maximumDays": null,
"payoutShare": null
},
"custom": null
},
{
"groupId": "pro-desk",
"name": "Pro desk",
"kind": "brokerage",
"minimumDeposit": "500",
"riskPolicyId": "spawn-crypto",
"leverage": [
{
"class": "crypto_derivative",
"market": null,
"leverage": "20"
}
],
"markets": [
{
"instrumentId": "btc-perp",
"symbol": "BTC",
"name": "Bitcoin",
"productModel": "linear_perpetual"
},
{
"instrumentId": "eth-perp",
"symbol": "ETH",
"name": "Ether",
"productModel": "linear_perpetual"
}
],
"price": null,
"startingBalance": null,
"sales": "closed",
"terms": null,
"custom": 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"
}Read the catalog
Lists each program of the venue, one item per group an account first opens in, ordered by group id, as the venue’s site shows it, shaped by its kind: an evaluation with its offer, whether it is on sale and the rules of every stage it runs through, and a brokerage with its minimum deposit, each with the most leverage its risk policy allows and the markets its accounts trade. A later step or a funded group is never an item. It shows nothing of another venue and no secret. 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}/catalog', {
headers: { Authorization: `Bearer ${process.env.TRDRS_VENUE_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/venues/{venueId}/catalog' \
-H "Authorization: Bearer $TRDRS_VENUE_KEY"import requests
url = "https://app.trdrs.co/api/venues/{venueId}/catalog"
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/venues/{venueId}/catalog",
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/venues/{venueId}/catalog"
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/venues/{venueId}/catalog")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/venues/{venueId}/catalog")
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{
"items": [
{
"groupId": "builder",
"name": "Account builder",
"kind": "evaluation",
"offer": {
"custom": {
"minSize": "1000",
"maxSize": "100000",
"sizeStep": "1000",
"minFee": "100",
"maxFee": "5000",
"feeStep": "50"
}
},
"sales": "open",
"stages": [
{
"stageId": "builder",
"profitTarget": "0",
"maxLoss": {
"amount": "0.9",
"basis": "hedgeBudget",
"kind": "static"
},
"dailyLoss": null,
"minimumTradingDays": 0,
"maximumDays": null,
"payoutShare": "0.95"
}
],
"riskPolicyId": "spawn-crypto",
"leverage": [
{
"class": "crypto_derivative",
"market": null,
"leverage": "20"
}
],
"markets": [
{
"instrumentId": "btc-perp",
"symbol": "BTC",
"name": "Bitcoin",
"productModel": "linear_perpetual"
}
],
"price": null,
"startingBalance": null,
"minimumDeposit": null,
"terms": {
"stageId": "builder",
"profitTarget": "0",
"maxLoss": {
"amount": "0.9",
"basis": "hedgeBudget",
"kind": "static"
},
"dailyLoss": null,
"minimumTradingDays": 0,
"maximumDays": null,
"payoutShare": "0.95"
},
"custom": {
"minSize": "1000",
"maxSize": "100000",
"sizeStep": "1000",
"minFee": "100",
"maxFee": "5000",
"feeStep": "50"
}
},
{
"groupId": "challenge-50k",
"name": "Challenge 50K",
"kind": "evaluation",
"offer": {
"startingBalance": "50000",
"price": "299"
},
"sales": "open",
"stages": [
{
"stageId": "challenge",
"profitTarget": "4000",
"maxLoss": {
"amount": "0.06",
"basis": "initialBalance",
"kind": "trailing"
},
"dailyLoss": {
"amount": "1500",
"basis": "amount"
},
"minimumTradingDays": 3,
"maximumDays": null,
"payoutShare": null
},
{
"stageId": "funded",
"profitTarget": "0",
"maxLoss": {
"amount": "0.06",
"basis": "initialBalance",
"kind": "trailing"
},
"dailyLoss": {
"amount": "1500",
"basis": "amount"
},
"minimumTradingDays": 0,
"maximumDays": null,
"payoutShare": "0.9"
}
],
"riskPolicyId": "spawn-crypto",
"leverage": [
{
"class": "crypto_derivative",
"market": null,
"leverage": "20"
}
],
"markets": [
{
"instrumentId": "btc-perp",
"symbol": "BTC",
"name": "Bitcoin",
"productModel": "linear_perpetual"
},
{
"instrumentId": "eth-perp",
"symbol": "ETH",
"name": "Ether",
"productModel": "linear_perpetual"
}
],
"price": "299",
"startingBalance": "50000",
"minimumDeposit": null,
"terms": {
"stageId": "challenge",
"profitTarget": "4000",
"maxLoss": {
"amount": "0.06",
"basis": "initialBalance",
"kind": "trailing"
},
"dailyLoss": {
"amount": "1500",
"basis": "amount"
},
"minimumTradingDays": 3,
"maximumDays": null,
"payoutShare": null
},
"custom": null
},
{
"groupId": "pro-desk",
"name": "Pro desk",
"kind": "brokerage",
"minimumDeposit": "500",
"riskPolicyId": "spawn-crypto",
"leverage": [
{
"class": "crypto_derivative",
"market": null,
"leverage": "20"
}
],
"markets": [
{
"instrumentId": "btc-perp",
"symbol": "BTC",
"name": "Bitcoin",
"productModel": "linear_perpetual"
},
{
"instrumentId": "eth-perp",
"symbol": "ETH",
"name": "Ether",
"productModel": "linear_perpetual"
}
],
"price": null,
"startingBalance": null,
"sales": "closed",
"terms": null,
"custom": 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, 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.