Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix case missmatch for KrakenFutures symbols
Browse files Browse the repository at this point in the history
carloe committed Jun 6, 2024

Verified

This commit was signed with the committer’s verified signature.
carloe Carlo Eugster
1 parent cac8c97 commit 02ec53e
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
@@ -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
3 changes: 1 addition & 2 deletions cryptofeed/exchanges/kraken_futures.py
Original file line number Diff line number Diff line change
@@ -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':

0 comments on commit 02ec53e

Please sign in to comment.