Skip to content

Commit

Permalink
bleutrade fetchBalance fix #341
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Oct 18, 2017
1 parent f9e7d3a commit 0313a05
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ccxt.js
Expand Up @@ -6739,9 +6739,12 @@ var bittrex = {
let account = this.account ();
if (currency in indexed) {
let balance = indexed[currency];
account['free'] = balance['Available'];
account['used'] = balance['Balance'] - balance['Available'];
account['total'] = balance['Balance'];
let free = this.parseFloat (balance['Available']);
let total = this.parseFloat (balance['Balance']);
let used = total - free;
account['free'] = free;
account['used'] = used;
account['total'] = total;
}
result[currency] = account;
}
Expand Down

0 comments on commit 0313a05

Please sign in to comment.