/// <summary>
 /// Set the default options to be used when creating new socket clients
 /// </summary>
 /// <param name="options"></param>
 public static void SetDefaultOptions(BinanceSocketClientOptions options)
 {
     _defaultOptions = options;
 }
예제 #2
0
 private void Configure(BinanceSocketClientOptions options)
 {
     baseWebsocketAddress = options.BaseSocketAddress;
     reconnectBehaviour   = options.ReconnectTryBehaviour;
     reconnectInterval    = options.ReconnectTryInterval;
 }
예제 #3
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))
 {
     Configure(options);
 }
 /// <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);
     Futures = new BinanceSocketClientFutures(log, this, options);
 }
예제 #5
0
 private void Configure(BinanceSocketClientOptions options)
 {
     baseCombinedAddress = options.BaseSocketCombinedAddress;
 }
예제 #6
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, ArrayParametersSerialization.MultipleValues))
 {
     Configure(options);
 }
예제 #7
0
 private void Configure(BinanceSocketClientOptions options)
 {
     baseWebsocketAddress = options.BaseSocketAddress;
 }
예제 #8
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, ArrayParametersSerialization.MultipleValues))
 {
     baseCombinedAddress = options.BaseSocketCombinedAddress;
 }
예제 #9
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))
 {
     baseCombinedAddress = options.BaseSocketCombinedAddress;
 }