We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1992241 commit e2887deCopy full SHA for e2887de
poloniex/__init__.py
@@ -745,8 +745,15 @@ def on_message(self, data):
745
return False
746
if 'callback' in self.channels[chan]:
747
# activate chan callback
748
- if not chan in ['account', 'heartbeat']:
+ if chan == 'heartbeat':
749
+ # show whole heartbeat
750
+ self.socket._callback(self.channels[chan]['callback'], message)
751
+ elif chan in ['ticker', '24hvolume']:
752
+ # ticker and 24hvolume dont need seq id
753
message = message[2]
754
+ else:
755
+ # show seq id for everything else
756
+ message = message[1]
757
self.socket._callback(self.channels[chan]['callback'], message)
758
759
def on_error(self, error):
0 commit comments