Skip to content

Commit

Permalink
added cointiger OrderNotFound handling for cancelOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed May 30, 2018
1 parent 0ea86a3 commit 70f2340
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/cointiger.js
Expand Up @@ -3,7 +3,7 @@
// ---------------------------------------------------------------------------

const huobipro = require ('./huobipro.js');
const { ExchangeError, ExchangeNotAvailable, AuthenticationError, InvalidOrder, InsufficientFunds } = require ('./base/errors');
const { ExchangeError, ExchangeNotAvailable, AuthenticationError, InvalidOrder, InsufficientFunds, OrderNotFound } = require ('./base/errors');

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

Expand Down Expand Up @@ -70,6 +70,7 @@ module.exports = class cointiger extends huobipro {
'2': ExchangeError,
'5': InvalidOrder,
'6': InvalidOrder,
'8': OrderNotFound,
'16': AuthenticationError, // funding password not set
'100001': ExchangeError,
'100002': ExchangeNotAvailable,
Expand Down

0 comments on commit 70f2340

Please sign in to comment.