Skip to content

Commit

Permalink
Correct regression on fetchOrder ( Missing since/limit parameters )
Browse files Browse the repository at this point in the history
  • Loading branch information
adi90x committed Dec 11, 2017
1 parent 5f9e177 commit e083efa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/poloniex.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,8 @@ module.exports = class poloniex extends Exchange {
return this.filterBySinceLimit (result, since, limit);
}

async fetchOrder (id, symbol = undefined, params = {}) {
let orders = await this.fetchOrders (symbol, params);
async fetchOrder (id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
let orders = await this.fetchOrders (symbol, since, limit, params);
for (let i = 0; i < orders.length; i++) {
if (orders[i]['id'] == id)
return orders[i];
Expand Down

0 comments on commit e083efa

Please sign in to comment.