Lean
Lean copied to clipboard
`end_time` property of count consolidators set incorrectly.
Expected Behavior
The count consolidators' working_data as well as the consolidated TradeBar objects should have end_time properly reflecting the end_time of the latest bar.
Actual Behavior
The end_time property reflects the bar.time property + total duration of aggregated bars.
Potential Solution
Update how bars are aggregated for count cosolidators: end_time should be set as the end_time of the latest working bar.
Reproducing the Problem
Set up TradeBarConsolidator(10), print bar.working_data and bar.end_time in both on_data and on_consolidated.
System Information
N/A
Checklist
- [ ] I have completely filled out this template
- [ ] I have confirmed that this issue exists on the current
masterbranch - [ ] I have confirmed that this is not a duplicate issue by searching issues
- [ ] I have provided detailed steps to reproduce the issue
Hey @jibidnd! If you could share a simple algorithm example and logs would help us debug this further and fix it quicker, thank you