开云体育

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

AW: twsapi: Re: order IDs


 

开云体育

That is the reason why I do not use reqOpenOrders or reqExecutions.
?
I just request the portfolio/account data and check if "my accounting" gives the same numbers as the values that I get from TWS.
I found a problem with reqAccountData: If you request it several times, it doesn?t work anymore.
?
I did not use the permID, I have near to no problems with the OrderID that?I provide when I post an order since I use the NextValidID that I get when I connect to TWS. I store that ID and increase it every time I place an order.

-----Ursprüngliche Nachricht-----
Von: kxlin99 [mailto:klin@...]
Gesendet: Sunday, June 30, 2002 10:31 AM
An: twsapi@...
Betreff: twsapi: Re: order IDs

Hi Marcus -

Have you ever tried reqopenorders and openorder1/openorder2? It seems
to me they behave strangely.

1. openorder1/openorder2 only fire once after reconnect
2. only one open order id is returned no matter how many open orders
you have
3. open order id changed upon reqopenorders called

Do you know what the permID for ? Thanks