close_position
Close a specific trading position by placing a sell order for a symbol. The order executes immediately during market hours or queues for the next market open.
Instructions
Closes a specific position for a single symbol by placing a sell order. If the market is closed, the sell order will remain queued and execute at the next market open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | the number of shares to liquidate. Can accept up to 9 decimal points. Cannot work with percentage | |
| percentage | No | percentage of position to liquidate. Must be between 0 and 100. Would only sell fractional if position is originally fractional. Can accept up to 9 decimal points. Cannot work with qty | |
| symbol_or_asset_id | Yes | symbol or assetId |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||