Last post Mar 04, 2020 07:46 AM by Sean Fang
Mar 03, 2020 02:18 PM|Prathamesh Shende|LINK
I am looking for live currency convertor for my asp.net core website
I tried google convertor api but its not working now. Is there any free api ??
Mar 04, 2020 07:46 AM|Sean Fang|LINK
Hi, Prathamesh shende,
Perhaps the currency-dotnet can help you.
It fetches the exchange rate date from the TCMB (Türkiye Cumhuriyeti Merkez Bankası - Central Bank of The Republic Of Turkey) and
supports Frameworks : .NET 4.7.2, .NET Core 2.0, .NET Core 2.1, .NET Core 2.2.
You can use NuGet to install the package with following command:
PM> Install-Package Irensaltali.Currency
The usage is pretty simple: (should use the type "decimal" instead of the
"double" which is used as example on github)
CurrencyConverter currencyConverter = new CurrencyConverter();//parameters are :Currency From , Currency To
var rate = currencyConverter.GetRate(Currency.TRY, Currency.USD);//parameters are :Currency From, decimal FromAmount, Currency To
var exchange = currencyConverter.Convert(Currency.USD, Amount, Currency.TRY)
Hope this can help you.