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.
How do I install this agent skill?
npx skills add https://github.com/moomooopen/moomoo-agent-hub --skill moomoo-quoteIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is safe. It provides instructions to download and install its required command-line interface from the official vendor's GitHub repository. No malicious patterns or unauthorized data access were detected.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
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:
curl -fsSL https://raw.githubusercontent.com/MoomooOpen/moomoo-cli/main/scripts/install.sh | sh
Windows 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:
npx skills add -y -g MoomooOpen/moomoo-agent-hub --skill moomoo-quote
npx skills update moomoo-quote -g -y
Rules
- Before quote commands, if
moomoocannot be resolved, follow Install the moomoo CLI. - Before any authenticated market data command, prefer
moomoo auth status --format json; for network reachability, usemoomoo check --format json. - As this skill's invocation convention, always append the hidden internal marker
--source skillto the end of the command when invokingmoomoofrom Bash. In--source skillmode, the CLI auto-detects Codex/Claude Code and reportsagent_name; append--agent codexor--agent claude_codeonly 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_DENIEDis 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 jsononly 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 asUS.AAPL,HK.00700,SH.600519,SZ.000001, andCC.BTCUSD. The CLI normalizesHK.700toHK.00700and uppercases markets/tickers. Do not pass old suffix format like700.HKor bare tickers likeAAPLunless 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 jsonand followpagination.has_more/pagination.next_keyexactly.next_keyis opaque and must not be parsed or constructed. history-klineandcapital --view historyuse--next-time, not--next-key.watchlist --action add/delete/move-outmutates 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-tradingfor securities trading,moomoo-cryptofor 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 asBROKER_QUEUE. Read WebSocket push reference and websocket-quote-push.md. Do not use OpenD or removedmoomooapisubscribe 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.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/moomooopen/moomoo-agent-hub/moomoo-quote">View moomoo-quote on skillZs</a>