Skip to main content

FinzData

langchain-finzdata

FinzData tools for LangChain and LangGraph agents in one line.

Why

Agents answering market questions need point-in-time, survivorship-free data. FinzData includes delisted stocks, macro as known on a date, and server-side backtests so the agent doesn't pull raw bars. The MCP server exposes 39 tools and works with no key for the last 6 months, or with a Bearer key for more history.

Coverage

16,000+ US stocks that have traded on NYSE and Nasdaq since January 2000, delisted included, point in time. 5,100+ ETFs. Tick trades for 1,100+ stocks and ETFs. 139 futures markets with every contract since 2007. Options gamma (GEX) for 11,200+ stocks, ETFs and indexes since 2010, and end-of-day options chains. COT since 1986. 13F, insider trades, short interest. SEC fundamentals as filed. 22,700+ macro series with every vintage kept. 74 crypto pairs, 79 FX pairs, 123 indexes, congressional trades and election spending.

Install

pip install langchain-finzdata

Free start

No key required for the last 6 months. Free key, email only, 12 months: https://finzdata.com/account?ref=langchain Set FINZDATA_API_KEY in your environment. Full history from $19 per ticker, yours to keep: https://finzdata.com/shop?ref=langchain

LangGraph example

from langgraph.prebuilt import create_react_agent from langchain_finzdata import load_finzdata_tools

tools = load_finzdata_tools() agent = create_react_agent("anthropic:claude-sonnet-4-5", tools) agent.invoke({"messages": [("user", "Backtest 12-1 momentum on US stocks since 2010, survivorship-free")]})

Any chat model works.

Async and filtering

In async code (FastAPI, notebooks with a running loop), await the tools directly, and pick only the tools you need:

from langchain_finzdata import get_finzdata_tools

tools = await get_finzdata_tools(include=["get_bars", "run_backtest", "get_macro_vintage"])

Pass api_key="..." (or set FINZDATA_API_KEY) to go beyond the keyless 6-month preview.

Main tools

Tool Description
get_bars OHLCV bars point-in-time
get_futures Futures continuous and contracts
get_crypto Crypto OHLCV
get_gex Gamma exposure
get_cot Commitments of Traders
get_13f 13F filings
get_fundamentals_pit Fundamentals as filed
get_macro_vintage Macro with vintage
run_backtest Server-side backtest
survivorship_audit Survivorship audit
get_bars Price bars with survivorship handling
get_fundamentals_pit Point-in-time fundamentals
get_macro_vintage Macro series by vintage date

Other frameworks

LlamaIndex

BasicMCPClient("https://api.finzdata.com/mcp") McpToolSpec

CrewAI

MCPServerAdapter({"url": "https://api.finzdata.com/mcp", "transport": "streamable-http"})

OpenAI Agents SDK

MCPServerStreamableHttp(params={"url": "https://api.finzdata.com/mcp"})

MIT

FinzData is not affiliated with LangChain, LlamaIndex, CrewAI or OpenAI.

Support: info@finzdata.com

FinzData: built for AI, quants, data scientists and financial analysts who backtest. Clean data. Real insights. Real alpha.

Metadata

Release files for langchain-finzdata 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-finzdata 0.1.1
File Size Uploaded Provenance Actions
langchain_finzdata-0.1.1.tar.gz 4.5 kB Without provenance Details for langchain_finzdata-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-finzdata 0.1.1
File Interpreter ABI Platform Actions
langchain_finzdata-0.1.1-py3-none-any.whl Python 3 none any Details for langchain_finzdata-0.1.1-py3-none-any.whl

Total release size: 9.3 kB

Release files / langchain_finzdata-0.1.1.tar.gz

Download URL langchain_finzdata-0.1.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5bea12c786d4fefa7f715b7469bfb80506e89d918bd25f9d2bfbff1cba125259
BLAKE2b-256 checksum
How to use checksums
203fe4ba09a9fa805904ecd90e63e37725c7a2c6fc6b4966b81b78b6d90ac141
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / langchain_finzdata-0.1.1-py3-none-any.whl

Download URL langchain_finzdata-0.1.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
743d6cbb79ad3e01fd05aa68800c8d57835123365b363374a71ccbe07441bccc
BLAKE2b-256 checksum
How to use checksums
7583ef7c40045aa7f9bff87eae9515a899fe47e556a6a26c65421c3a04d92ec7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for langchain-finzdata 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page