NexusFi: Find Your Edge


Home Menu

 





Requesting all available contracts via IB API


Discussion in Platforms and Indicators

Updated
      Top Posters
    1. looks_one DarkPoolTrading with 3 posts (0 thanks)
    2. looks_two Big Mike with 1 posts (1 thanks)
    3. looks_3 redratsal with 1 posts (1 thanks)
    4. looks_4 platon with 1 posts (1 thanks)
    1. trending_up 2,843 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Requesting all available contracts via IB API

  #1 (permalink)
 
DarkPoolTrading's Avatar
 DarkPoolTrading   is a Vendor
 
Posts: 1,036 since May 2012
Thanks Given: 1,244
Thanks Received: 1,326

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)

@yunakhan1 @dimkdimk @BrazilForever @Ian Lavoie @Harvard @sam028

Diversification is the only free lunch
Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
27 thanks
Tao te Trade: way of the WLD
24 thanks
Diary of a simple price action trader
20 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
9 thanks
  #2 (permalink)
 platon 
Sweden
 
Experience: Intermediate
Platform: Multiple
Trading: Multiple
Posts: 52 since Jun 2009
Thanks Given: 89
Thanks Received: 54

There is an active TWSAPI group on Yahoo . Try there.
https://www.yahoo.com/

Reply With Quote
Thanked by:
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,207
Thanks Received: 101,599


I've never tried, I use IQFeed for that.

You can try emailing Josh Ulrich, he wrote the iBroker module for R: [email protected]

I would also email IB directly.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090

You can use this Web search and create your own csv
IB [AUTOLINK]Contract[/AUTOLINK] Information Center

Use the advanced tab to filter

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #5 (permalink)
 
DarkPoolTrading's Avatar
 DarkPoolTrading   is a Vendor
 
Posts: 1,036 since May 2012
Thanks Given: 1,244
Thanks Received: 1,326


Big Mike View Post
I've never tried, I use IQFeed for that.

You can try emailing Josh Ulrich, he wrote the iBroker module for R: [email protected]

I would also email IB directly.

Mike

Thanks Mike,

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 again, ill look into the R option.

Diversification is the only free lunch
Follow me on Twitter Started this thread Reply With Quote
  #6 (permalink)
 
DarkPoolTrading's Avatar
 DarkPoolTrading   is a Vendor
 
Posts: 1,036 since May 2012
Thanks Given: 1,244
Thanks Received: 1,326


redratsal View Post
You can use this Web search and create your own csv
IB [AUTOLINK]Contract[/AUTOLINK] Information Center

Use the advanced tab to filter

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.

Diversification is the only free lunch
Follow me on Twitter Started this thread Reply With Quote




Last Updated on August 1, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts