From 16eec078d78fcdc8e5948d45998dac2536e9a902 Mon Sep 17 00:00:00 2001 From: Pan Long Date: Mon, 26 Nov 2018 09:18:29 +0800 Subject: [PATCH] Use dot to access attribute in NamedTuple This should fix the crash in #1359 --- freqtrade/wallets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/wallets.py b/freqtrade/wallets.py index b8b37907d..bf6f8b027 100644 --- a/freqtrade/wallets.py +++ b/freqtrade/wallets.py @@ -35,8 +35,8 @@ class Wallets(object): return 999.9 balance = self.wallets.get(currency) - if balance and balance['free']: - return balance['free'] + if balance and balance.free: + return balance.free else: return 0