UNPKG

@gitchrisqueen/tdameritrade-api-js-client

Version:
25 lines (21 loc) 747 B
'use strict'; var utils = require('../utils/writer.js'); var Instruments = require('../service/InstrumentsService'); module.exports.instrumentsCusipGET = function instrumentsCusipGET (req, res, next, cusip, apikey) { Instruments.instrumentsCusipGET(cusip, apikey) .then(function (response) { utils.writeJson(res, response); }) .catch(function (response) { utils.writeJson(res, response); }); }; module.exports.instrumentsGET = function instrumentsGET (req, res, next, symbol, projection, apikey) { Instruments.instrumentsGET(symbol, projection, apikey) .then(function (response) { utils.writeJson(res, response); }) .catch(function (response) { utils.writeJson(res, response); }); };