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。