Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Futures and options #668
- Updated IB fee model to support option exercise - Added support for splits for options. Not tested on real data yet. - Added option exercise functionality for long positions. Unit Tests. Not tested on real data yet. - Added option assignment functionality for short positions. Assignment event. Unit Tests. - Added basic option assignment simulator for backtesting brokerage. Simulates assignments for deep ITM short positions close to expiration. Unit Tests.
…Feed website. - Added IQFeed options support to toolbox: option chain universe, option symbol list, subscriptions, live prices - Added LiveTradingDataFeed to support options live screaming - Added IB live options trading support: trading orders, holdings, live option exercising - Modified ISymbolMapper interface to support derivatives (options, futures) - Fixed minor bugs with (introduced ealier) symbol changes for options Tested with IQFeed version 184.108.40.206. IB TWS offline version 957.
- Added OptionStrategies class with 10 popular option strats - Defined OptionStrategy class - Added support for trading of option strategies in QCAlgorithm.Trading.cs - Added several estimator interfaces to introduce QL pricing models extention points: IDividendYieldEstimator, IRiskFreeRateEstimator, IUnderlyingVolatilityEstimator provided default implementation (flat term structure) - Added QLOptionPriceModel class that contains meat of the calculations - Added OptionPriceModels class that exposes 12 popular option pricing models to the user: those include Black Scholes, Barone-Adesi Whaley, Bjerksund Stensland, Crank Nicolson FD, Binomial Trees and more. - Modified Greeks class to support lazy evaluation and introduce IV - Partially tested on live data and trading (IQFeed/IB) and backtests. Need more data for tests.
curious about the suffix
Those are QuantLib types. I*Estimator interfaces are designed to give user QL extention points once user started working with QL option pricing models. Types are used and live in QLOptionPriceModel class. Those types are not supposed to leak into the LEAN.
…s, financials, etc) Added symbol properties for that nomenclature Added IQFeed mapping for that nomenclature Added basic futures algo class
This method is used by both Future and OptionsChainUniverse. This method is useful, espeically in the SecurityManager. It will eventually be used there.
This method is helpful in determining if a Type is a common data type, which are TradeBar, QuoteBar and OpenInterest.
…for Cacnonical securities QCAlgorithm.History.GetLastKnownPrice sets the securityType on the history request.