This article introduces the Websocket SDK-Python version of ZB China Currency Exchange
# -*- coding: utf-8 -*-
#author: 比特量化
import websocket
import time
import json
if __name__ == '__main__':
try:
ws = websocket.create_connection("wss://api.zb.com:9999/websocket")
time.sleep(