We are using cookies in our website in order to offer better service to you. You allow us to use cookies by continuing to use our internet website. You can reach the detailed information on cookies from our Privacy Policy and Cookies Policy.
X
Home > Api Products > Exchange Rates

Exchange Rates

Description

This API is used to convert any currency to TRY. By default it uses today. Date parameter is used to specify the date.

How it Works

Parameters

date : Date
currency_code : Currency code

Sample Request – 1 

GET {API_HOST}/api/v1/exchange-rates/?date=2018-09-17
Headers:
X-IBM-client-id: {YOUR_CLEINT_ID} 
X-IBM-client-secret: {YOUR_CLEINT_SECRET} 
Accept: application/json


Sample Request – 2  

GET {API_HOST}/api/v1/exchange-rates/{{currency_code}}/?date=2018-09-17
currency_code : EUR
Headers:
X-IBM-client-id: {YOUR_CLEINT_ID} 
X-IBM-client-secret: {YOUR_CLEINT_SECRET} 
Accept: application/json





Sample Response

Sample Response - 1
{
    "data": [       
      {
            "code": "USD",
            "rate_buy": "6.1189000",
            "rate_sell": "6.2421000",
            "effective_rate_buy": "6.1067000",
            "effective_rate_sell": "6.2546000"
        }, 
       {
            "code": "GBP",
            "rate_buy": "8.0054000",
            "rate_sell": "8.1665000",
            "effective_rate_buy": "7.9894000",
            "effective_rate_sell": "8.1829000"
        }      
    ]
}


Sample Response - 2
{
    "data": {
        "code": "EUR",
        "rate_buy": "7.1187000",
        "rate_sell": "7.2621000",
        "effective_rate_buy": "7.1045000",
        "effective_rate_sell": "7.2766000"
    }
}