tcmb_api_client library
A dart client for TCMB(Central Bank of the Republic of Türkiye) rate of exchanges API: https://www.tcmb.gov.tr/kurlar/{date}.xml
, examples of date: today
, 202404/22042024
.
TCMB is the acronym used in Turkish for our central bank, that's why it used in TcmbAPiClient
class name (for convenience purposes)
Classes
- Currency
- The model that we use to convert raw data from API to dart objects Some properties are nullable for now, most of them must be coming from API all the time
- TcmbApiClient
-
A dart client for TCMB(Central Bank of the Republic of Türkiye) rate of exchanges API:
https://www.tcmb.gov.tr/kurlar/{date}.xml
, examples of date:today
,202404/22042024
. TCMB is the acronym used in Turkish for our central bank, that's why it used inTcmbAPiClient
class name (for convenience purposes)
Enums
- CurrencyCode
- All currencies that TCMB API supports, it's been added as enum so that to use methods from TcmbApiClient with ease and a type safe way
Exceptions / Errors
- RatesNotFoundFailure
- When request has been made successfully but rates not found this exception will be thrown
- RatesRequestFailure
- When request to API fails this exception will be thrown