Skip to content

Commit 1a38948

Browse files
MehdiZareccurme
andauthored
Mehdi zare/fmp data doc (#29219)
Title: community: add Financial Modeling Prep (FMP) API integration Description: Adding LangChain integration for Financial Modeling Prep (FMP) API to enable semantic search and structured tool creation for financial data endpoints. This integration provides semantic endpoint search using vector stores and automatic tool creation with proper typing and error handling. Users can discover relevant financial endpoints using natural language queries and get properly typed LangChain tools for discovered endpoints. Issue: N/A Dependencies: fmp-data>=0.3.1 langchain-core>=0.1.0 faiss-cpu tiktoken Twitter handle: @mehdizarem Unit tests and example notebook have been added: Tests are in tests/integration_tests/est_tools.py and tests/unit_tests/test_tools.py Example notebook is in docs/tools.ipynb All format, lint and test checks pass: pytest mypy . Dependencies are imported within functions and not added to pyproject.toml. The changes are backwards compatible and only affect the community package. --------- Co-authored-by: mehdizare <[email protected]> Co-authored-by: Chester Curme <[email protected]>
1 parent 288613d commit 1a38948

File tree

3 files changed

+437
-0
lines changed

3 files changed

+437
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# FMP Data (Financial Data Prep)
2+
3+
> [FMP-Data](https://pypi.org/project/fmp-data/) is a python package for connecting to
4+
> Financial Data Prep API. It simplifies how you can access production quality data.
5+
6+
7+
## Installation and Setup
8+
9+
Get an `FMP Data` API key by
10+
visiting [this page](https://site.financialmodelingprep.com/pricing-plans?couponCode=mehdi).
11+
and set it as an environment variable (`FMP_API_KEY`).
12+
13+
Then, install [langchain-fmp-data](https://pypi.org/project/langchain-fmp-data/).
14+
15+
## Tools
16+
17+
See an [example](https://github.com/MehdiZare/langchain-fmp-data/tree/main/docs).
18+
19+
```python
20+
from langchain_fmp_data import FMPDataTool, FMPDataToolkit
21+
```

0 commit comments

Comments
 (0)