I Want to Trade Options
Is this you?
- You want to buy or sell calls and puts via XeroLite
- You're not sure if XeroLite supports options
- You want to know how to format alerts for options
Quick Answer
✅ Yes, XeroLite supports options trading (where Interactive Brokers supports it)
You can trade:
- Calls (buy/sell)
- Puts (buy/sell)
- Spreads (e.g. bull call, bear put) — structure the alert to match IB requirements for multi-leg options
Format your alert JSON with the correct symbol, asset class, and any options-specific fields required by the Alert Request Format. Use paper trading first to verify.
Setup (high level)
- Enable options in your IB account — In IB account settings, ensure options (or equities and options) trading is enabled for the account you use with XeroLite.
- Create your TradingView alert — Use your strategy or Pine Script to detect the signal. When the condition is met, send a webhook to XeroLite with the options order in the message.
- Format the alert message for options — Use the Alert Request Builder and Alert Request Format for options (symbol, strike, expiry, etc.). Ensure asset class and exchange are correct.
- Test with paper trading — Send test alerts and confirm orders appear in TWS paper account and in XeroLite Transactions.
- Switch to live when ready — Use small size at first and monitor order execution.
Common Questions
Q: Can I trade spreads?
A: Yes, if IB supports the strategy. Structure your alert message (e.g. multi-leg or combo) according to the alert format and IB API requirements. See Combo Order Types for related patterns.
Q: What if my order is rejected?
A: Check Troubleshooting and Order Execution Errors. Common causes: wrong symbol/expiry/strike, insufficient permissions or margin, or invalid rounding.
See Also
- Alert Request Format v1.2 — Fields for all order types including options
- Alert Request Builder — Build and validate alert messages
- Combo Order Types — Multi-leg and combo orders
- Troubleshooting — Connection and order execution issues