curl -X POST https://api.aioka.io/v1/backtest \
-H "X-API-Key: aik_pro_your_key_here" \
-H "Content-Type: application/json" \
-d '{"start_date": "2026-01-01", "end_date": "2026-04-01", "mode": "B"}'
{
"total_trades": 8,
"win_rate": 0.625,
"total_pnl_usd": 312.50,
"max_drawdown_pct": 4.2,
"avg_hold_hours": 18.4,
"period_days": 90,
"mode": "B",
"cached": false,
"cache_ttl_seconds": 3600
}
{
"detail": {
"error": "period_too_long",
"message": "Maximum backtest period is 90 days.",
"requested_days": 365
}
}
Pro Tier ($199/mo)
Run Backtest
Historical performance simulation (max 90 days)
POST
/
v1
/
backtest
curl -X POST https://api.aioka.io/v1/backtest \
-H "X-API-Key: aik_pro_your_key_here" \
-H "Content-Type: application/json" \
-d '{"start_date": "2026-01-01", "end_date": "2026-04-01", "mode": "B"}'
{
"total_trades": 8,
"win_rate": 0.625,
"total_pnl_usd": 312.50,
"max_drawdown_pct": 4.2,
"avg_hold_hours": 18.4,
"period_days": 90,
"mode": "B",
"cached": false,
"cache_ttl_seconds": 3600
}
{
"detail": {
"error": "period_too_long",
"message": "Maximum backtest period is 90 days.",
"requested_days": 365
}
}
To use the playground, enter your API key in the X-API-Key field above.
Requires PRO tier key ($199/mo). Contact info@aioka.io to upgrade.
โ ๏ธ Results are based on historical simulated conditions. Past performance does not guarantee future results.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
start_date | string | โ | Start date (YYYY-MM-DD) |
end_date | string | โ | End date (YYYY-MM-DD) |
mode | string | โ | Entry mode: A or B (default: B) |
curl -X POST https://api.aioka.io/v1/backtest \
-H "X-API-Key: aik_pro_your_key_here" \
-H "Content-Type: application/json" \
-d '{"start_date": "2026-01-01", "end_date": "2026-04-01", "mode": "B"}'
{
"total_trades": 8,
"win_rate": 0.625,
"total_pnl_usd": 312.50,
"max_drawdown_pct": 4.2,
"avg_hold_hours": 18.4,
"period_days": 90,
"mode": "B",
"cached": false,
"cache_ttl_seconds": 3600
}
{
"detail": {
"error": "period_too_long",
"message": "Maximum backtest period is 90 days.",
"requested_days": 365
}
}
Authorizations
Your AIOKA Intelligence API key (format: aik_{tier}_{random})
Body
application/json