Closed rsmb7z closed 2 months ago
By live-trading also. Portfolio can't be initialized. But it's weird that no one else reports the same thing... "high-level" node config is used as usual. guess that maybe a node with config "name" is needed.
I'm also getting the same portfolio not initialized failure in live (paper) trading. Not sure if that's definitely related to this issue. I can post the full logs later today.
This just seems to affect internally aggregated time bars.
When there are no more subscribers, the DataEngine
stops the aggregator which cancels its internal timer - then for some reason the timer name is set to None
.
I feel like removing this is a bit of a Chesterton fence thing, but I "can't see a good reason for having this here" and all the tests seem to pass after I remove it.
Pushed to develop
branch.
The other issue regarding name
is unrelated to this, and was probably caused by a change to accommodate multiple clients where the name
wasn't actually being wired through to the client_id
. I haven't dug into it yet though.
Closing this one as fixed, and lets open a specific issue for the Portfolio
problem, logs or a stack trace would be helpful :pray:.
Pushed to
develop
branch.
Works like a charm—thanks for the fix!
Bug Report
Backtesting process halts upon unsubscribing from Internal TimeBars during a test.
Expected Behavior
Backtest shouldn't raise exception.
Actual Behavior
Raises exception and stops abnormally.
Steps to Reproduce the Problem
Specifications
nautilus_trader
version: 1.192.0 (develop)