Skip to content

Commit

Permalink
Merge branch 'rjbernaldo-bugfix/failing-market-orders'
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed May 25, 2018
2 parents 6749fdc + 7c62d79 commit 557482e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/bitfinex.js
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,6 @@ module.exports = class bitfinex extends Exchange {
if ((type === 'limit') || (type === 'market'))
orderType = 'exchange ' + type;
amount = this.amountToPrecision (symbol, amount);
price = this.priceToPrecision (symbol, price);
let order = {
'symbol': this.marketId (symbol),
'amount': amount,
Expand All @@ -573,7 +572,7 @@ module.exports = class bitfinex extends Exchange {
if (type === 'market') {
order['price'] = this.nonce ().toString ();
} else {
order['price'] = price;
order['price'] = this.priceToPrecision (symbol, price);
}
let result = await this.privatePostOrderNew (this.extend (order, params));
return this.parseOrder (result);
Expand Down

0 comments on commit 557482e

Please sign in to comment.