eToro Integration, Information Coefficient Indicators, ObjectStore Enhancements
In these LEAN release notes for versions 18216 to 18297, we introduce eToro brokerage integration, time-series and cross-sectional information coefficient indicators, and Interactive Brokers FIX Financial Advisor settings. We also expand extended-hours order support, simplify ObjectStore persistence with Python JSON and DataFrame helpers, and add Python-friendly order-event aliases and combo-ticket tracking helpers.
We improve trading accuracy through corrections to option settlement, assignment estimates, brokerage fees, coin-margined crypto futures accounting, margin-call sizing, and cross-zero order handling. We strengthen market-hours handling, indicator synchronization, holdings restoration, and universe lifecycle management.
We also improve Python interoperability, eliminate consolidator memory leaks, harden WebSocket connections, and resolve optimization hangs and estimation errors. Across development workflows, we accelerate automated tests and improve data download, storage, and diagnostic reliability.
Thanks dylanpulver, mkzung, aarushkandukoori, and johnkaram02 for strengthening LEAN’s tests, feed validation, futures-margin concurrency, caching, ZIP validation, comment spelling, and fee accuracy!
Features
- Shipped (#10231): Add time-series and cross-sectional information coefficient indicators: We added time-series and cross-sectional information coefficient indicators using Spearman correlation to evaluate signals against subsequent returns.
- Shipped (#10089): feature: financial advisor properties on the ib fix order properties: We updated InteractiveBrokersFixOrderProperties to inherit InteractiveBrokersOrderProperties, exposing Financial Advisor settings while preserving Account compatibility.
- Shipped (#9886): Add eToro Brokerage Integration: We added eToro brokerage registration, asset-specific leverage and fees, and validation for market entries and contingent exits.
- Shipped (#9905): Improve ObjectStore ergonomics for end-of-run persistence: We improved ObjectStore persistence with Python JSON/DataFrame helpers, text aliases, and missing-key errors listing available keys.
- Shipped (#9896): Add OrderEvent synonyms, OrderType and GroupId, OrderFee.Amount and combo ticket helpers: We added Python-friendly order-event aliases, order type and group IDs, fee aliases, and combo-ticket tracking helpers.
- Shipped (#9928): Allow TradeStation extended-hours limit orders on equity options: We now allow TradeStation extended-hours limit orders for equity options, while continuing to reject index options and futures.
Bug Fixes
- Fixed issue (#10214): We skip or cancel cross-zero second legs after cancellation.
- Fixed issue (#10253): We added weather-related afternoon-only sessions for Hang Seng Index.
- Fixed issue (#10255): We corrected variable references and improved test isolation.
- Fixed issue (#10237): We serialize API test backtest creation to prevent throttling.
- Fixed issue (#10178): We corrected option fees and improved assignment cost estimates.
- Fixed issue (#10232): We normalize multi-symbol indicator timestamps to one exchange timezone.
- Fixed issue (#10233): We corrected double-counted contract units in option assignment estimates.
- Fixed issue (#10224): We remap restored equity options to current underlying tickers.
- Fixed issue (#10205): We align IndicatorHistory and warm-up with registered bar types.
- Fixed issue (#10222): We restore holdings using security identifiers and current tickers.
- Fixed issue (#10203): We execute cross-zero trailing-stop openings as market orders.
- Fixed issue (#10204): We preserve closed-trade precision and correct breakeven profit calculations.
- Fixed issue (#10201): We prevent futures margin-call sizing failures without reversing positions.
- Fixed issue (#10131): We size margin call liquidations for remaining deficits.
- Fixed issue (#10188): We now include delayed commissions in trade statistics.
- Fixed issue (#10180): We corrected Forex and CFD commission currency calculations.
- Fixed issue (#10162): We restore execution indicators when securities rejoin overlapping universes.
- Fixed issue (#10173): We harmonically average entry prices for coin-margined crypto futures.
- Fixed issue (#10160): We reuse Python consolidator wrappers, preventing leaks and crashes.
- Fixed issue (#10171): We standardized Hilbert Transform helper naming, including sub-indicator prefixes.
- Fixed issue (#10167): We corrected midnight closes when extended hours are excluded.
- Fixed issue (#10157): We corrected AM-settled index options to settle at open.
- Fixed issue (#10158): We prevent duplicate consolidator scan wrappers and memory leaks.
- Fixed issue (#10156): We corrected NDXP/NQX settlement cutoffs to 4:00 PM Eastern.
- Fixed issue (#10153): We reject oversized SMS messages and surface notification errors.
- Fixed issue (#10154): We fix WebSocket close/connect races, preserving Closed event delivery.
- Fixed issue (#10151): We correct IBKR US equity commission caps and valuation.
- Fixed issue (#10146): We enabled LeanDataWriter writes beyond string limits, reducing memory.
- Fixed issue (#10145): We corrected ICE Sugar futures brokerage price scaling.
- Fixed issue (#10136): We corrected coin-margined crypto futures closed-trade statistics.
- Fixed issue (#10133): We corrected profit signs for coin-margined crypto futures.
- Fixed issue (#10132): We fixed PortfolioTargetCollection.Contains recursion and ensured exact target matching.
- Fixed issue (#10128): We fixed recursive key-value insertion in PortfolioTargetCollection.
- Fixed issue (#10097): We prevent duplicate margin call liquidations and combo oversizing.
- Fixed issue (#10122): We correct inherited market-hour exceptions across exchange time zones.
- Fixed issue (#10121): We exclude zero-quantity fills from transaction and trade statistics.
- Fixed issue (#10114): We preserve early-close settlement for same-day PM-settled index options.
- Fixed issue (#10113): We corrected multi-symbol IndicatorHistory to retain final synchronized values.
- Fixed issue (#10109): We fixed midnight market openings when excluding extended hours.
- Fixed issue (#10106): We set the algorithm clock before live brokerage connections.
- Fixed issue (#10095): We launch pending optimization backtests after queued launch failures.
- Fixed issue (#10098): We rebuild stale execution-model state when securities are reselected.
- Fixed issue (#10027): We enabled three uncollected tests and corrected internal-feed validation.
- Fixed issue (#10096): We preserve first data points in canonical downloads.
- Fixed issue (#10087): We create missing directories before writing downloaded universe files.
- Fixed issue (#10088): We add original-key fallback for invalid mapped DataFrame lookups.
- Fixed issue (#10083): We corrected GreenblattMagicFormulaAlpha stock selection using combined factor ranks.
- Fixed issue (#10080): We preserve Euler search refinement despite individual backtest failures.
- Fixed issue (#10081): We fixed GetNextMarketOpen to find later same-day session openings.
- Fixed issue (#10079): We fixed absolute universe path parsing, enabling missing data downloads.
- Fixed issue (#10078): We fixed spaced PDF paths and conversion failure reporting.
- Fixed issue (#10074): We restored NYSE stock selection in GreenblattMagicFormulaAlpha.
- Fixed issue (#10062): We preserve covered credit spreads without increasing margin requirements.
- Fixed issue (#10071): We stop launchers after displaying help or version information.
- Fixed issue (#10063): We fixed overnight session continuity around early-close days.
- Fixed issue (#10065): We fixed endless Euler search refinement for single-segment optimizations.
- Fixed issue (#10061): We prevent optimizer execution after help or version requests.
- Fixed issue (#10058): We prevent optimizer hangs by returning failure exit codes.
- Fixed issue (#10055): We ensure positive calculated optimization steps, preventing infinite searches.
- Fixed issue (#10054): We cap optimization backtest estimates to prevent integer overflow.
- Fixed issue (#10048): We aligned optimization backtest estimates with enumerated parameter grids.
- Fixed issue (#10051): We preserve newest-first ordering when growing wrapped RollingWindows.
- Fixed issue (#10037): We improved futures margin lookup concurrency and cache handling.
- Fixed issue (#10041): We validate ZIP boundaries and payloads, avoiding platform-specific sizes.
- Fixed issue (#10044): We preserve native pandas KeyErrors when keys remain unmapped.
- Fixed issue (#10029): We sanitize unsupported ObjectStore keys to prevent save failures.
- Fixed issue (#10033): We ensure WebSocket connections terminate when Close() races reconnection.
- Fixed issue (#10028): We allow brokerages to disable daily option holdings synchronization.
- Fixed issue (#9673): We automatically deregister indicators and consolidators when removing securities.
- Fixed issue (#9893): We now support Alpaca GTC extended-hours limit orders.
- Fixed issue (#10003): We correct optimization order counts using fallback statistics.
- Fixed issue (#10000): We enable TradeStation extended-hours limit orders for index options.
- Fixed issue (#9999): We fixed delayed bar delivery and stabilized intermittent tests.
- Fixed issue (#9996): We fixed VolumeProfile and TimeProfile value area calculation hangs.
- Fixed issue (#9995): We fixed Python option pricing model override type-checking.
- Fixed issue (#9992): We added 'QUANTCONNECT_BROKERAGE' as a Python default brokerage alias.
- Fixed issue (#9994): We derive missing option underlyings during symbol JSON deserialization.
- Fixed issue (#9993): We preserve two-digit years when parsing futures option tickers.
- Fixed issue (#9986): We skip final backtest analysis when algorithm loading fails.
- Fixed issue (#9935): We fixed subscriptions when user-defined universe members change resolution.
- Fixed issue (#9954): We restore accurate fees for Wolverine, RBI, and TDAmeritrade.
Updates
- Fixed issue (#10215): We corrected typos across documentation, comments, and runtime messages.
- Fixed issue (#10194): We removed duplicate words from code comments and docstrings.
- Fixed issue (#10172): We removed unused locals and corrected misspelled identifiers.
- Fixed issue (#10166): We corrected C# and Python comment typos without changing behavior.
- Fixed issue (#10149): We accelerate API project tests through parallelization and reliability improvements.
- Fixed issue (#10127): We updated pythonnet to prevent duplicate .NET constructor execution.
- Fixed issue (#10120): We corrected XML documentation typos without changing behavior or APIs.
- Fixed issue (#10100): We added a lossless blocking collection consumption helper.
- Fixed issue (#10069): We upgraded pythonnet to prevent crashes during Python exception handling.
- Fixed issue (#10046): We improve brokerage test timeout diagnostics and handler cleanup.
- Fixed issue (#10045): We corrected spelling in four code comments.
- Fixed issue (#10022): We corrected QuoteBar documentation to clarify last bid/ask sizes.
- Fixed issue (#10013): We log ZIP size when extraction to folders fails.
- Fixed issue (#10001): We upgraded pythonnet, improving concurrency, object representations, and conversions.
- Fixed issue (#9997): We accelerated research and computation tests without weakening assertions.
- Fixed issue (#9990): We remove unnecessary order-submission waits from transaction handler tests.
- Fixed issue (#9951): We rename TerminalLink to Quant Bridge, preserving backward compatibility.
- Fixed issue (#9988): We hide engine-only Python extensions and OrderTicket numeric stubs.
- Fixed issue (#9987): We accelerate CI by configuring Python environments during builds.
- Fixed issue (#9984): We accelerated sequential tests by eliminating unnecessary fixed waits.
- Fixed issue (#9980): We accelerate Cesium with synthetic data and isolate PyStan.
- Fixed issue (#9975): We accelerate regression tests using four parallel process shards.
- Fixed issue (#9976): We accelerate Python virtual environment tests with controlled concurrency.
- Fixed issue (#9977): We accelerate history tests by parallelizing slow test cases.
- Fixed issue (#9978): We accelerate benchmarks using stored baselines and selective rechecks.
Mia Alissi
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
This discussion is closed