public static void GetAssets(TickTraderWebClient client) { // Account assets TTAccount account = client.GetAccount(); if (account.AccountingType == TTAccountingTypes.Cash) { List <TTAsset> assets = client.GetAllAssets(); foreach (var a in assets) { Console.WriteLine("{0} asset: {1}", a.Currency, a.Amount); } } }