Skip to content

Commit

Permalink
Merge pull request ccxt#6283 from brandsimon/sbr/zb_badrequest
Browse files Browse the repository at this point in the history
zb: Invalid parameter should be BadRequest
  • Loading branch information
kroitor authored Dec 17, 2019
2 parents 7e5d781 + 379d4bd commit 60ef24b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/zb.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ---------------------------------------------------------------------------

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

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

Expand Down Expand Up @@ -61,7 +61,7 @@ module.exports = class zb extends Exchange {
'3002': InvalidOrder, // 'Invalid price',
'3003': InvalidOrder, // 'Invalid amount',
'3004': AuthenticationError, // 'User does not exist',
'3005': ExchangeError, // 'Invalid parameter',
'3005': BadRequest, // 'Invalid parameter',
'3006': AuthenticationError, // 'Invalid IP or inconsistent with the bound IP',
'3007': AuthenticationError, // 'The request time has expired',
'3008': OrderNotFound, // 'Transaction records not found',
Expand Down

0 comments on commit 60ef24b

Please sign in to comment.