public static void GetPositions(TickTraderWebClient client) { // Account positions TTAccount account = client.GetAccount(); if (account.AccountingType == TTAccountingTypes.Net) { List <TTPosition> positions = client.GetAllPositions(); foreach (var p in positions) { Console.WriteLine("{0} position: {1} {2}", p.Symbol, p.LongAmount, p.ShortAmount); } } }