curl https://api.aioka.io/v1/ghost/stats
import httpx
resp = httpx.get("https://api.aioka.io/v1/ghost/stats")
data = resp.json()
print(f"{data['validated_trades']} validated trades")
print(f"Win rate: {data['win_rate']}% | Total P&L: ${data['total_pnl']:.2f}")
{
"validated_trades": 3,
"since": "2026-04-12",
"total_pnl": 155.77,
"win_rate": 67.0,
"sprint": 336,
"tests_passing": 5320
}
Public
Ghost Trader Stats
Public validated trade count since production launch
GET
/
v1
/
ghost
/
stats
curl https://api.aioka.io/v1/ghost/stats
import httpx
resp = httpx.get("https://api.aioka.io/v1/ghost/stats")
data = resp.json()
print(f"{data['validated_trades']} validated trades")
print(f"Win rate: {data['win_rate']}% | Total P&L: ${data['total_pnl']:.2f}")
{
"validated_trades": 3,
"since": "2026-04-12",
"total_pnl": 155.77,
"win_rate": 67.0,
"sprint": 336,
"tests_passing": 5320
}
Overview
Returns the count of validated (real, non-synthetic) Ghost Trader trades since the Sprint 164 deployment on 2026-04-12 (clean-slate track record restart). Used by the aioka.io website for public track record display. Tier: Public ✅ — No API key required Cache: 300s (Redis) Rate limit: NoneResponse Fields
| Field | Type | Description |
|---|---|---|
validated_trades | integer | Number of validated trades with is_valid=true since launch |
since | string | Track record restart date ("2026-04-12") |
total_pnl | float | Sum of P&L (USD) across all validated closed trades. Returns 0.0 if no closed trades. |
win_rate | float | Percentage of validated closed trades that were profitable (0.0–100.0). Returns 0.0 if no closed trades. |
Only trades marked
is_valid=true are included in all calculations. Backfilled, synthetic, or
test trades are excluded. total_pnl and win_rate are computed from closed validated trades only —
an open position is counted in validated_trades but not in P&L or win rate until it closes.curl https://api.aioka.io/v1/ghost/stats
import httpx
resp = httpx.get("https://api.aioka.io/v1/ghost/stats")
data = resp.json()
print(f"{data['validated_trades']} validated trades")
print(f"Win rate: {data['win_rate']}% | Total P&L: ${data['total_pnl']:.2f}")
{
"validated_trades": 3,
"since": "2026-04-12",
"total_pnl": 155.77,
"win_rate": 67.0,
"sprint": 336,
"tests_passing": 5320
}