/// <summary> /// Create a new instance of OkexSocketClient using provided options /// </summary> /// <param name="options">The options to use for this client</param> public OkexSocketClient(OkexSocketClientOptions options) : base("Okex", options, options.ApiCredentials == null ? null : new OkexAuthenticationProvider(options.ApiCredentials, "", false, ArrayParametersSerialization.Array)) { SetDataInterpreter(DecompressData, null); }
/// <summary> /// Set the default options to be used when creating new socket clients /// </summary> /// <param name="options">The options to use for new clients</param> public static void SetDefaultOptions(OkexSocketClientOptions options) { defaultOptions = options; }
public OkexSocketClient(OkexSocketClientOptions options) : base("OKEx WS Api", options, options.ApiCredentials == null ? null : new OkexAuthenticationProvider(options.ApiCredentials, "", options.DemoTradingService, false, ArrayParametersSerialization.Array)) { DemoTradingService = options.DemoTradingService; SetDataInterpreter(DecompressData, null); SendPeriodic(TimeSpan.FromSeconds(5), con => "ping"); }