Пример #1
0
 /// <summary>
 /// Finds exchange rate for specified coin pair.
 /// </summary>
 /// <param name="Ticker1">Ticker symbol for coin to exchange.</param>
 /// <param name="Ticker2">Ticker symbol for resulting coin.</param>
 /// <returns>Exchange rate.</returns>
 public static async Task <TradingRate> GetExchangeRateAsync(string Ticker1, string Ticker2) =>
 await TradingRate.GetRateAsync(Ticker1, Ticker2).ConfigureAwait(false);
Пример #2
0
 /// <summary>
 /// Finds exchange rate for specified coin pair.
 /// </summary>
 /// <param name="Pair">Coin pair to find rate for.</param>
 /// <returns>Exchange rate.</returns>
 public static async Task <TradingRate> GetExchangeRateAsync(string Pair) =>
 await TradingRate.GetRateAsync(Pair).ConfigureAwait(false);