Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Integration > Exchange Rates of Georgia Bank

Forum

Search UsersRules
Exchange Rates of Georgia Bank
#1
Interested
Points:: 0
Joined:: Sep 30, 2020

Hello, I want to take exchange rates of Georgia Bank.But I didn't find URL.What is the XML Url of Georgia Bank?

Profile
#2
Administrator
Points:: 0
Joined:: Oct 3, 2019

Hello Mesut,

can you give a link to the website of the bank with which you want to make an exchange?

Profile
#3
Active user
Points:: 0
Joined:: Aug 28, 2015

Hello.
Here's the link. Go to this link and you will find all the rates from National Bank of Georgia.

https://www.nbg.gov.ge/rss.php

Profile
#4
Interested
Points:: 0
Joined:: Sep 30, 2020

There is a function for Turkey Bank.I have changed Url with Georgia Bank.How can I set date part in the URL.

Function GetValidResult(Val CurrDate)

//   "https://www.tcmb.gov.tr/kurlar/" + str1 + "/" + str2 + ".xml"

While True Do
str1 =  Format(CurrDate ,"DF=yyyyMM");
str2 =  Format(CurrDate ,"DF=ddMMyyyy");

StrFullAddres = "https://www.nbg.gov.ge/rss.php";
XMLFile = GetFilesFromInternet.DownloadFileToTempStorage(StrFullAddres);

If XMLFile.Status Then
BinaryData = GetFromTempStorage(XMLFile.Path);
XML = GetStringFromBinaryData(BinaryData);

mXml = New XMLReader;
mXml.SetString(XML);
Result = XDTOFactory.ReadXML(mXml);
mXml.Close();
DeleteFromTempStorage(XMLFile.Path);
Return Result;
EndIf;

CurrDate = AddDay(CurrDate, -1);
EndDo;
EndFunction

Profile
#5
Active user
Points:: 0
Joined:: Aug 28, 2015

You can set date as a parameter:

https://www.nbg.gov.ge/rss.php?date=2020-10-30

Profile
#6
Active user
Points:: 0
Joined:: Aug 28, 2015

For more info you can contact their tech support. I guess they'll help you.

Profile
#7
Interested
Points:: 0
Joined:: Sep 30, 2020

Okey thank you very much!

Profile
#8
Interested
Points:: 0
Joined:: Sep 30, 2020

You said a link about exchanges rate of Georgia Bank.But it is not What I want.I need an address that I can send date parameters and I can take data in order to dates.

I have searched it and also send a email to Georgia Bank but, Both I didn't find it and Georgia Bank has not reply the email.Can you help me please?

Profile
#9
Interested
Points:: 0
Joined:: Sep 30, 2020

Hello,

I want to take exchange rate from Georgia Bank using this XML(https://www.nbg.gov.ge/rss.php).And then I want to save its date and rates in an information register.How can I write this code?

Profile
#10
Administrator
Points:: 0
Joined:: Oct 3, 2019

Hi Mesut,

you need to parse this XML file - the structure of this file is very simple (please see screenshot 1).

After that you can find the currency you are interested in, for example, the Turkish lira and its rate in relation to the Georgian currency (screen 2).

Aleksandr

Profile
#11
Interested
Points:: 0
Joined:: Sep 30, 2020

I dont know how to take rates from XML or parsing.Have you any examples or courses about this topic.

Profile
#12
Administrator
Points:: 0
Joined:: Oct 3, 2019

Hello Mesut,

we have posted a small example of how you can get currency rates from the website of the Bank of Georgia:

https://1c-dn.com/blog/parsing-a-site-using-1c/

If you have any questions, please ask.

Profile
#13
Interested
Points:: 0
Joined:: Sep 30, 2020

Thank you very much.You must be work very hard.I am going to try to get exchange rates using this link.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.