Added more update_funding_fee tests, set exchange of default conf

This commit is contained in:
Sam Germain
2021-10-06 01:39:02 -06:00
parent a4a5c1aad0
commit e367f84b06
5 changed files with 32 additions and 30 deletions

View File

@@ -111,10 +111,15 @@ class FreqtradeBot(LoggingMixin):
self.trading_mode = TradingMode.SPOT
if self.trading_mode == TradingMode.FUTURES:
for time_slot in self.exchange.funding_fee_times:
schedule.every().day.at(str(time(time_slot))).do(self.update_funding_fees)
def update():
self.update_funding_fees()
self.wallets.update()
for time_slot in self.exchange.funding_fee_times:
t = str(time(time_slot))
schedule.every().day.at(t).do(update)
def notify_status(self, msg: str) -> None:
"""
Public method for users of this class (worker, etc.) to send notifications