Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sifatnabil
Specialist
Specialist

Exchange Rate API

Hi all,

Is there any way to call exchange rate data from the Quandl exchange rate API?

https://www.quandl.com/resources/api-for-currency-data

I would like to bring in historical exchange rates and apply it on the data in the load script.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Yes, something like this should work:

EURUSD_ExchangeRates:

LOAD date#(subfield(Data,',',1),'YYYY-MM-DD') as Date,

  num#(subfield(Data,',',-1),'#.0000') as Value;

LOAD purgechar(subfield(textbetween(replace(replace(@1,'[[','@@['),']]','}@@'),'@@','@@'),'],['),'["}') as Data

FROM

[http://www.quandl.com/api/v1/datasets/ECB/EURUSD]

(txt, codepage is 1252, no labels, delimiter is '\b', msq);


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Yes, something like this should work:

EURUSD_ExchangeRates:

LOAD date#(subfield(Data,',',1),'YYYY-MM-DD') as Date,

  num#(subfield(Data,',',-1),'#.0000') as Value;

LOAD purgechar(subfield(textbetween(replace(replace(@1,'[[','@@['),']]','}@@'),'@@','@@'),'],['),'["}') as Data

FROM

[http://www.quandl.com/api/v1/datasets/ECB/EURUSD]

(txt, codepage is 1252, no labels, delimiter is '\b', msq);


talk is cheap, supply exceeds demand
sifatnabil
Specialist
Specialist
Author

Brilliant, thanks.