S
S
sophiko2014-08-29 12:59:30
JavaScript
sophiko, 2014-08-29 12:59:30

How to make the euro exchange rate taken from the Central Bank website every time a new one?

Good afternoon,
please tell me how you can solve this problem:
The site has a plate with prices and a number of buttons, one of them should change the data in the table from rubles to euros and back. Now all the data is changing on the client. That is, the euro exchange rate is in a variable.
But it is clear that it would be more logical for the euro exchange rate to be taken from somewhere on the Central Bank website each time the site is loaded - a new one.
Can this be done and what is the best way to do it? Please advise.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Taratin, 2014-08-29
@Taraflex

www.cbr.ru/scripts/XML_daily.asp

S
sadist007, 2014-08-29
@sadist007

I think you will find what you need here: www.cbr.ru/scripts/Root.asp?PrtId=DWS

M
M03G, 2014-08-29
@M03G

If I'm not mistaken, the exchange rate of the Central Bank changes once a day at 00:00. The exchange rate does not change on weekends. Write a page parsing script, write it to the database (or where the data is being taken from now) and run the cron script once a day at 1 am.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question