Market data tools for
LangChain agents.
TickerAPI provides pre-computed financial context as MCP tools. LangChain's MCP adapter converts them into native LangChain tools — your agent gets market data with zero custom integration code.
Connect in one code block.
Use langchain-mcp-adapters to connect TickerAPI's remote MCP server to your LangChain agent. Every TickerAPI tool becomes a native LangChain tool automatically.
from langchain_mcp_adapters.client import MultiServerMCPClient from langgraph.prebuilt import create_react_agent from langchain_anthropic import ChatAnthropic model = ChatAnthropic(model="claude-sonnet-4-20250514") async with MultiServerMCPClient( { "tickerapi": { "url": "https://mcp.tickerapi.ai/", "transport": "streamable_http", "headers": { "Authorization": "Bearer tapi_your_api_key" }, } } ) as client: agent = create_react_agent(model, client.get_tools()) result = await agent.ainvoke( {"messages": "Is AAPL oversold right now?"} )
The MCP adapter discovers all available tools at connection time. No manual tool definitions needed.
Multi-step analysis.
Your agent can chain tools — scan for oversold stocks, then get a full summary, then compare against peers. Each call returns categorical data the model understands without extra prompting.
result = await agent.ainvoke({ "messages": "Find oversold tech stocks, then give me a detailed summary of the top pick and compare it against its main competitor." })
# Agent calls: scan_oversold(sector="Technology") # → Returns list of oversold tech tickers # Agent calls: get_summary("NVDA") # → Full categorical breakdown: trend, momentum, fundamentals # Agent calls: compare_assets(tickers=["NVDA", "AMD"]) # → Side-by-side comparison across all dimensions
Track state changes effortlessly.
Most market data APIs return point-in-time snapshots. TickerAPI tracks state transitions — your agent sees what changed, not just what is.
result = await agent.ainvoke({ "messages": "Check my watchlist for any state changes since yesterday." })
{ "ticker": "AAPL", "changes": [ { "field": "rsi_zone", "from": "neutral", "to": "oversold" }, { "field": "trend", "from": "uptrend", "to": "downtrend" } ] }
What your agent sees.
Every tool returns categorical facts — not raw OHLCV data. Your agent can branch on "oversold" without needing to know what RSI > 70 means.
{ "ticker": "NVDA", "trend": "strong_uptrend", "momentum": { "rsi_zone": "overbought", "macd_signal": "bullish" }, "volatility": "high", "fundamentals": { "pe_zone": "above_historical_avg", "earnings_surprise": "positive" } }
What your agent can call.
Every tool returns categorical, pre-computed data. Your agent gets facts it can reason about immediately.
Full factual snapshot for a single asset — trend, momentum, fundamentals, support/resistance.
Side-by-side technical and fundamental comparison of two or more tickers.
Browse all supported tickers with filtering and search.
List all valid sector values with asset counts for scan filtering.
Live summary data for all tickers in your saved watchlist.
Field-level diffs for your watchlist since the last pipeline run.
Add tickers to your persistent watchlist.
Remove tickers from your watchlist.
Assets in confirmed oversold conditions across multiple indicators.
Assets in overbought RSI conditions with severity rankings.
Momentum breakouts with volume confirmation.
Volume anomalies and accumulation patterns.
Historically undervalued or overvalued assets based on fundamental metrics.
Notable insider buying and selling activity.
Your plan tier, rate limits, and current API usage.
Register a webhook URL for watchlist change notifications.
List your registered webhook URLs.
Remove a registered webhook.
Built for how agents consume data.
Categorical data, less prompt engineering
Responses like "rsi_zone": "oversold" are already in a format the model understands. No need to explain what RSI > 70 means.
Compact responses
Tool-call context windows are limited. TickerAPI responses are a fraction of the tokens you'd need to pass raw OHLCV data.
Pre-computed daily
No infrastructure to maintain. No cron jobs, no indicator math, no data pipelines. TickerAPI handles computation and syncing.