开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Modify Order Without Transmit


marinindextrader
 

The place order call need not be called then.

When you are using the standard TWS, and you craft up an order on the
grid, that order is nothing more than an array in a memory slot
somewhere.

When you tag the transmit button it is then sent. Internally the TWS
has executed the place order call.

If what you want to do is emulate this behaviour, then create an 2
dimensional variant array in memory, and store your unsent but ready
to go orders. You can display this information however you see fit:
grids, labels etc...

Then like in TWS, you selected the displayed order and give it focus,
and then you send it with a transmit command.

Hope this helps

Scott


--- In twsapi@y..., "Bob Stevens" <rsteve42@b...> wrote:
I am trying to modify an order without transmitting it. However,
TWS
transmits the order on the update, even with the Transmit property
False. I
am using VB with the ActiveX control, and the TWS demo for
testing. Here is
the scenario:

o Call PlaceOrder to place a buy limit order, no transmit. This
works.
Let's say the order ID is 72.
o Call PlaceOrder again with the same order ID (72), changing the
limit
price, again with no transmit. The limit price is changed in TWS,
but TWS
transmits the order.

Any ideas?

Thanks

Join [email protected] to automatically receive all group messages.