sell
Sell a specified quantity of shares for a given symbol. Supports fractional shares. Set limit_price for limit orders, or omit for market orders.
Instructions
Sell by quantity (shares, fractional ok). Omit limit_price for market, pass it for LIMIT.
IBKR does NOT accept selling by US$ value (cashQty is buy-only). To exit
100% of a position use close_position; to sell a dollar amount,
compute the quantity via get_quote.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| quantity | Yes | ||
| limit_price | No |