User-1330468790 posted
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.
Installation:
You can use NuGet to install the package with following command:
PM> Install-Package Irensaltali.Currency
Example:
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.
Best regards,
Sean