Skip to main content

No project description provided

Project description

FMP SDK

The idea behind this project is to provide a 'one-stop-shop' to the API endpoints provided by Financial Model Prep website.

Note: fmpsdk should be synced with FMP's API changelog as of 20210220. Changes thereafter are not yet included.

How to Use

  1. Install the package: pip install fmpsdk
  2. Create a .env file and put your apikey in it. Inside .env: apikey='blah'
  3. Use fmpsdk.<some function>(apikey=apikey, <possibly more variables>) to query the API for that "some function".
  4. The return from that function call is almost always a List of Dictionaries. It is up to you to parse it.

Example code

Here is a "quick start" script example. A larger, more detailed example is in the file fmpsdk-example.py.

#!/usr/bin/env python3

import os
from dotenv import load_dotenv
import typing
import fmpsdk

# Actual API key is stored in a .env file.  Not good to store API key directly in script.
load_dotenv()
apikey = os.environ.get("apikey")

# Company Valuation Methods
symbol: str = "AAPL"
print(f"Company Profile: {fmpsdk.company_profile(apikey=apikey, symbol=symbol)}")

Attribution

Special thanks to the following people who have pitched in on this project! Open source works thanks to people who jump in and help! These are this project's stars. Thank you.

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

fmpsdk-20250102.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

fmpsdk-20250102.0-py2.py3-none-any.whl (26.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file fmpsdk-20250102.0.tar.gz.

File metadata

  • Download URL: fmpsdk-20250102.0.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Linux/6.5.0-44-generic

File hashes

Hashes for fmpsdk-20250102.0.tar.gz
Algorithm Hash digest
SHA256 2975555f9c8b3f57b1efbab372d4393c46ffc902f0ad76529e69240aabf26867
MD5 21e9da838da1841061a0beb00a4619f3
BLAKE2b-256 c55d6a867e002c5a780081d3be025fb18793f7ffcc2cbae2ce37984a210e94ef

See more details on using hashes here.

File details

Details for the file fmpsdk-20250102.0-py2.py3-none-any.whl.

File metadata

  • Download URL: fmpsdk-20250102.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Linux/6.5.0-44-generic

File hashes

Hashes for fmpsdk-20250102.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8da18de8fe974df1955cb8b30741d01cc915c0982a175c2b9d2c73ea39c4ed76
MD5 c269fda9e74839c0defa3215b3cb6ea1
BLAKE2b-256 f21b73622af72e7ebce815f39d21bb2408a9d47f107f8deb7de90f09fa88f4a5

See more details on using hashes here.

Supported by

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