Skip to main content
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
}
To use the playground, enter your API key in the X-API-Key field above. Don’t have a key? Get one free →
Tier: Pro ($199/mo) 🔒 Cache TTL: 3600 seconds (1 hour) Max period: 90 days
⚠️ Results are based on historical simulated conditions. Past performance does not guarantee future results.

Request Body

FieldTypeRequiredDescription
start_datestringStart date (YYYY-MM-DD)
end_datestringEnd date (YYYY-MM-DD)
modestringEntry 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
}

Authorizations

X-API-Key
string
header
required

Your AIOKA Intelligence API key (format: aik_{tier}_{random})

Body

application/json
start_date
string
required

Start date (YYYY-MM-DD)

end_date
string
required

End date (YYYY-MM-DD)

mode
string
default:B

Entry mode: A or B

Response

Backtest results

total_trades
integer
required
win_rate
number
required
total_pnl_usd
number
required
max_drawdown_pct
number
required
avg_hold_hours
number
required
period_days
integer
required
mode
string
required
cached
boolean
required
cache_ttl_seconds
integer
required