read "free" balance from account

as outlined here:
https://github.com/ccxt/ccxt/blob/master/python/ccxt/base/exchange.py#L1009
This commit is contained in:
Matthias Voppichler 2018-03-11 20:17:27 +01:00
parent 31381b2603
commit aa4f139a36

View File

@ -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():