From 460900ddd7c15a04009232bd04991b24e5532055 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 29 Dec 2018 09:01:58 +0100 Subject: [PATCH] Remove unused and duplicate datastructure --- freqtrade/wallets.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/freqtrade/wallets.py b/freqtrade/wallets.py index 59d8fa3da..1f1d2c511 100644 --- a/freqtrade/wallets.py +++ b/freqtrade/wallets.py @@ -2,12 +2,12 @@ """ Wallet """ import logging from typing import Dict, Any, NamedTuple -from collections import namedtuple from freqtrade.exchange import Exchange logger = logging.getLogger(__name__) +# wallet data structure class Wallet(NamedTuple): exchange: str currency: str @@ -18,12 +18,6 @@ class Wallet(NamedTuple): class Wallets(object): - # wallet data structure - wallet = namedtuple( - 'wallet', - ['exchange', 'currency', 'free', 'used', 'total'] - ) - def __init__(self, exchange: Exchange) -> None: self.exchange = exchange self.wallets: Dict[str, Any] = {}