place_order
Place market, limit, or stop orders for stocks and options on Interactive Brokers. Specify account, symbol, quantity, and order type to execute trades.
Instructions
Place a trading order. Examples:
Market buy:
{ "accountId":"abc","symbol":"AAPL","action":"BUY","orderType":"MKT","quantity":1 }Limit sell:
{ "accountId":"abc","symbol":"AAPL","action":"SELL","orderType":"LMT","quantity":1,"price":185.5 }Stop sell:
{ "accountId":"abc","symbol":"AAPL","action":"SELL","orderType":"STP","quantity":1,"stopPrice":180 }Option buy:
{ "accountId":"abc","symbol":"AAPL","secType":"OPT","expiry":"JAN27","strike":200,"right":"C","action":"BUY","orderType":"LMT","quantity":1,"price":4.5 }Option by conid:
{ "accountId":"abc","conid":123456789,"secType":"OPT","action":"BUY","orderType":"MKT","quantity":1 }Suppress confirmations:
{ "accountId":"abc","symbol":"AAPL","action":"BUY","orderType":"MKT","quantity":1,"suppressConfirmations":true }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tif | No | ||
| conid | No | ||
| price | No | ||
| right | No | ||
| action | Yes | ||
| expiry | No | ||
| strike | No | ||
| symbol | No | ||
| secType | No | ||
| exchange | No | ||
| quantity | Yes | ||
| accountId | Yes | ||
| orderType | Yes | ||
| stopPrice | No | ||
| suppressConfirmations | No |