Re: Python TWS API
Found the problem. I tried to do a print(conn.connect()) after making the connection. That 'opened' two connections and only one .disconnect() calls.
By
cnimativ
·
#34606
·
|
Re: orderStatus for orders modified in TWS
Apology if I misinterpreted that sentence.
By
fantasy football
·
#34605
·
|
Re: orderStatus for orders modified in TWS
Ok, thanks. I never investigated this but tossed it in the hat since the OP is still looking for info.
By
Nick <news1000@...>
·
#34604
·
|
Re: orderStatus for orders modified in TWS
Show me the manual reference for your statement. What I see in the manual is * *Master API client ID*- The API client with the specified client ID will receive all orders, even those placed by other
By
Nick <news1000@...>
·
#34603
·
|
Re: orderStatus for orders modified in TWS
The order was initially placed as a LMT order via the API, but was subsequently amended to a MKT order via TWS. Modifications in TWS to orders placed via the API are always notified to the API via the
By
Richard L King
·
#34602
·
|
Re: orderStatus for orders modified in TWS
Per the manual, this won't work. The ClientID = 0 is reserved for TWS itself. And choosing a ClientID to receive all API trades is said to not receive those from TWS.
By
fantasy football
·
#34601
·
|
Re: Python TWS API
Richard, I ran into another problem: the connection doesn't get dropped. Server Response: error, <error id=-1, errorCode=326, errorMsg=Unable connect as the client id is already in use. Retry with a
By
cnimativ
·
#34600
·
|
Re: orderStatus for orders modified in TWS
You might look into using client id of 0. I don't know if this applies to your situation but normally a client id of 0 is required to be notified of orders entered in TWS.
By
Nick <news1000@...>
·
#34599
·
|
Re: Python TWS API
Correct, but it didn't work for me for some reason. Had to restart my TWS for my paper trading acct to make it work. http://i.imgur.com/QvkPBNq.png http://i.imgur.com/QvkPBNq.png
By
cnimativ
·
#34598
·
|
Re: orderStatus for orders modified in TWS
Well, I¡¯ve just tried this myself with the paper-trading system and I don¡¯t get the same result ¨C and I wouldn¡¯t expect to. I¡¯ve never seen a missed order status in 12+years of using the
By
Richard L King
·
#34597
·
|
Re: Download page for IB Gateway...
As explained to me by support we now have an "improved" way of downloading the Gateway via the IB logon screen, and selecting IB Gateway. As explained by Ben's earlier post on Linux this downloads a
By
couldvot <no_reply@...>
·
#34596
·
|
Re: Python TWS API
That¡¯s not quite true. When you change the API port in TWS¡¯s global configuration dialog, it pops up a message box asking if you want to apply the new setting immediately. (But maybe you¡¯re
By
Richard L King
·
#34595
·
|
Re: Python TWS API
I was stuck on the same problem for a few hours, and finally figured out that I was using the wrong port address. Also, it takes restarting of TWS to change ports.
By
cnimativ
·
#34594
·
|
Re: orderStatus for orders modified in TWS
I actually cancels myself when amending an order via the API and haven't run into an issue....yet but do understand the race condition and actually leave a small pause in-between (not doing HFT here
By
kimbleyoung@...
·
#34593
·
|
Re: Tips for fastest performance with IBG?
TWSAPI@...> wrote: I should clarify there are still hundreds of JVM garbage collector parameters you can tune. The permanent generation removal has been offset by the introduction of the
By
Ben Alex <ben.alex@...>
·
#34592
·
|
Re: Tips for fastest performance with IBG?
I have seen this suggested by several different people but I have always been skeptical. If I submit an order at 9am that passes margin checks and then proceed to loose 90% of my account by noon, I
By
Nick <news1000@...>
·
#34591
·
|
Re: Tips for fastest performance with IBG?
Ben, this is great. I don't understand Java so I appreciate the "answer" that there isn't much that can be done since the source is closed and the traditional "command line" memory parameters are
By
fantasy football
·
#34590
·
|
Re: Tips for fastest performance with IBG?
What type of speed improvements are you looking for? When most people talk about speed and trading they are trying to achieve a specific latency outcome, ie completion of a given operation within a
By
Ben Alex <ben.alex@...>
·
#34589
·
|
Re: Download page for IB Gateway...
I'm on Linux so I can't be sure what the OSX installer does. However I assume they're similar. The following was tested with TWS release 954.2a. On Linux the Install4J-based installer mainly installs
By
Ben Alex <ben.alex@...>
·
#34588
·
|
Tips for fastest performance with IBG?
Are there any tips to eek out any speed improvements when implementing IB Gateway (IBG) for the access to IB. My OS is Win7 Pro. Using IB Controller to invoke IBG. I'm wondering about the Setting in
By
fantasy football
·
#34587
·
|