-
Notifications
You must be signed in to change notification settings - Fork 5
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
[WIP] European central bank exchange rate #134
Conversation
add data/ecb_example_response.xml use roxmltree
2778af6
to
c9d8615
Compare
use chrono; | ||
use roxmltree; | ||
|
||
pub fn get_eur_to_usd_exchange_rate( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this is named "get_eur_to_usd_exchange_rate" ? The exchange rate we need is USD to EUR ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that we need EUR to USD because I assume that the denominator is 1 not nominator. In case of EUR/USD (which I read as euro to usd) if denominator is 1 than USD = 1 and EUR < 1 and overall value is < 1.
in this function I download the opposite USD/EUR and invert it because I haven't seen the inverse anywhere on ECB api.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can change it if you prefer, I'm not fluent in financial market terminology so I don't know which is right, I was doing it so it is easy for me to understand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It adds european central bank exchange rate.