silvrgit/lib/today/todayftse.js
2016-06-23 12:04:25 +01:00

31 lines
418 B
JavaScript

/**
*
* User: Martin Donnelly
* Date: 2016-06-23
* Time: 11:45
*
*/
var ftse = require('ftse');
module.exports = {
getFTSE: function() {
return new Promise(function(resolve, reject) {
"use strict";
var err = 0;
ftse('100', 10, 'risers', function(items) {
if (items === err) {
return reject(err);
}
return resolve(items);
});
});
}
};