Actions7
- Account Actions
- Market Data Actions
- Order Actions
- Position Actions
Order → Place Order
AI-generatedSummary
Place a new order on the Interactive Brokers platform to buy or sell specified securities by defining symbol, action, quantity, order type, and related pricing and exchange details.
Inputs
- Symbol (required) — Stock symbol of the security to trade (e.g., AAPL, TSLA).
- Action (required) — Order action indicating whether to buy or sell the security.
- Quantity (required) — Number of shares or contracts to buy or sell.
- Order Type (required) — Type of order to place, including Market (MKT), Limit (LMT), Stop (STP), or Stop Limit (STP LMT).
- Limit Price — Limit price for Limit and Stop Limit orders.
- Stop Price — Stop price for Stop and Stop Limit orders.
- Security Type (required) — Type of security, such as Stock (STK), Option (OPT), or Future (FUT).
- Exchange — Exchange on which to execute the order, defaulting to SMART.
- Currency — Currency for the order, defaulting to USD.
Output shape
a single JSON object confirming order submission details
The output includes orderId, symbol, action, quantity, orderType, status (always 'Submitted'), and connection status. The operation asynchronously places the order and may wait briefly before returning. Errors halt execution unless 'Continue On Fail' is enabled.
Examples
Example 1: Place a market order to buy 100 shares of AAPL stock on SMART exchange in USD.
Symbol='AAPL', Action='BUY', Quantity=100, Order Type='MKT', Security Type='STK', Exchange='SMART', Currency='USD'