Parameter | Type |
---|---|
slug | STRING |
[
{
"description": "Get descriptive information and current stats of a protocol.",
"name": "getProtocol",
"parameters": {
"properties": {
"slug": {
"type": "string",
"example": "lido"
}
},
"required": [
"slug"
],
"type": "object"
}
},
{
"description": "Get the current TVL of a protocol.",
"name": "getProtocolTvl",
"parameters": {
"properties": {
"slug": {
"type": "string",
"example": "uniswap"
}
},
"required": [
"slug"
],
"type": "object"
}
},
{
"description": "Get the protocols that gained the most TVL.",
"name": "getTopGainers",
"parameters": {
"properties": {
"num_protocols": {
"type": "integer",
"example": 10
},
"min_tvl": {
"type": "number",
"format": "float",
"example": 1000000
},
"time_period": {
"type": "string",
"enum": [
"hour",
"day",
"week"
],
"example": "day"
},
"category": {
"type": "string",
"enum": [
"liquid staking",
"dexes",
"lending",
"bridge",
"CDP",
"yield",
"services",
"derivatives",
"yield aggregator",
"cross chain",
"launchpad",
"indexes",
"synthetics",
"RWA",
"liquidity manager",
"nft lending",
"insurance",
"algo-stables",
"privacy",
"payments",
"leveraged farming",
"nft marketplace",
"options",
"options vault",
"staking pool",
"prediction market",
"farm",
"uncollateralized lending",
"reserve currency",
"RWA lending",
"gaming",
"oracle"
],
"example": "liquid staking"
},
"chain": {
"type": "string",
"example": "ethereum"
}
},
"required": [
"num_protocols"
],
"type": "object"
}
},
{
"description": "Get the protocols that had the highest percentage growth in TVL.",
"name": "getTopGrowers",
"parameters": {
"properties": {
"num_protocols": {
"type": "integer",
"example": 10
},
"min_tvl": {
"type": "number",
"format": "float",
"example": 1000000
},
"time_period": {
"type": "string",
"enum": [
"hour",
"day",
"week"
],
"example": "day"
},
"category": {
"type": "string",
"enum": [
"liquid staking",
"dexes",
"lending",
"bridge",
"CDP",
"yield",
"services",
"derivatives",
"yield aggregator",
"cross chain",
"launchpad",
"indexes",
"synthetics",
"RWA",
"liquidity manager",
"nft lending",
"insurance",
"algo-stables",
"privacy",
"payments",
"leveraged farming",
"nft marketplace",
"options",
"options vault",
"staking pool",
"prediction market",
"farm",
"uncollateralized lending",
"reserve currency",
"RWA lending",
"gaming",
"oracle"
],
"example": "liquid staking"
},
"chain": {
"type": "string",
"example": "ethereum"
}
},
"required": [
"num_protocols"
],
"type": "object"
}
},
{
"description": "Get the protocols that lost the most TVl.",
"name": "getTopLosers",
"parameters": {
"properties": {
"num_protocols": {
"type": "integer",
"example": 10
},
"min_tvl": {
"type": "number",
"format": "float",
"example": 1000000
},
"time_period": {
"type": "string",
"enum": [
"hour",
"day",
"week"
],
"example": "day"
},
"category": {
"type": "string",
"enum": [
"liquid staking",
"dexes",
"lending",
"bridge",
"CDP",
"yield",
"services",
"derivatives",
"yield aggregator",
"cross chain",
"launchpad",
"indexes",
"synthetics",
"RWA",
"liquidity manager",
"nft lending",
"insurance",
"algo-stables",
"privacy",
"payments",
"leveraged farming",
"nft marketplace",
"options",
"options vault",
"staking pool",
"prediction market",
"farm",
"uncollateralized lending",
"reserve currency",
"RWA lending",
"gaming",
"oracle"
],
"example": "liquid staking"
},
"chain": {
"type": "string",
"example": "ethereum"
}
},
"required": [
"num_protocols"
],
"type": "object"
}
},
{
"description": "Get the protocols that had the highest percentage loss in terms of TVl.",
"name": "getTopShrinkers",
"parameters": {
"properties": {
"num_protocols": {
"type": "integer",
"example": 10
},
"min_tvl": {
"type": "number",
"format": "float",
"example": 1000000
},
"time_period": {
"type": "string",
"enum": [
"hour",
"day",
"week"
],
"example": "day"
},
"category": {
"type": "string",
"enum": [
"liquid staking",
"dexes",
"lending",
"bridge",
"CDP",
"yield",
"services",
"derivatives",
"yield aggregator",
"cross chain",
"launchpad",
"indexes",
"synthetics",
"RWA",
"liquidity manager",
"nft lending",
"insurance",
"algo-stables",
"privacy",
"payments",
"leveraged farming",
"nft marketplace",
"options",
"options vault",
"staking pool",
"prediction market",
"farm",
"uncollateralized lending",
"reserve currency",
"RWA lending",
"gaming",
"oracle"
],
"example": "liquid staking"
},
"chain": {
"type": "string",
"example": "ethereum"
}
},
"required": [
"num_protocols"
],
"type": "object"
}
},
{
"description": "Get historical TVL data of a protocl.",
"name": "getHistoricalProtocolTVL",
"parameters": {
"properties": {
"slug": {
"type": "string",
"example": "lido"
}
},
"required": [
"slug"
],
"type": "object"
}
},
{
"description": "Get the slug most similar to the given text.",
"name": "getSlug",
"parameters": {
"properties": {
"text": {
"type": "string",
"example": "uniswap"
}
},
"required": [
"text"
],
"type": "object"
}
},
{
"description": "Get the fees earned by a protocol",
"name": "getProtocolFees",
"parameters": {
"properties": {
"defillamaId": {
"type": "string"
},
"time_period": {
"type": "string",
"enum": [
"day",
"week",
"month"
]
}
},
"required": [
"defillamaId"
],
"type": "object"
}
},
{
"description": "Get the protocols that have earned the most fees.",
"name": "getTopProtocolFees",
"parameters": {
"properties": {
"num_protocols": {
"type": "integer"
},
"time_period": {
"type": "string",
"enum": [
"day",
"week",
"month"
]
},
"chain": {
"type": "string"
},
"category": {
"type": "string",
"enum": [
"liquid staking",
"dexes",
"lending",
"bridge",
"CDP",
"yield",
"services",
"derivatives",
"yield aggregator",
"cross chain",
"launchpad",
"indexes",
"synthetics",
"RWA",
"liquidity manager",
"nft lending",
"insurance",
"algo-stables",
"privacy",
"payments",
"leveraged farming",
"nft marketplace",
"options",
"options vault",
"staking pool",
"prediction market",
"farm",
"uncollateralized lending",
"reserve currency",
"RWA lending",
"gaming",
"oracle"
],
"example": "liquid staking"
}
},
"type": "object"
}
},
{
"description": "Get the DefiLlamaID of a protocol",
"name": "getDefiLlamaID",
"parameters": {
"properties": {
"text": {
"type": "string",
"example": "uniswap"
}
},
"required": [
"text"
],
"type": "object"
}
},
{
"description": "Get the revenue earned by a protocol",
"name": "getProtocolRevenue",
"parameters": {
"properties": {
"defillamaId": {
"type": "string"
},
"time_period": {
"type": "string",
"enum": [
"day",
"week",
"month"
]
}
},
"required": [
"defillamaId"
],
"type": "object"
}
},
{
"description": "Get the protocols that have earned the most revenue.",
"name": "getTopProtocolRevenue",
"parameters": {
"properties": {
"num_protocols": {
"type": "integer"
},
"time_period": {
"type": "string",
"enum": [
"day",
"week",
"month"
]
},
"chain": {
"type": "string"
},
"category": {
"type": "string",
"enum": [
"liquid staking",
"dexes",
"lending",
"bridge",
"CDP",
"yield",
"services",
"derivatives",
"yield aggregator",
"cross chain",
"launchpad",
"indexes",
"synthetics",
"RWA",
"liquidity manager",
"nft lending",
"insurance",
"algo-stables",
"privacy",
"payments",
"leveraged farming",
"nft marketplace",
"options",
"options vault",
"staking pool",
"prediction market",
"farm",
"uncollateralized lending",
"reserve currency",
"RWA lending",
"gaming",
"oracle"
],
"example": "liquid staking"
}
},
"type": "object"
}
},
{
"description": "Get the TVL for a specific chain or L2.",
"name": "getChainTVL",
"parameters": {
"properties": {
"chain": {
"type": "string",
"example": "ethereum"
}
},
"type": "object"
}
},
{
"description": "Get the change in TVL for a specific chain or L2 over a given time period.",
"name": "getChainTVLChange",
"parameters": {
"properties": {
"chain": {
"type": "string",
"example": "ethereum"
},
"time_period": {
"type": "string",
"enum": [
"day",