public static void LimitOrder(TickTraderWebClient client) { // Create, modify and cancel limit order TTAccount account = client.GetAccount(); if ((account.AccountingType == TTAccountingTypes.Gross) || (account.AccountingType == TTAccountingTypes.Net)) { // Create limit order var limit = client.CreateTrade(new TTTradeCreate { Type = TTOrderTypes.Limit, Side = TTOrderSides.Buy, Symbol = (account.AccountingType == TTAccountingTypes.Gross) ? "EURUSD" : "EUR/USD", Amount = 10000, Price = 1.0M, Comment = "Buy limit from Web API sample" }); // Modify limit order limit = client.ModifyTrade(new TTTradeModify { Id = limit.Id, Comment = "Modified limit from Web API sample" }); // Cancel limit order client.CancelTrade(limit.Id); } }