Skip to main content

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)

  1. 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.
  2. 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.
  3. 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.
  4. Test with paper trading — Send test alerts and confirm orders appear in TWS paper account and in XeroLite Transactions.
  5. 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