Submit Fund Order
fund_submit_orderSubmit a fund buy/sell order. DRY RUN unless execute is the confirmation_code from its own dry run: call once without execute, show the preview to the user, then re-call quoting the code only after they explicitly confirm. Requires auth.
Instructions
Submit a fund buy/sell order. DRY RUN unless execute is the confirmation_code from its own dry run: call once without execute, show the preview to the user, then re-call quoting the code only after they explicitly confirm. Requires auth. counter_id from fund_hot / fund_list; action is buy or sell; currency e.g. HKD/USD; give either amount (cash to invest) or units (shares to sell); is_sell_all=true redeems the whole position. Use fund_validate_order first for a safe pre-trade check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _jq | No | Optional jq filter (jaq syntax) applied to this tool's JSON response before it is returned; it never changes the upstream request. One output is returned as-is, several as a JSON array, none as []. Module imports and the `env`/`debug`/`stderr` builtins are unavailable. Example: .data | map({symbol}). Omit for the full response. | |
| fee | No | Fee amount to apply. Omit for the server default. | |
| units | No | Redemption units (shares to sell). Use for a sell / buy by units; mutually exclusive with `amount`. | |
| action | Yes | Order action: `buy` or `sell`. | |
| amount | No | Subscription amount (cash to invest). Use for a buy by amount; mutually exclusive with `units`. | |
| remark | No | Order remark / note. | |
| execute | No | The `confirmation_code` from this order's dry run. WITHOUT IT NOTHING IS SENT. Omitted (the default) makes this a DRY RUN: the request is validated and echoed back with a three-digit `confirmation_code`, and nothing reaches the fund channel. Required protocol: call once without `execute`, show the returned preview to the user, and call again quoting the code only after the user has explicitly confirmed that exact order. The code is single use, expires in 10 minutes, and applies only to this exact order — change any field and it stops working. Never quote it back on your own initiative, and never in the same turn the user first asks. | |
| currency | Yes | Order currency, e.g. `HKD`, `USD`. | |
| counter_id | Yes | Fund counter_id, e.g. `UT/FD/HK0000384492` (from `fund_hot` / `fund_list`). | |
| is_sell_all | No | Sell the entire held position; overrides `units` for a full redemption. | |
| trade_method | No | Trade method selector (server-defined). Omit for the default. | |
| dividend_option | No | Dividend handling option (server-defined, e.g. reinvest vs. cash payout). |