Add Kraken Pro Spot + Futures (enums, info, candle-import drivers)#588
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Adds Kraken Pro Spot and Kraken Pro Futures to Jesse's exchange catalog (the
jesseside: enums,info.pymetadata, and candle-import drivers). The matching live-trading drivers are in the companionjesse-livePR.Changes
jesse/enums/__init__.py):KRAKEN_SPOT = 'Kraken Pro Spot',KRAKEN_PERPETUAL = 'Kraken Pro Futures',KRAKEN_PERPETUAL_TESTNET = 'Kraken Pro Futures Testnet'.backtesting: False, backup_exchange = Binance Spot / Binance Perpetual Futures for warm-up candles).jesse/modes/import_candles_mode/drivers/Kraken/): Spot (/0/public/OHLC) and Futures (charts API), pluskraken_utilsfor 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_XBTUSD↔BTC-USD).Notes
backtestingisFalsefor 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