

/api/v1/backtests/{id}A single backtest with its trades, in the public format. Owner-scoped: 404 if the backtest does not exist or is not yours.
| Name | In | Type | Req. | Description |
|---|---|---|---|---|
| id | path | string | yes | The backtest id (from the list endpoint). |
curl -H "Authorization: Bearer afx_live_xxx" \
"https://www.analytics-fx.com/api/v1/backtests/value"{
"apiVersion": "v1",
"data": {
"id": "3f2a...", "symbol": "EURUSD", "name": "London breakout", "timeframe": "1h",
"startingBalance": 10000, "leverage": 100, "createdAt": "2026-07-20T09:00:00.000Z",
"stats": { "trades": 42, "netPnl": 1830.5, "winRate": 57.14, "profitFactor": 1.92 },
"trades": [
{ "side": "long", "size": 0.5, "entryPrice": 1.0821, "exitPrice": 1.086,
"stopLoss": 1.08, "takeProfit": 1.09, "pnl": 195,
"openedAt": "2026-06-10T08:00:00.000Z", "closedAt": "2026-06-10T13:20:00.000Z" }
]
},
"meta": { "requestId": "req_bt03", "credits": { "cost": 2, "remaining": 976 } }
}GET /api/v1/backtests/Create a key at /dashboard/api. The key stays in your browser.