@gitchrisqueen/tdameritrade-api-js-client
Version:
TD Ameritrade API integration for node.js
15 lines (12 loc) • 646 B
JavaScript
;
var utils = require('../utils/writer.js');
var PriceHistory = require('../service/PriceHistoryService');
module.exports.marketdataSymbolPricehistoryGET = function marketdataSymbolPricehistoryGET (req, res, next, symbol, apikey, periodType, period, frequencyType, frequency, endDate, startDate, needExtendedHoursData) {
PriceHistory.marketdataSymbolPricehistoryGET(symbol, apikey, periodType, period, frequencyType, frequency, endDate, startDate, needExtendedHoursData)
.then(function (response) {
utils.writeJson(res, response);
})
.catch(function (response) {
utils.writeJson(res, response);
});
};