diff --git a/poloniex/__init__.py b/poloniex/__init__.py index 116f601f..216d397a 100644 --- a/poloniex/__init__.py +++ b/poloniex/__init__.py @@ -745,8 +745,15 @@ def on_message(self, data): return False if 'callback' in self.channels[chan]: # activate chan callback - if not chan in ['account', 'heartbeat']: + if chan == 'heartbeat': + # show whole heartbeat + self.socket._callback(self.channels[chan]['callback'], message) + elif chan in ['ticker', '24hvolume']: + # ticker and 24hvolume dont need seq id message = message[2] + else: + # show seq id for everything else + message = message[1] self.socket._callback(self.channels[chan]['callback'], message) def on_error(self, error):