Skip to content

Commit

Permalink
Merge branch 'miracle2k-patch-6'
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Jun 5, 2018
2 parents a25f0f0 + d293962 commit 8fad5a9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion js/gateio.js
Expand Up @@ -113,6 +113,17 @@ module.exports = class gateio extends Exchange {
'20': 'Your order size is too small',
'21': 'You don\'t have enough fund',
},
'options': {
'limits': {
'cost': {
'min': {
'BTC': 0.0001,
'ETH': 0.001,
'USDT': 1,
},
},
},
},
});
}

Expand Down Expand Up @@ -145,8 +156,10 @@ module.exports = class gateio extends Exchange {
'min': Math.pow (10, -details['decimal_places']),
'max': undefined,
};
let defaultCost = amountLimits['min'] * priceLimits['min'];
let minCost = this.safeFloat (this.options['limits']['cost']['min'], quote, defaultCost);
let costLimits = {
'min': amountLimits['min'] * priceLimits['min'],
'min': minCost,
'max': undefined,
};
let limits = {
Expand Down

0 comments on commit 8fad5a9

Please sign in to comment.