moomooopen/moomoo-agent-hub

moomoo-quote

moomoo CLI market data skill for stock, option, futures, quote, K-line, snapshot, ticker, order book, ranking, capital flow, company, financials, shareholders, valuation, plate, IPO, calendar, watchlist, and screening quote commands; not for trading orders.

Ver código fuente

Cómo usar

  1. Copia el comando y revisa el paquete antes de instalarlo en tu entorno de agente.
  2. Consulta las herramientas, credenciales y entornos necesarios en el documento original.
  3. Describe las entradas y el resultado deseado; contrasta la salida con las fuentes.
npx skills add https://github.com/moomooopen/moomoo-agent-hub --skill moomoo-quote

Antes de empezar

  • La instalación no incluye suscripción al modelo, cuota API ni permisos sobre tus archivos.
  • Las estrellas e instalaciones reflejan actividad, no una prueba independiente de calidad o seguridad.
Documento original del Skill

Contenido del repositorio de origen con títulos, ejemplos, código, tablas, enlaces e imágenes preservados.

moomoo Quote

Use the locally available moomoo CLI for market data and quote queries. Answer in the user's language by default; keep commands, flags, JSON fields, symbols, enum values, and error codes unchanged.

Install the moomoo CLI

This skill requires the `moomoo` CLI. Resolve the binary from PATH, ~/.moomoo/bin/moomoo, or %LOCALAPPDATA%\MoomooCLI\bin\moomoo.exe on Windows.

If the binary is missing, ask the user, then install it. Do not run the installer without explicit consent.

macOS / Linux:

bash
curl -fsSL https://raw.githubusercontent.com/MoomooOpen/moomoo-cli/main/scripts/install.sh | sh

Windows PowerShell:

powershell
iwr -UseBasicParsing https://raw.githubusercontent.com/MoomooOpen/moomoo-cli/main/scripts/install.ps1 -OutFile install.ps1
powershell -ExecutionPolicy Bypass -File .\install.ps1

To update an existing CLI, run moomoo update.

Add or update this skill with npx:

bash
npx skills add -y -g MoomooOpen/moomoo-agent-hub --skill moomoo-quote
npx skills update moomoo-quote -g -y

Rules

  • Before quote commands, if moomoo cannot be resolved, follow Install the moomoo CLI.
  • Before any authenticated market data command, prefer moomoo auth status --format json; for network reachability, use moomoo check --format json.
  • As this skill's invocation convention, always append the hidden internal marker --source skill to the end of the command when invoking moomoo from Bash. In --source skill mode, the CLI auto-detects Codex/Claude Code and reports agent_name; append --agent codex or --agent claude_code only when auto-detection is insufficient and CLI support has been confirmed. Do not include these internal markers in commands shown to the user.
  • Never read or print token file contents. The CLI attaches OAuth Bearer auth automatically. PERMISSION_DENIED is a server-side permission or market data entitlement denial, not proof that the token header is missing.
  • Build commands with the minimum required arguments: if a CLI flag already has a default and the user did not specify a different value, omit that flag.
  • Add --format json only when the agent needs to parse command output. Commands shown for the user to run may use default table output.
  • Quote symbols use MARKET.CODE, such as US.AAPL, HK.00700, SH.600519, SZ.000001, and CC.BTCUSD. The CLI normalizes HK.700 to HK.00700 and uppercases markets/tickers. Do not pass old suffix format like 700.HK or bare tickers like AAPL unless the market can be confidently resolved first.
  • User mentions of old REST endpoint command names must be mapped to the current aggregate command and selector flag. Do not call unregistered flat endpoint commands.
  • For paginated quote interfaces, use --format json and follow pagination.has_more / pagination.next_key exactly. next_key is opaque and must not be parsed or constructed.
  • history-kline and capital --view history use --next-time, not --next-key.
  • watchlist --action add/delete/move-out mutates the user's watchlist. Confirm target group and symbols unless the user has already explicitly requested that mutation.
  • Do not execute securities, crypto, or simulated trading orders. Use moomoo-trading for securities trading, moomoo-crypto for cryptocurrency trading, and the simulation trading skill for simulated trading.
  • For live streaming (subscribe, push quote/order book/ticker/K-line, real-time broker queue), the CLI does not replace OpenD. Direct the user to Open API Quote Push WebSocket (wss://webapi-quote.moomoo.com/ws): auth, subscribe, broker queue as BROKER_QUEUE. Read WebSocket push reference and websocket-quote-push.md. Do not use OpenD or removed moomooapi subscribe scripts.

References

  • Read CLI parameters when constructing quote commands, selecting aggregate command variants, or checking required/default flags.
  • Read dictionaries when mapping user language to markets, security types, K-line types, adjustment types, sessions, plate classes, option filters, or interpreting quote enum fields.
  • Read pagination when fetching multiple pages or explaining how quote pagination works.
  • Read websocket-push when the user needs live push or broker queue instead of one-off REST quotes.
del mismo repositorio

Más Skills

Todos los Skills
moomooopen
Comunidad

moomoo-grid-strategy

Guides an AI to implement a single-symbol base-price grid program on moomoo OpenAPI: validate six parameter checks first, then write a restart-safe limit-order reconciliation loop, and accept it on a paper account. Use when the user wants a grid strategy, grid program, quantitative grid, or grid trading bot, or says 网格策略, 网格程序, 量化网格, 网格交易机器人, 实现网格, or 帮我写一个网格. Request fields follow the OpenAPI llms.md. This skill does not repeat request bodies. Paper account by default.

Instalaciones / 1h
2
GitHub Stars
21
Actualizado
10 nov
moomooopen
Comunidad

moomoo-sim-trading

moomoo CLI simulated trading skill for paper/sim accounts, simulated funds, positions, max quantity, simulated order placement, modification, cancellation, order queries, and history; not for real securities or crypto trading.

Instalaciones / 1h
2
GitHub Stars
21
Actualizado
10 nov
moomooopen
Comunidad

moomoo-trading

moomoo CLI securities trading skill for OAuth status, accounts, funds, cash logs, order fees, margin ratio, positions, buy/sell/place/modify/cancel orders, order queries, fills, and max tradable quantity; answer in the user's language.

Instalaciones / 1h
2
GitHub Stars
21
Actualizado
10 nov
moomooopen
Comunidad

moomoo-unusual-capital-flows

Unusual Capital Flows (资金异动): detects capital-flow unusual signals for a user-mentioned stock with getfinancialunusual, including 资金分布、买卖经纪商、 资金流向、卖空数量、卖空比例 and their unusual changes. Use when the user asks about 资金动向、资金异动、净流入、净流出、主力行为、大单小单、谁在买谁在卖、买卖经纪商、 卖空异动、卖空/做空/沽空、主力是否在进场或离场,or gives a broad 异动 request such as “英伟达异动”、“NVDA 异动”、“腾讯有没有异动/异常” without narrowing the dimension. For broad 异动 requests, use together with moomoo-unusual-technical-signal-alerts and moomoo-unusual-derivatives-activity.

Instalaciones / 1h
2
GitHub Stars
21
Actualizado
10 nov