mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 20:01:18 +00:00
removing persistence update
This commit is contained in:
@@ -813,17 +813,3 @@ class FreqtradeBot(object):
|
||||
# Send the message
|
||||
self.rpc.send_msg(msg)
|
||||
Trade.session.flush()
|
||||
|
||||
def update_wallets(self) -> bool:
|
||||
wallets = self.exchange.get_balances()
|
||||
|
||||
for currency in wallets:
|
||||
wallet = Wallet(
|
||||
exchange=self.exchange._api.id,
|
||||
currency=currency,
|
||||
free=wallets[currency]['free'],
|
||||
used=wallets[currency]['used'],
|
||||
total=wallets[currency]['total']
|
||||
)
|
||||
Wallet.session.add(wallet)
|
||||
Wallet.session.flush()
|
||||
|
||||
Reference in New Issue
Block a user