Skip to content

Add Kraken Pro Spot + Futures (enums, info, candle-import drivers)#588

Merged
saleh-mir merged 7 commits into
masterfrom
kraken-pro
Jul 5, 2026
Merged

Add Kraken Pro Spot + Futures (enums, info, candle-import drivers)#588
saleh-mir merged 7 commits into
masterfrom
kraken-pro

Conversation

@saleh-mir

Copy link
Copy Markdown
Member

What this does

Adds Kraken Pro Spot and Kraken Pro Futures to Jesse's exchange catalog (the jesse side: enums, info.py metadata, and candle-import drivers). The matching live-trading drivers are in the companion jesse-live PR.

Changes

  • Enums (jesse/enums/__init__.py): KRAKEN_SPOT = 'Kraken Pro Spot', KRAKEN_PERPETUAL = 'Kraken Pro Futures', KRAKEN_PERPETUAL_TESTNET = 'Kraken Pro Futures Testnet'.
  • info.py: exchange metadata for all three (type, settlement currency USD, supported timeframes, backtesting: False, backup_exchange = Binance Spot / Binance Perpetual Futures for warm-up candles).
  • Candle-import drivers (jesse/modes/import_candles_mode/drivers/Kraken/): Spot (/0/public/OHLC) and Futures (charts API), plus kraken_utils for timeframe↔interval mapping.

Naming

All user-facing names/symbols use BTC; Kraken's legacy XBT/XXBT is normalized to BTC end-to-end (spot wsname/altname resolution + futures PF_XBTUSDBTC-USD).

Notes

  • backtesting is False for all three: Kraken Spot's OHLC endpoint only serves a rolling ~720-candle window; Futures has deeper history and can be enabled later after a depth probe. The import drivers are still used by the live runtime for warm-up candles.

🤖 Generated with Claude Code

Saleh Mir and others added 7 commits June 8, 2026 19:34
Rebuilt jesse/static from the current dashboard-v1 master, which includes the merged
optimizationStore.ts _ensureResultsShape fix (recovers MCP-created + older optimization
sessions that previously failed to load). Generated via dashboard-v1 'npm run generate'.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds KRAKEN_SPOT / KRAKEN_PERPETUAL / KRAKEN_PERPETUAL_TESTNET enums and info.py
entries, plus REST candle-import drivers used for live warm-up candles:
- Kraken Spot (api.kraken.com /0/public/OHLC; rolling ~720-candle window so
  backtesting=False; OHLC time is seconds -> ms, candle open-time, oldest-first).
- Kraken Futures (futures.kraken.com charts API; time already in ms, deep history).
Both translate Jesse BASE-USD symbols to Kraken naming (XBT<->BTC, PF_ perps).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
_load_asset_pairs only normalized XBT->BTC, so Dogecoin was exposed as XDG-USD
instead of DOGE-USD — it looked 'missing' as DOGE, and XDG-USD then errored
because the trade/WS API only speaks the standard DOGE name. Add a shared
Kraken<->Jesse base-alias map (XBT<->BTC, XDG<->DOGE) applied inbound and in the
outbound altname fallback.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Disable live_trading for Kraken's public OHLC endpoint (720-candle
rolling window) and enable backtesting for the leveraged Kraken mode
that supports historical data.
@saleh-mir saleh-mir merged commit a5f0016 into master Jul 5, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants