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

Add the ability to get historical data using a specified date range #143

Open
liardoecp opened this issue Oct 20, 2024 · 0 comments · May be fixed by #144
Open

Add the ability to get historical data using a specified date range #143

liardoecp opened this issue Oct 20, 2024 · 0 comments · May be fixed by #144

Comments

@liardoecp
Copy link
Contributor

liardoecp commented Oct 20, 2024

Hello Davide,

could it be useful to have an API to get historical data using a date range and not just the last week, month, etc.?

const { investing } = require('investing-com-api');

async function main() {
  try {
    const response1 = await investing.getHistoricalData({ 
        pairId: '1',
        from: Date,
        to: Date, // default now?
        resolution: '5 | 60 |  D | W | M' // default = D ?
    });
  } catch (err) {
    console.error(err);
  }
}
liardoecp added a commit to liardoecp/investing-com-api that referenced this issue Oct 20, 2024
liardoecp added a commit to liardoecp/investing-com-api that referenced this issue Oct 22, 2024
liardoecp added a commit to liardoecp/investing-com-api that referenced this issue Oct 22, 2024
liardoecp added a commit to liardoecp/investing-com-api that referenced this issue Oct 22, 2024
liardoecp added a commit to liardoecp/investing-com-api that referenced this issue Oct 22, 2024
liardoecp added a commit to liardoecp/investing-com-api that referenced this issue Oct 22, 2024
liardoecp added a commit to liardoecp/investing-com-api that referenced this issue Oct 23, 2024
liardoecp added a commit to liardoecp/investing-com-api that referenced this issue Oct 23, 2024
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

Successfully merging a pull request may close this issue.

1 participant