Hackathon submissionlablab AI Agent Olympics

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.

Ready for demo
Equity curve · hackathon window
+$19.18 (+0.1918%)
Hackathon-window PnLMay 13, 2026 → May 14, 2026on $10,000 sim. capital
+$19.18(+0.1918%)
Win rate
80.0%
Max DD
0.06%
Trades
10(41L)
Best / Worst
CRCLx/TSLAx
30-day baseline (transparency): +$33.56 · 138 trades · win rate 53.0%
Equity curve · 10 trades · hourly OHLC
$10,000.00$10,019.18
Tests passed
232 / 232
2.47s wall-clock · 0 failures
Hackathon-window trades
10
5 BUY · 5 SELL · win rate 80.0%
Capital safety
Preserved
Triple opt-in · leverage 1x · shorting=off · dead-man cancel

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 denied

    Reproduced 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-only flag.

  • Account class · PEDSL-CY (Cyprus EU)
    BTC Perp control → status: placed

    Same key, same IP, same Futures routing. Confirms code/key/IP all healthy — block is venue-side, regulatory.

Verified 2026-05-15. Re-eligible for live ranking the moment a non-EU/EEA Kraken entity is wired in.

Evidence

Reproducible artefacts and audit trail.

  • GitHub repository
    Source code, tests, scripts, deploy artefacts.
    Damso74/kraken-alpha-agent
  • Live + paper logs
    Captured in docs/SUBMISSION.md.
    SUBMISSION.md
  • Backtest + market-hours analysis
    30 days of hourly OHLC, US session attribution, per-ticker PnL.
    /data
  • Full audit trail
    SQLite + JSONL exports — every decision, every gate, every fill.
    scripts/export_audit_bundle.py

System overview

Deterministic engine, defence-in-depth, no shortcuts.

AgentStrategy Loop
Kraken APISpot + Futures CLI 0.3.2
Risk Engine8 gates · 1× leverage
Logger & AuditJSONL + SQLite
Data Store (Encrypted)Audit trail · keys never logged
Real-time flowAudit / persistence

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.

Portfolio equity
$10,019.18from $10,000.00
Net PnL
+$19.18(+0.1918%)
Trades
10
5 buy · 5 sell
Win rate
80.0%
4 wins · 1 losses
Max drawdown
0.06%
-$6.22
Per-trade Sharpe
0.50
SELL pnls, not annualised
Best symbol
CRCLx
+$17.48
Worst symbol
TSLAx
-$0.24

Top 10 simulated trades by |PnL|

5 total trades · FIFO matched
Time (UTC)SymbolSideSizeEntryExitPnLPnL %Exit reason
May 14, 15:00CRCLxBUY$250.00$122.84$131.43+$17.48+6.99%exit_rule_take_profit
May 14, 16:00HOODxBUY$174.51$80.66$81.08+$0.91+0.52%exit_rule_momentum_exit
May 14, 16:00MSTRxBUY$250.00$190.79$191.34+$0.72+0.29%exit_rule_momentum_exit
May 14, 14:00NVDAxBUY$128.66$234.57$235.13+$0.31+0.24%exit_rule_momentum_exit
May 13, 14:00TSLAxBUY$250.00$447.75$447.32-$0.24-0.10%exit_rule_momentum_exit

Recent activity

Operational signals from the deployed agent.

  1. Backtest exported — 10 trades, net PnL +$19.18May 19, 13:01 UTC

    30 days of real Kraken xStocks OHLC, deterministic engine replay.

  2. pytest suite green — 232 / 232 passedMay 19, 12:53 UTC

    2.47s wall-clock, no flaky tests, no skips.

  3. Risk gates heartbeat — all greenMay 19, 12:39 UTC

    max_total_exposure, max_open_positions, drawdown, cooldown, shorting=false.

  4. VPS Vultr Ubuntu 24.04 LTS — agent onlineMay 19, 12:20 UTC

    Region ewr · KRAKEN_CLI_TRANSPORT=auto · watchdog + dead-man cancel-after.

  5. BTC Perp control order — status: placedMay 19, 11:58 UTC

    Same Futures key/IP as xStocks Perps; confirms code path is healthy.

  6. 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.

Judge takeaway

Production-grade agent with real exchange integration, strong safeguards, and a clearly diagnosed venue-level xStocks restriction — ready for any eligible account.

Per-symbol breakdown

SymbolTradesPnLPnL %
NVDAx2+$0.31+0.02%
CRCLx2+$17.48+1.40%
HOODx2+$0.91+0.07%
AAPLx0$0.00+0.00%
AMZNx0$0.00+0.00%
QQQx0$0.00+0.00%
TSLAx2-$0.24-0.02%
MSTRx2+$0.72+0.06%