Error 110. The price does not conform to the minimum price variation for this contract
Hi J¨¹rgen, Yes, I run into that all the time.? I use Excel (aarggh!) and I think it's even worse. So I round at the very last step in an order right before I'm done.? I had to do this when trading
By
Lou Dudka
·
#48354
·
|
Multiple symbol request speed
Hello i new here i try get data for multiple symbol, about 580 +-, but it take allot time and not always finish this. this how i try make this. from ibapi.client import EClient from ibapi.wrapper
By
danndann4488@...
·
#48353
·
|
Re: Error 110. The price does not conform to the minimum price variation for this contract
Thank you, Lou. Glad we pointed you in the right direction. You won;t be able to "round yourself" out of the problem completely. Even double precision floating point math can be pretty tricky and
By
J¨¹rgen Reinold
·
#48352
·
|
Error 110. The price does not conform to the minimum price variation for this contract
Nick/J¨¹rgen, *You guys are good!* Sure as anything prices of 41.3999 and 44.3999 were sent! I'll have to check my code b/c I always round up/down to the correct amount before submitting an order,
By
Lou Dudka
·
#48351
·
|
Re: Error 110. The price does not conform to the minimum price variation for this contract
That was my first reaction as well. The Additional Notes for error 110 ( https://interactivebrokers.github.io/tws-api/message_codes.html ) say: J¨¹rgen
By
J¨¹rgen Reinold
·
#48350
·
|
Re: Error 110. The price does not conform to the minimum price variation for this contract
You can check the api log to see what was actually sent to IB. Depending on the language and how floating point numbers are converted to text their may be differences in rounding from what you show in
By
Nick <news1000@...>
·
#48349
·
|
Re: Get and close all positions at a specific time
Your approach will work most of the time, but things do go wrong and you exposure yourself to some degree of risk that your orders and positions do not get closed and will stay open past the end of
By
J¨¹rgen Reinold
·
#48348
·
|
Error 110. The price does not conform to the minimum price variation for this contract
Hi All, There is a topic on this subject from 2016.? It just doesn't seem to add up. I tried to place a bracket Sell Order for NIO thru the API.? This is the output from my logs: BKT Entry
By
Lou Dudka
·
#48347
·
|
Re: Get and close all positions at a specific time
Thanks Jurgen! I saw your approach and it's a really good one. However my use-case turned out to be really straight forward (cancel all api and tws orders and close all positions at 3:45). So I ended
By
movais996@...
·
#48346
·
|
Re: Fractional shares rounding issue
Just like in all API implementations, MinClientVersion and MaxClientVersion in ib_insync are constants. They are attributes of the client class and while I am not a Python practitioner, I am sure it
By
J¨¹rgen Reinold
·
#48345
·
|
Re: how to keep the python script running during the TWS auto-restart ?
Hi Lofi, Can you please share a code snippet of the solution that worked. I am facing a similar issue
By
movais996@...
·
#48344
·
|
Re: Get and close all positions at a specific time
You could have the exit orders in an OCA group and add one more to buy/sell at market with a "good after" time of 3:45.
By
Nick <news1000@...>
·
#48343
·
|
Re: Get and close all positions at a specific time
Take a look at the Receiving Currently Open Orders ( https://interactivebrokers.github.io/tws-api/open_orders.html ) of the API Reference Guide. When you place orders, you can also use Order
By
J¨¹rgen Reinold
·
#48342
·
|
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
·
|