diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 568769fff..0a75ce3d7 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -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() diff --git a/freqtrade/persistence.py b/freqtrade/persistence.py index 2936819a6..aa380d20b 100644 --- a/freqtrade/persistence.py +++ b/freqtrade/persistence.py @@ -9,7 +9,7 @@ from typing import Any, Dict, Optional import arrow from sqlalchemy import (Boolean, Column, DateTime, Float, Integer, String, - create_engine, inspect, PrimaryKeyConstraint) + create_engine, inspect) from sqlalchemy.exc import NoSuchModuleError from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm.scoping import scoped_session