Skip to content

Commit

Permalink
bw: fetchBalance: python needs currencyId to be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
brandsimon committed Feb 16, 2020
1 parent 920f0c5 commit f5bb004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/bw.js
Expand Up @@ -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');
Expand Down

0 comments on commit f5bb004

Please sign in to comment.