Tradier trading API as a Python library, LangChain tools, and MCP server.
- 16 LangChain tools for use with LangChain/LangGraph agents
- 16 MCP tools for use with Claude Code and other MCP clients
- Modular operations layer usable as a standalone Python library
- Covers Market Data, Account, Orders, and Watchlists
| Category | Tools |
|---|---|
| Market Data | get_quotes, get_option_chain, get_option_expirations, get_historical_prices, search_symbols |
| Account | get_account_balance, get_positions, get_orders, get_order |
| Orders | place_equity_order, place_option_order, cancel_order, modify_order |
| Watchlists | get_watchlists, create_watchlist, add_to_watchlist |
| Category | Tools |
|---|---|
| Market Data | tradier_quotes, tradier_option_chain, tradier_option_expirations, tradier_historical, tradier_search |
| Account | tradier_balance, tradier_positions, tradier_orders, tradier_order |
| Orders | tradier_place_equity, tradier_place_option, tradier_cancel, tradier_modify |
| Watchlists | tradier_watchlists, tradier_create_watchlist, tradier_add_to_watchlist |
# Core library only (httpx)
pip install .
# With MCP server support
pip install ".[mcp]"
# With LangChain tools
pip install ".[langchain]"
# Everything
pip install ".[all]"All settings are read from environment variables with the TRADIER_ prefix, or from a .env file.
| Variable | Description | Default |
|---|---|---|
TRADIER_API_KEY |
Tradier API key | "" |
TRADIER_ACCOUNT_ID |
Tradier account ID | "" |
TRADIER_BASE_URL |
Tradier API base URL | https://api.tradier.com |
from mcp_tradier.client import TradierClient
from mcp_tradier.operations import market_data, account
client = TradierClient()
quotes = market_data.get_quotes(client, "AAPL,GOOGL")
positions = account.get_positions(client)from mcp_tradier.langchain_tools import TOOLS
# Use with a LangChain agent
agent = create_react_agent(llm, TOOLS)mcp-tradierTRADIER_API_KEY=your-api-key
TRADIER_ACCOUNT_ID=your-account-id
TRADIER_BASE_URL=https://sandbox.tradier.comMIT