Skip to content

Error codes #58

@bennycode

Description

@bennycode

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions