guarded_place_order
Places an Alpaca trade only if its notional value is within today's remaining budget cap. Returns BUDGET_EXCEEDED with details when trade exceeds the cap.
Instructions
Place an order on Alpaca, but ONLY if the trade's notional USD value fits within today's remaining cap. Pre-flight is mandatory: agent cannot override. If notional > remaining, returns BUDGET_EXCEEDED with a structured hint. On success the charge is recorded to the local ledger so the cap survives MCP restarts.
Returns: { allowed, status, tradeNotionalUsd, remainingUsd, limitUsd, alpacaOrder?, x402Receipt? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Ticker e.g. AAPL | |
| qty | Yes | Quantity in shares | |
| side | Yes | ||
| type | No | market | |
| limitPrice | No | Required if type=limit | |
| tif | No | day |