Пример #1
0
        public ZchaClient(CurrencySymbol currency, IRestClientFactory restClientFactory) : base(currency, restClientFactory)
        {
            RESTClient = (RestClient)restClientFactory.CreateRESTClient(new Uri("https://api.zcha.in"));

            //When this client can't see the address it returns "null" with a status code of 404 so we just return a blank address instead
            //TODO: Check that this isn't just returning null for all ZEC addresses
            RESTClient.HttpStatusCodeFuncs.Add(HttpStatusCode.NotFound, data =>
            {
                //TODO: This is just a byte array. It needs to be converted to text and probably deserialized
                Logger.Log($"ZEC Blockchain Error: {data}", null, LogSection);
                return(new Address());
            });
        }
Пример #2
0
 public StellerClient(CurrencySymbol currency, IRestClientFactory restClientFactory) : base(currency, restClientFactory)
 {
     RESTClient = (RestClient)restClientFactory.CreateRESTClient(new Uri("https://horizon.stellar.org"));
 }
Пример #3
0
 public BittrexClient(string apiKey, string apiSecret, IRestClientFactory restClientFactory) : base(apiKey, apiSecret, restClientFactory)
 {
     RESTClient = (RestClient)restClientFactory.CreateRESTClient(new Uri("https://bittrex.com/"));
 }
 public BlockChairClient(CurrencySymbol currency, IRestClientFactory restClientFactory) : base(currency, restClientFactory)
 {
     RESTClient = (RestClient)restClientFactory.CreateRESTClient(new Uri($"https://api.blockchair.com"));
     Currency   = currency;
 }
 public BTCMarketsClient(string apiKey, string apiSecret, IRestClientFactory restClientFactory) : base(apiKey, apiSecret, restClientFactory)
 {
     RESTClient = restClientFactory.CreateRESTClient(new Uri("https://api.btcmarkets.net"));
 }
Пример #6
0
 public BlockscoutClient(CurrencySymbol currency, IRestClientFactory restClientFactory) : base(currency, restClientFactory)
 {
     RESTClient = (RestClient)restClientFactory.CreateRESTClient(new Uri("https://blockscout.com/etc/mainnet/api"));
 }
 public CardanoExplorerBase(CurrencySymbol currency, IRestClientFactory restClientFactory) : base(currency, restClientFactory)
 {
     RESTClient = (RestClient)restClientFactory.CreateRESTClient(BaseAddress);
 }
Пример #8
0
 public RippleClient(CurrencySymbol currency, IRestClientFactory restClientFactory) : base(currency, restClientFactory)
 {
     RESTClient = restClientFactory.CreateRESTClient(new Uri("https://data.ripple.com"));
 }
Пример #9
0
 public OtcgoClient(CurrencySymbol currency, IRestClientFactory restClientFactory) : base(currency, restClientFactory)
 {
     RESTClient = restClientFactory.CreateRESTClient(new Uri("https://otcgo.cn"));
 }
 public CryptopiaClient(string apiKey, string apiSecret, IRestClientFactory restClientFactory) : base(apiKey, apiSecret, restClientFactory)
 {
     RESTClient = restClientFactory.CreateRESTClient(new Uri("https://www.cryptopia.co.nz/api"));
 }
Пример #11
0
 public ChainSoClient(CurrencySymbol currency, IRestClientFactory restClientFactory) : base(currency, restClientFactory)
 {
     RESTClient = (RestClient)restClientFactory.CreateRESTClient(new Uri("https://chain.so"));
 }
 public BinanceClient(string apiKey, string apiSecret, IRestClientFactory restClientFactory) : base(apiKey, apiSecret, restClientFactory)
 {
     RESTClient = (RestClient)restClientFactory.CreateRESTClient(new Uri("https://api.binance.com"));
 }
 public IndependentReserveClient(string apiKey, string apiSecret, IRestClientFactory restClientFactory) : base(apiKey, apiSecret, restClientFactory)
 {
     RESTClient = restClientFactory.CreateRESTClient(new Uri("https://api.independentreserve.com"));
 }
Пример #14
0
 public BitfinexClient(string apiKey, string apiSecret, IRestClientFactory restClientFactory) : base(apiKey, apiSecret, restClientFactory)
 {
     RESTClient = restClientFactory.CreateRESTClient(new Uri("https://api.bitfinex.com"));
 }
Пример #15
0
 public CryptoCompareClient(IRestClientFactory restClientFactory) : base(restClientFactory)
 {
     RESTClient = restClientFactory.CreateRESTClient(new Uri("https://min-api.cryptocompare.com"));
 }
 public EthplorerClient(CurrencySymbol currency, IRestClientFactory restClientFactory) : base(currency, restClientFactory)
 {
     RESTClient = restClientFactory.CreateRESTClient(new Uri("https://api.ethplorer.io"));
 }
Пример #17
0
 protected SomeClientBase(CurrencySymbol currency, IRestClientFactory restClientFactory) : base(currency, restClientFactory)
 {
     RESTClient = restClientFactory.CreateRESTClient(new Uri(BaseUriPath));
     Currency   = currency;
 }
 public DogeChainClient(CurrencySymbol currency, IRestClientFactory restClientFactory) : base(currency, restClientFactory)
 {
     RESTClient = restClientFactory.CreateRESTClient(new Uri("https://dogechain.info"));
 }
 protected JSONRPCClientBase(CurrencySymbol currency, IRestClientFactory restClientFactory) : base(currency, restClientFactory)
 {
     RESTClient = (RestClient)restClientFactory.CreateRESTClient(BaseUriPath);
     Currency   = currency;
 }