¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date
Re: Fractional shares rounding issue
Yes, that's the api log but unfortunately IB isn't showing the fields from the initial connection which is where the version numbers are. I couldn't remember if they were included or not but figured
By Nick <news1000@...> · #48341 ·
Get and close all positions at a specific time
Hi, I want to retrieve all open positions for a contract and then close them if the time is close to market closure (like 3:45 pm). Is there a way to do that in tws python api?
By movais996@... · #48340 ·
Active OCA Groups
All, I update my orders frequently and want to prevent updating if any executions have occured on the oca group for that order.? Is there a way to request all oca groups that have had an execution
By Mike · #48339 ·
Re: Fractional shares rounding issue
Just so we're on the same page, I believe you are talking about this API log right: https://interactivebrokers.github.io/tws-api/support.html#log_files
By hieuimba@... · #48338 ·
Re: Fractional shares rounding issue
I haven't looked at the api logs in a while. If the logs include the connect processing (ie the very first things the client sends to tws) then the version numbers will be in there. Assuming it's the
By Nick <news1000@...> · #48337 ·
Re: Fractional shares rounding issue
Welp that explains it. I might have to go ask the guys at ib_insync on how to track down MinClientVersion and MaxClientVersion However, the ibapi package probably came with the library because I
By hieuimba@... · #48336 ·
Re: Fractional shares rounding issue
client.serverVersion() refers to TWS and a value of 163 makes sense since you run a 10.10 TWS, The constants MinClientVersion and MaxClientVersion define your client's capabilities. Just curious, but
By J¨¹rgen Reinold · #48335 ·
Re: Support and Resistance of a stock
This is awesome thanks
By Colin B Maharaj · #48334 ·
Re: Fractional shares rounding issue
Okay I was able to go into ib_insync ib.py and look at the client object Seems like client.serverVersion() is actually 163, no luck there Also I was trading stocks if that helps I should mention that
By hieuimba@... · #48333 ·
Re: Fractional shares rounding issue
Correct. As a matter of practice, we do record client min/max and server protocol levels in our session logs upon successful connects. Has saved us a lot of debug time over the years/
By J¨¹rgen Reinold · #48332 ·
Re: Fractional shares rounding issue
I would also note that IB often allows TWS to accept quite old api versions. So a recent TWS version is not an indicator that a recent api version is being used.
By Nick <news1000@...> · #48331 ·
Re: Fractional shares rounding issue
Which instrument are you trading? I can't tell you how to find the client and server versions with ib_insync, but there is probably a way. During connect(), TWS API client indicate the [min, max]
By J¨¹rgen Reinold · #48330 ·
Re: Fractional shares rounding issue
Thanks for the pointers guys, I looked at the API logging file and it looks like TWS is indeed sending rounded values More specifically these values: - Order quantity (open and closed) - Position
By hieuimba@... · #48329 ·
Re: Support and Resistance of a stock
The available market data is described in the Streaming Market Data ( https://interactivebrokers.github.io/tws-api/market_data.html ) section of the IBKR TWS API Reference Guide (
By J¨¹rgen Reinold · #48328 ·
Re: Adding multiple Exchanges to a scanner
Ok, I created a tool to parse the XML GetScannerParameters results and got this..
By Colin B Maharaj · #48327 ·
Support and Resistance of a stock
Is it possible to either 1. Get via an API call, the current support and resistance of a stock or 2. Calculate if it is not available.
By Colin B Maharaj · #48326 ·
Re: Fractional shares rounding issue
Can you be a little more specific about a couple aspects of your issue? * Which instruments that support fractional quantities are you looking at? * Which quantities are being returned as rounded
By J¨¹rgen Reinold · #48325 ·
Re: Fractional shares rounding issue
I don't know if it's due to a setting but if you enable api logging you can see what TWS sent and verify if it's a TWS issue or something on the client side.
By Nick <news1000@...> · #48324 ·
Fractional shares rounding issue
I'm having trouble getting data from TWS where the quantity amount is being returned as rounded numbers instead of their correct fractional shares value. This happened with all positions and orders
By hieuimba@... · #48323 ·
Re: Scanning with IABSocketAPI in C++ Builder
wow, ok, I got it working.
By Colin B Maharaj · #48322 ·