Skip to content

Commit

Permalink
Fix paymium cancelOrder and createOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent HETRU committed May 25, 2018
1 parent 333013b commit 24f7187
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/paymium.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ module.exports = class paymium extends Exchange {
'direction': side,
'amount': amount,
};
if (type == 'market')
if (type !== 'market')
order['price'] = price;
let response = await this.privatePostUserOrders (this.extend (order, params));
return {
Expand All @@ -173,8 +173,8 @@ module.exports = class paymium extends Exchange {
}

async cancelOrder (id, symbol = undefined, params = {}) {
return await this.privatePostCancelOrder (this.extend ({
'orderNumber': id,
return await this.privateDeleteUserOrdersUUIDCancel (this.extend ({
'UUID': uuid,
}, params));
}

Expand Down

0 comments on commit 24f7187

Please sign in to comment.