Country credit rating
curl --request GET \
--url https://api.turos.app/v1/macro/credit-ratings/{country} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.turos.app/v1/macro/credit-ratings/{country}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.turos.app/v1/macro/credit-ratings/{country}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Macro
Country credit rating
Return the sovereign credit rating for a single country by ISO country code.
GET
/
v1
/
macro
/
credit-ratings
/
{country}
Country credit rating
curl --request GET \
--url https://api.turos.app/v1/macro/credit-ratings/{country} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.turos.app/v1/macro/credit-ratings/{country}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.turos.app/v1/macro/credit-ratings/{country}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}