Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading other timeframes (h2,h3) caused error #137

Open
bromoapp opened this issue Apr 20, 2023 · 3 comments
Open

Downloading other timeframes (h2,h3) caused error #137

bromoapp opened this issue Apr 20, 2023 · 3 comments

Comments

@bromoapp
Copy link

Hi, I want to download 2h and 3h candle price data. but I got an error that the timeframe I requested was not matched to any of the allowed values.

When I go to the dukascopy website, I can export candle price to any timeframe I want. How to resolve this?

Thanks

@Leo4815162342
Copy link
Owner

@bromoapp currently dukascopy-node does not support h2 and h3 resolutions (timeframes), it only suports h1.
We might add those in the future.

@bromoapp
Copy link
Author

Hi, I am a programmer basically... but not a nodejs programmer... I notice that there is a class called timeframe.ts under config folder.. my question is: can I add H2, and H3 into it and build it and make my requirement fulfill?

@bromoapp bromoapp reopened this Apr 21, 2023
@Leo4815162342
Copy link
Owner

@bromoapp there is a bit more to it, you'd need to do the actual aggregation as well:
https://github.com/Leo4815162342/dukascopy-node/blob/master/src/aggregator/index.ts

You can kick off the PR by adding these timeframes to that class/enum and I'll help you finalise the rest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants