Example #1
0
        private static void RetrieveForexRates()
        {
            var forex = new Forex(token);
            var rates = forex.GetAllRates();

            // For async use this:
            // var rates = forex.GetAllRatesAsync();
            Console.WriteLine("Forex Rates.");
            Console.WriteLine();
            foreach (var rate in rates)
            {
                Console.WriteLine("Bank Buy: {0}, Bank Sell: {1}, FromTo: {2}{3}, Unit: {4}", rate.BankBuyingRateTT, rate.BankSellingRate, rate.FromCurrency, rate.ToCurrency, rate.Unit);
            }
        }