Skip to content

Commit

Permalink
Stex handle "Too Many Attempts."
Browse files Browse the repository at this point in the history
  • Loading branch information
ndubel authored Nov 30, 2019
1 parent 712a276 commit 2b15cd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/stex.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange');
const { ArgumentsRequired, AuthenticationError, ExchangeError, InsufficientFunds, OrderNotFound, PermissionDenied, BadRequest } = require ('./base/errors');
const { ArgumentsRequired, AuthenticationError, ExchangeError, InsufficientFunds, OrderNotFound, PermissionDenied, BadRequest, DDoSProtection } = require ('./base/errors');

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

Expand Down Expand Up @@ -185,6 +185,7 @@ module.exports = class stex extends Exchange {
'Unauthenticated.': AuthenticationError, // {"message":"Unauthenticated."}
'Server Error': ExchangeError, // { "message": "Server Error" }
'This feature is only enabled for users verifies by Cryptonomica': PermissionDenied, // {"success":false,"message":"This feature is only enabled for users verifies by Cryptonomica"}
'Too Many Attempts.': DDoSProtection, // { "message": "Too Many Attempts." }
},
'broad': {
'Not enough': InsufficientFunds, // {"success":false,"message":"Not enough ETH"}
Expand Down

0 comments on commit 2b15cd6

Please sign in to comment.