Skip to content

Commit

Permalink
add support for commonCurrencies in fetchBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
frosty00 committed Aug 27, 2019
1 parent 04cd082 commit c0aa608
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/idex.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ module.exports = class idex extends Exchange {
for (let i = 0; i < keys.length; i++) {
const currency = keys[i];
const balance = response[currency];
result[currency] = {
const code = this.safeCurrencyCode (currency);
result[code] = {
'free': this.safeFloat (balance, 'available'),
'used': this.safeFloat (balance, 'onOrders'),
};
Expand Down

0 comments on commit c0aa608

Please sign in to comment.