Skip to content

Bug report: empty file with -to now and equivalent #213

@4x

Description

@4x

I love this app, thank you so much for putting it out there.

I'd like to report a bug, which arises when -to now is used or when attempting to use -to YYYY-MM-DDTHH:mm:ss.SSSZ if it is not exactly a round hour. The program seems to be running file, but then the file that is saved is empty. I'd suspect there is a problem with that colon between the HH and the mm. For example, when I issued npx dukascopy-node -i dollaridxusd -from 2025-06-19 -t h1 (with the implicit -to now), the console reported "√ File saved: download\dollaridxusd-h1-bid-2025-06-19-2025-06-20T20:28.json (4.16 KB)" - However, I got this empty file: "dollaridxusd-h1-bid-2025-06-19-2025-06-20T20" - just like that, no extension. 0 KB.
Same thing happens if I add -t now explicitly or anything like npx dukascopy-node -i eurusd -from 2025-06-19 -to 2025-06-20T01:40:00.000Z -t m5.

I've tried all kinds of variants at this point (and on two different machine) till I figured out what I think might be going on.

Thanks again for open sourcing this great tool. Hopefully you'd be willing and able to address this bug soon.

Enjoy your weekend!
@4x

Edit: found a workaround - using the -fn option with a custom filename. Avoids the : and solves the problem for me 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions