Exemple #1
0
 public P2pSymbolOrderBook(string symbol, P2pSymbolOrderBookOptions options) : base(symbol, options)
 {
     limit        = options.Limit;
     restClient   = new P2pClient();
     socketClient = new P2pSocketClient(new P2pSocketClientOptions()
     {
         AutoReconnect       = true,
         ReconnectInterval   = TimeSpan.FromSeconds(2),
         SocketNoDataTimeout = TimeSpan.FromSeconds(10),
         LogVerbosity        = CryptoExchange.Net.Logging.LogVerbosity.Info,
         LogWriters          = new List <System.IO.TextWriter>()
         {
             new ThreadSafeFileWriter($"p2psocketlogger-{symbol}.log")
         }
     }, null);
 }
Exemple #2
0
 public P2pSymbolOrderBook(string symbol, P2pSocketClient socketClient) : base(symbol, DefaultOptions)
 {
     limit             = DefaultOptions.Limit;
     restClient        = new P2pClient();
     this.socketClient = socketClient;
 }