Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Request for options contracts per expirtation date
Hi all,
I would like to request a feature and I don't know to whom to address this. The feature is about requesting all option contracts for specific expiration dates, or all contracts up to some date in the future. So, in pseudocode, I would like to have something like contractsList = ib.reqOptionContractsUntil(symbolId, 60days from today) The contractsList would then be filled with objects that hold all calls and puts contracts for a specific date(like the tabs in the options trader) up to 60days in the future. The current solution with reqSecDefOptParams is really hard to work with to achieve the same result. You first get the data and then you have to request if a specific combination of expiration/strike is even valid. If you have many symbols, for which you want these contracts, you would have thousands of slow requests towards the server for all possible combinations. This takes a very long time and is bad for the network. It would be so much simpler, if the IB server would directly give us back all valid contracts. What do you think? Is there an email address where I can forward this proposal to the developers? Thanks you very much for help, Juergen |
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! |
juxeiier
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?plays in the primary league of "worst design never". Not only does it return invalid data, but the concept inherently leads to massive server requests. So sad, and since this topic is years old, IB obviously does not care. Do they even have a valid email adress to their developers? |
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 probably know that being 30 years in software development. :) On your topic... I think I just replied how I get the chains in another thread using?reqSecDefOptParams as Francois suggested. On Tue, Mar 16, 2021 at 7:15 AM juxeiier <juxeiier@...> wrote: Hi Francois, |
to navigate to use esc to dismiss