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
350 stars 66 forks source link

Dukascopy-cli: download more than one instrument #20

Closed lezwright closed 1 year ago

lezwright commented 4 years ago

One more question, is it possible to download more than one instrument at the time?

lezwright commented 4 years ago

Another question! I am running Dukascopy-cli, after installing it, I cannot run the example. I get the following error: dukascopy-cli: command not found

Any suggestions?

tiaringhio commented 3 years ago

I don't know if you still need the answer but put npx before your command. Example:

npx dukascopy-cli -i gbridxgbp -from 2019-01-01 -to 2021-01-01 -t m1 -fl true -f csv

Hope thath helps!

lezwright commented 3 years ago

thanks @tiaringhio . I still needed it :-)

Also, @Leo4815162342 , some of the currency pairs cannot be downloaded in general, more specifically they are: EURTRY, EURHUF and USDTRY. Do you possibly know where the problem is?

Leo4815162342 commented 3 years ago

@lezwright hey, there can be multiple reasons for that. Can you share your full search config (with dates and timeframe)?

lezwright commented 3 years ago

Hi @Leo4815162342 ,

Here is the screenshot of the error I get for EURDKK image

Leo4815162342 commented 3 years ago

@lezwright thanks for the screenshot. What are the values for the timeframe and the date range? Can you try updating dukascopy-node to version 1.5.0? - we've added few safe checks there to fix such errors

lezwright commented 3 years ago

Hi @Leo4815162342 ,

I narrowed down the problem, they cannot be loaded on 15 min, or 1 hour timeframes. I can only load them on 1 minutes timeframes.

By the way, I have updated the library. Still same results.

Thanks

Leo4815162342 commented 3 years ago

@lezwright thanks for the info, I will investigate the issue. Can you also provide the dates (from and to) for your search?