Skip to content

emrahatalay/TCMBRatesClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

TCMB döviz kurları için istemci paketi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages