本文介绍Binance币安交易所Websocket SDK-Python版
# -*- coding: utf-8 -*-
#author: 比特量化
import websocket
import time,datetime
import json
if __name__ == '__main__':
_ws_url = "wss://stream.binance.com:9443/ws/"
symbol = "xrpusdt"
channel = "ticker" # ticker / depth / depth5