Skip to content

Commit

Permalink
poloniex fetchOrder now throw OrderNotCached
Browse files Browse the repository at this point in the history
kroitor committed Nov 5, 2017
1 parent ca1a129 commit 777f17f
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
@@ -3,7 +3,7 @@
// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError, InsufficientFunds, OrderNotFound } = require ('./base/errors')
const { ExchangeError, InsufficientFunds, OrderNotFound, OrderNotCached } = require ('./base/errors')

// ---------------------------------------------------------------------------

@@ -462,7 +462,7 @@ module.exports = class poloniex extends Exchange {
if (orders[i]['id'] == id)
return orders[i];
}
return undefined;
throw OrderNotCached (this.id + ' order id ' + id.toString () + ' not found in cache');
}

filterOrdersByStatus (orders, status) {

0 comments on commit 777f17f

Please sign in to comment.