Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Historical module stopped working #23

Open
nmarra opened this issue Mar 21, 2018 · 6 comments
Open

Historical module stopped working #23

nmarra opened this issue Mar 21, 2018 · 6 comments

Comments

@nmarra
Copy link

nmarra commented Mar 21, 2018

I've been using the google-finance module for historical queries for about a year now and yesterday (March 19th) it stopped working. It was working fine on Friday ( March 16th ). I get no errors just a bunch of empty values. My query looks like:
googleFinance.historical({ symbols: SYMBOLS, from: DATE, to: DATE, }, function (err, result) { // do something with result }
The result prints out all of the stock symbols I passed in with [] as the result. SYMBOLS is an array of stock symbols and DATE is a single date object in the past.

@tverskih
Copy link

Company News API returns empty array as well.

@thstarshine
Copy link

it seems like google just removed the api endpoint.

@tverskih
Copy link

@thstarshine nope, rss is fine but changed a bit so parser of google-finance throws an error. Still debugging to see what's the problem.

@kjohannessen
Copy link

kjohannessen commented Mar 30, 2018

Has anyone managed to get this to work again? I use it for getting historical prices .. did you find a solution @tverskih ?

@tverskih
Copy link

tverskih commented Mar 30, 2018

@kjohannessen google-finance uses feedparser library to parse rss. I've tested the latest version of feedparser with Google API and it does not work. So I just switched to yahoo finance API, using feedparser library only.

You can find en example of usage of feedparser on their page: https://github.com/danmactough/node-feedparser

I use news feed like that: http://finance.yahoo.com/rss/headline?s=%symbol

Probably you may find historical data on their API as well.

@kjohannessen
Copy link

@tverskih I have just switched back to the Yahoo Finance API as well .. luckily I have both sets of symbology in my security master .. thanks for the examples!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants