removing persistence update
This commit is contained in:
parent
d5b47abe98
commit
f4bb203782
@ -813,17 +813,3 @@ class FreqtradeBot(object):
|
|||||||
# Send the message
|
# Send the message
|
||||||
self.rpc.send_msg(msg)
|
self.rpc.send_msg(msg)
|
||||||
Trade.session.flush()
|
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()
|
|
||||||
|
@ -9,7 +9,7 @@ from typing import Any, Dict, Optional
|
|||||||
|
|
||||||
import arrow
|
import arrow
|
||||||
from sqlalchemy import (Boolean, Column, DateTime, Float, Integer, String,
|
from sqlalchemy import (Boolean, Column, DateTime, Float, Integer, String,
|
||||||
create_engine, inspect, PrimaryKeyConstraint)
|
create_engine, inspect)
|
||||||
from sqlalchemy.exc import NoSuchModuleError
|
from sqlalchemy.exc import NoSuchModuleError
|
||||||
from sqlalchemy.ext.declarative import declarative_base
|
from sqlalchemy.ext.declarative import declarative_base
|
||||||
from sqlalchemy.orm.scoping import scoped_session
|
from sqlalchemy.orm.scoping import scoped_session
|
||||||
|
Loading…
Reference in New Issue
Block a user