コード例 #1
0
        private static async Task DisplayInstruments()
        {
            var client      = new MarketApi("https://simplefx.com");
            var instruments = await client.UtilsInstrumentsJsonGetAsync();

            foreach (var response in instruments)
            {
                var instrument = response.Value;
                Console.WriteLine(
                    $"Instrument | key: {response.Key,6}  symbol: {instrument.Symbol,10}  quotes: {instrument.Quote.B}/{instrument.Quote.A} {instrument.PriceCurrency}");
            }

            Console.WriteLine();
        }