Skip to content

Commit

Permalink
cex fetchBalance fix ccxt#754
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Dec 5, 2017
1 parent dcb34c4 commit ec57f7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/cex.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ module.exports = class cex extends Exchange {

async fetchBalance (params = {}) {
await this.loadMarkets ();
let balances = await this.privatePostBalance ();
let result = { 'info': balances };
let response = await this.privatePostBalance ();
let result = { 'info': response };
let balances = this.omit (response, 'username');
let currencies = Object.keys (balances);
for (let i = 0; i < currencies.length; i++) {
let currency = currencies[i];
Expand Down

0 comments on commit ec57f7a

Please sign in to comment.