コード例 #1
0
 public async Task <MarketChartByContract> GetMarketChartByContract(string id,
                                                                    string contractAddress, string vsCurrency, string days)
 {
     return(await GetAsync <MarketChartByContract>(QueryStringService.AppendQueryString(
                                                       ContractApiEndPoints.MarketChartByContractAddress(id, contractAddress), new Dictionary <string, object>
     {
         { "vs_currency", vsCurrency },
         { "days", days }
     }
                                                       )));
 }
コード例 #2
0
 public async Task <MarketChartRangeByContract> GetMarketChartRangeByContract(string id, string contractAddress, string vsCurrency, string @from, string to)
 {
     return(await GetAsync <MarketChartRangeByContract>(QueryStringService.AppendQueryString(
                                                            ContractApiEndPoints.MarketChartRangeByContractAddress(id, contractAddress), new Dictionary <string, object>
     {
         { "vs_currency", vsCurrency },
         { "from", from },
         { "to", to },
     }
                                                            )));
 }
コード例 #3
0
 public async Task <ContractData> GetContractData(string id, string contractAddress)
 {
     return(await GetAsync <ContractData>(QueryStringService.AppendQueryString(
                                              ContractApiEndPoints.ContractDetailAddress(id, contractAddress)))
            .ConfigureAwait(false));
 }