๐ ๐ฐ Provider Daily Exchange Rates Announced by the Central Bank of Turkey.
- Service Executer for web service call
- Object Caching Mechanism with endpoint path key (daily)
- Tcmb updates the rates every day at 3.30pm
- XML Response Deseriliazer
- Service Endpoints
- https://www.tcmb.gov.tr/kurlar/today.xml
- https://www.tcmb.gov.tr/kurlar/201512/25122015.xml
- BรผltenNo Format
- Year{0:0000} Month{0:00} Day{0:00}
- BรผltenNo = year + month + "/" + day + month + year
var executer = new ServiceExecuter();
executer.ResponseType = ResponseType.XML;
executer.Endpoint = "https://www.tcmb.gov.tr";
var data = executer.InvokeGet<CurrencyEntityList>("/kurlar/today.xml");
var service = new CurrencyService();
var response = service.GetCurrencyRates(2015, 12, 10);
var cacheResponse = service.GetCurrencyRates(2015, 12, 10);
Pull requests are welcome, but make sure you sign the Contributor License Agreement.
Tcmb-Currency-Provider is licensed under the MIT license. Check the LICENSE file for details.