UNICORN Binance WebSocket API演示



UNICORN Binance WebSocket API

python API,以一种简单,快速,灵活,健壮和功能齐全的方式使用Binance Websocket API(com,jersey,us,dex / chain)。

描述

python模块UNICORN Binance WebSocket API为Binance,Binance Jersey,Binance US,Binance DEX和Binance DEX Testnet的Binance Websocket API提供了API,并支持贸易,流水线,股票行情,深度和区块高度等公共流的流,而且还有私有userData流,需要与Binance Exchange www.binance.com,www.binance.je或www.binance.us的有效api_key和api_secret一起使用-对于DEX,您需要来自www的用户地址。 binance.org或testnet.binance.org,您可以获得测试网的资金。

该模块需要python 3.5.3或更高版本,因为它依赖于python最新的asyncio功能进行异步/并发处理。当前依赖关系在此处列出。

请注意,Binance websocket API仅用于接收数据。如果您要设置订单,取款等,则必须组合使用Binance Rest API(com,je,us,org)。
UNICORN Binance WebSocket API有什么好处?
    -完全托管的websocket和100%自动重新连接!
    -支持的交流:
        Binance BinanceWebSocketApiManager(exchange =“ binance.com”)
        币安球衣BinanceWebSocketApiManager(exchange =“ binance.je”)
        Binance美国BinanceWebSocketApiManager(exchange =“ binance.us”)
        Binance DEX BinanceWebSocketApiManager(exchange =“ binance.org”)
        Binance DEX测试网BinanceWebSocketApiManager(exchange =“ binance.org-testnet”)
    -流正在处理异步/并发(python asyncio),并且每个流都在单独的线程中启动。
    -不使用twisted模块,因此可以在守护程序中使用此lib(与python-daemon兼容)。
    -如果由于暂时性技术问题而无法存储数据,则可以将数据踢回到stream_buffer,后者将接收的数据存储在RAM中,直到能够再次以正常方式处理数据为止。
    -有用的管理功能,例如get_binance_api_status(),get_stream_info(),get_stream_list(),get_stream_statistic(),is_websocket_uri_length_valid(),replace_stream(),wait_till_stream_has_started(),get_current_receiving_speed()等),请在此处进行探索。
    -监视API服务和ICINGA / Nagios icinga2-demo的check_command
    -在Linux,Mac和Windows上经过过多测试

安装
https://github.com/unicorn-data-analysis/unicorn-binance-websocket-api#installation-and-upgrade

如何:
https://www.unicorn-data.com/blog/article-details/howto-unicorn-binance-websocket-api.html
https://www.unicorn-data.com/blog/article-details/howto-monitoring-unicorn-binance-websocket-api-manager-with-icinga2.html

说明文件:
https://www.unicorn-data.com/unicorn-binance-websocket-api.html

来源,下载,示例…
https://github.com/unicorn-data-analysis/unicorn-binance-websocket-api。