UNPKG

financialmodelingprep

Version:

This module is a node wrapper for the free [Financial Modeling Prep API](https://financialmodelingprep.com/developer/docs). This node application implements almost all aspects of the FMP API.

15 lines (10 loc) 336 B
'use strict' const { makeRequest, generateJson } = require('./utilities'); module.exports = (keywords, limit, exchange) => { let params = {}; params['query'] = keywords; params['limit'] = limit; if(exchange) params['exchange'] = exchange; return makeRequest('search', generateJson(undefined, params)) };