Kraken websocket support (#264)

* Initial commit. Adds ticker, candle and trade, subscription support

* Adds support for spread and orderbooks

* Adds new currency pair delimiter ("/"), Adds dedicated websocket Connected channel handler, Updates Kraken websocket capability definition, Refines websocket tests to connect and disconnect without freezing, separates WebsocketUnsubscribeEventRequest ChannelID into its own struct WebsocketUnsubscribeByChannelIDEventRequest to prevent bad json WS requests, Adds asset type to orderbook, Kraken WS handles connection better

* Removes duplicate type, reverts config value

* Addresses error returns and changes writeToWebsocket to use byte array. Removes deferred funcs in tests. Increases test listening limit for rare cases

* Fixes verbose log. Rearranges WS Connect async ordering. Fixes DATA RACE. Fixes random okex tests. Ensures Kraken WS tests only connect once
This commit is contained in:
Scott
2019-04-04 10:21:44 +11:00
committed by Adrian Gallagher
parent a0e291097e
commit 107cf76373
10 changed files with 960 additions and 19 deletions

View File

@@ -935,7 +935,7 @@
"name": "Kraken",
"enabled": true,
"verbose": false,
"websocket": false,
"websocket": true,
"useSandbox": false,
"restPollingDelay": 10,
"httpTimeout": 15000000000,