Situation counts
curl --request GET \
--url https://api.turos.app/v1/situations/stats \
--header 'x-api-key: <api-key>'import requests
url = "https://api.turos.app/v1/situations/stats"
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/situations/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "situation_stats",
"asOf": "<string>",
"window": "<string>",
"total": 1,
"byType": {},
"byStatus": {},
"bySector": {},
"byMarketCapBucket": {},
"latestEventAt": "<string>",
"byCountry": {},
"coverage": {
"scope": "persisted_situation_columns",
"countedFields": [
"type"
],
"dimensions": {
"sector": {
"known": 1,
"unknown": 1,
"total": 1,
"ratio": 0.5
},
"marketCapBucket": {
"known": 1,
"unknown": 1,
"total": 1,
"ratio": 0.5
},
"country": {
"known": 1,
"unknown": 1,
"total": 1,
"ratio": 0.5
},
"currency": {
"known": 1,
"unknown": 1,
"total": 1,
"ratio": 0.5
}
}
}
}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Situations
Situation counts
Situation counts by type, status, sector, market-cap bucket, and country with coverage scope.
GET
/
v1
/
situations
/
stats
Situation counts
curl --request GET \
--url https://api.turos.app/v1/situations/stats \
--header 'x-api-key: <api-key>'import requests
url = "https://api.turos.app/v1/situations/stats"
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/situations/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "situation_stats",
"asOf": "<string>",
"window": "<string>",
"total": 1,
"byType": {},
"byStatus": {},
"bySector": {},
"byMarketCapBucket": {},
"latestEventAt": "<string>",
"byCountry": {},
"coverage": {
"scope": "persisted_situation_columns",
"countedFields": [
"type"
],
"dimensions": {
"sector": {
"known": 1,
"unknown": 1,
"total": 1,
"ratio": 0.5
},
"marketCapBucket": {
"known": 1,
"unknown": 1,
"total": 1,
"ratio": 0.5
},
"country": {
"known": 1,
"unknown": 1,
"total": 1,
"ratio": 0.5
},
"currency": {
"known": 1,
"unknown": 1,
"total": 1,
"ratio": 0.5
}
}
}
}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Response
Successful response