Fmpsdk
SDK for Financial Modeling Prep's (FMP) API
Install / Use
/learn @daxm/FmpsdkREADME
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
- Install the package:
pip install fmpsdk - Create a .env file and put your apikey in it. Inside .env:
apikey='blah' - Use
fmpsdk.<some function>(apikey=apikey, <possibly more variables>)to query the API for that "some function". - 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.
Related Skills
node-connect
347.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
