mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Fix bug of balances not disappearing
This commit is contained in:
parent
4b06c9e0ae
commit
6b46a35b19
|
@ -2,6 +2,7 @@
|
|||
""" Wallet """
|
||||
|
||||
import logging
|
||||
from copy import deepcopy
|
||||
from typing import Any, Dict, NamedTuple
|
||||
|
||||
import arrow
|
||||
|
@ -93,6 +94,10 @@ class Wallets:
|
|||
balances[currency].get('used', None),
|
||||
balances[currency].get('total', None)
|
||||
)
|
||||
# Remove currencies no longer in get_balances output
|
||||
for currency in deepcopy(self._wallets):
|
||||
if currency not in balances:
|
||||
del self._wallets[currency]
|
||||
|
||||
def update(self, require_update: bool = True) -> None:
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user