¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date
Little tool for option chain contract creation
Hi, I have created a little library which can scrape option chains in a (hopefully) easy manner. The topic is discussed here /g/twsapi/message/46566
By juxeiier <juxeiier@...> · #46762 ·
Order cancelation reason
How do I distinguish order rejection at the very beginning (like margin) from order cancellation, say, on time expired for GTD orders? I get order status update event and it has status
By Alex Gorbachev · #46761 ·
Re: How to create a performance efficient trading app so each sub process runs smoothly in Python?
I love Python but it has its own place and it's not good for real-time-ish parallel compute. You can hack around things but in the end it won't be crazy. You can consider Go and node.js from
By Alex Gorbachev · #46760 ·
Re: Request for options contracts per expirtation date
I'm not a fan of TWS API design at all (to say the least). But at this point it has so much history and dependencies that it is not feasible to improve it dramatically in an evolutionary manner. You
By Alex Gorbachev · #46759 ·
Re: How to get all VALID options
I do get valid chains in this way: chains = ib.reqSecDefOptParams(contract.symbol, '', contract.secType, contract.conId) then I just get the one for exchange SMART. Then for expiration date I need, I
By Alex Gorbachev · #46758 ·
STK/STK Combo Order with Python
Has anyone written a working Python code for sending orders on an STK / STK combo?
By ugo.castagnola@... · #46757 ·
Re: Anyone upgraded Java version for TWS on Linux?
Thanks Hunter, very helpful. I did some digging around in that directory as you suggested and found some differences between various files. I copied a few files over from the IB JVM directory to the
By John · #46756 ·
Option settlement price AM/PM
When a stock closes for trading at the end of business on expiration Friday, the last trade determines the options settlement price (PM settlement). That is not true for those European-style options
By Francois G · #46755 ·
Re: How to get all VALID options
I probably will not need all call and put contracts, but at least say 2SD strikes prices away from current underlying prices. Then I scan all chains for all symbols, for example to see if there is a
By juxeiier <juxeiier@...> · #46754 ·
Re: How to get all VALID options
2hours just for 3 symbols!! Do you need them all? (and you probably do something wrong, should be way faster with reqSecDefOptParams). Wanted to speed up option chain on UI - so no point on download
By Matthias Frener <matthias.frener@...> · #46753 ·
Re: How to get all VALID options
Hi Matthias, thx for help. You really cache the contracts locally? If I get all contracts for all chains for 120days from today, that takes 2hours just for 3 symbols!! That is the reason I implemented
By juxeiier <juxeiier@...> · #46752 ·
Re: Getting last Expired Option Price
I actually the closing the pricing of the current trading day. Maybe we have different use-cases, but I only need expired option prices for the daily settlement. So I use last price just after markte
By Matthias Frener <matthias.frener@...> · #46751 ·
Re: How to get all VALID options
there when markets are closed? You probably have to switch to frozen market-data type. You will only see live-greeks while market is open, otherwise there is no bid/ask and difficult to calculate it.
By Matthias Frener <matthias.frener@...> · #46750 ·
Re: Request for options contracts per expirtation date
Hi Francois, thx for the links. All of this leaves me really speachless about the quality of the IB API. I am a professional software developer since >30years, but a function like reqSecDefOptParams
By juxeiier <juxeiier@...> · #46749 ·
Re: How to get all VALID options
This is really unbelievable. The quality of this API is really low, which is especially evident in this problem. I have now implemented something with Yahoo finance, which gives me the *valid* option
By juxeiier <juxeiier@...> · #46748 ·
Re: Getting last Expired Option Price
Hi Mattias & Alexandre, To get the underlying closing price, do you use reqHistoricalData for the expiration date? Using Regular Trading Hours (RTH) = 1 or 0 ? The closing price of the underlying for
By Francois G · #46747 ·
Re: Request for options contracts per expirtation date
Hi! well, again and again the same pain in the... Api about reqSecDefOptParams /g/twsapi/message/46566 /g/twsapi/message/42241 Welcome to the party!
By Francois G · #46746 ·
Re: Anyone upgraded Java version for TWS on Linux?
Hi, I believe TWS comes with its own Java built into the installer.? I'm pretty sure I use that one.? TWS has never been the best written app but if you stick with stable its OK.? I believe there
By Hunter C Payne · #46745 ·
Re: Anyone upgraded Java version for TWS on Linux?
No such luck for me - I let that error dialog sit and nothing happens; just sits there forever (rest of TWS will not start up). I'd like to run TWS on my local Linux laptop, so hopefully someone else
By John · #46744 ·
Re: Anyone upgraded Java version for TWS on Linux?
On latest Fedora Linux and I'm getting the exact same error as of today as well. TWS ultimately starts up fine however. I assume just not on the latest update :). With regard to performance, I've
By Ray Racine · #46743 ·