Closed davidsblom closed 1 month ago
Hey @davidsblom
One thing you could try is setting bar_execution=False
for add_venue
.
In addition, I think it makes sense if internally aggregated bars are never processed for execution by the matching engine? (regardless of the above setting). I'm thinking that whatever data is being used to internally aggregate the bar will also be passing through the matching engine anyway, so this reduces the chance of these sorts of issues.
Cool! I'll use that setting. I also think that internally aggregated bars should never be processed for execution by the matching engine. Then the price precision error can also not happen, and the data that is being used to aggregate is indeed also passed through the matching engine.
Nothing broke so pushed the change 876912de13d9bfb9a3c0a9d16de812519e1ebdaf.
Classifying it as a breaking behavior change, even though I'm not observing any test breaks.
Awesome! Many thanks 🙏
Bug Report
Expected Behavior
Context: sandbox paper trading with Bybit. The strategy is subscribed to quote ticks and trade ticks. Internally aggregated bars should not generate fills.
Actual Behavior
A fill is generated based on an internally aggregated bar.
Steps to Reproduce the Problem
Specifications
nautilus_trader
version: develop branch, git commit 3046583810824c44c8271e34a7c30aa06cffcec2