TCMBRatesClient 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package TCMBRatesClient --version 2.0.0                
NuGet\Install-Package TCMBRatesClient -Version 2.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TCMBRatesClient" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TCMBRatesClient --version 2.0.0                
#r "nuget: TCMBRatesClient, 2.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TCMBRatesClient as a Cake Addin
#addin nuget:?package=TCMBRatesClient&version=2.0.0

// Install TCMBRatesClient as a Cake Tool
#tool nuget:?package=TCMBRatesClient&version=2.0.0                

TCMBRatesClient

TCMBRatesClient is a .NET library for fetching exchange rates from the Central Bank of Turkey (TCMB). This package simplifies retrieving hourly exchange rate data as XML from the TCMB's official service.


Features

  • Fetch exchange rate data for specific dates and times.
  • Parse XML responses into strongly-typed models.
  • Easy integration with .NET applications.

Installation

Install the package via NuGet Package Manager:

dotnet add package TCMBRatesClient

Or use the Visual Studio NuGet Package Manager UI to search for TCMBRatesClient.


Usage

Basic Example

Below is an example of fetching exchange rate data for a specific date and time:

using TCMBRatesClient.TCMBClient;

ITcmbClient client = new TcmbClient();

var rates = await client.GetTodayRatesAsync();

foreach (var rate in rates.ExchangeRates)
{
    Console.WriteLine($"{rate.NameTr} - {rate.ForexBuying} - {rate.ForexSelling}");
}

Models

Contribution

Contributions are welcome! If you encounter a bug or have suggestions, please open an issue or submit a pull request on the GitHub repository.


License

This package is licensed under the MIT License. See the LICENSE file for more details.


Contact

For inquiries or support, please contact:

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.1 84 12/3/2024
2.0.0 78 12/2/2024
1.0.1 95 11/25/2024
1.0.0 89 11/25/2024