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

Provide a historical mid-market rates with daily granularity. #15

Open
mtwilliams opened this issue Mar 30, 2016 · 1 comment
Open

Provide a historical mid-market rates with daily granularity. #15

mtwilliams opened this issue Mar 30, 2016 · 1 comment

Comments

@mtwilliams
Copy link
Collaborator

Simple enough. Fetch the historical rate table by making a GET request in the form of http://www.xe.com/currencytables/?from=<currency>&date=<date as yyyy-mm-dd>, for example: EUR on 2010-02-01. Find the relevant row by looking at .//tr/td[1]/a/text() and extract the rates via the last two cells (classed with ICTRate).

@mtwilliams
Copy link
Collaborator Author

I'm thinking something like

Xe.rates(:usd, :cad, on: Timex.date({2006, 5, 15}))

Thoughts, @paulodiniz?

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

No branches or pull requests

1 participant