Closed krouskop closed 9 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]
@krouskop APPL -> AAPL
This code, basically lifted from the project homepage:
results in the output: