Exemplo n.º 1
0
 /// <summary>
 /// Create a new instance
 /// </summary>
 /// <param name="symbol">The symbol of the order book</param>
 /// <param name="options">The options for the order book</param>
 public BinanceFuturesUsdtSymbolOrderBook(string symbol, BinanceOrderBookOptions?options = null) : base(symbol, options ?? new BinanceOrderBookOptions())
 {
     _limit          = options?.Limit;
     _updateInterval = options?.UpdateInterval;
     _restClient     = new BinanceClient();
     _socketClient   = new BinanceSocketClient();
 }
 /// <summary>
 /// Create a new instance
 /// </summary>
 /// <param name="symbol">The symbol of the order book</param>
 /// <param name="options">The options for the order book</param>
 public BinanceSymbolOrderBook(string symbol, BinanceOrderBookOptions?options = null) : base(symbol, options ?? new BinanceOrderBookOptions())
 {
     symbol.ValidateBinanceSymbol();
     limit          = options?.Limit;
     updateInterval = options?.UpdateInterval;
     restClient     = new BinanceClient();
     socketClient   = new BinanceSocketClient();
 }
 /// <summary>
 /// Create a new instance
 /// </summary>
 /// <param name="symbol">The symbol of the order book</param>
 /// <param name="options">The options for the order book</param>
 public BinanceSpotSymbolOrderBook(string symbol, BinanceOrderBookOptions?options = null) : base(symbol, options ?? new BinanceOrderBookOptions())
 {
     symbol.ValidateBinanceSymbol();
     Levels          = options?.Limit;
     _updateInterval = options?.UpdateInterval;
     _socketClient   = options?.SocketClient ?? new BinanceSocketClient();
     _restClient     = options?.RestClient ?? new BinanceClient();
     _restOwner      = options?.RestClient == null;
     _socketOwner    = options?.SocketClient == null;
 }