cURL
curl --request GET \
--url 'https://api.forecast.example/api/v1/backtest' \
--header 'Authorization: Bearer USER_JWT'
const response = await fetch('https://api.forecast.example/api/v1/backtest', {
headers: {
Authorization: 'Bearer USER_JWT'
}
});
const data = await response.json();
import requests
data = requests.get(
"https://api.forecast.example/api/v1/backtest",
headers={"Authorization": "Bearer USER_JWT"},
timeout=30,
).json()
{
"backtests": [
{
"id": "bt_123",
"agentId": "agent_7",
"agentName": "BTC Mean Reversion",
"startDate": "2026-06-01",
"endDate": "2026-06-29",
"status": "completed",
"summary": {
"pnl": 1820.42
},
"createdAt": 1761868800000,
"completedAt": 1761869900000,
"error": null
}
]
}
Product APIs
List backtests
GET
/
api
/
v1
/
backtest
cURL
curl --request GET \
--url 'https://api.forecast.example/api/v1/backtest' \
--header 'Authorization: Bearer USER_JWT'
const response = await fetch('https://api.forecast.example/api/v1/backtest', {
headers: {
Authorization: 'Bearer USER_JWT'
}
});
const data = await response.json();
import requests
data = requests.get(
"https://api.forecast.example/api/v1/backtest",
headers={"Authorization": "Bearer USER_JWT"},
timeout=30,
).json()
{
"backtests": [
{
"id": "bt_123",
"agentId": "agent_7",
"agentName": "BTC Mean Reversion",
"startDate": "2026-06-01",
"endDate": "2026-06-29",
"status": "completed",
"summary": {
"pnl": 1820.42
},
"createdAt": 1761868800000,
"completedAt": 1761869900000,
"error": null
}
]
}
cURL
curl --request GET \
--url 'https://api.forecast.example/api/v1/backtest' \
--header 'Authorization: Bearer USER_JWT'
const response = await fetch('https://api.forecast.example/api/v1/backtest', {
headers: {
Authorization: 'Bearer USER_JWT'
}
});
const data = await response.json();
import requests
data = requests.get(
"https://api.forecast.example/api/v1/backtest",
headers={"Authorization": "Bearer USER_JWT"},
timeout=30,
).json()
{
"backtests": [
{
"id": "bt_123",
"agentId": "agent_7",
"agentName": "BTC Mean Reversion",
"startDate": "2026-06-01",
"endDate": "2026-06-29",
"status": "completed",
"summary": {
"pnl": 1820.42
},
"createdAt": 1761868800000,
"completedAt": 1761869900000,
"error": null
}
]
}
Response fields
object[]
required
Array of backtest objects for the authenticated user.