Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Does anyone know if it is possible to get a list of all available contracts via the IB API based on certain search criteria?
To get the contract details for a single contract, you would use reqContractDetails(reqId, contract) with the relevant contract that you are interested in. That will return the contract details for the one instrument that was specified. However what if I want a list of all available stocks on a certain exchange. Or what if I wanted all available cfd's on a certain exchange, etc.
I would have thought I could use the same reqContractDetails method and simply leave out the symbol name,...thereby requesting all symbols. But that doesn't work.
Surely you don't have to already know all of the symbols on a certain exchange? There must be a way to request a list via the api?
If that is not possible, is it possible to do a search like this from within TWS and then export the results to csv? eg: all available cfd's.
Mike, if im not mistaken you use the API. Do you know if this is possible? @Big Mike
Or anyone know how to do this from within TWS and export a csv? (all I need are the symbol names)
I have been a happy IQFeed customer for about 2 weeks now and am updating my db from them. That part all works well. Unfortunately because I predominantly trade cfd's and IB currently only offers +-1800 cfds, I need a way to be kept up to date with which cfd's they offer, and what the corresponding underlying symbol is (from iqfeed).
Thanks, ill look into the iBroker module for R.
Unfortunately I have already contacted IB directly via support email and they are beyond useless. Perhaps they are so useless because im still a prospective client, getting most of my development and integration sorted out with their demo before opening a live account. I just need to get to a point where I know what I want to do is possible, then I will open an account with them.
Their answers to me are vague, uninformed and completely missing the point of what I am actually asking. Either i've unluckily kept getting responses from someone who has only worked there for a week and doesn't know anything, or they think that because I haven't opened an account with them yet, I don't deserve to be answered with the correct details.
I truly hope their service is better for actual customers.
Thanks, im familiar with the search option. After further digging around and asking elsewhere online it seems like this is going to be my only option. Far from ideal!
I'll look into the R option suggested by Mike. But failing that, it looks like I have to manually create csv files every couple days from their website and see if any additions/changes etc have been made. Such a waste of time and completely reliant on them keeping their website constantly up to date.