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

Base Currency different than USD #31

Open
jerreyz opened this issue May 21, 2018 · 3 comments
Open

Base Currency different than USD #31

jerreyz opened this issue May 21, 2018 · 3 comments

Comments

@jerreyz
Copy link

jerreyz commented May 21, 2018

Hi everyone,

I tried changing the base currency to EUR but keep getting an error that prices are not found for USDEUR.
I simply added a dictionary with codename USDEUR and then changed the lambda x:x to lambda x: 1/x. as said in the guide. Ideally the code could figure out concurrent currencies by triangular multiplication or inverting.

@chrism2671
Copy link
Owner

chrism2671 commented May 21, 2018 via email

@jerreyz
Copy link
Author

jerreyz commented May 21, 2018

Hey Chris, you are correct, no prices have been downloaded. Could you explain how prices/currencies are downloaded exactly because I only see calls being made to the functions in data_feed and not to the Provider classes.
Thanks in advance

@chrism2671
Copy link
Owner

Normally it downloads everything you need when you download the contract.

The functions to download stuff are in quandl_provider.py. There's a script (download.py) that should download everything too.

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