Skip to content

Commit

Permalink
Merge pull request #3020 from miracle2k/patch-4
Browse files Browse the repository at this point in the history
Fix "remaining" field in gate.io order status.
  • Loading branch information
kroitor committed Jun 3, 2018
2 parents f946fbd + bf091bb commit d6861f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/gateio.js
Expand Up @@ -365,6 +365,10 @@ module.exports = class gateio extends Exchange {
let amount = this.safeFloat (order, 'initialAmount');
let filled = this.safeFloat (order, 'filledAmount');
let remaining = this.safeFloat (order, 'leftAmount');
if (typeof remaining === 'undefined') {
// In the order status response, this field has a different name.
remaining = this.safeFloat (order, 'left');
}
let feeCost = this.safeFloat (order, 'feeValue');
let feeCurrency = this.safeString (order, 'feeCurrency');
if (typeof feeCurrency !== 'undefined') {
Expand Down

0 comments on commit d6861f9

Please sign in to comment.