コード例 #1
0
ファイル: Huobi.cs プロジェクト: mdhatmaker/Trading-onechain
 // 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);
 }
コード例 #2
0
 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
 }
コード例 #3
0
        // 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);
        }
コード例 #4
0
 public void StartWebSocket(string[] args = null)
 {
     m_socket = new ZWebSocket("wss://ws.cex.io/ws/", this.WebSocketMessageHandler);
 }
コード例 #5
0
 public void StartWebSocket(string[] args = null)
 {
     m_socket = new ZWebSocket("wss://www.bitmex.com/realtime", this.WebSocketMessageHandler);
 }
コード例 #6
0
 public void StartWebSocket(string[] args = null)
 {
     m_socket = new ZWebSocket("wss://streamer.cryptocompare.com", null);
 }
コード例 #7
0
 public void StartWebSocket(string[] args = null)
 {
     m_socket = new ZWebSocket("wss://api.hitbtc.com/api/2/ws", this.WebSocketMessageHandler);
 }
コード例 #8
0
 public void StartWebSocket(string[] args = null)
 {
     m_socket = new ZWebSocket("wss://api.bitfinex.com/ws/2", this.WebSocketMessageHandler);
 }
コード例 #9
0
 public void StartWebSocket(string[] args = null)
 {
     m_socket = new ZWebSocket("wss://clientapi.tradeblock.com/json/[ClientKey]", null);
 }
コード例 #10
0
 public void StartWebSocket(string[] args = null)
 {
     m_socket = new ZWebSocket("wss://ws-feed.gdax.com", this.WebSocketMessageHandler);
 }