Hi I looked at the sample codes and manual and did not find the answer.
I used the code below but the orders is not canceled. It didn't throw any error codes though
OrderProfile p = new OrderProfile(k.Instrument, k.Instrument);
p.Action = OrderAction.Delete;
p.Account = k.Account;
m_ts.SendOrder(p);
Answer by trishmessina · Mar 30, 2020 at 02:59 PM
@fungkwekfahinsg It is because you are not creating the order profile from the existing order so there is no existing order referenced to cancel. Try order.GetOrderProfile() using the order you want to cancel.
Ask questions and share ideas about the TT® and X_TRADER® platforms.
First time here? See our Getting Started Guide and FAQs.
Get MarketData on a batch of Instruments 1 Answer
TT NET API wrong descriptions 1 Answer
How to get TradingStatus of instrument? 1 Answer
how to indentify which edge server is connected 0 Answers
Creating App Keys for another user 2 Answers
© 2017 Trading Technologies International, Inc. All rights reserved.
Powered by AnswerHub