Get Asset Sector
curl --request GET \
--url https://api.blockworks.com/v1/assets/{idOrSlug}/sector \
--header 'x-api-key: <api-key>'import requests
url = "https://api.blockworks.com/v1/assets/{idOrSlug}/sector"
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.blockworks.com/v1/assets/{idOrSlug}/sector', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 40,
"title": "L1",
"created_at": 1698971397,
"asset_code": "ETH",
"asset_slug": "ethereum"
}assets
Get Asset Sector
Get sector data for a single asset. Returns only the sector data with asset identifiers.
GET
/
v1
/
assets
/
{idOrSlug}
/
sector
Get Asset Sector
curl --request GET \
--url https://api.blockworks.com/v1/assets/{idOrSlug}/sector \
--header 'x-api-key: <api-key>'import requests
url = "https://api.blockworks.com/v1/assets/{idOrSlug}/sector"
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.blockworks.com/v1/assets/{idOrSlug}/sector', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 40,
"title": "L1",
"created_at": 1698971397,
"asset_code": "ETH",
"asset_slug": "ethereum"
}