Ejemplo n.º 1
0
 /// <summary>
 /// Sets the default options to use for new clients
 /// </summary>
 /// <param name="options">The options to use for new clients</param>
 public static void SetDefaultOptions(HuobiClientOptions options)
 {
     defaultOptions = options;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new instance of the HuobiClient with the provided options
 /// </summary>
 public HuobiClient(HuobiClientOptions options) : base(options, options.ApiCredentials == null ? null : new HuobiAuthenticationProvider(options.ApiCredentials, options.SignPublicRequests))
 {
     Configure(options);
 }
Ejemplo n.º 3
0
 private void Configure(HuobiClientOptions options)
 {
     SignPublicRequests = options.SignPublicRequests;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Create a new instance of the HuobiClient with the provided options
 /// </summary>
 public HuobiClient(HuobiClientOptions options) : base(options, options.ApiCredentials == null ? null : new HuobiAuthenticationProvider(options.ApiCredentials))
 {
 }