locked
Any live currency convertor by location or by selecting currency RRS feed

  • Question

  • User2041008840 posted

    Hey, 
    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 ?? 
    Thank You,
    Prathamesh

    Tuesday, March 3, 2020 2:18 PM

All replies

  • 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

    Wednesday, March 4, 2020 7:46 AM