mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-11 20:40:54 +08:00
BUG: fixed retry issue with synchronize_portfolio
This commit is contained in:
@@ -507,7 +507,7 @@ class ExchangeTradingAlgorithmLive(ExchangeTradingAlgorithmBase):
|
||||
)
|
||||
if attempt_index < self.retry_synchronize_portfolio:
|
||||
sleep(self.retry_delay)
|
||||
self.synchronize_portfolio(attempt_index + 1)
|
||||
return self.synchronize_portfolio(attempt_index + 1)
|
||||
else:
|
||||
raise ExchangePortfolioDataError(
|
||||
data_type='update-portfolio',
|
||||
|
||||
Reference in New Issue
Block a user