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:
parent
31381b2603
commit
aa4f139a36
@ -165,7 +165,7 @@ def get_balance(currency: str) -> float:
|
|||||||
if _CONF['dry_run']:
|
if _CONF['dry_run']:
|
||||||
return 999.9
|
return 999.9
|
||||||
|
|
||||||
return _API.fetch_balance()[currency]
|
return _API.fetch_balance()[currency]["free"]
|
||||||
|
|
||||||
|
|
||||||
def get_balances():
|
def get_balances():
|
||||||
|
Loading…
Reference in New Issue
Block a user