def sendMarketDataRequest(self, channel):
"""??????"""
# ????
d = {}
d['event'] = 'addChannel'
d['binary'] = True
d['channel'] = channel
# ??json?????
j = json.dumps(d)
# ????????
try:
self.ws.send(j)
except websocket.WebSocketConnectionClosedException:
pass
#----------------------------------------------------------------------
评论列表
文章目录