這是我基於CCXT(lfern websockets分支)的開放源代碼命令行python程序的演示,以訂閱加密貨幣交換websockets並實時獲取訂單書https://github.com/firepol/ccxt-websockets-db-updater
它即時支持sqlite,但您也可以將其設置為使用postgresql。演示在Ubuntu Linux上完成,但是您當然也可以在Windows上使用。
這使用了這種依賴關係:https://github.com/firepol/ccxt-websockets
這是從lfern分支生成的轉譯python代碼:https://github.com/lfern/ccxt/tree/feature/websockets-multiple
另請參閱:https://github.com/ccxt/ccxt/issues/56
官方CCXT git存儲庫:https://github.com/ccxt/ccxt
how this?
If you like this open source project (that you can adapt and use for your own trading bot), please star my github repository: https://github.com/firepol/ccxt-websockets-db-updater
if you have questions/trouble to get started feel free to open an issue (in the "Issues" page