TCMBRatesClient 2.0.1
dotnet add package TCMBRatesClient --version 2.0.1
NuGet\Install-Package TCMBRatesClient -Version 2.0.1
<PackageReference Include="TCMBRatesClient" Version="2.0.1" />
paket add TCMBRatesClient --version 2.0.1
#r "nuget: TCMBRatesClient, 2.0.1"
// Install TCMBRatesClient as a Cake Addin #addin nuget:?package=TCMBRatesClient&version=2.0.1 // Install TCMBRatesClient as a Cake Tool #tool nuget:?package=TCMBRatesClient&version=2.0.1
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:
- Email: emrah.atalay@outlook.com
Product | Versions 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. |
-
net8.0
-
net9.0
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.