QuantConnect / Lean.Brokerages.InteractiveBrokers

InteractiveBrokers Brokerage Plugin
Apache License 2.0
27 stars 17 forks source link

Support Extended Market Hours for Futures History Request #22

Closed AlexCatarino closed 1 year ago

AlexCatarino commented 1 year ago

Expected Behavior

History requests for Futures' include extended market hours if subscribed to.

Actual Behavior

The logic in InteractiveBrokersBrokerage.cs#L3485:L3487 only accounts for extended market hours for Equity:

    var useRegularTradingHours = request.Symbol.SecurityType == SecurityType.Equity
        ? Convert.ToInt32(!request.IncludeExtendedMarketHours)
        : 0;

Potential Solution

N/A

Checklist

Martin-Molinero commented 1 year ago

After further analysis detected this wasn't an actual issue