Kraken Alpha Agent
Production-grade trading agent with deterministic signal stack, defence-in-depth risk engine, and a fully audited xStocks backtest on real Kraken OHLC data — primary snapshot on the hackathon window (May 13 → May 19, 2026), 30-day baseline reported alongside.
- Win rate
- 80.0%
- Max DD
- 0.06%
- Trades
- 10(4W·1L)
- Best / Worst
- CRCLx/TSLAx
What worked
All hackathon-required surfaces are deployed, tested, and audited.
- 232 / 232 pytest tests passed in 2.47s — no skips, no flaky tests.
- VPS Vultr Ubuntu 24.04 LTS deployed (region
ewr) with watchdog and dead-man cancel-after. - Real Kraken CLI market-data ingestion — 24/5 xStocks + 24/7 crypto perps, no mocks in audit logs.
- Risk gates, audit logs, dead-man cancel-after, watchdog all active and tested.
- BTC Perp control order on the same Futures key validated —
status: placed. - Hackathon-window backtest (May 13 → May 19, 2026) — PnL +$19.18, win rate 80.0%, max DD 0.06%.
- 30-day baseline on real xStocks OHLC — PnL +$33.56, win rate 53.0%, 138 trades.
What blocked xStocks live
Account-class restriction, transparently diagnosed with API evidence.
- Spot xStocks order
EGeneral:Permission deniedReproduced from FR/Lyon and US-NJ VPS — same error, not IP/geo.
- xStocks Perps order
{"result":"success","status":"wouldNotReducePosition"}Every BUY / SELL rejected, even with no open position and no
--reduce-onlyflag. - Account class · PEDSL-CY (Cyprus EU)
BTC Perp control → status: placedSame key, same IP, same Futures routing. Confirms code/key/IP all healthy — block is venue-side, regulatory.
Evidence
Reproducible artefacts and audit trail.
- Damso74/kraken-alpha-agentGitHub repositorySource code, tests, scripts, deploy artefacts.
- SUBMISSION.mdLive + paper logsCaptured in
docs/SUBMISSION.md. - /dataBacktest + market-hours analysis30 days of hourly OHLC, US session attribution, per-ticker PnL.
- Full audit trailSQLite + JSONL exports — every decision, every gate, every fill.
scripts/export_audit_bundle.py
System overview
Deterministic engine, defence-in-depth, no shortcuts.
Triple opt-in for live: TRADING_MODE=live + LIVE_TRADING=true + ALLOW_LIVE_ORDERS=true. Dead-man cancel-after on every session.
Backtest run · hackathon window · May 13, 2026 → May 14, 2026
Universe: NVDAx · CRCLx · HOODx · AAPLx · AMZNx · QQQx · TSLAx · MSTRx — hourly OHLC replayed through the deterministic engine over the lablab AI Agent Olympics submission window. No live or paper orders placed. 30-day baseline (+$33.56, 138 trades) reported alongside in the KPI card and in docs/SUBMISSION.md.
Top 10 simulated trades by |PnL|
5 total trades · FIFO matchedRecent activity
Operational signals from the deployed agent.
- Backtest exported — 10 trades, net PnL +$19.18May 19, 13:01 UTC
30 days of real Kraken xStocks OHLC, deterministic engine replay.
- pytest suite green — 232 / 232 passedMay 19, 12:53 UTC
2.47s wall-clock, no flaky tests, no skips.
- Risk gates heartbeat — all greenMay 19, 12:39 UTC
max_total_exposure, max_open_positions, drawdown, cooldown, shorting=false.
- VPS Vultr Ubuntu 24.04 LTS — agent onlineMay 19, 12:20 UTC
Region ewr · KRAKEN_CLI_TRANSPORT=auto · watchdog + dead-man cancel-after.
- BTC Perp control order — status: placedMay 19, 11:58 UTC
Same Futures key/IP as xStocks Perps; confirms code path is healthy.
- Market-data ingestion — xStocks 24/5 + crypto 24/7May 19, 11:26 UTC
Real Kraken CLI ticker / ohlc / orderbook / trades, no mocks in audit logs.
Production-grade agent with real exchange integration, strong safeguards, and a clearly diagnosed venue-level xStocks restriction — ready for any eligible account.