/// <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; }
private void Configure(BinanceSocketClientOptions options) { baseWebsocketAddress = options.BaseSocketAddress; reconnectBehaviour = options.ReconnectTryBehaviour; reconnectInterval = options.ReconnectTryInterval; }
/// <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); }
private void Configure(BinanceSocketClientOptions options) { baseCombinedAddress = options.BaseSocketCombinedAddress; }
/// <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); }
private void Configure(BinanceSocketClientOptions options) { baseWebsocketAddress = options.BaseSocketAddress; }
/// <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; }
/// <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; }