pilwon / node-yahoo-finance

Yahoo Finance historical quotes and snapshot data downloader written in Node.js
491 stars 123 forks source link

Underlying HTTP API appears to have moved; Requests get 404'd #10

Closed krouskop closed 9 years ago

krouskop commented 10 years ago

This code, basically lifted from the project homepage:

var yahooFinance = require('yahoo-finance');

yahooFinance.historical({
  symbol: 'APPL',
  from: '2012-01-01',
  to: '2012-01-02'
}, function (err, quotes, url, symbol) {

    if (err) {
        console.log('ERROR');
        console.log(err);
    }
    else {
        console.log(
            JSON.stringify(
                quotes
            )
        );
    }

});

results in the output:

ERROR
[Error: Failed to download csv (code=404): http://ichart.finance.yahoo.com/table.csv?s=APPL&a=0&b=01&c=2012&d=0&e=02&f=2012&g=d&ignore=.csv]
pilwon commented 9 years ago

@krouskop APPL -> AAPL