place_order
Execute buy or sell orders for specified contracts and quantities through the Shioaji trading API, supporting various order types and pricing options for account management.
Instructions
Place a trading order (requires SHIOAJI_TRADING_ENABLED=true)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract | Yes | Contract code | |
| action | Yes | Buy or Sell | |
| quantity | Yes | Order quantity | |
| price | No | Order price (optional for market orders) | |
| order_type | No | Order type (ROD, IOC, FOK) |