{"full_name":"QuantConnect/Lean","owner":"QuantConnect","name":"Lean","shard":"1","url":"https://github.com/QuantConnect/Lean","description":"Lean Algorithmic Trading Engine by QuantConnect (Python, C#)","homepage":"https://lean.io","topics":["c-sharp","algorithmic-trading-engine","quantconnect","lean-engine","finance","algorithm","options","trading-algorithms","trading-platform","trading-strategies","trading-bot","python","stock-indicators","forex","trading"],"tag_pages":["algorithm","c-sharp","finance","forex","python","trading","trading-algorithms","trading-bot","trading-platform","trading-strategies"],"language":"C#","license":"Apache-2.0","avatar":"https://avatars.githubusercontent.com/u/3912814?v=4","created_at":"2014-11-28T04:20:19Z","pushed_at":"2026-11-15T18:13:39Z","metrics":{"stars":22544,"forks":5425,"watchers":490,"issues":3837,"prs":6231,"releases":8,"issues_open":292,"issues_closed":3545,"prs_open":15,"prs_closed":975,"prs_merged":5241,"discussions":0},"growth":{"day":{"stars":18,"forks":5,"base_day":"2026-11-15"},"week":{"stars":176,"forks":51,"base_day":"2026-11-04"},"month":{"stars":511,"forks":113,"base_day":"2026-10-17"}},"history":{"dates":["2026-09-06","2026-09-07","2026-09-08","2026-09-09","2026-09-10","2026-09-11","2026-09-12","2026-09-13","2026-09-14","2026-09-15","2026-09-16","2026-09-17","2026-09-18","2026-09-19","2026-09-20","2026-09-21","2026-09-22","2026-09-23","2026-09-24","2026-09-25","2026-09-26","2026-09-27","2026-09-28","2026-09-29","2026-09-30","2026-10-01","2026-10-02","2026-10-03","2026-10-04","2026-10-05","2026-10-06","2026-10-07","2026-10-08","2026-10-09","2026-10-10","2026-10-11","2026-10-12","2026-10-13","2026-10-14","2026-10-15","2026-10-16","2026-10-17","2026-10-18","2026-10-19","2026-10-20","2026-10-21","2026-10-22","2026-10-23","2026-10-24","2026-10-25","2026-10-26","2026-10-27","2026-10-28","2026-10-29","2026-10-30","2026-10-31","2026-11-01","2026-11-02","2026-11-03","2026-11-04","2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[21489,21498,21528,21541,21554,21571,21588,21599,21616,21624,21641,21647,21659,21670,21680,21701,21715,21723,21741,21757,21777,21790,21798,21806,21820,21830,21842,21843,21851,21858,21864,21884,21899,21912,21923,21951,21963,21969,21984,22003,22022,22033,22067,22085,22105,22113,22136,22154,22173,22196,22222,22251,22266,22283,22298,22307,22324,22336,22349,22368,22469,22486,22499,22502,22516,22526,22544],"forks":[5220,5219,5227,5233,5233,5238,5242,5241,5243,5246,5247,5249,5250,5253,5253,5253,5255,5257,5257,5259,5262,5261,5261,5263,5268,5271,5274,5273,5279,5281,5282,5283,5285,5285,5288,5292,5293,5295,5298,5302,5305,5312,5319,5325,5330,5331,5335,5338,5338,5340,5343,5349,5350,5352,5354,5360,5366,5368,5375,5374,5401,5406,5409,5413,5418,5420,5425],"watchers":[490,492,493,493,491,491,491,491,492,492,492,492,494,495,495,495,495,494,494,494,495,495,496,496,496,496,496,496,496,496,495,495,495,495,495,495,495,496,497,497,497,497,498,498,498,497,497,497,498,496,496,496,496,496,493,492,492,491,491,491,null,492,492,492,491,491,490],"issues_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,280,282,287,291,292,292],"prs_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,23,18,16,15,14,15]},"boards":{},"same_owner":[],"issues":[{"number":1509,"title":"Add Oanda FX Volume Alternative Data Type","comments":14,"created_at":"2018-01-26T18:37:02Z"},{"number":9440,"title":"Configurable Rolling Date With DataMappingMode","comments":10,"created_at":"2026-04-27T14:10:34Z"},{"number":997,"title":"Add Orderbook Support to LEAN","comments":8,"created_at":"2017-06-29T00:49:29Z"},{"number":9972,"title":"MarketOnClose fills are not capped by volume: an order larger than the closing volume fills in full at the close","comments":6,"created_at":"2026-10-28T18:26:03Z"},{"number":7570,"title":"Support Futures Weeklies","comments":6,"created_at":"2023-11-14T19:00:30Z"},{"number":7031,"title":"Walk Forward Optimization","comments":6,"created_at":"2023-03-01T20:56:45Z"},{"number":9909,"title":"FutureFillModel fills a resting market order at the midnight extended-hours start on the previous session's quote bar, without stale wait or warning, when the subscription has no extended hours","comments":5,"created_at":"2026-10-16T11:49:26Z"},{"number":8874,"title":"Implement default custom data json reader","comments":5,"created_at":"2025-07-15T17:39:14Z"}],"discussions":[],"latest_release":{"name":"R-Support, Visual Studio Integration, Python Updates","tag":"v2.4.0.1","published_at":"2017-08-08T20:57:57Z","body":"This release adds R-support to LEAN; allowing you to run R-code from your LEAN C# algorithms. This makes the R statistics libraries available for use in QuantConnect. Additionally a community member contributed a plugin for Visual Studio which uses the QuantConnect API to perform file editing tasks and deploy backtests. Additionally this release extends Python support with many new libraries, charting, history request support, Quandl support and many example algorithms. Quantity decimalization was implemented as the first step towards crypto-currency support. In addition there were numerous bug fixes, notably forIB connection handling and Python support.\r\n\r\n*Features*\r\n\r\n* Added support for R.Net and R-base from C#\r\n* Added Plug-in for Visual Studio Integration\r\n* Added charting support for Python\r\n* Added Arnaud Legoux Moving Average (ALMA) indicator\r\n* Added Python packages sklearn, keras, tensorflow, copulalib, theano, xgboost, TA-Lib and many more\r\n* Added Python basic template algorithms for options and futures\r\n* Added calculation of futures expiry dates\r\n* Added AlgorithmSettings and IAlgorithm.Settings property\r\n* Order quantity and position sizes are now decimals to support crypto-currency assets.\r\n* Added Python History Requests returning pandas.DataFrame\r\n* Added new LeanManagement interface\r\n* Added Quandl support for Python\r\n\r\n*Updates*\r\n\r\n* Updated example algorithms written in Python\r\n* Improved ZipDataCacheProvider exception handling and logging\r\n* Restored default accountId for OandaDownloader\r\n* Updated OandaDownloader to save QuoteBars instead of TradeBars\r\n* Improved compression in futures and options data writers\r\n* Update Reader error log messages for QuoteBar and TradeBar\r\n* Added symbol to QuoteBar.Reader error logging\r\n* Added Resolution to QuoteBar.Reader error logging\r\n* Performance improvements to ZipDataCacheProvider\r\n* Updated and added new sample data files\r\n* Added rate limiting to 50 msg/second for Interactive Brokerssubscribe/unsubscribe\r\n* Added Easter holidays in market-hours-database\r\n* Updated Python framework to support Python datetime\r\n* Time-based removal of option contracts from universe in live mode\r\n* Updated OandaSymbolMapper to support delisted symbols\r\n* Updated Forex/CFD default fee model to ConstantFeeModel(0)\r\n* Added Holidays for CFDs in market-hours-database\r\n* Updated YahooDownloader to new Yahoo API\r\n* Updated example Python algorithms\r\n* Added DataNormalization mode validation for Options\r\n* Updated HistoryDataCacheProvider to use ZipDataCacheProvider within Engine\r\n* Updated all LEAN threads to be Background threads\r\n* Increased speed in option data conversion\r\n* Upgraded all projects to target .NET Framework 4.5.2\r\n* Upgraded all projects to use C# 6.0 compiler\r\n* Upgraded all third-party libraries\r\n* Updated ToDecimal extension method to allow negative numbers\r\n* Added OANDA-Agent HTTP Header to API requests\r\n\r\n*Bug Fixes*\r\n\r\n* Removed redundant properties in HistoryRequest class\r\n* Added HasCustomData flag to SubscriptionManager (for Python)\r\n* Updated IB brokerage to restart when receiving reconnect (1102) message\r\n* Removed lock from AddData method\r\n* Added check for custom data existence after security removal\r\n* Fixed FSharp reference error\r\n* Fixed Warmup/History requests for canonical symbols\r\n* Added parameter validation in FutureMarginModel.GetInitialMarginRequirement\r\n* Fixed OANDA v20 history requests for more than 5000 bars\r\n* Fixed ParallelRunner error during application exit\r\n* Fixed zero-value open interest bug in IB brokerage\r\n* Fixed compiler build warnings\r\n* Fixed errors with Futures or Options existing holdings\r\n* Fixed existing brokerage holdings in Futures universe selection filters\r\n* Fixed bugs and performance issues in Python integration\r\n* Fixed bug in option filtering by range of strikes\r\n* Fixed counting bug in SubscriptionLimiter with Options/Futures\r\n* Fixed IB reset sequence in CheckIbGateway\r\n* Fixed SetBrokerageModel resetting leverage w","is_prerelease":false},"readme":false,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}