Get Trade Detail
curl --request GET \
--url https://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}import requests
url = "https://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"run_id": "<string>",
"trade_index": 123,
"symbol": "<string>",
"direction": "<string>",
"signal_type": "<string>",
"quality_tier": "<string>",
"entry_timestamp": "<string>",
"entry_price": 123,
"exit_timestamp": "<string>",
"exit_price": 123,
"exit_reason": "<string>",
"holding_period_minutes": 123,
"pnl_pct": 123,
"pnl_r_multiple": 123,
"pnl_dollars": 123,
"sizing_multiplier": 123,
"conviction_at_entry": 123,
"regime_dominant": "<string>",
"slippage_model": "<string>",
"entry_slippage_bps": 123,
"exit_slippage_bps": 123,
"total_slippage_bps": 123,
"entry_atr": 123,
"stop_atr_multiplier": 123,
"target_atr_multiplier": 123,
"score_set_id": "<string>",
"stop_price": 123,
"target_price": 123,
"signal_details": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}backtest-v2
Get Trade Detail
Get detailed information about a single trade from a backtest run.
Returns all fields from the trade record plus computed stop/target levels based on ATR at entry and the run’s exit strategy parameters. These levels are useful for chart overlay visualization.
The trade_index is 0-based, ordered by entry_timestamp.
GET
/
api
/
graph
/
v1
/
backtest
/
v2
/
run
/
{run_id}
/
trades
/
{trade_index}
Get Trade Detail
curl --request GET \
--url https://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}import requests
url = "https://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"run_id": "<string>",
"trade_index": 123,
"symbol": "<string>",
"direction": "<string>",
"signal_type": "<string>",
"quality_tier": "<string>",
"entry_timestamp": "<string>",
"entry_price": 123,
"exit_timestamp": "<string>",
"exit_price": 123,
"exit_reason": "<string>",
"holding_period_minutes": 123,
"pnl_pct": 123,
"pnl_r_multiple": 123,
"pnl_dollars": 123,
"sizing_multiplier": 123,
"conviction_at_entry": 123,
"regime_dominant": "<string>",
"slippage_model": "<string>",
"entry_slippage_bps": 123,
"exit_slippage_bps": 123,
"total_slippage_bps": 123,
"entry_atr": 123,
"stop_atr_multiplier": 123,
"target_atr_multiplier": 123,
"score_set_id": "<string>",
"stop_price": 123,
"target_price": 123,
"signal_details": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Response
Successful Response
Enriched single-trade response with stop/target levels for chart visualization.