Moomoo Developer Platform
Unlock Moomoo’s Trading Power
for AI Developers
Free & open AI quantitative infrastructure: real-time quotes, quantitative research & AI analytics in one platform — connect via MCP, Skill, or OpenAPI, covering 6 major markets.
Developer Tools
Everything you need to build AI-powered quantitative trading — market data, research & smart execution
SKILL
Skill Hub offers query, analysis, and execution skills. A single prompt chains the full workflow, from research to order — compatible with Claude Code, Cursor, and more.
MCP
Hosted HTTP MCP service with OAuth 2.1. AI coding assistants connect in one command — instant access to live quotes, account queries, and order placement.
OpenAPI
Two access modes: OpenD local gateway + multi-language SDK for real-time streaming, or gateway-free REST API via HTTP. Covering HK, US, CN, SG, JP, and MY markets.
Sandbox Trading
A simulated environment built on a real market matching engine, sharing the same interface as live trading. Validate strategies and order flow at zero cost before going live, no securities account required.
CLI In Development
AI-native command-line tool. Query quotes, manage orders, and output JSON directly in the terminal — perfect for scripting and automation.
SKILL · SKILL HUB
moomoo Skills Hub
AI-powered investment skills: stock analysis, multi-factor screening, options analytics, portfolio insights & strategy trading — all in one prompt.
Install all moomoo Skills — copy and send to any AI
Install moomoo Skills per the guide: https://www.moomoo.com/skills/moomoo-install.mdSmart Strategy Trading
Place trailing stops, conditional orders, and algorithmic trades through natural language. 13 order types including limit, market, stop-loss, TWAP, and VWAP.
Options Intelligence
Screen option chains with Greeks, filter puts/calls by DTE, delta, and IV, and get annualized yield estimates — all in one conversation.
Portfolio Insights
Analyze positions, track Greeks exposure across your portfolio, identify expiring contracts, and get risk-aware recommendations instantly.
Multi-Dimensional Screening
Filter stocks by market cap, PE ratio, price momentum, and fundamental metrics across all 6 markets with natural language queries.
MCP Access
AI Assistants Connect Directly to Market Data & Trading
No need to build your own gateway or manage keys. The hosted HTTP MCP service has built-in OAuth 2.1 authorization — AI coding assistants connect once to access live quotes, account data, and trading capabilities.
Run the following command in terminal, then type /mcp in Claude Code, select moomoo-mcp, and complete OAuth authorization.
claude mcp add --transport http moomoo-mcp https://mcp.moomoo.com/mcpOAuth 2.1 — browser opens automatically on first connection. No API key needed.
MCP DocumentationOPENAPI · Dual Channel
Two Channels to Moomoo Markets
OpenD local gateway + SDK provides low-latency real-time streaming; REST API supports direct HTTP calls without a gateway. Both channels offer identical capabilities.
from moomoo import *
quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)
ret_sub, err_message = quote_ctx.subscribe(['US.AAPL'], [SubType.QUOTE], subscribe_push=False)
# 先订阅 K 线类型。订阅成功后 OpenD 将持续收到服务器的推送,False 代表暂时不需要推送给脚本
if ret_sub == RET_OK: # 订阅成功
ret, data = quote_ctx.get_stock_quote(['US.AAPL']) # 获取订阅股票报价的实时数据
if ret == RET_OK:
print(data)
print(data['code'][0]) # 取第一条的股票代码
print(data['code'].values.tolist()) # 转为 list
else:
print('error:', data)
else:
print('subscription failed', err_message)
quote_ctx.close() # 关闭当条连接,OpenD 会在1分钟后自动取消相应股票相应类型的订阅Multi-Market
US, HK, SG, JP, AU, MY, 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 Streaming
WebSocket streaming for quotes, order depth, trades, and order status updates.
Full Trading
Submit, replace, withdraw orders. Trailing stops, conditional orders, and auction orders.
OAuth 2.1 + Async
Automatic token management with modern async/await patterns and built-in rate control.
API Capabilities
Real-time data and trading capabilities covering every investment workflow
Real-time Quotes & Push
17+Subscribe/pull live quotes, order book, K-line, intraday, tick-by-tick, and broker queue — with event-driven push callbacks.
- · Subscribe & Unsubscribe
- · Quote / Order Book / K-line Push
- · Market Snapshot Pull
- · Broker Queue Real-time Push
Derivatives & Strategy Tools
27+Option chains, expiration, implied volatility, exercise probability, Greeks, strategy P&L analysis, plus warrant screening and futures contract data.
- · Option Chain + Exercise Probability
- · Volatility & P&L Analysis
- · 0DTE / Earnings Option Screening
- · Warrants / CBBCs / Futures
Stock Deep Research
31+Financial statements, valuation details, dividends & buybacks, analyst ratings, Morningstar reports, shareholder holdings, insider trading, company profile & executive info.
- · Financial Statements & Revenue Mix
- · Valuation & Analyst Ratings
- · Dividends / Buybacks / Stock Splits
- · Shareholder Changes & Insider Trading
Trading & Order Management
19+Account unlock, order placement (incl. combo orders), modify/cancel orders, position & balance queries, margin financing data, fund flows, and order/fill real-time push.
- · Place Orders & Combo Orders
- · Positions / Funds / Margin Data
- · Historical Orders & Fills
- · Order Status & Fill Push
Market Screening & Rankings
43+Conditional stock screen (244+ factors), plate constituents, macro indicators, FedWatch, earnings/dividend calendar, pre/post-market rankings, institutional holdings, ARK tracking, and industry chain data.
- · Multi-Factor Stock Screening
- · Earnings / Economic Event Calendar
- · Institutional Holdings & ARK Tracking
- · Heatmap & Gain/Loss Distribution
Technical Indicators & Personalization
10+Async technical indicator calculation, price alert setup & push, watchlist group management, and historical K-line quota queries.
- · Async Indicator Calculation & Push
- · Price Alerts
- · Watchlist Group Management
- · Historical K-line Quota
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.