Skip to content

Validate Data after Talking to Outside API #14

@peteryeeh

Description

@peteryeeh

From #11 PR

It seems that you haven't validated data after the system talks to ccxt library / Binance API. I saw you use the array filter to get rid of the undefined data. However, the better way is to write the module to handle the unexcepted data. There are some libraries you can use: JOI or zod.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions