import Currency rates via API (1 Viewer)

kokowawa

Member
Local time
Today, 02:30
Joined
May 11, 2020
Messages
51
hello ,

i am building a database that require a daily update for about 20 currencies rates between them and the USD , it is hard to update it manually which will opend the door for human mistakes that will cost money ,
i have searched along to have somthing do this via api , but i was not able to understand the api thing so i couldnt do it ,


can anyone of the prof. help me .
i need a code that update the currency rates table on daily basis or on the time interval that i define .
the table i need to have the fields :

currency from
currency to
exchange rate
update date
update reference

example :
currency from : Euro
currency to : USD
exchange rate : 1.252
update date : 17.05.20
update reference : yahoo finance.

i have searched for some sites that give currency rates feeds for free like

free.currencyconverterapi.com/
fixer.io/
code.google.com/archive/p/currency-converter-api/
 

Attachments

  • Capturdddde.JPG
    Capturdddde.JPG
    47.5 KB · Views: 444

kokowawa

Member
Local time
Today, 02:30
Joined
May 11, 2020
Messages
51
Have a look at my Currency Exchange Rate Tracker app
i did have a look into it , i have tested many things in it , it have good features that i need but in a different way.
it gives me error when i click update
it seems the api key expiered .
can u help and give simple code example for the table update based on the currency i define from another table.
a table have the currency from and to and the other table have the the updated rate as the pic in the previous post.

error.JPG
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 08:30
Joined
May 7, 2009
Messages
19,231
I made from other samples.
may not work in the future since we use web scraping.
 

Attachments

  • ExchangeRate.zip
    59.3 KB · Views: 464

isladogs

MVP / VIP
Local time
Today, 01:30
Joined
Jan 14, 2017
Messages
18,209
Sorry - the API key supplied with the app is no longer active
You will need to get your own API key to use my application.
It uses downloaded JSON data -rather than web scraping
 

Gasman

Enthusiastic Amateur
Local time
Today, 01:30
Joined
Sep 21, 2011
Messages
14,231
Mine does still work, but you have to leave the base currency as EUR
 

kokowawa

Member
Local time
Today, 02:30
Joined
May 11, 2020
Messages
51
I made from other samples.
may not work in the future since we use web scraping.

@arnelgp

thank you for the example , this also helped , but as i see that it copy the whole table from the xml file of the website and replace the old table , is there is a way that can get only update of some selective currencies and keep the record.
 

kokowawa

Member
Local time
Today, 02:30
Joined
May 11, 2020
Messages
51
@arnelgp
i have found a way to make my curr list .
floatrates.com/custom-exchange-rates.html .
i will work on copying data from your sample to my table of currency , as the one you did delete the older table
 

kokowawa

Member
Local time
Today, 02:30
Joined
May 11, 2020
Messages
51
hello @arnelgp ,
i have managed to create my custom list of rates and evolved the table and added more currencies to be exchanged , see PIC .
it was working fine and suddenly it stopped and now giving me an error , i don't know what is the cause.
the same happened when i used the sample you provided me in post #4

please see the pic i attached to help me fixing it .
links i grab rates from also attached.

USD link http://www.floatrates.com/widget/00001019/480701fbaf6d647f1bc51fc7bd7b7c5b/usd.xml
EGP Link http://www.floatrates.com/widget/00001019/480701fbaf6d647f1bc51fc7bd7b7c5b/usd.xml

1608985887226.png

1608985852428.png

1608985781251.png
 

uncleh

Member
Local time
Today, 08:30
Joined
Mar 1, 2020
Messages
31
I made from other samples.
may not work in the future since we use web scraping.

HI,arnelgp,​

thank you for the example , this also helped , but i uesing win 11 now, no IE app it doesnt work, would you please help to change to Edge? thank you
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 08:30
Joined
May 7, 2009
Messages
19,231
i change the code and it will work now.
 

Attachments

  • ExchangeRate2.accdb
    656 KB · Views: 431

uncleh

Member
Local time
Today, 08:30
Joined
Mar 1, 2020
Messages
31
wow wow wow,, thats great..thank you very much!!!!!!!!!!!(y)
 

Users who are viewing this thread

Top Bottom