open_api
Developer Portal
Powering
Real-time market data, trading, and financial intelligence — delivered through SDK, CLI, MCP and OpenAPI for developers worldwide.
Developer Tools
Everything you need to build, test, and ship financial applications
CLI
AI-native terminal tool with interactive TUI dashboard, 120+ commands, and --format json output for scripting and AI agent integration.
MCP
Hosted MCP service with OAuth 2.1 — zero-config integration for Claude Code, Cursor, Codex, Zed, and Cherry Studio.
SDK
Get your first quote in minutes. 7 languages — Python, Node.js, Rust, Go, Java, C, C++ — with async support and built-in rate control.
Paper Trading
Test orders with real market data at zero cost. Simulated matching based on live bid-ask spreads, no securities account required.
LLM Ready
llms.txt standard compliance, all docs available as .md for RAG pipelines, and Accept: text/markdown header support.
OpenAPI
100+ endpoints for quotes, trading, portfolio, and content. Try requests directly in the browser with real-time data.
open_api CLI
AI-native command-line tool covering every OpenAPI
- 120+ commands for market data, trading, fundamentals
- --format json output for scripting and AI agent integration
- Candlestick data with multi-period support — daily, hourly, 15-min
- Portfolio P&L with position breakdown and allocation view
- OAuth 2.0 — works in SSH and headless servers
$ brew install --cask open_api/tap/open_api-terminalMCP
Connect your AI assistant to live market data — no API keys required
Hosted HTTP MCP service with OAuth 2.1 authentication. Your AI coding assistant gets real-time quotes, account info, and trading capabilities in one connection.
claude mcp add --transport http open_api https://openapi.open_api.dev/mcpOAuth 2.1 — browser opens automatically on first use. No API key needed.
MCP DocumentationAPI Capabilities
Everything you need to build trading and market data applications
Market Data
30+Real-time quotes, order depth, candlestick, intraday, capital flow, and push subscriptions
- Real-time quotes
- Order book depth
- Candlestick charts
- Intraday timeline
- Capital flow
- WebSocket push
Trading & Orders
14+Submit, replace, and withdraw orders. Track positions, balance, and execution history
- Submit orders
- Modify & cancel
- Positions & balance
- Execution history
- Order status push
Derivatives
8+Full option chains with Greeks, warrants listing, and real-time derivative quotes
- Option chains + Greeks
- Warrant filtering
- Issuer directory
- Derivative quotes
Financial Research
7+Financial statements, valuation metrics, dividend history, EPS forecasts, and analyst ratings
- Financial statements
- Valuation metrics
- Dividend history
- EPS forecasts
- Analyst ratings
Content & News
8+Real-time news feeds, community discussions, topics, and engagement metrics
- News feeds
- Community topics
- Discussions
- Engagement data
OpenAPI SDK
Production-grade SDKs with real-time streaming and full trading capabilities
7 language SDKs built on a Rust core — subscribe to live market data, place orders, and monitor positions with async/await patterns and built-in rate limiting.
from open_api import QuoteContext, Config, OAuthBuilder
oauth = OAuthBuilder("your-client-id").build(
lambda url: print("Visit:", url))
config = Config.from_oauth(oauth)
ctx = QuoteContext(config)
resp = ctx.quote(["AAPL.US", "TSLA.US", "NVDA.US", "GOOG.US"])
print(resp)pip3 install open_apiMulti-Market
US, HK, SG, CN (SH/SZ) — stocks, ETFs, options, warrants
Free & Paper Trading
No additional API charges. Paper trading with real market data, no securities account required.
Real-time Push
WebSocket push for quotes, order depth, trades, and order status updates
Complete Trading
Submit, replace, withdraw orders. Trailing stops, conditional orders, and auction orders.
OAuth 2.0 + Async
Automatic token management with modern async/await patterns and built-in rate control.
Start Building in Minutes
Set up your environment, authenticate, and make your first API call — everything you need to go from zero to live data.
Authentication Setup
Register an OAuth 2.0 client, obtain credentials, and configure your SDK with automatic token management.
Setup GuideAPI Reference
Browse 100+ endpoints for quotes, trading, portfolio, and content. Try requests directly in the browser.
Explore APIsInstall CLI
One-line install for macOS, Linux, and Windows. 120+ commands with interactive TUI and JSON output.
Install Now