close_position
Place a sell order to liquidate a position for a single symbol. Choose quantity or percentage, and orders queue until the next market open if the market is closed.
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 | |||