moomoo-trading
Installation
SKILL.md
moomoo Trading
Use this skill when the user wants market data or stock trading through moomoo/Futu OpenAPI and a local OpenD gateway.
Read This First
- Read references/setup-guide.md for installation, package choice (
futu-apivsmoomoo-api), OpenD login, and troubleshooting. - Read references/api-reference.md when you need exact method names, return shapes, or trade-query semantics.
- All bundled scripts lazy-load the SDK, so
--helpworks even if neither Python package is installed yet.
Safety Rules
- Default to simulated trading unless the user explicitly asks for live trading.
- Live order placement, modification, and cancellation require
--env real --confirm. scripts/trade.pyalso requires a live-trading unlock password viaMOOMOO_UNLOCK_PASSWORDby default, or another env var name passed with--unlock-password-env. The script unlocks for the requested action and then re-locks.- For cancel/modify actions, pass
--marketunless you also provide a ticker so the script can infer the correct trade context. - Do not put a raw trading password directly on the command line. Use an environment variable.