REDI API Setting ClientData

newuser
newuser Contributor

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();


Tagged:

Best Answer

Answers

  • newuser
    newuser Contributor

    Yes I am having the exact same issue. I thought maybe I can set clientdata field to group orders together and cancel them.

  • Hello,

    We've confirmed that the ability to cancel orders by ClientData supports only one order at a time. We need to make some code changes to support more than one order.

    Can you please speak with your account manager to raise an enhancement request?

    Thanks,

    Brian