TypeScript
const res = await fetch('https://app.trdrs.co/api/exit-plans', {
headers: { Authorization: `Bearer ${process.env.TRDRS_API_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/exit-plans' \
-H "Authorization: Bearer $TRDRS_API_KEY"import requests
url = "https://app.trdrs.co/api/exit-plans"
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/exit-plans",
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/exit-plans"
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/exit-plans")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/exit-plans")
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": [
{
"id": "0f6c2d18-7b4a-4a3e-9d21-8c5e4b0a9f37",
"name": "Two rungs and a runner",
"revision": "q2Jm4XxT0aVnR7cLp1sZfE9d",
"applicability": {
"assetClasses": [
"futures"
],
"instruments": [
"ES"
]
},
"definition": {
"unit": "ticks",
"quantity": 2,
"tif": "gtc",
"entryType": "limit",
"legs": [
{
"seq": 1,
"quantity": 1,
"stopDistance": 12,
"targetDistance": 20,
"breakeven": null,
"trail": []
},
{
"seq": 2,
"quantity": 1,
"stopDistance": 12,
"targetDistance": null,
"breakeven": {
"triggerDistance": 8,
"plusDistance": 0
},
"trail": [
{
"stepSeq": 1,
"triggerDistance": 16,
"trailDistance": 8,
"frequencyTicks": 2
}
]
}
]
},
"requires": [
"stop_loss",
"take_profit",
"runner_leg",
"breakeven",
"trailing_stop"
],
"updatedAt": 1787581400000
}
]
}{
"error": "invalid_instrument"
}Account
List exit plans
Returns the saved exit plans this principal holds. A plan belongs to the person who authored it and to no account: the same ladder is applied to whichever account is selected. Each plan carries an opaque revision — echo it back on a save or a delete — and the capabilities it requires, so a host can tell which plans a selected account can run.
GET
/
api
/
exit-plans
TypeScript
const res = await fetch('https://app.trdrs.co/api/exit-plans', {
headers: { Authorization: `Bearer ${process.env.TRDRS_API_KEY}` },
})
const data = await res.json()curl 'https://app.trdrs.co/api/exit-plans' \
-H "Authorization: Bearer $TRDRS_API_KEY"import requests
url = "https://app.trdrs.co/api/exit-plans"
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/exit-plans",
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/exit-plans"
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/exit-plans")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trdrs.co/api/exit-plans")
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": [
{
"id": "0f6c2d18-7b4a-4a3e-9d21-8c5e4b0a9f37",
"name": "Two rungs and a runner",
"revision": "q2Jm4XxT0aVnR7cLp1sZfE9d",
"applicability": {
"assetClasses": [
"futures"
],
"instruments": [
"ES"
]
},
"definition": {
"unit": "ticks",
"quantity": 2,
"tif": "gtc",
"entryType": "limit",
"legs": [
{
"seq": 1,
"quantity": 1,
"stopDistance": 12,
"targetDistance": 20,
"breakeven": null,
"trail": []
},
{
"seq": 2,
"quantity": 1,
"stopDistance": 12,
"targetDistance": null,
"breakeven": {
"triggerDistance": 8,
"plusDistance": 0
},
"trail": [
{
"stepSeq": 1,
"triggerDistance": 16,
"trailDistance": 8,
"frequencyTicks": 2
}
]
}
]
},
"requires": [
"stop_loss",
"take_profit",
"runner_leg",
"breakeven",
"trailing_stop"
],
"updatedAt": 1787581400000
}
]
}{
"error": "invalid_instrument"
}