curl https://api.aioka.io/v1/regime/stats \
-H "X-API-Key: aik_free_yourkeyhere"
{
"regimes": [
{
"regime": "BULL_TRENDING",
"trades": 5,
"wins": 4,
"losses": 1,
"win_rate": 80.0,
"avg_pnl_pct": 2.14,
"avg_hold_hours": 18.3,
"total_pnl_usd": 1240.50
},
{
"regime": "ACCUMULATION",
"trades": 3,
"wins": 2,
"losses": 1,
"win_rate": 66.7,
"avg_pnl_pct": 1.08,
"avg_hold_hours": 12.5,
"total_pnl_usd": 485.20
}
],
"best_regime": "BULL_TRENDING",
"worst_regime": "HIGH_VOLATILITY",
"total_trades": 8,
"overall_win_rate": 62.5,
"since": "2026-04-12",
"generated_at": "24 Apr 2026, 10:00 CEST",
"cached": false,
"cache_ttl_seconds": 300
}
Free Tier
Regime Performance Stats
Historical Ghost Trader win rate and P&L aggregated by market regime
GET
/
v1
/
regime
/
stats
curl https://api.aioka.io/v1/regime/stats \
-H "X-API-Key: aik_free_yourkeyhere"
{
"regimes": [
{
"regime": "BULL_TRENDING",
"trades": 5,
"wins": 4,
"losses": 1,
"win_rate": 80.0,
"avg_pnl_pct": 2.14,
"avg_hold_hours": 18.3,
"total_pnl_usd": 1240.50
},
{
"regime": "ACCUMULATION",
"trades": 3,
"wins": 2,
"losses": 1,
"win_rate": 66.7,
"avg_pnl_pct": 1.08,
"avg_hold_hours": 12.5,
"total_pnl_usd": 485.20
}
],
"best_regime": "BULL_TRENDING",
"worst_regime": "HIGH_VOLATILITY",
"total_trades": 8,
"overall_win_rate": 62.5,
"since": "2026-04-12",
"generated_at": "24 Apr 2026, 10:00 CEST",
"cached": false,
"cache_ttl_seconds": 300
}
To use the playground, enter your API key in the X-API-Key field above.
Don’t have a key? Get one free →
is_valid=TRUE validated trades since the 2026-04-12 clean-slate cutoff are
counted. Regimes are sorted by win rate descending so the best-performing
regime always appears first.
Use this endpoint to understand which market conditions AIOKA’s Ghost Trader
performs best in — and which regimes to watch out for.
Response Fields
| Field | Type | Description |
|---|---|---|
regimes | array | Per-regime stats sorted by win_rate DESC |
best_regime | string | null | Regime with the highest win rate (null when no trades) |
worst_regime | string | null | Regime with the lowest win rate (null when no trades) |
total_trades | int | Total validated closed trades across all regimes |
overall_win_rate | float | Win rate across all regimes (0–100) |
since | string | Clean-slate cutoff date (ISO 8601) |
generated_at | string | Human-readable Prague CEST/CET timestamp |
cached | bool | Whether the response was served from cache |
cache_ttl_seconds | int | Remaining cache TTL in seconds |
RegimeStatsItem fields
| Field | Type | Description |
|---|---|---|
regime | string | HMM regime name (e.g. BULL_TRENDING, HIGH_VOLATILITY) |
trades | int | Total trades recorded in this regime |
wins | int | Winning trades (total P&L > 0) |
losses | int | Losing trades (total P&L ≤ 0) |
win_rate | float | Win rate 0–100 |
avg_pnl_pct | float | Average P&L % per trade |
avg_hold_hours | float | Average hold time in hours |
total_pnl_usd | float | Cumulative USD P&L for this regime |
curl https://api.aioka.io/v1/regime/stats \
-H "X-API-Key: aik_free_yourkeyhere"
{
"regimes": [
{
"regime": "BULL_TRENDING",
"trades": 5,
"wins": 4,
"losses": 1,
"win_rate": 80.0,
"avg_pnl_pct": 2.14,
"avg_hold_hours": 18.3,
"total_pnl_usd": 1240.50
},
{
"regime": "ACCUMULATION",
"trades": 3,
"wins": 2,
"losses": 1,
"win_rate": 66.7,
"avg_pnl_pct": 1.08,
"avg_hold_hours": 12.5,
"total_pnl_usd": 485.20
}
],
"best_regime": "BULL_TRENDING",
"worst_regime": "HIGH_VOLATILITY",
"total_trades": 8,
"overall_win_rate": 62.5,
"since": "2026-04-12",
"generated_at": "24 Apr 2026, 10:00 CEST",
"cached": false,
"cache_ttl_seconds": 300
}
Authorizations
Your AIOKA Intelligence API key (format: aik_{tier}_{random})
Response
Per-regime Ghost Trader performance statistics