I have a trouble setting ClientData which I'd like to use for cancelling orders.
When I create an order, I do see "ClientData" field set on
CacheControlActions.Add/Update events. However, the following call does not cancel the order.
theApp.CancelOrder(clientdata,ref err);
Additionally when I restart the app this "ClientData" field in the
CacheControlActions.Snapshot shows an empty string.
-----------------------------------------
hOrder.Side = side;
hOrder.Symbol = sym;
hOrder.Quantity = quantity>1000.0? quantity=1: quantity;
hOrder.PriceType = "Limit";
hOrder.Price = price;
hOrder.Exchange = exch;
hOrder.TIF = "Day";
hOrder.Ticket = "Bypass";
hOrder.Account = acct;
hOrder.ClientData = "RAPI";
result = hOrder.Submit(err);
-------------------------------------
ClientData = GetCell(rediCache, row, "ClientData", out errCode).ToString().TrimStart();