¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

reqHistoricalData - Stock Tickers


 

Do we have to use our own stock lists to pass to?reqHistoricalData? OR would TWS API provide interface to insert all the stocks from an exchange?

For example, I would like to get Historical Data? for all NASDAQ stocks with the help from?reqHistoricalData function.

Currently I am including all the symbols from my NASDAQ symbol list.? However I would prefer to use directly from interfaces, so that I wont miss any symbols.

Please suggest.?


 

We had this question not long ago and if I'm right there are no lists for all stocks from a respective exchange. You might try using the market scanner to scan for stocks with certain properties.

Then there are lists on IB's website with all tradable stocks and you can copy/paste those lists to a spreadsheet and read this into your programming environment (this is what I'm going).


 

Thank you. I explored Market scanner, however it limits up to only 50 stocks.?

Could you please share the IB's website reference with all tradable stock, I shall copy paste and read attempt to read at my programming environment.

I am currently taking from?ftp://ftp.nasdaqtrader.com/symboldirectory, however there are more ambiguous entries.

??

On Sun, 9 Feb 2020 at 08:48, Despair <boris@...> wrote:
We had this question not long ago and if I'm right there are no lists for all stocks from a respective exchange. You might try using the market scanner to scan for stocks with certain properties.

Then there are lists on IB's website with all tradable stocks and you can copy/paste those lists to a spreadsheet and read this into your programming environment (this is what I'm going).



--
Cheers,
Robinson ?


 

Here you go:

https://www.interactivebrokers.com/en/index.php?f=1563


 

Thanks, just the downside is that it takes almost 3 hours to just run NASDAQ stocks with?reqHistoricalData

I require for different time frames such as monthly, weekly and daily time frames. The hours would add up if I add NYSE and LSE on top.

IB should come up with some innovative interface to overcome?this limitation.


?


On Sun, 9 Feb 2020 at 12:19, Despair <boris@...> wrote:
Here you go:



--
Cheers,
Robinson ?


 

Robinson: would you mind pasting the code you use to download monthly historical data using reqHistoricalData? The smaller the amount of code to read basic data, the better. I was thinking about using IB (vs. Yahoo finance) but your answer re: the time to download is discouraging - so I don't want to reinvent the wheel in case this turns out to be useless. Thanks.


Nick
 

¿ªÔÆÌåÓý

IB is a broker and supplies data for 'typical' retail use. If you have needs beyond what IB provides then you'll have to find a dedicated data provider that has what you need.


On 2/9/2020 8:02 AM, Robbo wrote:

Thanks, just the downside is that it takes almost 3 hours to just run NASDAQ stocks with?reqHistoricalData

I require for different time frames such as monthly, weekly and daily time frames. The hours would add up if I add NYSE and LSE on top.

IB should come up with some innovative interface to overcome?this limitation.


?

On Sun, 9 Feb 2020 at 12:19, Despair <boris@...> wrote:
Here you go:



--
Cheers,
Robinson ?


 

It is not worth using IB for historical data for a large number of symbols if you want to do backtesting analysis, unless you are trying to use some unusual international exchanges where the historical data is not easily available. It's much easier to buy US equities data from a historical data provider.?


 

Thanks Adam. Could you please suggest a historical?data provider??

Yes I agree, I am facing lots of issues if I wish to develop?a strategy with the help from reqHistoricalData.

I require close, open and low prices for NASDAQ, NYSE and LSE stocks, so that I can compute and screen

On Sun, 9 Feb 2020 at 15:55, Adam <arahbee@...> wrote:
It is not worth using IB for historical data for a large number of symbols if you want to do backtesting analysis, unless you are trying to use some unusual international exchanges where the historical data is not easily available. It's much easier to buy US equities data from a historical data provider.?



--
Cheers,
Robinson ?


 

I am still trying to get some sense from this? reqHistoricalData. Sure I shall as soon as I have some sensible data getting populated using IB. At this stage I do not recommend IB. I do not know about Yahoo Finance. need to explore.?


On Sun, 9 Feb 2020 at 14:15, Rational-IM <ds@...> wrote:
Robinson: would you mind pasting the code you use to download monthly historical data using reqHistoricalData? The smaller the amount of code to read basic data, the better. I was thinking about using IB (vs. Yahoo finance) but your answer re: the time to download is discouraging - so I don't want to reinvent the wheel in case this turns out to be useless. Thanks.



--
Cheers,
Robinson ?


Nick
 

¿ªÔÆÌåÓý

To be clear, reqHistoricalData works - within the context of what data IB provides. It may be that you need more data than IB provides or need it faster, but to make a blanket statement that IB's historical doesn't work just is not the case.


On 2/9/2020 3:42 PM, Robbo wrote:

I am still trying to get some sense from this? reqHistoricalData. Sure I shall as soon as I have some sensible data getting populated using IB. At this stage I do not recommend IB. I do not know about Yahoo Finance. need to explore.?

On Sun, 9 Feb 2020 at 14:15, Rational-IM <ds@...> wrote:
Robinson: would you mind pasting the code you use to download monthly historical data using reqHistoricalData? The smaller the amount of code to read basic data, the better. I was thinking about using IB (vs. Yahoo finance) but your answer re: the time to download is discouraging - so I don't want to reinvent the wheel in case this turns out to be useless. Thanks.


--
Cheers,
Robinson ?


Jacky
 

I take over 1k end of day quotes from yahoo. There is a yahoo finance library/api that can be used from .net.


Sent from ProtonMail mobile



-------- Original Message --------
On Feb 9, 2020, 9:41 PM, Robbo < hairobinson@...> wrote:

I am still trying to get some sense from this? reqHistoricalData. Sure I shall as soon as I have some sensible data getting populated using IB. At this stage I do not recommend IB. I do not know about Yahoo Finance. need to explore.?

On Sun, 9 Feb 2020 at 14:15, Rational-IM <ds@...> wrote:
Robinson: would you mind pasting the code you use to download monthly historical data using reqHistoricalData? The smaller the amount of code to read basic data, the better. I was thinking about using IB (vs. Yahoo finance) but your answer re: the time to download is discouraging - so I don't want to reinvent the wheel in case this turns out to be useless. Thanks.



--
Cheers,
Robinson ?


 

I'm also using Yahoo for quotes from the US and from Japan. For the LSE I have bad experience with Yahoos data and I use IB's instead.


 

You might also look at these providers:




 

If IB meets your needs, then that's great, but in addition to the other suggestions you could try IQFeed.?