
litash/moomoo-api-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCP Server for AI Agent は、Moomoo OpenAPI ([https://www.moomoo.com/OpenAPI)) を使用する
概要
モモオ取引プラットフォーム用のMCP(モデルコンテキストプロトコル)サーバー。 このサーバーでは、AIエージェント(Claude DesktopやGeminiなど)が市場データ、アカウント情報にアクセスし、moomoo-api Python SDK経由で取引を実行できます。 このMCPサーバーは、開発者がカスタム取引スキルと戦略を構築できるようにします。 このツールを統合することで、任意の互換性のあるAIエージェントがMoomooプラットフォームと直接やり取りすることができます。 市場を監視したり、ポートフォリオを分析したり、複雑な取引戦略を自動的に実行したりするAIアシスタントを望む場合でも、このサーバーはカスタムAIロジックとMoomooの強力な取引インフラストラクチャ間のシームレスな橋を提供します。 - : リアルタイムの引用符、歴史あるKライン、市場スナップショット、注文書。 - : 総合会計要約、資産、ポジション、キャッシュフロー分析 - : 注文の発注、変更、および取り消しを含む完全な順序管理。 - : ビルトインヘルスチェックと接続検証.
概要(AI 翻訳)
モモオ取引プラットフォーム用のMCP(モデルコンテキストプロトコル)サーバー。 このサーバーでは、AIエージェント(Claude DesktopやGeminiなど)が市場データ、アカウント情報にアクセスし、moomoo-api Python SDK経由で取引を実行できます。
OST 独自の取引エージェントを構築
AIで取引を行う!
このMCPサーバーは、開発者がカスタム取引スキルと戦略を構築できるようにします。 このツールを統合することで、任意の互換性のあるAIエージェントがMoomooプラットフォームと直接やり取りすることができます。 市場を監視したり、ポートフォリオを分析したり、複雑な取引戦略を自動的に実行したりするAIアシスタントを望む場合でも、このサーバーはカスタムAIロジックとMoomooの強力な取引インフラストラクチャ間のシームレスな橋を提供します。
##特徴
-Market Data:リアルタイムの引用、歴史あるKライン、市場スナップショット、注文書。
- アカウント管理: 総合会計要約、資産、ポジション、キャッシュフロー分析
- 取引:注文の発注、変更、および取り消しを含む完全な順序管理。
- システムヘルス:内蔵の健康チェックと接続検証.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Moomoo API MCP Server
An MCP (Model Context Protocol) server for the Moomoo trading platform. This server allows AI agents (like Claude Desktop or Gemini) to access market data, account information, and execute trades via the moomoo-api Python SDK.
🚀 Build Your Own Trading Agent
Take your trading to the next level with AI!
This MCP server empowers developers to build custom trading skills and strategies. By integrating this tool, you can enable any compatible AI agent to interact directly with the Moomoo platform on your behalf. Whether you want an AI assistant that monitors the market, analyzes your portfolio, or automatically executes complex trading strategies, this server provides the seamless bridge between your custom AI logic and Moomoo’s powerful trading infrastructure.
Features
- Market Data: Real-time quotes, historical K-lines, market snapshots, and order books.
- Account Management: Comprehensive account summaries, assets, positions, and cash flow analysis.
- Trading: Full order management including placing, modifying, and canceling orders.
- System Health: Built-in health checks and connectivity verification.
- Extensible Architecture: Built on FastMCP for easy extension of trading capabilities.
Tools
System
check_health: Check connectivity to Moomoo OpenD gateway and server health.
Account
get_accounts: List all trading accounts (REAL and SIMULATE).get_account_summary: Get a complete summary of assets and positions for an account.get_assets: Retrieve account assets (cash, market value, buying power).get_positions: Get current stock positions with P/L data.get_max_tradable: Calculate maximum tradable quantity for a specific stock.get_margin_ratio: Check margin ratios for specific stocks.get_cash_flow: Retrieve historical cash flow records.unlock_trade: Unlock trading access for REAL accounts.
Market Data
get_stock_quote: Get real-time stock quotes.get_historical_klines: Retrieve historical candlestick data (Day, Week, Min, etc.).get_market_snapshot: Get efficient market snapshots for multiple stocks.get_order_book: View real-time bid/ask order book depth.
Trading
place_order: Place a new order (Market, Limit, Stop, etc.).modify_order: Modify price or quantity of an open order.cancel_order: Cancel an open order.get_orders: Get list of orders for the current day.get_deals: Get list of executed trades (deals) for the current day.get_history_orders: Search historical orders.get_history_deals: Search historical deals.
Installation
Quick Start (Recommended)
You can run the server directly using uvx (part of the uv toolkit).
Using --refresh ensures you are always running the latest version:
# Optional: Set these environment variables for REAL trading access.
インストール
uvx --refresh moomoo-api-mcp設定
{
"mcpServers": {
"moomoo": {
"command": "uvx",
"args": ["--refresh", "moomoo-api-mcp"],
"env": {
"MOOMOO_TRADE_PASSWORD": "your_trading_password",
"MOOMOO_SECURITY_FIRM": "FUTUSG"
}
}
}
}