Beispiel #1
0
        public GdaxAuthenticationHandler(GdaxCredentials credentials, IDateProvider dateProvider)
            : base()
        {
            this.credentials  = credentials ?? throw new ArgumentNullException(nameof(credentials));
            this.dateProvider = dateProvider ?? throw new ArgumentNullException(nameof(dateProvider));
            var key = Convert.FromBase64String(this.credentials.Secret);

            this.hmac = new HMACSHA256(key);
        }
        public GdaxAuthenticationHandler(GdaxCredentials credentials, IDateProvider dateProvider)
            : base()
        {
            this.credentials  = credentials;
            this.dateProvider = dateProvider;
            var key = Convert.FromBase64String(this.credentials.Secret);

            this.hmac = new HMACSHA256(key);
        }
Beispiel #3
0
 public GdaxAuthenticationHandler(GdaxCredentials credentials)
     : this(credentials, new DefaultDateProvider())
 {
 }