Place Stock Order
place_stock_orderExecute buy or sell orders for stocks and ETFs using various order types including market, limit, stop, and trailing stop orders.
Instructions
Place a stock or ETF order.
Args: symbol: Stock ticker (e.g., "AAPL", "SPY"). side: "buy" or "sell". qty: Number of shares. Mutually exclusive with notional. notional: Dollar amount to trade. Mutually exclusive with qty. Only valid for market orders with time_in_force="day". type: Order type — "market", "limit", "stop", "stop_limit", "trailing_stop". time_in_force: "day", "gtc", "opg", "cls", "ioc", or "fok". limit_price: Required for limit and stop_limit orders. stop_price: Required for stop and stop_limit orders. trail_price: Dollar trail amount for trailing_stop orders. trail_percent: Percent trail for trailing_stop orders. extended_hours: Allow execution in extended hours. Only works with type="limit" and time_in_force="day". client_order_id: Unique idempotency key. If the request times out, you can safely retry with the same value — the API will reject duplicates. Recommended for every order. order_class: "simple", "bracket", "oco", or "oto". Automatically set to "bracket" when take_profit or stop_loss params are provided. take_profit_limit_price: Limit price for bracket take-profit leg. stop_loss_stop_price: Stop price for bracket stop-loss leg. stop_loss_limit_price: Limit price for bracket stop-loss leg.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| side | Yes | ||
| qty | No | ||
| notional | No | ||
| type | No | market | |
| time_in_force | No | day | |
| limit_price | No | ||
| stop_price | No | ||
| trail_price | No | ||
| trail_percent | No | ||
| extended_hours | No | ||
| client_order_id | No | ||
| order_class | No | ||
| take_profit_limit_price | No | ||
| stop_loss_stop_price | No | ||
| stop_loss_limit_price | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||