コード例 #1
0
        public static void GetPublicCurrencies(TickTraderWebClient client)
        {
            // Public currencies
            List <TTCurrency> publicCurrencies = client.GetPublicAllCurrencies();

            foreach (var c in publicCurrencies)
            {
                Console.WriteLine("Currency: " + c.Name);
            }

            TTCurrency publicCurrency = client.GetPublicCurrency(publicCurrencies[0].Name).FirstOrDefault();

            if (publicCurrency != null)
            {
                Console.WriteLine("{0} currency precision: {1}", publicCurrency.Name, publicCurrency.Precision);
            }
        }