Skip to main content

A python wrapper for the Financial Modeling Prep API.

Project description

Financial Modeling Prep API Wrapper

This project provides a python wrapper for the Financial Modeling Prep API.

Installation

In a shell, execute pip install fmp-wrapper.

Optionally, you can clone this project by running git clone https://github.com/cccdenhart/fmp-wrapper.

Usage

Only a select number of features from the API are implemented here as of now. They are described below.

Data is returned as a Pandas dataframe by default. The wrapper can also be configured to simply return raw json data.

Examples

Import wrapper

from fmp_wrapper import FmpWrapper
fmp = FmpWrapper()
# OR fmp = FmpWrapper(as_pandas=False) for raw data returns

Stock Portfolio

aapl_portfolio = fmp.portfolio("AAPL")

Stock Quotes

aapl_quote = fmp.quote(["AAPL", "MSFT"])

Financial Reports

aapl_income = fmp.financials("AAPL", "income")  # default period is annual
appl_balance = fmp.financials("AAPL", "balance", period="annual")
aapl_cash_flow = fmp.financials("AAPL", "cash", period="quarter")

Price History

aapl_all_prices = fmp.price_history("AAPL")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fmp-wrapper-0.1.5.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

fmp_wrapper-0.1.5-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file fmp-wrapper-0.1.5.tar.gz.

File metadata

  • Download URL: fmp-wrapper-0.1.5.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for fmp-wrapper-0.1.5.tar.gz
Algorithm Hash digest
SHA256 e2009175175c2f064bd77ab2b2b1b353737a0cdc323e4b6b75a4d873c0203ec0
MD5 b3ce55e79ca52430b24788cc683b219e
BLAKE2b-256 ec124367b5cdd8118535982132a3704784bf31bf73dd98b328458c882df166b1

See more details on using hashes here.

File details

Details for the file fmp_wrapper-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: fmp_wrapper-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for fmp_wrapper-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ed813260b0577ed083ff68362dd2d9449d18d378d7436d2a347a8a3a5cadd3b1
MD5 8f92a1949d38802ce652c37f75da45ed
BLAKE2b-256 45aae59e5a79606223b2ffba751f4bb039990c9ec8a21d04a64dfa2df41376c5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page