/// <summary>
        /// Create a new instance of BinanceSocketClient using provided options
        /// </summary>
        /// <param name="options">The options to use for this client</param>
        public BinanceSocketClient(BinanceSocketClientOptions options) : base(options, options.ApiCredentials == null ? null : new BinanceAuthenticationProvider(options.ApiCredentials))
        {
            Spot        = new BinanceSocketClientSpot(log, this, options);
            FuturesCoin = new BinanceSocketClientFuturesCoin(log, this, options);
            FuturesUsdt = new BinanceSocketClientFuturesUsdt(log, this, options);

            SetDataInterpreter((byte[] data) => { return(string.Empty); }, null);
        }
Esempio n. 2
0
 /// <summary>
 /// Create a new instance of BinanceSocketClient using provided options
 /// </summary>
 /// <param name="options">The options to use for this client</param>
 public BinanceSocketClient(BinanceSocketClientOptions options) : base(options, options.ApiCredentials == null ? null : new BinanceAuthenticationProvider(options.ApiCredentials))
 {
     Spot        = new BinanceSocketClientSpot(log, this, options);
     FuturesCoin = new BinanceSocketClientFuturesCoin(log, this, options);
     FuturesUsdt = new BinanceSocketClientFuturesUsdt(log, this, options);
 }