Skip to content

Commit

Permalink
snapshot: remove warning and commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed May 26, 2017
1 parent b8bd06d commit 56eeec2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/quote.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ function transformDates(result) {
}

function quote(options, optionalHttpRequestOptions, cb) {
console.warn("[yahoo-finance] Warning, Yahoo completely changed their API " +
"recently. quote() replaces the deprecated snapshot(), but is brand " +
"new. Please report any issues. This notice will be removed in the " +
"next release.");

if (_.isString(options)) {
options = { symbol: options };
if (_.isArray(optionalHttpRequestOptions)) {
Expand All @@ -121,7 +116,6 @@ function quote(options, optionalHttpRequestOptions, cb) {
return Promise.map(symbols, function (symbol) {
var url = _constants.SNAPSHOT_URL.replace(/\$SYMBOL/, symbol);
return _utils.download(url, {
// f: options.fields.join('') TODO
formatted: 'false',
crumb: crumb,
modules: options.modules.join(','),
Expand All @@ -139,12 +133,6 @@ function quote(options, optionalHttpRequestOptions, cb) {

return result[0];
})
/*
.then(_utils.parseCSV)
.then(function (data) {
return _transformSnapshot(options.fields, symbols, data);
})
*/
.then(transformDates)
}, {concurrency: options.maxConcurrentSymbols || os.cpus().length})
.then(function (results) {
Expand Down

0 comments on commit 56eeec2

Please sign in to comment.