Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix case missmatch for KrakenFutures symbols #1040

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Feature: Bybit spot support
* Update: Bybit migrate to API V5 for public streams
* Bugfix: Handle None ids for Kraken trades in QuestDB
* Bugfix: Fix case missmatch in KrakenFutures symbols

### 2.4.0 (2024-01-07)
* Update: Fix tests
Expand Down
3 changes: 1 addition & 2 deletions cryptofeed/exchanges/kraken_futures.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ async def message_handler(self, msg: str, conn, timestamp: float):
else:
LOG.warning("%s: Invalid message type %s", self.id, msg)
else:
# As per Kraken support: websocket product_id is uppercase version of the REST API symbols
pair = self.exchange_symbol_to_std_symbol(msg['product_id'].lower())
pair = self.exchange_symbol_to_std_symbol(msg['product_id'])
if msg['feed'] == 'trade':
await self._trade(msg, pair, timestamp)
elif msg['feed'] == 'trade_snapshot':
Expand Down
Loading