// TODO: Looks like there are different WebSocket addresses for different products public void StartWebSocket(string[] args) { // ETH/CNY、ETC/CNY wss://be.huobi.com/ws // BTC/CNY、LTC/CNY wss://api.huobi.com/ws // ETH/BTC、LTC/BTC、ETC/BTC, BCC/BTC wss://api.huobi.pro/ws m_socket = new ZWebSocket("wss://be.huobi.com/ws", this.WebSocketMessageHandler); }
public void StartWebSocket(string[] args = null) { m_socket = new ZWebSocket("wss://api.binance.com/ws/2", this.WebSocketMessageHandler); //wss://stream.binance.com:9443 //Raw streams are accessed at /ws/<streamName> //Combined streams are accessed at /stream?streams=<streamName1>/<streamName2>/<streamName3> //Combined stream events are wrapped as follows: {"stream":"<streamName>","data":<rawPayload>} //All symbols for streams are lowercase //A single connection to stream.binance.com is only valid for 24 hours; expect to be disconnected at the 24 hour mark }
// pass in args[0] as symbol (like "BTCUSD") public void StartWebSocket(string[] args = null) { string socketUrl; if (args == null) { socketUrl = "wss://api.gemini.com/v1/marketdata/btcusd"; } else { socketUrl = string.Format("wss://api.gemini.com/v1/marketdata/{0}", args[0]); } m_socket = new ZWebSocket(socketUrl, this.WebSocketMessageHandler); }
public void StartWebSocket(string[] args = null) { m_socket = new ZWebSocket("wss://ws.cex.io/ws/", this.WebSocketMessageHandler); }
public void StartWebSocket(string[] args = null) { m_socket = new ZWebSocket("wss://www.bitmex.com/realtime", this.WebSocketMessageHandler); }
public void StartWebSocket(string[] args = null) { m_socket = new ZWebSocket("wss://streamer.cryptocompare.com", null); }
public void StartWebSocket(string[] args = null) { m_socket = new ZWebSocket("wss://api.hitbtc.com/api/2/ws", this.WebSocketMessageHandler); }
public void StartWebSocket(string[] args = null) { m_socket = new ZWebSocket("wss://api.bitfinex.com/ws/2", this.WebSocketMessageHandler); }
public void StartWebSocket(string[] args = null) { m_socket = new ZWebSocket("wss://clientapi.tradeblock.com/json/[ClientKey]", null); }
public void StartWebSocket(string[] args = null) { m_socket = new ZWebSocket("wss://ws-feed.gdax.com", this.WebSocketMessageHandler); }