guarded_close_position
Close a position on Alpaca while respecting a daily cap. Refuses if closing would cause re-opening exposure that exceeds the cap.
Instructions
Close a position on Alpaca. Pre-flighted against the daily cap: if closing requires re-opening exposure (short close → re-buy) that exceeds the cap, refuses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Ticker of the position to close | |
| qty | No | Optional — partial close. If omitted, closes the full position. |