示例#1
0
 public BitFlyerClient(BitFlyerClientConfig config = null)
 {
     if (config != null)
     {
         Config = config;
     }
     ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
     _client             = new HttpClient();
     _client.BaseAddress = new Uri(_baseUri);
 }
示例#2
0
 public BitFlyerClient(string apiKey, string apiSecret, BitFlyerClientConfig config = null)
 {
     if (config != null)
     {
         Config = config;
     }
     ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
     _apiKey             = apiKey;
     _hmac               = new HMACSHA256(Encoding.UTF8.GetBytes(apiSecret));
     _client             = new HttpClient();
     _client.BaseAddress = new Uri(_baseUri);
 }