I have seen that the Binance API provides error codes. However, I cannot access them using error.code. Is binance-api-node eating up these codes from the backend response?
Currently I am checking errors like this error.message === 'Filter failure: LOT_SIZE' & error.message === 'Account has insufficient balance for requested action.', but I would like to check against error codes because messages are more likely to change.
I have seen that the Binance API provides error codes. However, I cannot access them using
error.code. Isbinance-api-nodeeating up these codes from the backend response?Currently I am checking errors like this
error.message === 'Filter failure: LOT_SIZE'&error.message === 'Account has insufficient balance for requested action.', but I would like to check against error codes because messages are more likely to change.