Loading...
Loading...
Mutating operations on the user's Longbridge recurring-investment (DCA) plans — list (read-only), create a plan, update / pause / resume / stop a plan, view trade history, check eligibility. Requires longbridge login WITH TRADE SCOPE because every plan automatically commits real money on a schedule. Every mutation requires a two-step preview + confirm protocol, and `create` requires the user to read back amount / frequency / symbol / start date / end date before confirming. Use only when the user gives a clear imperative ("create a monthly DCA on AAPL for 500 USD", "停止定投 700.HK"); ambiguous prompts ("帮我看看定投") must be rejected with a "please be specific" reply rather than triggered. Triggers: "创建定投", "新建定投计划", "设置定投", "暂停定投", "停止定投", "恢复定投", "修改定投", "建立定投", "建立定投計劃", "設置定投", "暫停定投", "停止定投", "恢復定投", "修改定投", "create DCA", "create recurring investment", "set up DCA plan", "pause DCA", "stop DCA plan", "resume DCA", "monthly DCA on X", "weekly recurring buy".
npx skill4agent add longbridge/skills longbridge-dcaResponse language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
createupdatedailyweeklyfortnightlymonthlyday-of-weekday-of-monthlongbridge dcalongbridge dca --status Activelongbridge dca history <PLAN_ID>longbridge dca statslongbridge dca check <SYMBOL>...longbridge dca calc-date ...createcreatelongbridge dca <subcommand> ...longbridge dcahistorystatscalc-datechecklongbridge dca <subcommand> --help| Action | CLI invocation (typical shape — verify with |
|---|---|
| List all plans | |
| Filter by status | |
| Filter by symbol | |
| Plan trade history (read) | |
| Stats summary (read) | |
| Calculate next trade date (read) | |
| Check symbol eligibility (read) | |
| Create monthly plan (mutating) | |
| Create weekly plan (mutating) | |
| Update an existing plan (mutating) | |
| Pause a plan (mutating) | |
| Resume a paused plan (mutating) | |
| Stop a plan permanently (mutating) | |
| Set pre-trade reminder hours | |
Other flags exist (start date, end date, daily / fortnightly frequency, etc.). The exact spelling can drift between CLI versions — always verify withbefore issuing the command, and quote the exact command back to the user in the preview.longbridge dca create --help
longbridge dca --symbol <SYMBOL> --format jsoncreate⚠️ 即将创建定投计划:
- 标的:{SYMBOL}
- 金额:{AMOUNT} {CURRENCY}
- 频率:{frequency}({day-of-week / day-of-month})
- 起始日:{start date}
- 结束:{end date 或 "无结束日,持续运行"}
此计划生效后,系统会按计划自动从你的账户下单买入。是否确认执行?(请回复"确认"/"confirm"/"是的")
⚠️ About to create a recurring investment plan:
- Symbol: {SYMBOL}
- Amount: {AMOUNT} {CURRENCY}
- Frequency: {frequency} ({day-of-week / day-of-month})
- Start date: {start date}
- End: {end date or "open-ended, runs until paused/stopped"}
Once active, the system will automatically place buy orders from your brokerage account on every scheduled date. Confirm? (Reply "confirm" / "yes" / "确认" to proceed.)
⚠️ 即將建立定投計劃:
- 標的:{SYMBOL}
- 金額:{AMOUNT} {CURRENCY}
- 頻率:{frequency}({day-of-week / day-of-month})
- 起始日:{start date}
- 結束:{end date 或 "無結束日,持續運行"}
此計劃生效後,系統會按計劃自動從你的賬戶下單買入。是否確認執行?(請回覆「確認」/「confirm」/「是的」)
unauthorizednot in authorized scopelongbridge auth logout && longbridge auth login| Situation | LLM response |
|---|---|
Shell | Tell the user to install longbridge-terminal; MCP fallback may apply (see below) but only after user confirmation — never use MCP to bypass the preview / confirm protocol. |
stderr contains | Tell the user to run |
| Symbol not eligible for DCA | Run |
| Insufficient buying power on the scheduled date | This typically surfaces as a downstream order failure, not at create-time. Surface the message verbatim and ask the user how to proceed (top-up cash / pause / lower amount). |
Bad | Re-run |
| Other stderr | Surface verbatim. Do not silently retry — if a mutating call failed, ask the user before any second attempt. Money is involved; a silent retry could double-execute. |
mcp__longbridge__create_dca_planmcp__longbridge__pause_dca_planmcp__longbridge__stop_dca_planmcp__longbridge__list_dca_plansListMcpResourcesToolImportant: the preview / confirm cycle still applies when going through MCP. MCP write tools have no built-in confirmation prompt; this SKILL is responsible for the gate. The extra read-back-of-parameters rule applies in full to MCP calls.
longbridge-positionslongbridge-portfoliolongbridge-orderslongbridge-quotelongbridge-dca/
└── SKILL.md # prompt-only, no scripts/scripts/longbridge dca <subcommand> --help--helpcreateupdate