Click here to Skip to main content
15,885,869 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends

i am bit poor in English. sorry for sentence formation.

I am trying to implement a currency exchange rate function in my applicayion

i have used google api and its working fine,

in the code i have pass the value like from "country code"(USD) and to "country code"(INR) and amount(1).

ex:
string url = string.Format("http://www.google.com/ig/calculator?hl=en&q={2}{0}%3D%3F{1}", FromCurrencyCode.ToUpper(), toCurrency.ToUpper(), amount);

its works fine.

"But my question is there any way to fetch all country currency exchange rate at one shoot without passing FromCurrencyCode. toCurrencycode is fixed to "USD" And amount to "1", i don't want use loop because it is not fare to connect to service for each country.
Posted
Comments
Sergey Alexandrovich Kryukov 6-Aug-14 2:26am    
Why not fair? :-)
—SA
ArunRajendra 6-Aug-14 2:27am    
You need to check the Google docs if they provide any such service. If not the only alternative is loop by passing the currency for which you want to retrieve.

As already suggested by ArunRajendra, you should cheek the Google API documentation. For alternatives, see this question at Stack Overflow: "How do I get currency exchange rates via an API such as Google Finance? [closed]"[^].
 
Share this answer
 
These Guys[^] have an API that will give you all currencies and exchange rates - but not for free.

So do these[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900