public GdaxRestApi(string apiKey, string apiSecret, string passphrase) { //create an authenticator with your apiKey, apiSecret and passphrase var authenticator = new Authenticator(apiKey, apiSecret, passphrase); //create the GDAX client m_client = new GDAXSharp.GDAXClient(authenticator); }
/// <summary> /// Build GDAX Client /// </summary> /// <param name="sandbox">Booelan if to use sandbox</param> public void BuildClient(bool sandbox) { var authenticator = new Authenticator(_apiInfo.apiKey, _apiInfo.apiSecret, _apiInfo.extraValue); if (sandbox) { baseUrl = "https://public.sandbox.gdax.com"; gdaxClient = new GDAXSharp.GDAXClient(authenticator, sandbox); } else { baseUrl = "https://api.gdax.com"; gdaxClient = new GDAXSharp.GDAXClient(authenticator); } }
public Client() { this.authenticator = new Authenticator(this.apiKey, this.secret, this.passphrase); this.gdaxClient = new GDAXSharp.GDAXClient(authenticator); }