Exemple #1
0
        static void Main(string[] args)
        {
            var api      = new ExchangeRates("INSERT API ACCESS KEY", false);
            var response = api.GetExchangeRatesByDateAsync(new DateTime(1999, 01, 04)).Result;

            Console.WriteLine($"Base: {response.Base}");
            Console.WriteLine($"Date: {response.Date}");
            Console.WriteLine("Rates:");
            Console.WriteLine(string.Join(Environment.NewLine, response.Rates.Select(x => $"Currency: {x.Key} Rate: {x.Value}")));
            Console.ReadKey();
        }