Remove unused and duplicate datastructure

This commit is contained in:
Matthias 2018-12-29 09:01:58 +01:00
parent 884e1bd9a9
commit 460900ddd7

View File

@ -2,12 +2,12 @@
""" Wallet """ """ Wallet """
import logging import logging
from typing import Dict, Any, NamedTuple from typing import Dict, Any, NamedTuple
from collections import namedtuple
from freqtrade.exchange import Exchange from freqtrade.exchange import Exchange
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
# wallet data structure
class Wallet(NamedTuple): class Wallet(NamedTuple):
exchange: str exchange: str
currency: str currency: str
@ -18,12 +18,6 @@ class Wallet(NamedTuple):
class Wallets(object): class Wallets(object):
# wallet data structure
wallet = namedtuple(
'wallet',
['exchange', 'currency', 'free', 'used', 'total']
)
def __init__(self, exchange: Exchange) -> None: def __init__(self, exchange: Exchange) -> None:
self.exchange = exchange self.exchange = exchange
self.wallets: Dict[str, Any] = {} self.wallets: Dict[str, Any] = {}