Skip to content

Commit

Permalink
hitbtc parseOrder fee fix ccxt#2857
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed May 16, 2018
1 parent 160ee10 commit f83099e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions js/hitbtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -795,14 +795,16 @@ module.exports = class hitbtc extends Exchange {
}
}
let feeCost = this.safeFloat (order, 'fee');
let feeCurrency = undefined;
if (typeof market !== 'undefined') {
symbol = market['symbol'];
feeCurrency = market['quote'];
}
let fee = {
'cost': feeCost,
'currency': undefined,
'currency': feeCurrency,
'rate': undefined,
};
if (typeof market !== 'undefined') {
symbol = market['symbol'];
}
return {
'id': order['clientOrderId'].toString (),
'info': order,
Expand Down

0 comments on commit f83099e

Please sign in to comment.