Currency
This endpoint retrieves the latest currency exchange rates in Turkiye, including details such as the timestamp of the last update and various currencies with their buy and sell prices.
curl --request GET \
--url https://api.mzrdev.xyz/v1/doviz \
--header 'Authorization: <api-key>'
{
"success": true,
"data": {
"lastUpdate": 1722706202,
"USD": {
"currency": "TRY",
"buy": "33,1715",
"sell": "33,2309",
"stonks": true,
"oneDayChange": "%0,34"
},
"EUR": {
"currency": "TRY",
"buy": "36,2490",
"sell": "36,2864",
"stonks": true,
"oneDayChange": "%1,28"
},
"GBP": {
"currency": "TRY",
"buy": "42,4744",
"sell": "42,7126",
"stonks": true,
"oneDayChange": "%0,77"
},
"CHF": {
"currency": "TRY",
"buy": "38,6749",
"sell": "38,7578",
"stonks": true,
"oneDayChange": "%2,14"
},
"CAD": {
"currency": "TRY",
"buy": "23,9158",
"sell": "23,9446",
"stonks": true,
"oneDayChange": "%0,35"
},
"RUB": {
"currency": "TRY",
"buy": "0,3881",
"sell": "0,3885",
"stonks": true,
"oneDayChange": "%0,40"
},
...
}
}
Response
Indicates whether the request was successful. A value of true
means the request was successful, while false
indicates an issue or failure.
Contains the data related to the latest currency exchange rates in Turkiye, including the timestamp of the last update and various currencies with their buy and sell prices.
The timestamp of the most recent update in Unix format. This represents the exact moment the data was last refreshed.
Contains information about a specific currency. Each object has the following subfields:
The currency code (e.g., βUSDβ, βEURβ), formatted as a string.
The current buying price of the currency, formatted as a string with currency symbols and commas for thousands.
The current selling price of the currency, formatted similarly to the buy price.
Indicates whether there has been a notable change in the currencyβs price (or performance) over a given period. true
suggests a positive movement, while false
indicates no significant change.
Represents the percentage change in the currency price over the last 24 hours, formatted as a percentage (e.g., %-0.11
, %0.25
).
curl --request GET \
--url https://api.mzrdev.xyz/v1/doviz \
--header 'Authorization: <api-key>'
{
"success": true,
"data": {
"lastUpdate": 1722706202,
"USD": {
"currency": "TRY",
"buy": "33,1715",
"sell": "33,2309",
"stonks": true,
"oneDayChange": "%0,34"
},
"EUR": {
"currency": "TRY",
"buy": "36,2490",
"sell": "36,2864",
"stonks": true,
"oneDayChange": "%1,28"
},
"GBP": {
"currency": "TRY",
"buy": "42,4744",
"sell": "42,7126",
"stonks": true,
"oneDayChange": "%0,77"
},
"CHF": {
"currency": "TRY",
"buy": "38,6749",
"sell": "38,7578",
"stonks": true,
"oneDayChange": "%2,14"
},
"CAD": {
"currency": "TRY",
"buy": "23,9158",
"sell": "23,9446",
"stonks": true,
"oneDayChange": "%0,35"
},
"RUB": {
"currency": "TRY",
"buy": "0,3881",
"sell": "0,3885",
"stonks": true,
"oneDayChange": "%0,40"
},
...
}
}