From f5bb00490e767216e6e93a3e14246e8cc6090ed2 Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Sun, 16 Feb 2020 20:59:11 +0000 Subject: [PATCH] bw: fetchBalance: python needs currencyId to be a string --- js/bw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/bw.js b/js/bw.js index dd0afacbc219..20969b49346d 100644 --- a/js/bw.js +++ b/js/bw.js @@ -607,7 +607,7 @@ module.exports = class bw extends Exchange { const result = { 'info': response }; for (let i = 0; i < balances.length; i++) { const balance = balances[i]; - const currencyId = this.safeInteger (balance, 'currencyTypeId'); + const currencyId = this.safeString (balance, 'currencyTypeId'); const code = this.safeCurrencyCode (currencyId); const account = this.account (); account['free'] = this.safeFloat (balance, 'amount');