redi .net api performance (sending orders)

Options
newuser
newuser Contributor

I created 100 orders and difference between timestamp of first order and last order is 24 seconds.

When I send 500 stocks in the portfolio trader, it takes less than a second to send all.

what am i doing wrong? I am simply calling the following function 100 times with change in prices by penny.

public void SendOrder(string sym, string side, int quantity, double price, string exch, string acct)
{
ORDER hOrder = new ORDER();
Object err = null;
Object result;
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 = string.Format("RAPI{0}", c);
c++;
result = hOrder.Submit(err);
}


Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • Brian.Mullane1
    Answer ✓

    Hi

    Sending orders via Portfolio Trader and the API order entry are different. The latter sends orders one by one, which could take that long for 100 orders.

    We have a FIX API available, which is faster. I suggest reaching out to your account manager for more info to see if it would work with your workflow.

    Thanks,

    Brian

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.