QuantConnect Lean Fixes Futures Daily P&L Settlement Currency Error
QuantConnect Lean engine improved the daily P&L settlement method for futures contracts. Previously, when the account currency differed from the contract's quot
QuantConnect Lean — C#/Python Backtesting & Live Trading Engine · Release 18180: Settle futures daily P&L in the contract's quote currency (#9872) · 2026-10-06
QuantConnect Lean engine improved the daily P&L settlement method for futures contracts. Previously, when the account currency differed from the contract's quote currency, FutureSettlementModel moved incorrect amounts, causing total portfolio value to gradually drift. Now daily P&L is calculated and settled in the quote currency based on settlement price, and FutureHolding maintains the settled amount in quote currency while exposing SettledProfit in account currency at the current exchange rate.
weltiq perspective: Improved portfolio value calculation accuracy in multi-currency futures strategy backtests reduces discrepancies with live trading results.
Release Notes Excerpt
FutureSettlementModel moved an account currency amount into the quote currency cash, so when the two differ the quote cash moved by the wrong amount every settlement and TotalPortfolioValue drifted. The daily P&L is now computed and settled in the quote currency from the settlement price, and FutureHolding keeps the settled amount in the quote currency, exposing SettledProfit in the account currency at the current rate. Closes #9837 Co-authored-by: Claude Opus 5.5 (1M context) noreply@anthropic.com
Source: https://github.com/QuantConnect/Lean/releases/tag/18180