From bd82c21bdd62a6f75f5b90123520887576478e37 Mon Sep 17 00:00:00 2001 From: reynardoew Date: Wed, 20 Aug 2025 09:17:22 +0700 Subject: [PATCH] update schema --- defillama-openapi-free.json | 6 +- defillama-openapi-pro.json | 1359 +++++++++++++++++++++++++---------- 2 files changed, 966 insertions(+), 399 deletions(-) diff --git a/defillama-openapi-free.json b/defillama-openapi-free.json index 8f4e3f0beb4..2441dc1f91d 100644 --- a/defillama-openapi-free.json +++ b/defillama-openapi-free.json @@ -930,7 +930,8 @@ "description": "Chain which you want to get the block from", "required": true, "schema": { - "type": "string" + "type": "string", + "example": "ethereum" } }, { @@ -939,7 +940,8 @@ "description": "UNIX timestamp of the block you are searching for", "required": true, "schema": { - "type": "integer" + "type": "integer", + "example": 1603964988 } } ], diff --git a/defillama-openapi-pro.json b/defillama-openapi-pro.json index a4ba5120f83..e603e965ef2 100644 --- a/defillama-openapi-pro.json +++ b/defillama-openapi-pro.json @@ -55,7 +55,9 @@ "paths": { "/api/tokenProtocols/{symbol}": { "get": { - "tags": ["TVL"], + "tags": [ + "TVL" + ], "x-pro-only": true, "summary": "Lists the amount of a certain token within all protocols. Data for the Token Usage page", "parameters": [ @@ -110,7 +112,9 @@ }, "/api/inflows/{protocol}/{timestamp}": { "get": { - "tags": ["TVL"], + "tags": [ + "TVL" + ], "x-pro-only": true, "summary": "Lists the amount of inflows and outflows for a protocol at a given date", "parameters": [ @@ -252,7 +256,9 @@ }, "/api/chainAssets": { "get": { - "tags": ["TVL"], + "tags": [ + "TVL" + ], "summary": "Get assets of all chains", "responses": { "200": { @@ -370,7 +376,9 @@ }, "/stablecoins/stablecoindominance/{chain}": { "get": { - "tags": ["stablecoins"], + "tags": [ + "stablecoins" + ], "summary": "Get stablecoin dominance per chain along with the info about the larges coin in a chain", "parameters": [ { @@ -454,7 +462,9 @@ }, "/api/activeUsers": { "get": { - "tags": ["active users"], + "tags": [ + "active users" + ], "summary": "Get active users on our chains and protocols pages", "responses": { "200": { @@ -553,7 +563,9 @@ }, "/api/userData/{type}/{protocolId}": { "get": { - "tags": ["active users"], + "tags": [ + "active users" + ], "summary": "Get user data by type and protocol", "parameters": [ { @@ -587,7 +599,9 @@ }, "/api/emissions": { "get": { - "tags": ["Unlocks"], + "tags": [ + "Unlocks" + ], "summary": "List of all tokens along with basic info for each", "responses": { "200": { @@ -608,7 +622,9 @@ "items": { "type": "string" }, - "example": ["https://cdn.whitebit.com/wbt/whitepaper-en.pdf"] + "example": [ + "https://cdn.whitebit.com/wbt/whitepaper-en.pdf" + ] }, "protocolId": { "type": "string", @@ -656,7 +672,9 @@ "items": { "type": "number" }, - "example": [120000000] + "example": [ + 120000000 + ] }, "category": { "type": "string", @@ -702,7 +720,9 @@ }, "/api/emission/{protocol}": { "get": { - "tags": ["Unlocks"], + "tags": [ + "Unlocks" + ], "summary": "Unlocks data for a given token/protocol. You can find a list of available slugs to query by querying /emissions and then extracting the key `gecko_id`", "parameters": [ { @@ -872,14 +892,21 @@ "items": { "type": "string" }, - "example": ["https://hyperfnd.medium.com/hype-genesis-1830a4dc2e3f"] + "example": [ + "https://hyperfnd.medium.com/hype-genesis-1830a4dc2e3f" + ] }, "protocolIds": { "type": "array", "items": { "type": "string" }, - "example": ["4481", "5448", "5507", "5761"] + "example": [ + "4481", + "5448", + "5507", + "5761" + ] }, "total": { "type": "number", @@ -902,7 +929,9 @@ "items": { "type": "string" }, - "example": ["4481"] + "example": [ + "4481" + ] }, "categories": { "type": "object", @@ -912,35 +941,46 @@ "items": { "type": "string" }, - "example": ["Core Contributors", "Hyper Foundation Budget"] + "example": [ + "Core Contributors", + "Hyper Foundation Budget" + ] }, "noncirculating": { "type": "array", "items": { "type": "string" }, - "example": ["Community Grants"] + "example": [ + "Community Grants" + ] }, "publicSale": { "type": "array", "items": { "type": "string" }, - "example": ["HIP-2"] + "example": [ + "HIP-2" + ] }, "airdrop": { "type": "array", "items": { "type": "string" }, - "example": ["Genesis Distribution"] + "example": [ + "Genesis Distribution" + ] }, "farming": { "type": "array", "items": { "type": "string" }, - "example": ["Community Rewards"] + "example": [ + "Community Rewards" + ] } } }, @@ -975,7 +1015,9 @@ }, "/api/categories": { "get": { - "tags": ["main page"], + "tags": [ + "main page" + ], "summary": "Overview of all categories accross all protocols", "responses": { "200": { @@ -1097,7 +1139,9 @@ "CIAN Curating", "Vault Bridge" ], - "DAO Service Provider": ["CreateDAO"] + "DAO Service Provider": [ + "CreateDAO" + ] } } } @@ -1111,7 +1155,9 @@ }, "/api/forks": { "get": { - "tags": ["main page"], + "tags": [ + "main page" + ], "x-pro-only": true, "summary": "Overview of all categories accross all protocols", "responses": { @@ -1220,7 +1266,9 @@ }, "/api/oracles": { "get": { - "tags": ["main page"], + "tags": [ + "main page" + ], "summary": "Overview of all categories accross all protocols", "responses": { "200": { @@ -1286,7 +1334,12 @@ } }, "example": { - "Chainlink": ["AAVE V2", "Compound V2", "Synthetix v1+v2", "CREAM Lending"] + "Chainlink": [ + "AAVE V2", + "Compound V2", + "Synthetix v1+v2", + "CREAM Lending" + ] } }, "chainsByOracle": { @@ -1322,7 +1375,9 @@ }, "/api/hacks": { "get": { - "tags": ["main page"], + "tags": [ + "main page" + ], "summary": "Overview of all hacks on our Hacks dashboard", "responses": { "200": { @@ -1359,7 +1414,9 @@ "items": { "type": "string" }, - "example": ["Blast"] + "example": [ + "Blast" + ] }, "bridgeHack": { "type": "boolean", @@ -1374,15 +1431,24 @@ "example": "https://rekt.news/sss-rekt/" }, "returnedFunds": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "defillamaId": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "language": { - "type": ["string", "null"], + "type": [ + "string", + "null" + ], "example": "Solidity" } } @@ -1397,7 +1463,9 @@ }, "/api/raises": { "get": { - "tags": ["main page"], + "tags": [ + "main page" + ], "summary": "Overview of all raises on our Raises dashboard", "responses": { "200": { @@ -1433,7 +1501,9 @@ "items": { "type": "string" }, - "example": ["Ethereum"] + "example": [ + "Ethereum" + ] }, "sector": { "type": "string", @@ -1456,7 +1526,9 @@ "items": { "type": "string" }, - "example": ["MEXC Ventures"] + "example": [ + "MEXC Ventures" + ] }, "otherInvestors": { "type": "array", @@ -1466,7 +1538,10 @@ "example": [] }, "valuation": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "defillamaId": { @@ -1487,7 +1562,9 @@ }, "/api/treasuries": { "get": { - "tags": ["main page"], + "tags": [ + "main page" + ], "summary": "List all protocols on our Treasuries dashboard", "responses": { "200": { @@ -1508,7 +1585,10 @@ "example": "SharpLink Gaming (treasury)" }, "address": { - "type": ["string", "null"], + "type": [ + "string", + "null" + ], "example": null }, "symbol": { @@ -1536,15 +1616,24 @@ "example": "0" }, "audit_note": { - "type": ["string", "null"], + "type": [ + "string", + "null" + ], "example": null }, "gecko_id": { - "type": ["string", "null"], + "type": [ + "string", + "null" + ], "example": null }, "cmcId": { - "type": ["string", "null"], + "type": [ + "string", + "null" + ], "example": null }, "category": { @@ -1556,7 +1645,9 @@ "items": { "type": "string" }, - "example": ["Ethereum"] + "example": [ + "Ethereum" + ] }, "module": { "type": "string", @@ -1628,7 +1719,10 @@ } }, "mcap": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null } } @@ -1643,7 +1737,9 @@ }, "/api/entities": { "get": { - "tags": ["main page"], + "tags": [ + "main page" + ], "summary": "List all entities", "responses": { "200": { @@ -1696,11 +1792,17 @@ "example": "Ethereum" }, "gecko_id": { - "type": ["string", "null"], + "type": [ + "string", + "null" + ], "example": null }, "cmcId": { - "type": ["string", "null"], + "type": [ + "string", + "null" + ], "example": null }, "chains": { @@ -1708,7 +1810,9 @@ "items": { "type": "string" }, - "example": ["Ethereum"] + "example": [ + "Ethereum" + ] }, "slug": { "type": "string", @@ -1761,7 +1865,10 @@ } }, "mcap": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null } } @@ -1776,7 +1883,9 @@ }, "/api/historicalLiquidity/{token}": { "get": { - "tags": ["token liquidity"], + "tags": [ + "token liquidity" + ], "summary": "Provides the name of contracts on a determined chain", "parameters": [ { @@ -1800,7 +1909,9 @@ }, "/yields/pools": { "get": { - "tags": ["yields"], + "tags": [ + "yields" + ], "summary": "Retrieve the latest data for all pools, including enriched information such as predictions", "responses": { "200": { @@ -1840,7 +1951,10 @@ "example": 2.84 }, "apyReward": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apy": { @@ -1848,7 +1962,10 @@ "example": 2.84 }, "rewardTokens": { - "type": ["array", "null"], + "type": [ + "array", + "null" + ], "items": { "type": "string" }, @@ -1867,7 +1984,10 @@ "example": -0.056 }, "apyPct30D": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "stablecoin": { @@ -1900,7 +2020,10 @@ } }, "poolMeta": { - "type": ["string", "null"], + "type": [ + "string", + "null" + ], "example": null }, "mu": { @@ -1924,14 +2047,22 @@ "items": { "type": "string" }, - "example": ["0x0000000000000000000000000000000000000000"] + "example": [ + "0x0000000000000000000000000000000000000000" + ] }, "il7d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyBase7d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyMean30d": { @@ -1939,15 +2070,24 @@ "example": 2.73539 }, "volumeUsd1d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "volumeUsd7d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyBaseInception": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null } } @@ -1963,7 +2103,9 @@ }, "/yields/poolsOld": { "get": { - "tags": ["yields"], + "tags": [ + "yields" + ], "summary": "Same as /pools but it also includes a new parameter `pool_old` which usually contains pool address (but not guaranteed)", "responses": { "200": { @@ -2003,7 +2145,10 @@ "example": "STETH" }, "poolMeta": { - "type": ["string", "null"], + "type": [ + "string", + "null" + ], "example": null }, "underlyingTokens": { @@ -2011,10 +2156,15 @@ "items": { "type": "string" }, - "example": ["0x0000000000000000000000000000000000000000"] + "example": [ + "0x0000000000000000000000000000000000000000" + ] }, "rewardTokens": { - "type": ["array", "null"], + "type": [ + "array", + "null" + ], "items": { "type": "string" }, @@ -2033,27 +2183,45 @@ "example": 2.84 }, "apyReward": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "il7d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyBase7d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "volumeUsd1d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "volumeUsd7d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyBaseInception": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "url": { @@ -2069,7 +2237,10 @@ "example": -0.056 }, "apyPct30D": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyMean30d": { @@ -2159,7 +2330,9 @@ }, "/yields/chart/{pool}": { "get": { - "tags": ["yields"], + "tags": [ + "yields" + ], "summary": "Get historical APY and TVL of a pool", "parameters": [ { @@ -2207,15 +2380,24 @@ "example": 3.6 }, "apyReward": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "il7d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyBase7d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null } } @@ -2231,7 +2413,9 @@ }, "/yields/poolsBorrow": { "get": { - "tags": ["yields"], + "tags": [ + "yields" + ], "summary": "Borrow costs APY of assets from lending markets", "responses": { "200": { @@ -2271,7 +2455,10 @@ "example": 3.98975 }, "apyReward": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apy": { @@ -2279,7 +2466,10 @@ "example": 3.98975 }, "rewardTokens": { - "type": ["array", "null"], + "type": [ + "array", + "null" + ], "items": { "type": "string" }, @@ -2331,7 +2521,10 @@ } }, "poolMeta": { - "type": ["string", "null"], + "type": [ + "string", + "null" + ], "example": null }, "sigma": { @@ -2351,14 +2544,22 @@ "items": { "type": "string" }, - "example": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"] + "example": [ + "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" + ] }, "il7d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyBase7d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyMean30d": { @@ -2366,15 +2567,24 @@ "example": 2.15424 }, "volumeUsd1d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "volumeUsd7d": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyBaseInception": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyBaseBorrow": { @@ -2382,7 +2592,10 @@ "example": 5.0324 }, "apyRewardBorrow": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "totalSupplyUsd": { @@ -2394,7 +2607,10 @@ "example": 8384185990 }, "debtCeilingUsd": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "ltv": { @@ -2406,11 +2622,17 @@ "example": true }, "mintedCoin": { - "type": ["string", "null"], + "type": [ + "string", + "null" + ], "example": null }, "borrowFactor": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null } } @@ -2427,7 +2649,9 @@ }, "/yields/chartLendBorrow/{pool}": { "get": { - "tags": ["yields"], + "tags": [ + "yields" + ], "summary": "Historical borrow cost APY from a pool on a lending market, pool ids should be obtained from /poolsBorrow", "parameters": [ { @@ -2463,31 +2687,52 @@ "example": "2023-02-06T23:01:24.670Z" }, "totalSupplyUsd": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": 60767153 }, "totalBorrowUsd": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": 33150230 }, "debtCeilingUsd": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyBase": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": 1.66533 }, "apyReward": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "apyBaseBorrow": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": 3.59132 }, "apyRewardBorrow": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null } } @@ -2504,7 +2749,9 @@ }, "/yields/perps": { "get": { - "tags": ["yields"], + "tags": [ + "yields" + ], "summary": "Funding rates and Open Interest of perps across exchanges, including both Decentralized and Centralized", "responses": { "200": { @@ -2564,19 +2811,31 @@ "example": 0.05108 }, "fundingRate7dAverage": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "fundingRate7dSum": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "fundingRate30dAverage": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null }, "fundingRate30dSum": { - "type": ["number", "null"], + "type": [ + "number", + "null" + ], "example": null } } @@ -2593,7 +2852,9 @@ }, "/yields/lsdRates": { "get": { - "tags": ["yields"], + "tags": [ + "yields" + ], "summary": "APY rates of multiple LSDs", "responses": { "200": { @@ -2661,7 +2922,9 @@ }, "/etfs/snapshot": { "get": { - "tags": ["ETFs"], + "tags": [ + "ETFs" + ], "summary": "Get ETFs and their metrics (aum, flows, fees...)", "responses": { "200": { @@ -2733,7 +2996,7 @@ "flows": -68700000, "aum": 87276718199, "volume": 453293317.84999996 - } + } ] } } @@ -2744,7 +3007,9 @@ }, "/etfs/flows": { "get": { - "tags": ["ETFs"], + "tags": [ + "ETFs" + ], "summary": "Historical Flows at the Asset Level", "responses": { "200": { @@ -2776,7 +3041,7 @@ "gecko_id": "bitcoin", "day": "2024-01-11T00:00:00.000Z", "total_flow_usd": 655300000 - } + } ] } } @@ -2787,7 +3052,9 @@ }, "/fdv/performance/{period}": { "get": { - "tags": ["narratives"], + "tags": [ + "narratives" + ], "summary": "Get chart of narratives based on category performance (with individual coins weighted by mcap)", "parameters": [ { @@ -2942,7 +3209,9 @@ }, "/api/overview/derivatives": { "get": { - "tags": ["perps"], + "tags": [ + "perps" + ], "summary": "Lists all derivatives along summaries of their volumes filtering by chain", "parameters": [ { @@ -3240,7 +3509,20 @@ } }, "example": { - "totalDataChart": [[1614211200, 24949], [1614297600, 103833], [1614384000, 49317]], + "totalDataChart": [ + [ + 1614211200, + 24949 + ], + [ + 1614297600, + 103833 + ], + [ + 1614384000, + 49317 + ] + ], "totalDataChartBreakdown": [ [ 1614211200, @@ -3258,7 +3540,12 @@ "breakdown24h": null, "breakdown30d": null, "chain": null, - "allChains": ["Hyperliquid L1", "Solana", "Ethereum", "Arbitrum"], + "allChains": [ + "Hyperliquid L1", + "Solana", + "Ethereum", + "Arbitrum" + ], "total24h": 23537303133, "total48hto24h": 20741840211, "total7d": 125290755214, @@ -3308,7 +3595,9 @@ "module": "synthetix", "category": "Synthetics", "logo": "https://icons.llamao.fi/icons/protocols/synthetix.png", - "chains": ["OP Mainnet"], + "chains": [ + "OP Mainnet" + ], "protocolType": "protocol", "methodologyURL": "https://github.com/DefiLlama/dimension-adapters/blob/master/dexs/synthetix", "methodology": { @@ -3321,7 +3610,11 @@ "latestFetchIsOk": true, "parentProtocol": "parent#synthetix", "slug": "synthetix-v1+v2", - "linkedProtocols": ["Synthetix", "Synthetix v1+v2", "Synthetix V3"], + "linkedProtocols": [ + "Synthetix", + "Synthetix v1+v2", + "Synthetix V3" + ], "id": "115" } ] @@ -3335,7 +3628,9 @@ }, "/api/summary/derivatives/{protocol}": { "get": { - "tags": ["perps"], + "tags": [ + "perps" + ], "summary": "Volume Details about a specific perp protocol", "parameters": [ { @@ -3599,13 +3894,22 @@ "logo": "https://icons.llama.fi/hyperliquid.png", "gecko_id": "hyperliquid", "cmcId": "32196", - "chains": ["Hyperliquid L1"], + "chains": [ + "Hyperliquid L1" + ], "twitter": "HyperliquidX", - "github": ["hyperliquid-dex"], + "github": [ + "hyperliquid-dex" + ], "symbol": "HYPE", "address": "hyperliquid:0x0d01dc56dcaaca66ad901c959b4011ec", - "childProtocols": [{}], - "linkedProtocols": ["Hyperliquid", "Hyperliquid Perps"], + "childProtocols": [ + {} + ], + "linkedProtocols": [ + "Hyperliquid", + "Hyperliquid Perps" + ], "defillamaId": "parent#hyperliquid", "disabled": null, "displayName": "Hyperliquid", @@ -3628,7 +3932,16 @@ "total48hto24h": 14792562336, "total7d": 86747987334, "totalAllTime": 2003035982525, - "totalDataChart": [[1752710400, 16946528076], [1752796800, 21220070880]], + "totalDataChart": [ + [ + 1752710400, + 16946528076 + ], + [ + 1752796800, + 21220070880 + ] + ], "totalDataChartBreakdown": [ [ 1752710400, @@ -3658,7 +3971,9 @@ }, "/bridges": { "get": { - "tags": ["bridges"], + "tags": [ + "bridges" + ], "summary": "List all bridges along with summaries of recent bridge volumes.", "servers": [ { @@ -3778,7 +4093,10 @@ "dayBeforeLastVolume": 205702464.62591228, "weeklyVolume": 1700279485.290507, "monthlyVolume": 3986810177.448681, - "chains": ["Arbitrum", "Hyperliquid"], + "chains": [ + "Arbitrum", + "Hyperliquid" + ], "destinationChain": "Hyperliquid", "url": "https://app.hyperliquid.xyz/trade", "slug": "hyperliquid-bridge" @@ -3794,7 +4112,9 @@ }, "/bridge/{id}": { "get": { - "tags": ["bridges"], + "tags": [ + "bridges" + ], "summary": "Get summary of bridge volume and volume breakdown by chain", "servers": [ { @@ -4064,7 +4384,9 @@ }, "/bridgevolume/{chain}": { "get": { - "tags": ["bridges"], + "tags": [ + "bridges" + ], "summary": "Get historical volumes for a bridge, chain, or bridge on a particular chain", "servers": [ { @@ -4089,7 +4411,7 @@ "description": "bridge ID, you can get these from /bridges", "schema": { "type": "integer", - "example": 5 + "example": 2 } } ], @@ -4151,7 +4473,9 @@ }, "/bridgedaystats/{timestamp}/{chain}": { "get": { - "tags": ["bridges"], + "tags": [ + "bridges" + ], "summary": "Get a 24hr token and address volume breakdown for a bridge", "servers": [ { @@ -4166,7 +4490,7 @@ "description": "Unix timestamp. Data returned will be for the 24hr period starting at 00:00 UTC that the timestamp lands in.", "schema": { "type": "integer", - "example": 1667304000 + "example": 1755561600 } }, { @@ -4186,7 +4510,7 @@ "description": "bridge ID, you can get these from /bridges", "schema": { "type": "integer", - "example": 5 + "example": 2 } } ], @@ -4348,7 +4672,9 @@ }, "/transactions/{id}": { "get": { - "tags": ["bridges"], + "tags": [ + "bridges" + ], "summary": "Get all transactions for a bridge within a date range", "servers": [ { @@ -4423,241 +4749,302 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "Bridge ID" - }, - "name": { - "type": "string", - "description": "Bridge name" - }, - "displayName": { - "type": "string", - "description": "Bridge display name" - }, - "lastHourlyVolume": { - "type": "number", - "description": "Last hourly volume" - }, - "currentDayVolume": { - "type": "number", - "description": "Current day volume" - }, - "lastDailyVolume": { - "type": "number", - "description": "Last daily volume" - }, - "dayBeforeLastVolume": { - "type": "number", - "description": "Day before last volume" - }, - "weeklyVolume": { - "type": "number", - "description": "Weekly volume" - }, - "monthlyVolume": { - "type": "number", - "description": "Monthly volume" - }, - "lastHourlyTxs": { + "oneOf": [ + { "type": "object", + "description": "Bridge information (returned when no query parameters provided)", "properties": { - "deposits": { + "id": { "type": "integer", - "description": "Number of deposit transactions" + "description": "Bridge ID" }, - "withdrawals": { - "type": "integer", - "description": "Number of withdrawal transactions" - } - } - }, - "currentDayTxs": { - "type": "object", - "properties": { - "deposits": { - "type": "integer", - "description": "Number of deposit transactions" + "name": { + "type": "string", + "description": "Bridge name" }, - "withdrawals": { - "type": "integer", - "description": "Number of withdrawal transactions" - } - } - }, - "prevDayTxs": { - "type": "object", - "properties": { - "deposits": { - "type": "integer", - "description": "Number of deposit transactions" + "displayName": { + "type": "string", + "description": "Bridge display name" }, - "withdrawals": { - "type": "integer", - "description": "Number of withdrawal transactions" - } - } - }, - "dayBeforeLastTxs": { - "type": "object", - "properties": { - "deposits": { - "type": "integer", - "description": "Number of deposit transactions" + "lastHourlyVolume": { + "type": "number", + "description": "Last hourly volume" }, - "withdrawals": { - "type": "integer", - "description": "Number of withdrawal transactions" - } - } - }, - "weeklyTxs": { - "type": "object", - "properties": { - "deposits": { - "type": "integer", - "description": "Number of deposit transactions" + "currentDayVolume": { + "type": "number", + "description": "Current day volume" }, - "withdrawals": { - "type": "integer", - "description": "Number of withdrawal transactions" - } - } - }, - "monthlyTxs": { - "type": "object", - "properties": { - "deposits": { - "type": "integer", - "description": "Number of deposit transactions" + "lastDailyVolume": { + "type": "number", + "description": "Last daily volume" }, - "withdrawals": { - "type": "integer", - "description": "Number of withdrawal transactions" + "dayBeforeLastVolume": { + "type": "number", + "description": "Day before last volume" + }, + "weeklyVolume": { + "type": "number", + "description": "Weekly volume" + }, + "monthlyVolume": { + "type": "number", + "description": "Monthly volume" + }, + "lastHourlyTxs": { + "type": "object", + "properties": { + "deposits": { + "type": "integer", + "description": "Number of deposit transactions" + }, + "withdrawals": { + "type": "integer", + "description": "Number of withdrawal transactions" + } + } + }, + "currentDayTxs": { + "type": "object", + "properties": { + "deposits": { + "type": "integer", + "description": "Number of deposit transactions" + }, + "withdrawals": { + "type": "integer", + "description": "Number of withdrawal transactions" + } + } + }, + "prevDayTxs": { + "type": "object", + "properties": { + "deposits": { + "type": "integer", + "description": "Number of deposit transactions" + }, + "withdrawals": { + "type": "integer", + "description": "Number of withdrawal transactions" + } + } + }, + "dayBeforeLastTxs": { + "type": "object", + "properties": { + "deposits": { + "type": "integer", + "description": "Number of deposit transactions" + }, + "withdrawals": { + "type": "integer", + "description": "Number of withdrawal transactions" + } + } + }, + "weeklyTxs": { + "type": "object", + "properties": { + "deposits": { + "type": "integer", + "description": "Number of deposit transactions" + }, + "withdrawals": { + "type": "integer", + "description": "Number of withdrawal transactions" + } + } + }, + "monthlyTxs": { + "type": "object", + "properties": { + "deposits": { + "type": "integer", + "description": "Number of deposit transactions" + }, + "withdrawals": { + "type": "integer", + "description": "Number of withdrawal transactions" + } + } + }, + "chainBreakdown": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "lastHourlyVolume": { + "type": "number", + "description": "Last hourly volume" + }, + "currentDayVolume": { + "type": "number", + "description": "Current day volume" + }, + "lastDailyVolume": { + "type": "number", + "description": "Last daily volume" + }, + "dayBeforeLastVolume": { + "type": "number", + "description": "Day before last volume" + }, + "weeklyVolume": { + "type": "number", + "description": "Weekly volume" + }, + "monthlyVolume": { + "type": "number", + "description": "Monthly volume" + }, + "last24hVolume": { + "type": "number", + "description": "Last 24 hour volume" + }, + "lastHourlyTxs": { + "type": "object", + "properties": { + "deposits": { + "type": "integer", + "description": "Number of deposit transactions" + }, + "withdrawals": { + "type": "integer", + "description": "Number of withdrawal transactions" + } + } + }, + "currentDayTxs": { + "type": "object", + "properties": { + "deposits": { + "type": "integer", + "description": "Number of deposit transactions" + }, + "withdrawals": { + "type": "integer", + "description": "Number of withdrawal transactions" + } + } + }, + "prevDayTxs": { + "type": "object", + "properties": { + "deposits": { + "type": "integer", + "description": "Number of deposit transactions" + }, + "withdrawals": { + "type": "integer", + "description": "Number of withdrawal transactions" + } + } + }, + "dayBeforeLastTxs": { + "type": "object", + "properties": { + "deposits": { + "type": "integer", + "description": "Number of deposit transactions" + }, + "withdrawals": { + "type": "integer", + "description": "Number of withdrawal transactions" + } + } + }, + "weeklyTxs": { + "type": "object", + "properties": { + "deposits": { + "type": "integer", + "description": "Number of deposit transactions" + }, + "withdrawals": { + "type": "integer", + "description": "Number of withdrawal transactions" + } + } + }, + "monthlyTxs": { + "type": "object", + "properties": { + "deposits": { + "type": "integer", + "description": "Number of deposit transactions" + }, + "withdrawals": { + "type": "integer", + "description": "Number of withdrawal transactions" + } + } + } + } + } + }, + "destinationChain": { + "type": "string", + "description": "Destination chain" } } }, - "chainBreakdown": { - "type": "object", - "additionalProperties": { + { + "type": "array", + "description": "Transaction list (returned when query parameters provided)", + "items": { "type": "object", "properties": { - "lastHourlyVolume": { - "type": "number", - "description": "Last hourly volume" - }, - "currentDayVolume": { - "type": "number", - "description": "Current day volume" - }, - "lastDailyVolume": { - "type": "number", - "description": "Last daily volume" + "tx_hash": { + "type": "string", + "description": "Transaction hash" }, - "dayBeforeLastVolume": { - "type": "number", - "description": "Day before last volume" + "ts": { + "type": "string", + "description": "Timestamp in ISO format" }, - "weeklyVolume": { - "type": "number", - "description": "Weekly volume" + "tx_block": { + "type": "integer", + "description": "Block number" }, - "monthlyVolume": { - "type": "number", - "description": "Monthly volume" + "tx_from": { + "type": "string", + "description": "From address" }, - "last24hVolume": { - "type": "number", - "description": "Last 24 hour volume" + "tx_to": { + "type": "string", + "description": "To address" }, - "lastHourlyTxs": { - "type": "object", - "properties": { - "deposits": { - "type": "integer", - "description": "Number of deposit transactions" - }, - "withdrawals": { - "type": "integer", - "description": "Number of withdrawal transactions" - } - } + "token": { + "type": "string", + "description": "Token contract address" }, - "currentDayTxs": { - "type": "object", - "properties": { - "deposits": { - "type": "integer", - "description": "Number of deposit transactions" - }, - "withdrawals": { - "type": "integer", - "description": "Number of withdrawal transactions" - } - } + "amount": { + "type": "string", + "description": "Transaction amount" }, - "prevDayTxs": { - "type": "object", - "properties": { - "deposits": { - "type": "integer", - "description": "Number of deposit transactions" - }, - "withdrawals": { - "type": "integer", - "description": "Number of withdrawal transactions" - } - } + "chain": { + "type": "string", + "description": "Blockchain name" }, - "dayBeforeLastTxs": { - "type": "object", - "properties": { - "deposits": { - "type": "integer", - "description": "Number of deposit transactions" - }, - "withdrawals": { - "type": "integer", - "description": "Number of withdrawal transactions" - } - } + "bridge_name": { + "type": "string", + "description": "Bridge name" }, - "weeklyTxs": { - "type": "object", - "properties": { - "deposits": { - "type": "integer", - "description": "Number of deposit transactions" - }, - "withdrawals": { - "type": "integer", - "description": "Number of withdrawal transactions" - } - } + "usd_value": { + "type": [ + "number", + "null" + ], + "description": "USD value of transaction" }, - "monthlyTxs": { - "type": "object", - "properties": { - "deposits": { - "type": "integer", - "description": "Number of deposit transactions" - }, - "withdrawals": { - "type": "integer", - "description": "Number of withdrawal transactions" - } - } + "sourceChain": { + "type": "string", + "description": "Source chain name" } } } - }, - "destinationChain": { - "type": "string", - "description": "Destination chain" } - } + ] }, "example": { "id": 1, @@ -4772,7 +5159,9 @@ }, "/usage/APIKEY": { "get": { - "tags": ["meta"], + "tags": [ + "meta" + ], "summary": "Get amount of credits left in the api key, these reset on the 1st of each month", "servers": [ { @@ -4789,7 +5178,9 @@ }, "/api/protocols": { "get": { - "tags": ["TVL"], + "tags": [ + "TVL" + ], "summary": "List all protocols on defillama along with their tvl", "responses": { "200": { @@ -4822,7 +5213,10 @@ "items": { "type": "string" }, - "example": ["Ethereum", "Polygon"] + "example": [ + "Ethereum", + "Polygon" + ] }, "tvl": { "type": "number", @@ -4857,7 +5251,9 @@ }, "/api/protocol/{protocol}": { "get": { - "tags": ["TVL"], + "tags": [ + "TVL" + ], "summary": "Get historical TVL of a protocol and breakdowns by token and chain", "parameters": [ { @@ -4900,7 +5296,11 @@ "items": { "type": "string" }, - "example": ["Ethereum", "Polygon", "Avalanche"] + "example": [ + "Ethereum", + "Polygon", + "Avalanche" + ] }, "currentChainTvls": { "type": "object", @@ -4971,7 +5371,9 @@ }, "/api/v2/historicalChainTvl": { "get": { - "tags": ["TVL"], + "tags": [ + "TVL" + ], "summary": "Get historical TVL (excludes liquid staking and double counted tvl) of DeFi on all chains", "responses": { "200": { @@ -5004,7 +5406,9 @@ }, "/api/v2/historicalChainTvl/{chain}": { "get": { - "tags": ["TVL"], + "tags": [ + "TVL" + ], "summary": "Get historical TVL (excludes liquid staking and double counted tvl) of a chain", "parameters": [ { @@ -5052,7 +5456,9 @@ }, "/api/tvl/{protocol}": { "get": { - "tags": ["TVL"], + "tags": [ + "TVL" + ], "summary": "Simplified endpoint to get current TVL of a protocol", "description": "Simplified endpoint that only returns a number, the current TVL of a protocol", "parameters": [ @@ -5088,7 +5494,9 @@ }, "/api/v2/chains": { "get": { - "tags": ["TVL"], + "tags": [ + "TVL" + ], "summary": "Get current TVL of all chains", "responses": { "200": { @@ -5145,7 +5553,9 @@ }, "/coins/prices/current/{coins}": { "get": { - "tags": ["coins"], + "tags": [ + "coins" + ], "summary": "Get current prices of tokens by contract address", "description": "The goal of this API is to price as many tokens as possible, including exotic ones that never get traded, which makes them impossible to price by looking at markets.\n\nThe base of our data are prices pulled from coingecko, which is then extended through multiple means:\n- We price all bridged tokens by using the price of the token in it's original chain, so we fetch all bridged versions of USDC on arbitrum, fantom, avax... and price all them using the price for the token on Ethereum, which we know. Right now we support 10 different bridging protocols.\n- We have multiple adapters to price specialized sets of tokens by running custom code:\n - We price yearn's yToken LPs by checking how much underlying token can be withdrawn for each LP\n - Aave, compound and euler LP tokens are also priced based on their relationship against underlying tokens\n - Uniswap, curve, balancer and stargate LPs are priced using the underlying tokens in each pair\n - GMX's GLP token is priced based on the value of tokens given on withdrawal (which includes calculations based on trader's PnL)\n \n - Synthetix tokens are priced using forex prices of the coin they are pegged to\n- For tokens that we haven't been able to price in any other way, we find the pool with most liquidity for each on uniswap, curve and serum and then use the prices provided on those exchanges.\n \n Unlike all the other tokens, we can't confirm that these prices are correct, so we only ingest the ones that have sufficient liquidity and, even in that case, we attach a `confidence` value to them that is related to the depth of liquidity and which represents our confidence in the quality of each price. API consumers can choose to filter out prices with low confidence values.\n \n Our API server is fully open source and we are constantly adding more pricing adapters, extending the amount of tokens we support.\n \nTokens are queried using {chain}:{address}, where chain is an identifier such as ethereum, bsc, polygon, avax... You can also get tokens by coingecko id by setting `coingecko` as the chain, eg: coingecko:ethereum, coingecko:bitcoin. Examples:\n - ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1\n - bsc:0x762539b45a1dcce3d36d080f74d1aed37844b878\n - coingecko:ethereum\n - arbitrum:0x4277f8f2c384827b5273592ff7cebd9f2c1ac258\n", "parameters": [ @@ -5217,7 +5627,9 @@ }, "/coins/prices/historical/{timestamp}/{coins}": { "get": { - "tags": ["coins"], + "tags": [ + "coins" + ], "summary": "Get historical prices of tokens by contract address", "description": "See /prices/current for explanation on how prices are sourced.", "parameters": [ @@ -5299,7 +5711,9 @@ }, "/coins/batchHistorical": { "get": { - "tags": ["coins"], + "tags": [ + "coins" + ], "summary": "Get historical prices for multiple tokens at multiple different timestamps", "description": "Strings accepted by period and searchWidth:\nCan use regular chart candle notion like '4h' etc where:\nW = week, D = day, H = hour, M = minute (not case sensitive)\n", "parameters": [ @@ -5379,7 +5793,9 @@ }, "/coins/chart/{coins}": { "get": { - "tags": ["coins"], + "tags": [ + "coins" + ], "summary": "Get token prices at regular time intervals", "description": "Strings accepted by period and searchWidth:\nCan use regular chart candle notion like '4h' etc where:\nW = week, D = day, H = hour, M = minute (not case sensitive)\n", "parameters": [ @@ -5503,7 +5919,9 @@ }, "/coins/percentage/{coins}": { "get": { - "tags": ["coins"], + "tags": [ + "coins" + ], "summary": "Get percentage change in price over time", "description": "Strings accepted by period:\nCan use regular chart candle notion like '4h' etc where:\nW = week, D = day, H = hour, M = minute (not case sensitive)\n", "parameters": [ @@ -5578,7 +5996,9 @@ }, "/coins/prices/first/{coins}": { "get": { - "tags": ["coins"], + "tags": [ + "coins" + ], "summary": "Get earliest timestamp price record for coins", "parameters": [ { @@ -5635,7 +6055,9 @@ }, "/coins/block/{chain}/{timestamp}": { "get": { - "tags": ["coins"], + "tags": [ + "coins" + ], "summary": "Get the closest block to a timestamp", "description": "Runs binary search over a blockchain's blocks to get the closest one to a timestamp.\nEvery time this is run we add new data to our database, so each query permanently speeds up future queries.\n", "parameters": [ @@ -5645,7 +6067,8 @@ "description": "Chain which you want to get the block from", "required": true, "schema": { - "type": "string" + "type": "string", + "example": "Ethereum" } }, { @@ -5654,7 +6077,8 @@ "description": "UNIX timestamp of the block you are searching for", "required": true, "schema": { - "type": "integer" + "type": "integer", + "example": 1603964988 } } ], @@ -5689,7 +6113,9 @@ }, "/stablecoins/stablecoins": { "get": { - "tags": ["stablecoins"], + "tags": [ + "stablecoins" + ], "summary": "List all stablecoins along with their circulating amounts", "parameters": [ { @@ -5750,7 +6176,11 @@ "items": { "type": "string" }, - "example": ["Ethereum", "Tron", "BSC"] + "example": [ + "Ethereum", + "Tron", + "BSC" + ] }, "chainCirculating": { "type": "object", @@ -5786,7 +6216,9 @@ }, "/stablecoins/stablecoincharts/all": { "get": { - "tags": ["stablecoins"], + "tags": [ + "stablecoins" + ], "summary": "Get historical mcap sum of all stablecoins", "parameters": [ { @@ -5834,7 +6266,9 @@ }, "/stablecoins/stablecoincharts/{chain}": { "get": { - "tags": ["stablecoins"], + "tags": [ + "stablecoins" + ], "summary": "Get historical mcap sum of all stablecoins in a chain", "parameters": [ { @@ -5892,7 +6326,9 @@ }, "/stablecoins/stablecoin/{asset}": { "get": { - "tags": ["stablecoins"], + "tags": [ + "stablecoins" + ], "summary": "Get historical mcap and historical chain distribution of a stablecoin", "parameters": [ { @@ -5971,7 +6407,9 @@ }, "/stablecoins/stablecoinchains": { "get": { - "tags": ["stablecoins"], + "tags": [ + "stablecoins" + ], "summary": "Get current mcap sum of all stablecoins on each chain", "responses": { "200": { @@ -6007,7 +6445,9 @@ }, "/stablecoins/stablecoinprices": { "get": { - "tags": ["stablecoins"], + "tags": [ + "stablecoins" + ], "summary": "Get historical prices of all stablecoins", "responses": { "200": { @@ -6045,7 +6485,9 @@ }, "/api/overview/dexs": { "get": { - "tags": ["volumes"], + "tags": [ + "volumes" + ], "summary": "List all dexs along with summaries of their volumes and dataType history data", "parameters": [ { @@ -6111,7 +6553,10 @@ "items": { "type": "string" }, - "example": ["Ethereum", "Polygon"] + "example": [ + "Ethereum", + "Polygon" + ] } } } @@ -6130,7 +6575,10 @@ } ] }, - "example": [1640995200, 2500000000] + "example": [ + 1640995200, + 2500000000 + ] } }, "allChains": { @@ -6138,7 +6586,11 @@ "items": { "type": "string" }, - "example": ["Ethereum", "BSC", "Polygon"] + "example": [ + "Ethereum", + "BSC", + "Polygon" + ] } } } @@ -6150,7 +6602,9 @@ }, "/api/overview/dexs/{chain}": { "get": { - "tags": ["volumes"], + "tags": [ + "volumes" + ], "summary": "List all dexs along with summaries of their volumes and dataType history data filtering by chain", "parameters": [ { @@ -6216,7 +6670,10 @@ "type": "array", "items": { "type": "array", - "example": [1640995200, 1200000000] + "example": [ + 1640995200, + 1200000000 + ] } } } @@ -6229,7 +6686,9 @@ }, "/api/summary/dexs/{protocol}": { "get": { - "tags": ["volumes"], + "tags": [ + "volumes" + ], "summary": "Get summary of dex volume with historical data", "parameters": [ { @@ -6287,7 +6746,10 @@ "type": "array", "items": { "type": "array", - "example": [1640995200, 1500000000] + "example": [ + 1640995200, + 1500000000 + ] } }, "totalDataChartBreakdown": { @@ -6308,7 +6770,10 @@ "items": { "type": "string" }, - "example": ["Ethereum", "Polygon"] + "example": [ + "Ethereum", + "Polygon" + ] } } } @@ -6320,7 +6785,9 @@ }, "/api/overview/options": { "get": { - "tags": ["volumes"], + "tags": [ + "volumes" + ], "summary": "List all options dexs along with summaries of their volumes and dataType history data", "parameters": [ { @@ -6350,7 +6817,10 @@ "description": "Desired data type, dailyNotionalVolume by default.", "schema": { "type": "string", - "enum": ["dailyPremiumVolume", "dailyNotionalVolume"], + "enum": [ + "dailyPremiumVolume", + "dailyNotionalVolume" + ], "example": "dailyPremiumVolume" } } @@ -6387,7 +6857,10 @@ "type": "array", "items": { "type": "array", - "example": [1640995200, 750000000] + "example": [ + 1640995200, + 750000000 + ] } } } @@ -6400,7 +6873,9 @@ }, "/api/overview/options/{chain}": { "get": { - "tags": ["volumes"], + "tags": [ + "volumes" + ], "summary": "List all options dexs along with summaries of their volumes and dataType history data filtering by chain", "parameters": [ { @@ -6440,7 +6915,10 @@ "description": "Desired data type, dailyNotionalVolume by default.", "schema": { "type": "string", - "enum": ["dailyPremiumVolume", "dailyNotionalVolume"], + "enum": [ + "dailyPremiumVolume", + "dailyNotionalVolume" + ], "example": "dailyPremiumVolume" } } @@ -6716,7 +7194,12 @@ } }, "example": { - "totalDataChart": [[1656201600, 3947]], + "totalDataChart": [ + [ + 1656201600, + 3947 + ] + ], "totalDataChartBreakdown": [ [ 1656201600, @@ -6792,7 +7275,12 @@ "module": "premia-v2", "category": "Options", "logo": "https://icons.llamao.fi/icons/protocols/premia-v2.jpg", - "chains": ["Ethereum", "Arbitrum", "Fantom", "OP Mainnet"], + "chains": [ + "Ethereum", + "Arbitrum", + "Fantom", + "OP Mainnet" + ], "protocolType": "protocol", "methodologyURL": "https://github.com/DefiLlama/dimension-adapters/blob/master/options/premia-v2.ts", "methodology": { @@ -6806,7 +7294,11 @@ "latestFetchIsOk": true, "parentProtocol": "parent#premia", "slug": "premia-v2", - "linkedProtocols": ["Premia", "Premia V2", "Premia V3"], + "linkedProtocols": [ + "Premia", + "Premia V2", + "Premia V3" + ], "id": "381" } ] @@ -6819,7 +7311,9 @@ }, "/api/summary/options/{protocol}": { "get": { - "tags": ["volumes"], + "tags": [ + "volumes" + ], "summary": "Get summary of options dex volume with historical data", "parameters": [ { @@ -6839,7 +7333,10 @@ "description": "Desired data type, dailyNotionalVolume by default.", "schema": { "type": "string", - "enum": ["dailyPremiumVolume", "dailyNotionalVolume"], + "enum": [ + "dailyPremiumVolume", + "dailyNotionalVolume" + ], "example": "dailyPremiumVolume" } } @@ -7076,15 +7573,30 @@ "logo": "https://icons.llama.fi/derive.png", "gecko_id": "derive", "cmcId": "35014", - "chains": ["OP Mainnet", "Arbitrum", "Derive Chain"], + "chains": [ + "OP Mainnet", + "Arbitrum", + "Derive Chain" + ], "twitter": "derivexyz", - "governanceID": ["snapshot:lyra.eth"], - "github": ["lyra-finance"], + "governanceID": [ + "snapshot:lyra.eth" + ], + "github": [ + "lyra-finance" + ], "treasury": "lyra.js", "symbol": "DRV", "address": "0xb1d1eae60eea9525032a6dcb4c1ce336a1de71be", - "childProtocols": [{}, {}], - "linkedProtocols": ["Derive", "Derive V2", "Derive Options"], + "childProtocols": [ + {}, + {} + ], + "linkedProtocols": [ + "Derive", + "Derive V2", + "Derive Options" + ], "defillamaId": "parent#lyra", "disabled": null, "displayName": "Derive", @@ -7105,7 +7617,16 @@ "total48hto24h": 529694, "total7d": 2327481, "totalAllTime": 156317108, - "totalDataChart": [[1702684800, 15019], [1702771200, 15019]], + "totalDataChart": [ + [ + 1702684800, + 15019 + ], + [ + 1702771200, + 15019 + ] + ], "totalDataChartBreakdown": [ [ 1702684800, @@ -7134,7 +7655,9 @@ }, "/api/overview/fees": { "get": { - "tags": ["fees and revenue"], + "tags": [ + "fees and revenue" + ], "summary": "List all protocols along with summaries of their fees and revenue and dataType history data", "parameters": [ { @@ -7164,7 +7687,11 @@ "description": "Desired data type, dailyFees by default.", "schema": { "type": "string", - "enum": ["dailyFees", "dailyRevenue", "dailyHoldersRevenue"], + "enum": [ + "dailyFees", + "dailyRevenue", + "dailyHoldersRevenue" + ], "example": "dailyFees" } } @@ -7203,7 +7730,10 @@ "items": { "type": "string" }, - "example": ["Ethereum", "Polygon"] + "example": [ + "Ethereum", + "Polygon" + ] } } } @@ -7212,7 +7742,10 @@ "type": "array", "items": { "type": "array", - "example": [1640995200, 25000000] + "example": [ + 1640995200, + 25000000 + ] } }, "totalDataChartBreakdown": { @@ -7238,7 +7771,9 @@ }, "/api/overview/fees/{chain}": { "get": { - "tags": ["fees and revenue"], + "tags": [ + "fees and revenue" + ], "summary": "List all protocols along with summaries of their fees and revenue and dataType history data by chain", "parameters": [ { @@ -7278,7 +7813,11 @@ "description": "Desired data type, dailyFees by default.", "schema": { "type": "string", - "enum": ["dailyFees", "dailyRevenue", "dailyHoldersRevenue"], + "enum": [ + "dailyFees", + "dailyRevenue", + "dailyHoldersRevenue" + ], "example": "dailyFees" } } @@ -7317,7 +7856,10 @@ "items": { "type": "string" }, - "example": ["Ethereum", "Polygon"] + "example": [ + "Ethereum", + "Polygon" + ] } } } @@ -7326,7 +7868,10 @@ "type": "array", "items": { "type": "array", - "example": [1640995200, 25000000] + "example": [ + 1640995200, + 25000000 + ] } }, "totalDataChartBreakdown": { @@ -7352,7 +7897,9 @@ }, "/api/summary/fees/{protocol}": { "get": { - "tags": ["fees and revenue"], + "tags": [ + "fees and revenue" + ], "summary": "Get summary of protocol fees and revenue with historical data", "parameters": [ { @@ -7372,7 +7919,11 @@ "description": "Desired data type, dailyFees by default.", "schema": { "type": "string", - "enum": ["dailyFees", "dailyRevenue", "dailyHoldersRevenue"], + "enum": [ + "dailyFees", + "dailyRevenue", + "dailyHoldersRevenue" + ], "example": "dailyFees" } } @@ -7607,13 +8158,22 @@ "logo": "https://icons.llama.fi/hyperliquid.png", "gecko_id": "hyperliquid", "cmcId": "32196", - "chains": ["Hyperliquid L1"], + "chains": [ + "Hyperliquid L1" + ], "twitter": "HyperliquidX", - "github": ["hyperliquid-dex"], + "github": [ + "hyperliquid-dex" + ], "symbol": "HYPE", "address": "hyperliquid:0x0d01dc56dcaaca66ad901c959b4011ec", - "childProtocols": [{}], - "linkedProtocols": ["Hyperliquid", "Hyperliquid Spot Orderbook"], + "childProtocols": [ + {} + ], + "linkedProtocols": [ + "Hyperliquid", + "Hyperliquid Spot Orderbook" + ], "defillamaId": "parent#hyperliquid", "disabled": null, "displayName": "Hyperliquid", @@ -7637,7 +8197,12 @@ "total7d": 26184696, "totalAllTime": 499292857, "change_1d": 7.47, - "totalDataChart": [[1734912000, 1472923]], + "totalDataChart": [ + [ + 1734912000, + 1472923 + ] + ], "totalDataChartBreakdown": [ [ 1734912000, @@ -7656,4 +8221,4 @@ } } } -} +} \ No newline at end of file