From 264d50027a50070bc5a579ed648f2ffc8390f1cb Mon Sep 17 00:00:00 2001 From: t Date: Wed, 24 Jan 2018 17:08:27 +0700 Subject: [PATCH] Don't tamper with received data, keep messages in line with the API documentation --- hitbtc/connector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hitbtc/connector.py b/hitbtc/connector.py index 4963e0d..e807d0b 100644 --- a/hitbtc/connector.py +++ b/hitbtc/connector.py @@ -81,8 +81,8 @@ def _on_message(self, ws, message): else: try: method = decoded_message['method'] - symbol = decoded_message['params'].pop('symbol') - params = decoded_message.pop('params') + symbol = decoded_message['params']['symbol'] + params = decoded_message['params'] except Exception as e: self.log.exception(e) self.log.error(decoded_message)