Skip to content

Commit

Permalink
fix and merge zb request() from ccxt#1300 ccxt#1717
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Feb 27, 2018
1 parent fd1e489 commit 4bc6033
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions js/zb.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,20 +553,6 @@ module.exports = class zb extends Exchange {
}
}
}
//---------------------------------------------------------------------
// old code
if (api === 'private')
if ('code' in response)
throw new ExchangeError (this.id + ' ' + this.json (response));
// end of old code
//---------------------------------------------------------------------
//---------------------------------------------------------------------
// new code
if (api == 'private')
if ('code' in response && response['code'] !== 1000)
throw new ExchangeError (this.id + ' ' + this.json (response));
// end of new code
//---------------------------------------------------------------------
return response;
}
};

0 comments on commit 4bc6033

Please sign in to comment.