Skip to content

Commit

Permalink
order fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiei committed Mar 1, 2023
1 parent 88eb6a5 commit 7cb8264
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/phemex.js
Original file line number Diff line number Diff line change
Expand Up @@ -2203,7 +2203,7 @@ module.exports = class phemex extends Exchange {
if (market['settle'] === 'USDT') {
request['priceRp'] = this.priceToPrecision (symbol, price);
} else {
const priceString = price.toString ();
const priceString = this.numberToString (price);
request['priceEp'] = this.toEp (priceString, market);
}
}
Expand Down Expand Up @@ -3583,7 +3583,6 @@ module.exports = class phemex extends Exchange {
* @param {object} params extra parameters specific to the binance api endpoint
* @returns {object} response from the exchange
*/

this.checkRequiredArgument ('setPositionMode', symbol, 'symbol');
const market = this.market (symbol);
if (market['settle'] !== 'USDT') {
Expand Down

0 comments on commit 7cb8264

Please sign in to comment.