Пример #1
0
 public async Task <TickerById> GetTickerByCoinIdAsync(string id, int?page)
 {
     return(await GetAsync <TickerById>(CoinGeckoQueryStringService.AppendQueryString(
                                            CoinsApiEndPoints.TickerByCoinId(id), new Dictionary <string, object>
     {
         { "page", page }
     })));
 }
Пример #2
0
 public async Task <CoinFullData> GetHistoryByCoinIdAsync(string id, string date, string localization)
 {
     return(await GetAsync <CoinFullData>(CoinGeckoQueryStringService.AppendQueryString(
                                              CoinsApiEndPoints.HistoryByCoinId(id), new Dictionary <string, object>
     {
         { "date", date },
         { "localization", localization }
     })));
 }
Пример #3
0
 public async Task <MarketChartById> GetMarketChartsByCoinIdAsync(string id, string[] vsCurrency, string days)
 {
     return(await GetAsync <MarketChartById>(CoinGeckoQueryStringService.AppendQueryString(
                                                 CoinsApiEndPoints.MarketChartByCoinId(id), new Dictionary <string, object>
     {
         { "vs_currency", string.Join(",", vsCurrency) },
         { "days", days }
     })));
 }
Пример #4
0
 public async Task <List <CoinMarkets> > GetCoinMarketsAsync(string vsCurrency, string[] ids, string order, int?perPage, int?page, bool sparkline)
 {
     return(await GetAsync <List <CoinMarkets> >(CoinGeckoQueryStringService.AppendQueryString(CoinsApiEndPoints.CoinMarkets, new Dictionary <string, object>
     {
         { "vs_currency", vsCurrency },
         { "ids", string.Join(",", ids) },
         { "per_page", perPage },
         { "page", page },
         { "sparkline", sparkline }
     })));
 }
Пример #5
0
 public async Task <IReadOnlyList <CoinFullData> > GetAllCoinsDataAsync(string order, int?perPage, int?page, string localization = "brl", bool?sparkline = null)
 {
     return(await GetAsync <List <CoinFullData> >(CoinGeckoQueryStringService.AppendQueryString(
                                                      CoinsApiEndPoints.Coins, new Dictionary <string, object>
     {
         { "order", order },
         { "per_page", perPage },
         { "page", page },
         { "localization", "brl" },
         { "sparkline", sparkline }
     })));
 }
Пример #6
0
 public async Task <CoinFullDataById> GetAllCoinDataWithIdAsync(string id, string localization, bool tickers,
                                                                bool marketData, bool communityData, bool developerData, bool sparkline)
 {
     return(await GetAsync <CoinFullDataById>(CoinGeckoQueryStringService.AppendQueryString(
                                                  CoinsApiEndPoints.AllDataByCoinId(id), new Dictionary <string, object>
     {
         { "localization", localization },
         { "tickers", tickers },
         { "market_data", marketData },
         { "community_data", communityData },
         { "developer_data", developerData },
         { "sparkline", sparkline }
     })));
 }
Пример #7
0
 public async Task <IReadOnlyList <CoinList> > GetCoinListAsync()
 {
     return(await GetAsync <IReadOnlyList <CoinList> >(CoinGeckoQueryStringService.AppendQueryString(CoinsApiEndPoints.CoinList)));
 }