buy
Place market or limit buy orders for stocks. Specify symbol and either cash amount (for fractional shares) or share quantity. Omit limit price for market orders; include it for limit orders.
Instructions
Buy. Provide cash_amount (US$, fractional via cashQty) OR quantity (shares).
Omit limit_price for a market order. Pass limit_price for a LIMIT order —
LIMIT requires quantity (cashQty is market-only). A limit order may surface a
confirmation IBKR hasn't mapped yet; if so it is blocked (safe) until allow-listed.
A cash_amount buy comes back with is_cash_quantity: true. Its fill is reported in
SHARES in filled_quantity and in US$ in filled_cash (IBKR itself reports both in the
same field — see order_status); size any protective stop from the SHARE count.
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>"
},
"name": "buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| quantity | No | ||
| cash_amount | No | ||
| limit_price | No |