Exclusive 22% OFF All Quantra by QuantInsti Courses for IBridgePy Users Master algorithmic trading from beginner to advanced — Python for trading, machine learning strategies, options trading, and more.
HUI22 Use HUI22 for 22% off
HUI7 Stack HUI7 for an additional 7% off
Browse Courses →
Multi-Asset Trading · 5 min read · Updated · By Dr. Hui Liu

Python Options & Futures Trading with Interactive Brokers (superSymbol Guide)

Direct Answer / Key Takeaway
IBridgePy simplifies Interactive Brokers multi-asset contract definitions through superSymbol(), letting Python strategies trade US equity options, CME E-mini futures (ES, NQ), forex pairs, and stocks with the same order() and request_historical_data() calls.

How do you define stocks, options, futures, and forex in IBridgePy?

Use symbol() for standard US equities/ETFs and superSymbol() for options, futures, and forex by specifying secType, expiry, strike, right, and primaryExchange.

Asset Class secType Key superSymbol() Parameters
US Stocks / ETFs STK symbol('SPY') or superSymbol(secType='STK', symbol='AAPL', currency='USD')
Equity Options OPT superSymbol(secType='OPT', symbol='SPY', expiry='20261218', strike=600.0, right='C', multiplier='100')
CME Futures FUT superSymbol(secType='FUT', symbol='ES', expiry='202612', exchange='CME', currency='USD')
Spot Forex CASH superSymbol(secType='CASH', symbol='EUR', currency='USD', exchange='IDEALPRO')

How do you fetch an option quote and place a limit order in Python?

Once defined via superSymbol(), pass the security object directly into show_real_time_price() and order() with a LimitOrder style to control fill prices on wider option spreads.

def initialize(context):
    context.call_opt = superSymbol(
        secType='OPT',
        symbol='SPY',
        currency='USD',
        exchange='SMART',
        expiry='20261218',
        strike=600.0,
        right='C',
        multiplier='100',
    )

def handle_data(context, data):
    ask = show_real_time_price(context.call_opt, 'ask_price')
    if ask and ask > 0:
        order(context.call_opt, 1, style=LimitOrder(ask))
    end()

Frequently Asked Questions

Can IBridgePy trade spreads and options strategies with Interactive Brokers?

Yes. You can leg into multi-leg options structures or monitor delta/price triggers across calls and puts using superSymbol() and standard Python logic.

What exchange should I use for CME E-mini S&P 500 (ES) futures in IBKR?

Interactive Brokers consolidated GLOBEX into CME for E-mini equity index futures, so specify exchange="CME" (with expiry in YYYYMM format, such as "202612").

Next Steps & Related Resources

More IBridgePy Developer Guides