Exemple #1
0
        public static void GetCurrencies(TickTraderWebClient client)
        {
            // Account currencies
            List <TTCurrency> currencies = client.GetAllCurrencies();

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

            TTCurrency currency = client.GetCurrency(currencies[0].Name).FirstOrDefault();

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