1

How to get the Latest Currency Exchange Rate in your Asp.net Application.Is there any build-in API for getting the latest exchange rates from the web.

Requirement:

The Requirement is i have one calculated value in Indian Rupee, on selected Currency from a dropdownlist the value should change.

For example if i select USD from dropdownlist the Calculated value should converted to USD. For this i want to use some WebService to get the latest Exchange Rates from the Web.

OnselectedIndexchange event of dropdownlist i want to call the webservice to get data for different World Currencies.

Ashad
  • 53
  • 1
  • 2
  • 4
  • Duplicate of [Realtime currency webservice](http://stackoverflow.com/questions/4873873/realtime-currency-webservice) – Paritosh Jul 10 '13 at 12:42

3 Answers3

2

There is no 'build-in' api.

You need to find the provider of such data.

You might want to start with https://openexchangerates.org/

Jakub Konecki
  • 45,581
  • 7
  • 87
  • 126
1

Hi Everyone i got the solution for the above Question.

GO to http://webservicex.net, this is providing a WebService for ExchangeRate

Here is the code what i did.

Add service Reference in your Client Application

CurrencyConvertor WebService

Then Create the proxy Object in your Client Application

CurrencyExchange.CurrencyConvertor exchangerate = new CurrencyExchange.CurrencyConvertor();
double exchangevalue;
if (DropDownListcurrencies.SelectedValue == "UAE Dhiram")
{
exchangevalue = exchangerate.ConversionRate(CurrencyExchange.Currency.INR,CurrencyExchange.Currency.AED);
resultuae = result * Convert.ToDecimal(exchangevalue);
}
Ashad
  • 53
  • 1
  • 2
  • 4
  • Try this solution.http://codecanyon.net/item/currency-converter/16408544 . It is a paid solution but supports 156 world currencies and real time rates from yahoo finance. – sambit.albus Jun 18 '16 at 10:43
0

There is nothing built into the .NET Framework for getting exchange rates, but you might want to look at a previous StackOverflow question Are there any free foreign exchangex rate web services?

Community
  • 1
  • 1
Karl Anderson
  • 34,606
  • 12
  • 65
  • 80