Skip to content

Commit

Permalink
Fix case missmatch for KrakenFutures symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
carloe committed Jun 5, 2024
1 parent cac8c97 commit e1cad9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit e1cad9f

Please sign in to comment.