
Discover four Interactive Brokers API courses, including algorithmic trading with the Python API, advanced concepts, options trading, and quantitative bond trading, plus notes on Trader Workstation and Client Portal APIs.
Explore algorithmic options trading on the Interactive Brokers platform, a pioneering derivatives course. Develop scalable, profitable options strategies with Python and IBM API tools, and meet prerequisites in IBP concepts.
Explore option fundamentals, valuation methods (Monte Carlo and Black-Scholes), option chains, contract selection, data streaming, greeks, advanced orders, and beer spread or straddle strategy implementation with backtesting notes.
A financial option grants a right, not an obligation, to buy or sell an underlying asset at strike price by a date, with premium at stake, including calls and puts.
Explore option payoffs and cash flows, including premium as downside, strike effects on calls and puts, and payoff diagrams, with strategies like straddle, bull spread, long butterfly, and bear spread.
Explore intuitive option valuation using Amazon stock scenarios, contrasting fixed weekly returns with normally distributed returns, and learn how current price, strike, expiry, volatility, and interest rate drive Black-Scholes pricing.
Extract daily data for Facebook, Amazon, and Intel; compute daily returns, then annualize volatility to feed the Black-Scholes model using the five pricing parameters.
Implement the Black-Scholes pricing function to compute d1 and d2 and price call and put options using current price, strike, volatility, time to expiry, and rate.
Learn how implied volatility converts Black-Scholes prices to market option prices by accounting for dynamic volatility perceptions, and use optimization with Brent root finding to solve for it.
Learn how to compute implied volatility with the Black-Scholes model by inputting market option prices and optimizing to match prices, contrasting implied with historical volatility.
Explore Monte Carlo simulation for option valuation, modeling asset prices with geometric Brownian motion and a stochastic differential equation, using standard normal draws to price calls, puts, and exotic options.
Implement Monte Carlo simulation for option pricing, including calls and puts, using historical volatility, current price, strike price, time to maturity, and rate. Compute payoffs and discount to present value.
Explore the ai trading terminal that translates natural language into tws api calls, enabling live and paper trading, price lookups, backtesting with technical indicators, and bracket orders.
Download and run the IBKR agent, an executable linking your TWS or IB gateway to the AI trading terminal, enabling paper or live trading with logs and JSON responses.
Access account level information in the TWS, including balance, portfolio, and subaccount PNL, via the account tab or voice commands to retrieve account summaries, portfolio details, and current open orders.
Explore global scanners in Interactive Brokers to track top gainers and losers, apply filters by market cap, volume, and price, and view real-time lists across US and Indian markets.
Explore backtesting on a single ticker horizon, selecting data ranges and candle intervals while applying default costs, slippage, and commissions to gauge strategy performance with caution.
Learn to debug errors caused by function signature changes in the IB API, update the error function arguments, and locate source code to troubleshoot and resolve integration issues.
Subscribe to the Interactive Brokers market data marketplace, choose Nasdaq Network UDP and the OPRA data bundle for US options, costing about six dollars per month.
Identify the exact option contract for a stock by using the option chain, specifying expiry, strike, and right (call or put) within Interactive Brokers API for algorithmic options trading.
Parse Interactive Brokers option contract details to extract symbol, expiry date, strike, right, and multiplier from the contract details, enabling precise option selection for trading strategies.
Store option chain information for multiple tickers in a dictionary keyed by ticker index, capturing expiry, strike, and right (call/put), and prepare for conversion to a data frame.
Store the option chain for multiple tickers in data frames and convert complete data when contract details end signals completion using an event-driven approach.
Modify the assignment to extract option contracts expiring in future months by passing a single argument, compute future expiry months, and store results in data frames.
Develop a flexible Python utility to compute future month and year from a date string using a shift, enabling access to future-month option chain data on Interactive Brokers.
Identify the right option contracts by analyzing the option chain across expiry dates and strike prices, using the underlying price to distinguish at-the-money, in-the-money, and out-of-the-money options.
Revisit the code that streams current prices for tickers using multithreading and parallel processing, updating a last_price dictionary in real time. Learn to access the latest price for a ticker via a last_price function, with streaming running on a separate thread to keep price data flowing as it changes.
Identify the at-the-money option closest to expiry from the option chain by using a data frame, sorting by expiry, and selecting the strike nearest the underlying price.
Tweak the atm option function to extract deep out of money call and put options expiring in two months, roughly 20% from the underlying price.
Discover how to source real-time option data for algorithmic trading using the IBP streaming data module. Analyze current price, open interest, and Greeks to refine trades.
Stream the last traded price for a specific option contract on Interactive Brokers, using aggregated snapshot data due to lack of real-time option tick data.
Stream the last traded price for multiple option contracts and build at-the-money calls and puts from local symbols Intel, Amazon, Microsoft using the IBM API.
Stream current prices for multiple option contracts by mapping request IDs to options, updating option market data, and using take price rather than bid/ask.
Learn to distinguish open interest from volume, interpret their changes alongside option prices to infer trends, unwinding, and market sentiment, using practical examples.
Learn to stream open interest and volume for a single Amazon option contract on Interactive Brokers, using 27/28 tick types and a special generic tick setup.
Extend the previous open interest and volume streaming to multiple option contracts by adding separate streams for price and size and distinct request IDs for calls and puts.
Create a utility function that returns a dictionary of underlying price, option price, open interest, and volume for a given symbol and option type.
Learn how to access and interpret option Greeks—delta, gamma, vega, and theta—using the DWC Greeks window within Interactive Brokers' option analysis, and build intuition for their use in strategy.
Explore how option price sensitivity to variables is captured by the Greeks—delta, gamma, theta, vega, and rho—highlighting their use in risk management and dynamic hedging, with intuitive interpretations and examples.
Stream and print implied volatility and option greeks for a specific contract, then scale to multiple contracts using the request market data client and the option computation wrapper.
Develop a master market data script that streams underlying prices, implied volatility, and the greeks for multiple contracts, including at-the-money calls and puts, with open interest and volume.
Learn to place and manage option orders in the TWC terminal, select underlying stock and option chain, and build multi-leg strategies like straddles with limit, midpoint pricing, and synchronized execution.
Place a limit order for an option contract using the existing code, generating a next valid id and specifying expiry, strike, and limit price to buy puts or calls.
Learn to build and place combo orders for option spreads on Interactive Brokers, defining combo legs, ratios, and contract IDs, and placing a straddle and multi-leg positions with limit orders.
Learn how to implement a straddle combo order on Interactive Brokers' platform by expanding code to track contract IDs, determine at-the-money options, and place limit-priced straddle trades via a function.
Explore why simultaneous execution of combo order legs isn’t guaranteed on many exchanges, and how to place non-guaranteed combo orders using smart combo routing params with the IBP API.
Learn how to place combo orders for option contracts as a single instrument on Interactive Brokers. See bracket orders with stop loss and take profit to support strategies like straddles.
Learn to use the position and open orders APIs to view option positions, manage combo orders, and interpret order data for options on Interactive Brokers.
Bear spread strategy intro: sell near-term options and hedge with an out-of-the-money buy to lock in limited risk, targeting premium; screen bearish stocks and rank trades by payoff-to-risk.
Extract historical data for Nasdaq tickers, build a data frame, and compute RSI, MACD, and ADR to identify bearish outlooks for a beer spread strategy.
Screen bearish tickers, extract option chains, and identify the at-the-money and out-of-the-money call options. Learn how to manage underlying price, ADR adjustments, and contract details for option trades.
Stream market data for selected option contracts, including open interest, Greeks, and implied volatility for otm call options, to inform an options bet strategy and extend a reusable trading template.
Rank options by risk-to-reward ratio to stay under a $20,000 total risk and $3,000 per-trade limit, computing payoff and risk and sorting with list comprehension to select six positions.
Place combo orders for selected option contracts on Interactive Brokers, using add-the-money and out-of-the-money calls, calculate limit prices and quantities from position risk, and execute the spread.
Apply a unified options strategy template, from butterfly spread to other strategies, and reinforce underlying analysis and risk management by implementing bracket combo orders on Interactive Brokers.
Extract historical data for derivative contracts on Interactive Brokers by defining a contract object; access data for futures and options, with expired futures having limited data and expired options unavailable.
learn to extract historical data for futures contracts with python and ib api, using an event-driven approach and data frames to manage indian futures and expired contracts.
Extract historical data for live options contracts on Interactive Brokers' platform by selecting tickers, option type, strike, and expiry, using local symbols and contract details.
Extract historical data for expired options by applying the Black-Scholes model to past prices. Obtain underlying stock prices and implied volatility using historical data requests to compute option values.
Create two data frames: historical stock data and implied volatility data, to support algorithmic options trading and prepare black scholes pricing for expired options.
Apply the Black-Scholes model to price historical expired options using past stock prices, strikes, and implied volatility, with time-to-expiry and open-high-low-close data.
The much awaited and sought after Options Trading course is here!!
Most Algorithmic trading courses focus on stocks and forex (and lately crypto asset classes) but avoid derivative trading owing to the complexity associated with effectively implementing derivative (options and futures) trading strategies. However, this course will not only introduce you to trading options algorithmically on Interactive Brokers platform but also help you gain a thorough understanding of IBAPI options trading tools to help implement complex strategies such as Straddle and Bear Spread.
You can expect to gain the following skills from this course
Basics of options trading and option valuation
Implement option valuation using the Black Scholes model and Monte Carlo Simulation
Calculate implied volatility using the Black Scholes model.
Options trading settings on TWS and market data access
Extracting option chain for any underlying
Using parallel programming/multi threading to stream and store options market data
Extracting options historical data
Identifying option contracts of interest algorithmically
Advanced order types (Combo)
End to end design and deployment of advanced strategies (Straddle & Bear Spread)
I have created this course based on the strong and persistent demand for an options trading course from my existing students. This course seeks to provide you with the required tools to deploy any kind of options trading strategy on Interactive Brokers platform and gain an edge by leveraging IBAPI's advanced functionalities.
################################################################################################
Course Prerequisite
This is a conceptually advanced and technically involved topic and therefore completion of my other two IBAPI courses listed below is required to get the most out of this course
1) Algorithmic Trading using Interactive Broker's Python API
2) Interactive Brokers Python API - Advanced Concepts
################################################################################################
The course covers and implements Options Straddle and Bear Spread strategy which are quite complex to implement as they require a number of tasks to be performed in tandem (e.g. extracting options chain, streaming options market data, identifying option contracts of interest, generating signals and executing orders). The course explains how such strategies can be built step by step and how the various IBAPI tools can be used efficiently to ensure that the various parts of the strategy work harmoniously.