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.
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.