You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i encountered this error when i was trying to run node with 2 exec clients BYBIT and IB, but i can run successfully with either one of them, can anyone help me on this?
2025-12-28T07:42:31.769776976Z [ERROR] TESTER-001.TradingNode: Error on run
RuntimeError(cannot recalculate balance when no current balance)
Traceback (most recent call last):
File "/home/ubuntu/venvs/nt_trader/lib/python3.13/site-packages/nautilus_trader/live/node.py", line 298, in run
self.kernel.loop.run_until_complete(self.run_async())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
File "/home/ubuntu/venvs/nt_trader/lib/python3.13/site-packages/nautilus_trader/live/node.py", line 349, in run_async
await self.kernel.start_async()
File "/home/ubuntu/venvs/nt_trader/lib/python3.13/site-packages/nautilus_trader/system/kernel.py", line 1030, in start_async
self._initialize_portfolio()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/ubuntu/venvs/nt_trader/lib/python3.13/site-packages/nautilus_trader/system/kernel.py", line 1292, in _initialize_portfolio
self._portfolio.initialize_positions()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "nautilus_trader/portfolio/portfolio.pyx", line 324, in nautilus_trader.portfolio.portfolio.Portfolio.initialize_positions
File "nautilus_trader/portfolio/portfolio.pyx", line 385, in nautilus_trader.portfolio.portfolio.Portfolio.initialize_positions
File "nautilus_trader/accounting/manager.pyx", line 425, in nautilus_trader.accounting.manager.AccountsManager.update_positions
File "nautilus_trader/accounting/accounts/margin.pyx", line 377, in nautilus_trader.accounting.accounts.margin.MarginAccount.update_margin_maint
File "nautilus_trader/accounting/accounts/margin.pyx", line 476, in
nautilus_trader.accounting.accounts.margin.MarginAccount._recalculate_balance
seems it happens when initializing portfolio, but i just can't figure out why, and it runs when i:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
i encountered this error when i was trying to run node with 2 exec clients BYBIT and IB, but i can run successfully with either one of them, can anyone help me on this?
seems it happens when initializing portfolio, but i just can't figure out why, and it runs when i:
bybit_execution.py
Beta Was this translation helpful? Give feedback.
All reactions