¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: What's the diff between reqOpenOrders and reqAllOpenOrders?


 

It's highly uncommon to say this with regards to TWS, but in this case RTFM :)

Method : reqOpenOrders()
Notes : Call this method to request the open orders that were placed from this client. Each open
order will be fed back through the openOrder1(), openOrder2(), openOrder3(), and orderStatus()
events.

NOTE: The client with a clientId of 0 will also receive the application-owned open orders. These
orders will be associated with the client and a new orderId will be generated. This association
will persist over multiple API and application sessions.

Method: reqAllOpenOrders()
Notes: Call this method to request the open orders that were placed from all clients and also from
the application. Each open order will be fed back through the openOrder1(), openOrder2(),
openOrder3(), and orderStatus() events.

NOTE: No association is made between the returned orders and the requesting client.

From

SSB


--- Jay Strauss <tws@...> wrote:

Hi,

This may seem obvious to some but, What's the diff between reqOpenOrders and
reqAllOpenOrders?

I've been testing by placing the order via the TWS only.

In my testing, both methods give back the same results. If I use clientId =
0, with either method call I get back "ALL" open orders. If I use clientId
<> 0 then I do NOT get back anything, since I have not placed any orders thru
the API with the same clientId

thanks
Jay

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

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