Leo4815162342 / dukascopy-node

✨ Download historical price tick data for Crypto, Stocks, ETFs, CFDs, Forex via CLI and Node.js ✨
https://dukascopy-node.app
MIT License
365 stars 68 forks source link

"Error in data stream" Error #60

Closed byimrez closed 2 years ago

byimrez commented 2 years ago

Hi, Do you have any suggestion ? data\npm>npx dukascopy-cli -i usdjpy -from 2022-04-13 -to 2022-04-14 -t m5 -f json

Downloading historical price data for:

Instrument: usdjpy Timeframe: m5 From date: 2022-04-13T00:00:00.000Z To date: 2022-04-13T13:38:13.127Z Price type: bid Volumes: false UTC Offset: 0 Include flats: false Format: json

|█████████████████████████████████████████████| 100% Something went wrong:

"Error in data stream"

Leo4815162342 commented 2 years ago

@moremah hey ;) seems like the requested data was not available or empty on the time of your request. That can happen when you want to get the data for the current day, and since the dukascopy data is served in real time, it can cause an issue.

We've released an update that should help handling such issues better more gracefully. For that, please switch from dukascopy-cli to dukascopy-node(see https://github.com/Leo4815162342/dukascopy-node/discussions/62) and install the latest version of it.