コード例 #1
0
ファイル: KrakenClient.cs プロジェクト: shigengyu/Kraken.Net
 /// <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;
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
ファイル: KrakenClient.cs プロジェクト: shigengyu/Kraken.Net
 /// <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;
 }
コード例 #4
0
 /// <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);
 }