/install fubon-cli
fubon-cli Skill
Use this skill to execute fubon commands safely and return parseable results for downstream automation.
What This Skill Does
- Executes
fubon-clicommand groups end to end. - Keeps command usage aligned with actual CLI behavior.
- Returns standardized JSON output and error handling guidance.
- Supports order lifecycle workflows: login -> query -> place order -> verify -> adjust/cancel.
When To Use
Use this skill if the user asks for any of these intents:
- Login/logout/session status for Fubon Neo.
- Place or manage stock/futures/options orders.
- Query inventory, unrealized PnL, settlement, balances, margin quota.
- Read market quotes, candles, trade details, movers, actives, snapshots, history.
- Subscribe to realtime market or callback streams.
- Manage conditional orders.
- Use natural language to produce trading commands (
fubon ask,fubon chat).
Preconditions
- Install platform wheel for
fubon_neo. - Install
fubon-cli. - Ensure certificate files and account credentials are available.
Example:
pip install ./wheels/fubon_neo-2.2.8-cp37-abi3-win_amd64.whl
pip install fubon-cli
Core Workflow
- Authenticate first.
- Run requested query or order action.
- Inspect
successanderrorkeys. - If placing an order, run follow-up query to confirm state.
fubon login --id \x3CID> --password \x3CPW> --cert-path \x3CPATH> --cert-password \x3CCERT_PW>
fubon login --id \x3CID> --api-key \x3CAPI_KEY> --cert-path \x3CPATH> --cert-password \x3CCERT_PW>
fubon market quote 2330
fubon stock buy 2330 1000 --price 580
fubon stock orders
Command Map
Auth
fubon login --id \x3CID> --password \x3CPW> --cert-path \x3CPATH> [--cert-password \x3CPW>]
fubon login status
fubon login logout
Command Surface
The Command Surface below lists the primary CLI entrypoints and example usages. These map 1:1 to the fubon-cli commands and are safe to invoke from automation when preconditions are met.
See the examples in the Command Map section for concrete invocations.
Stock
fubon stock buy \x3CSYMBOL> \x3CQTY> --price \x3CPRICE>
fubon stock sell \x3CSYMBOL> \x3CQTY> --price \x3CPRICE>
fubon stock orders
fubon stock cancel \x3CORDER_NO>
fubon stock modify-price \x3CORDER_NO> \x3CNEW_PRICE>
fubon stock modify-quantity \x3CORDER_NO> \x3CNEW_QTY>
Account
fubon account inventory
fubon account unrealized
fubon account settlement
fubon account margin-quota \x3CSYMBOL>
Market
fubon market quote \x3CSYMBOL>
fubon market ticker \x3CSYMBOL>
fubon market candles \x3CSYMBOL> --timeframe 5
fubon market trades \x3CSYMBOL> --limit 50
fubon market snapshot TSE
fubon market movers TSE --direction up
fubon market actives TSE --trade volume
fubon market history \x3CSYMBOL> --from 2024-01-01 --to 2024-06-30
Realtime
fubon realtime subscribe \x3CSYMBOL>
fubon realtime callbacks
Futures and Options
fubon futopt buy TXF202406 1 --price 20000
fubon futopt sell TXF202406 1 --price 20100
fubon futopt orders
Conditional Orders
fubon condition create --payload '{"symbol":"2330","trigger":{}}'
fubon condition list
fubon condition cancel \x3CCONDITION_ID>
AI
fubon ask "台積電現在的價格是多少?"
fubon chat
fubon config set openai-key \x3COPENAI_KEY>
fubon config show
Output Contract
Non-streaming commands:
{
"success": true,
"data": {}
}
Failure example:
{
"success": false,
"error": "Error message"
}
Streaming commands output JSONL (one JSON object per line).
Execution Rules
- Never assume login state; check status or handle not-logged-in errors.
- For orders, always confirm with
fubon stock ordersor equivalent query command. - For retriable failures (network/transient), retry conservatively once.
- For parameter or auth failures, stop and surface exact
errortext.
Safety Boundaries
- Do not expose raw credentials in logs or chat output.
- Encourage verification of symbol, quantity, price, and account index before order placement.
- Prefer non-production or low-risk validation paths for first-time automation.
Release Binding
This skill is version-bound with fubon-cli.
scripts/validate_skill_doc.pyvalidates coverage.scripts/build_skill_bundle.pybuilds skill artifact.scripts/publish_skill.pypublishes to clawhub endpoint.- CI/CD should publish skill after package release to keep tool and skill synchronized.
Version Binding
This skill's version must be kept in sync with the fubon-cli package version. The CI/CD pipeline is configured to build and publish the skill bundle immediately after a successful package release so the skill metadata (skill.manifest.json) and SKILL.md match the released package.
- Use
scripts/build_skill_bundle.pyto createdist/skillartifacts tied to the current git tag or package version. - Use
scripts/publish_skill.py(requiresCLAWHUB_API_TOKEN) to publish the bundle to the skill registry.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install fubon-cli - 安装完成后,直接呼叫该 Skill 的名称或使用
/fubon-cli触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Fubon Cli 是什么?
AI-agent skill for Taiwan stock/futures/options operations via fubon-cli. Use this skill whenever the user asks about Fubon Neo login, order placement, accou... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 291 次。
如何安装 Fubon Cli?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install fubon-cli」即可一键安装,无需额外配置。
Fubon Cli 是免费的吗?
是的,Fubon Cli 完全免费(开源免费),可自由下载、安装和使用。
Fubon Cli 支持哪些平台?
Fubon Cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Fubon Cli?
由 Mofesto(@mofesto)开发并维护,当前版本 v0.1.1。