/// <summary> /// Set the default options to be used when creating new clients /// </summary> /// <param name="options"></param> public static void SetDefaultOptions(KrakenClientOptions options) { defaultOptions = options; }
/// <summary> /// Create a new instance of KrakenClient using provided options /// </summary> /// <param name="options">The options to use for this client</param> public KrakenClient(KrakenClientOptions options) : base(options, options.ApiCredentials == null ? null : new KrakenAuthenticationProvider(options.ApiCredentials)) { _otp = options.StaticTwoFactorAuthenticationPassword; postParametersPosition = PostParameters.InBody; requestBodyFormat = RequestBodyFormat.FormData; }
/// <summary> /// Create a new instance of KrakenClient using provided options /// </summary> /// <param name="options">The options to use for this client</param> public KrakenClient(KrakenClientOptions options) : base("Kraken", options, options.ApiCredentials == null ? null : new KrakenAuthenticationProvider(options.ApiCredentials, options.NonceProvider)) { _otp = options.StaticTwoFactorAuthenticationPassword; requestBodyFormat = RequestBodyFormat.FormData; }
/// <summary> /// Create a new instance of KrakenClient using provided options /// </summary> /// <param name="options">The options to use for this client</param> public KrakenClient(KrakenClientOptions options) : base(options, options.ApiCredentials == null ? null : new KrakenAuthenticationProvider(options.ApiCredentials)) { postParametersPosition = PostParameters.InBody; requestBodyFormat = RequestBodyFormat.FormData; Configure(options); }