

/api/v1/backtestsYour own backtests, in a clean public format (summary, no trades). Owner-scoped: only the key owner's backtests are ever returned. Pass ?id=<backtest id> to fetch a single backtest with its trades instead. Internal engine fields are never exposed.
| Name | In | Type | Req. | Description |
|---|---|---|---|---|
| id | query | string | no | Fetch a single backtest (with its trades) by id instead of listing. |
| limit | query | integer | no | Max backtests to list, newest first (default 50, max 200). |
curl -H "Authorization: Bearer afx_live_xxx" \
"https://www.analytics-fx.com/api/v1/backtests"{
"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 } }
],
"meta": { "requestId": "req_bt01", "credits": { "cost": 2, "remaining": 980 } }
}GET /api/v1/backtests?limit=50Create a key at /dashboard/api. The key stays in your browser.