Ejemplo n.º 1
0
        public GdaxClient(GdaxCredentials credentials, ISerialzer serialzer)
        {
            this.credentials = Check.NotNull(credentials, nameof(credentials));
            this.serialzer   = Check.NotNull(serialzer, nameof(serialzer));

            this.http = new HttpClient(new GdaxAuthenticationHandler(credentials)
            {
                InnerHandler = new HttpClientHandler()
            });
        }
 public GdaxAuthenticationHandler(GdaxCredentials credentials, ISystemClock clock)
     : base()
 {
     this.credentials = Check.NotNull(credentials, nameof(credentials));
     this.clock       = Check.NotNull(clock, nameof(clock));
 }
Ejemplo n.º 3
0
 public GdaxClient(GdaxCredentials credentials)
     : this(credentials, new JsonSerializer())
 {
 }
 public GdaxAuthenticationHandler(GdaxCredentials credentials)
     : this(credentials, new SystemClock())
 {
 }