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-20240113.1.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fmpsdk-20240113.1-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fmpsdk-20240113.1.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.5.0-14-generic

File hashes

Hashes for fmpsdk-20240113.1.tar.gz
Algorithm Hash digest
SHA256 b7b223d4a522cfd83635d982c4e50c70cee9e9a7499ab137b3f33e78ba4c1743
MD5 03d8a5308987f65761ff517947cd750a
BLAKE2b-256 2eff270503221a134935936c01d4949f1c5a6444ace491aa4720f2954be6f3a1

See more details on using hashes here.

File details

Details for the file fmpsdk-20240113.1-py3-none-any.whl.

File metadata

  • Download URL: fmpsdk-20240113.1-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.5.0-14-generic

File hashes

Hashes for fmpsdk-20240113.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f17f4038674a5ba6824ddb1eb09f05a4ef3090b4070a3c5f320a5e4ca8a5ebf3
MD5 2873f5ac07f13a12646931c0dda5e831
BLAKE2b-256 83d466f0750799425d0ac214e23f5b45cc3ee353f5023faf062eb0bd25c5e26a

See more details on using hashes here.

Supported by

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