Example #1
0
 /// <summary>
 /// Get top coins by volume for the to currency. It returns volume24hto and total supply (where available).
 /// The number of coins you get is the minimum of the limit you set (default 50) and the total number of coins available.
 /// </summary>
 /// <param name="toSymbol">to symbol.</param>
 /// <param name="limit">(Optional) The limit.</param>
 /// <returns>
 /// An asynchronous result that yields a TopVolumesResponse.
 /// </returns>
 /// <seealso cref="M:CryptoCompare.ITopsClient.Volumes(string,int?)"/>
 public async Task <TopVolumesResponse> ByPairVolumeAsync([NotNull] string toSymbol, int?limit = null)
 {
     Check.NotNullOrWhiteSpace(toSymbol, nameof(toSymbol));
     return(await this.GetAsync <TopVolumesResponse>(ApiUrls.TopByPairVolume(toSymbol, limit)).ConfigureAwait(false));
 }
Example #2
0
 /// <summary>
 /// Get top exchanges by volume for a currency pair plus the full CCCAGG data. The number of
 /// exchanges you get is the minimum of the limit you set (default 5) and the total number of
 /// exchanges available.
 /// </summary>
 /// <param name="fromSymbol">The cryptocurrency symbol of interest.</param>
 /// <param name="toSymbol">The currency symbol to convert into.</param>
 /// <param name="limit">(Optional)The number of data points to return.</param>
 /// <returns>
 /// The asynchronous result that yields a TopResponse.
 /// </returns>
 /// <seealso cref="M:CryptoCompare.ITopListClient.ExchangesFullDataByPairAsync(string,string,int?)"/>
 public async Task <TopExchangeFullResponse> ExchangesFullDataByPairAsync(string fromSymbol, string toSymbol, int?limit = null)
 {
     Check.NotNullOrWhiteSpace(toSymbol, nameof(toSymbol));
     return(await this.GetAsync <TopExchangeFullResponse>(ApiUrls.ExchangesFullDataByPair(fromSymbol, toSymbol, limit)).ConfigureAwait(false));
 }
Example #3
0
 /// <summary>
 /// Get top pairs by volume for a currency (always uses our aggregated data).
 /// The number of pairs you get is the minimum of the limit you set (default 5) and the total number of pairs available.
 /// </summary>
 /// <param name="fromSymbol">from symbol.</param>
 /// <param name="limit">(Optional) The limit.</param>
 /// <returns>
 /// An asynchronous result that yields a TopResponse.
 /// </returns>
 /// <seealso cref="M:CryptoCompare.ITopsClient.Pairs(string,int?)"/>
 public async Task <TopResponse> TradingPairsAsync([NotNull] string fromSymbol, int?limit = null)
 {
     Check.NotNullOrWhiteSpace(fromSymbol, nameof(fromSymbol));
     return(await this.GetAsync <TopResponse>(ApiUrls.TopOfTradingPairs(fromSymbol, limit)).ConfigureAwait(false));
 }