npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

financial-modeling-prep-data-source

v1.4.0

Published

![CI](https://github.com/Skitionek/financial-modeling-prep-data-source/workflows/CI/badge.svg) ![Intergation test](https://github.com/Skitionek/financial-modeling-prep-data-source/workflows/Intergation%20test/badge.svg)

Downloads

36

Readme

financialModelingPrep

CI Intergation test

This is a simple wrapper around the financialModelingPrep API hosted on NPM. I have no affiliation with financialModelingPrep.

All contributions are welcome! This is an open source project under the MIT license, see LICENSE.md for additional information.

Installation

npm i financialModelingPrep

Usage

All available functions with this SDK have the same parameters as listed in the the financialModelingPrep API documentation, the functions names reflects endpoint path. For example https://financialmodelingprep.com/api/v3/company/profile/AAPL translates to fmp.company_profile('AAPL'). Futhermore, as just shown variables in path implemented as positional function arguments while search parameters (everything behind ?), can be passed in optional dictionary. Example - https://financialmodelingprep.com/api/v3/historical_price_full/AAPL?serietype=line can be requested by fmp.historical_price_full('AAPL',{serietype:'line'}).

All functions return promises with the response data.

const FinancialModelingPrep = require('financial-modeling-prep-data-source');

const fmp = new FinancialModelingPrep();

fmp.company_profile(symbol);

fmp.quote(id);

fmp.search(query, { exchange, limit });

fmp.financial_ratios(symbol);

fmp.financials_income_statement(symbol, { period });
fmp.financials_balance_sheet_statement(symbol, { period });
fmp.financials_cash_flow_statement(symbol, { period });
fmp.financial_statement_growth(symbol, { period });

fmp.enterprise_value(symbol, { period });

fmp.company_key_metrics(symbol, { period });
fmp.company_rating(symbol);
fmp.company_discounted_cash_flow(symbol);
fmp.company_historical_discounted_cash_flow(symbol, { period });
fmp.company_stock_list();

fmp.stock_real_time_price(symbol);
fmp.stock_real_time_price();

/*
	historical_chart_intervals = [
		'1min', '5min', '15min', '30min', '1hour'
	];
*/
fmp.historical_chart(id, { interval });

/*
	historical_price_full_serietypes = [
		'line'
	];

	historical_price_full_groups = [
		'index',
		'commodity',
		'etf',
		'tsx',
		'euronext',
		'mutual_fund',
		'etf',
		'stock_dividend',
		'stock_split',
		'crypto',
		'forex'
	];
*/
fmp.historical_price_full(id, { group, serietype, from, to, timeseries });

fmp.majors_indexes(symbol);
fmp.majors_indexes();

fmp.quotes(id);

fmp.symbol_available_indexes();

fmp.quotes_commodity(commodity);

fmp.historical_chart_PRNT({ interval, PRNT });

/*
	stock_groups = [
		'actives', 'gainers', 'losers', 'sectors-performance'
	];
*/
fmp.stock(group);

fmp.is_the_market_open();

fmp.cryptocurrencies();

fmp.cryptocurrency(symbol);

/*
	symbol_groups = [
		'available-indexes',
		'available-commodities',
		'available-etfs',
		'available-mutual-funds',
		'available-euronext',
		'available-tsx',
		'available-cryptocurrencies',
		'available-forex-currency-pairs'
	];
*/
fmp.symbol(group);

fmp.forex(currency_pair);
fmp.forex();

Contributing

All contributions are welcome! The purpose of this library is to keep function parity with financialModelingPrep API, while keeping maximum simplicity. Before any pull requests are made, please ensure that all test are passing npm test.

Staying up to date with

FinancialModelingPrep API used to change without without any notification from financialModelingPrep side. As there is no official support for this library I have no other way to check if there were any changes than running integration tests. This integration test is about to be run daily and open issue in case of failure. However, I might overlook some details - please do open issue if this library runs out of sync, or even better send a pull request with fix.