sell
Execute sell orders for a specified quantity of shares, with market or limit price options.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"quantity": "<quantity>"
},
"name": "sell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| quantity | Yes | ||
| limit_price | No |