Skip to content

Commit

Permalink
Merge pull request #11932 from carlosmiei/bybit-error-mapping
Browse files Browse the repository at this point in the history
Bybit :: add error mapping
  • Loading branch information
kroitor committed Feb 11, 2022
2 parents 3a3e354 + 5ce0b89 commit d06ed2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/bybit.js
Expand Up @@ -575,6 +575,7 @@ module.exports = class bybit extends Exchange {
// '30084': BadRequest, // Isolated not modified, see handleErrors below
'33004': AuthenticationError, // apikey already expired
'34026': ExchangeError, // the limit is no change
'130021': InsufficientFunds, // {"ret_code":130021,"ret_msg":"orderfix price failed for CannotAffordOrderCost.","ext_code":"","ext_info":"","result":null,"time_now":"1644588250.204878","rate_limit_status":98,"rate_limit_reset_ms":1644588250200,"rate_limit":100}
},
'broad': {
'unknown orderInfo': OrderNotFound, // {"ret_code":-1,"ret_msg":"unknown orderInfo","ext_code":"","ext_info":"","result":null,"time_now":"1584030414.005545","rate_limit_status":99,"rate_limit_reset_ms":1584030414003,"rate_limit":100}
Expand Down

0 comments on commit d06ed2b

Please sign in to comment.