Skip to main content
To use the playground, enter your API key in the X-API-Key field above. Don’t have a key? Get one free →
Tier: Free ✅ Cache TTL: 300 seconds (5 min) Rate limit: Free 10/day, 2/min. Basic 1,000/day, 30/min. Pro 10,000/day, 100/min. Historical Ghost Trader performance broken down by HMM market regime. Only 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

FieldTypeDescription
regimesarrayPer-regime stats sorted by win_rate DESC
best_regimestring | nullRegime with the highest win rate (null when no trades)
worst_regimestring | nullRegime with the lowest win rate (null when no trades)
total_tradesintTotal validated closed trades across all regimes
overall_win_ratefloatWin rate across all regimes (0–100)
sincestringClean-slate cutoff date (ISO 8601)
generated_atstringHuman-readable Prague CEST/CET timestamp
cachedboolWhether the response was served from cache
cache_ttl_secondsintRemaining cache TTL in seconds

RegimeStatsItem fields

FieldTypeDescription
regimestringHMM regime name (e.g. BULL_TRENDING, HIGH_VOLATILITY)
tradesintTotal trades recorded in this regime
winsintWinning trades (total P&L > 0)
lossesintLosing trades (total P&L ≤ 0)
win_ratefloatWin rate 0–100
avg_pnl_pctfloatAverage P&L % per trade
avg_hold_hoursfloatAverage hold time in hours
total_pnl_usdfloatCumulative 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
}