Lean icon indicating copy to clipboard operation
Lean copied to clipboard

Alert users if selected `DataMappingMode` is unavilable

Open ArthurAsenheimer opened this issue 9 months ago • 0 comments

Expected Behavior

The user should receive a warning when using DataMappingMode.OPEN_INTEREST or DataMappingMode.OPEN_INTEREST_ANNUAL for a continuous future, if the selected future instrument doesn't have open interest data available.

Actual Behavior

No warning is received, which can lead to confusion, as the continuous future is constructed differently from what the user might expect.

Potential Solution

Either provide open interest data for these futures or submit a clear warning message to inform the user that open interest data is unavailable for the requested instrument and a different data mapping mode should be selected.

Reproducing the Problem

Run this backtest.

System Information

QC Cloud

Checklist

  • [X] I have completely filled out this template
  • [X] I have confirmed that this issue exists on the current master branch
  • [X] I have confirmed that this is not a duplicate issue by searching issues
  • [X] I have provided detailed steps to reproduce the issue

ArthurAsenheimer avatar Mar 21 '25 18:03 ArthurAsenheimer