Protocol Health
Priced per asset in the request. Send X-Partner-Name and X-Partner-API-Key, or pay with x402: without partner headers the route answers 402 with a PAYMENT-REQUIRED header; retry with PAYMENT-SIGNATURE. Payment settles only on a 2xx and the receipt is returned in PAYMENT-RESPONSE.
POST
/
api
/
v1
/
protocols
/
health
Protocol Health
curl --request POST \
--url https://si.ampli.net/api/v1/protocols/health \
--header 'Content-Type: application/json' \
--header 'X-Partner-API-Key: <api-key>' \
--header 'X-Partner-Name: <api-key>' \
--data '
{
"assets": [
{
"chain_id": 123,
"address": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {
'X-Partner-Name': '<api-key>',
'X-Partner-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({assets: [{chain_id: 123, address: '<string>'}]})
};
fetch('https://si.ampli.net/api/v1/protocols/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://si.ampli.net/api/v1/protocols/health"
payload = { "assets": [
{
"chain_id": 123,
"address": "<string>"
}
] }
headers = {
"X-Partner-Name": "<api-key>",
"X-Partner-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"assets": [
{
"chain_id": 123,
"address": "<string>",
"kind": "token",
"error": "<string>",
"underlying": "<string>",
"peg": {
"price": 123,
"deviation": 123
},
"protocols": [
{
"protocol": "<string>",
"address": "<string>",
"kind": "market",
"name": "<string>",
"parent": "<string>",
"description": "<string>",
"website": "<string>",
"asset_symbol": "<string>",
"total_assets_usd": 123,
"supply_apr": 123,
"reward_apr": 123,
"net_apr": 123,
"net_apr_7d": 123,
"net_apr_7d_samples": 123,
"utilization": 123,
"total_supply": "<string>",
"total_borrows": "<string>",
"available_liquidity": "<string>",
"backing": {
"sound": true,
"reviewed_assets": [
"<string>"
],
"largest_position": {
"address": "<string>",
"position_to_liquidity": 123,
"liquidity_to_supply": 123,
"withdrawable_usd": 123,
"can_exit": true
}
}
}
],
"protocol": "<string>",
"name": "<string>",
"parent": "<string>",
"description": "<string>",
"website": "<string>",
"asset_symbol": "<string>",
"total_assets_usd": 123,
"utilization": 123,
"total_supply": "<string>",
"total_borrows": "<string>",
"available_liquidity": "<string>",
"supply_apr": 123,
"reward_apr": 123,
"net_apr": 123,
"net_apr_7d": 123,
"net_apr_7d_samples": 123,
"backing": {
"sound": true,
"reviewed_assets": [
"<string>"
],
"largest_position": {
"address": "<string>",
"position_to_liquidity": 123,
"liquidity_to_supply": 123,
"withdrawable_usd": 123,
"can_exit": true
}
}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}⌘I
Protocol Health
curl --request POST \
--url https://si.ampli.net/api/v1/protocols/health \
--header 'Content-Type: application/json' \
--header 'X-Partner-API-Key: <api-key>' \
--header 'X-Partner-Name: <api-key>' \
--data '
{
"assets": [
{
"chain_id": 123,
"address": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {
'X-Partner-Name': '<api-key>',
'X-Partner-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({assets: [{chain_id: 123, address: '<string>'}]})
};
fetch('https://si.ampli.net/api/v1/protocols/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://si.ampli.net/api/v1/protocols/health"
payload = { "assets": [
{
"chain_id": 123,
"address": "<string>"
}
] }
headers = {
"X-Partner-Name": "<api-key>",
"X-Partner-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"assets": [
{
"chain_id": 123,
"address": "<string>",
"kind": "token",
"error": "<string>",
"underlying": "<string>",
"peg": {
"price": 123,
"deviation": 123
},
"protocols": [
{
"protocol": "<string>",
"address": "<string>",
"kind": "market",
"name": "<string>",
"parent": "<string>",
"description": "<string>",
"website": "<string>",
"asset_symbol": "<string>",
"total_assets_usd": 123,
"supply_apr": 123,
"reward_apr": 123,
"net_apr": 123,
"net_apr_7d": 123,
"net_apr_7d_samples": 123,
"utilization": 123,
"total_supply": "<string>",
"total_borrows": "<string>",
"available_liquidity": "<string>",
"backing": {
"sound": true,
"reviewed_assets": [
"<string>"
],
"largest_position": {
"address": "<string>",
"position_to_liquidity": 123,
"liquidity_to_supply": 123,
"withdrawable_usd": 123,
"can_exit": true
}
}
}
],
"protocol": "<string>",
"name": "<string>",
"parent": "<string>",
"description": "<string>",
"website": "<string>",
"asset_symbol": "<string>",
"total_assets_usd": 123,
"utilization": 123,
"total_supply": "<string>",
"total_borrows": "<string>",
"available_liquidity": "<string>",
"supply_apr": 123,
"reward_apr": 123,
"net_apr": 123,
"net_apr_7d": 123,
"net_apr_7d_samples": 123,
"backing": {
"sound": true,
"reviewed_assets": [
"<string>"
],
"largest_position": {
"address": "<string>",
"position_to_liquidity": 123,
"liquidity_to_supply": 123,
"withdrawable_usd": 123,
"can_exit": true
}
}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}