PyTrendFollow icon indicating copy to clipboard operation
PyTrendFollow copied to clipboard

Base Currency different than USD

Open jerreyz opened this issue 7 years ago • 3 comments

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.

jerreyz avatar May 21 '18 14:05 jerreyz

Did you check that said prices are actually downloaded? Unfortunately Quandl has recently retired its WIKI currency price database, which is a real frustration.

On 21 May 2018 at 15:24, Jeroen De Ryck [email protected] wrote:

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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chrism2671/PyTrendFollow/issues/31, or mute the thread https://github.com/notifications/unsubscribe-auth/AAb3XfpragBX0OwnuWk7sEmH6-w0nFR5ks5t0s4VgaJpZM4UHEmt .

--

Chris MuktarDirector Email [email protected] [email protected]

Switchboard 0845 625 9454 Website www.wikijob.co.uk http://www.wikijob.co.uk/ 101 Finsbury Pavement, London, EC2A 1RS http://wikijob.co.uk/

chrism2671 avatar May 21 '18 14:05 chrism2671

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

jerreyz avatar May 21 '18 21:05 jerreyz

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.

chrism2671 avatar May 24 '18 12:05 chrism2671