From aa4f139a369cb92dec91d5ebdd94ecca4fc8c6a3 Mon Sep 17 00:00:00 2001 From: Matthias Voppichler Date: Sun, 11 Mar 2018 20:17:27 +0100 Subject: [PATCH] read "free" balance from account as outlined here: https://github.com/ccxt/ccxt/blob/master/python/ccxt/base/exchange.py#L1009 --- freqtrade/exchange/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/exchange/__init__.py b/freqtrade/exchange/__init__.py index 4b81b0817..e702c98d8 100644 --- a/freqtrade/exchange/__init__.py +++ b/freqtrade/exchange/__init__.py @@ -165,7 +165,7 @@ def get_balance(currency: str) -> float: if _CONF['dry_run']: return 999.9 - return _API.fetch_balance()[currency] + return _API.fetch_balance()[currency]["free"] def get_balances():