UNPKG

@gitchrisqueen/tdameritrade-api-js-client

Version:
15 lines (12 loc) 646 B
'use strict'; 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); }); };