Exemple #1
0
        public static void GetTrades(TickTraderWebClient client)
        {
            // Account trades
            List <TTTrade> trades = client.GetAllTrades();

            foreach (var t in trades)
            {
                Console.WriteLine("{0} trade with type {1} by symbol {2}: {3}", t.Id, t.Type, t.Symbol, t.Amount);
            }

            if (trades.Count > 0)
            {
                TTTrade trade = client.GetTrade(trades[0].Id);
                Console.WriteLine("{0} trade with type {1} by symbol {2}: {3}", trade.Id, trade.Type, trade.Symbol, trade.Amount);
            }
        }