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.

If you want any additional features implemented, feel free to open an issue.

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 Profile

aapl_profile = fmp.profile("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.6.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fmp-wrapper-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 ea0d6badc92531bd8dc634690fd1a4307dedd68468357465c98cdf139023cb1c
MD5 3137f2d27f97e50094715c52f09b30af
BLAKE2b-256 f6c5aa7c77ec542935a238543f27536c2f9b1f6b95ed991c3c212cf2fbbba42e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fmp_wrapper-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7b0d235a6f4c9623e933ce2c18587b450287a8aebc5b297e2eb3661141ec2861
MD5 9318caa7e835080a0dde46fe84824468
BLAKE2b-256 7becdf6d0765207649d30206a0514837a912af69d8df26d471010c2af7592223

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