|
2171 | 2171 | ],
|
2172 | 2172 | "responses": {
|
2173 | 2173 | "200": {
|
2174 |
| - "description": "successful operation" |
| 2174 | + "description": "Overview of all protocols with fees and revenue data", |
| 2175 | + "content": { |
| 2176 | + "application/json": { |
| 2177 | + "schema": { |
| 2178 | + "type": "object", |
| 2179 | + "properties": { |
| 2180 | + "protocols": { |
| 2181 | + "type": "array", |
| 2182 | + "items": { |
| 2183 | + "type": "object", |
| 2184 | + "properties": { |
| 2185 | + "name": { |
| 2186 | + "type": "string", |
| 2187 | + "example": "Uniswap" |
| 2188 | + }, |
| 2189 | + "total24h": { |
| 2190 | + "type": "number", |
| 2191 | + "example": 5000000 |
| 2192 | + }, |
| 2193 | + "revenue24h": { |
| 2194 | + "type": "number", |
| 2195 | + "example": 2000000 |
| 2196 | + }, |
| 2197 | + "change_1d": { |
| 2198 | + "type": "number", |
| 2199 | + "example": 12.5 |
| 2200 | + }, |
| 2201 | + "chains": { |
| 2202 | + "type": "array", |
| 2203 | + "items": { |
| 2204 | + "type": "string" |
| 2205 | + }, |
| 2206 | + "example": ["Ethereum", "Polygon"] |
| 2207 | + } |
| 2208 | + } |
| 2209 | + } |
| 2210 | + }, |
| 2211 | + "totalDataChart": { |
| 2212 | + "type": "array", |
| 2213 | + "items": { |
| 2214 | + "type": "array", |
| 2215 | + "example": [1640995200, 25000000] |
| 2216 | + } |
| 2217 | + }, |
| 2218 | + "totalDataChartBreakdown": { |
| 2219 | + "type": "array", |
| 2220 | + "items": { |
| 2221 | + "type": "array", |
| 2222 | + "example": [ |
| 2223 | + 1640995200, |
| 2224 | + { |
| 2225 | + "Uniswap": 5000000, |
| 2226 | + "Compound": 3000000 |
| 2227 | + } |
| 2228 | + ] |
| 2229 | + } |
| 2230 | + } |
| 2231 | + } |
| 2232 | + } |
| 2233 | + } |
| 2234 | + } |
2175 | 2235 | }
|
2176 | 2236 | }
|
2177 | 2237 | }
|
|
2210 | 2270 | ],
|
2211 | 2271 | "responses": {
|
2212 | 2272 | "200": {
|
2213 |
| - "description": "successful operation" |
| 2273 | + "description": "successful operation", |
| 2274 | + "content": { |
| 2275 | + "application/json": { |
| 2276 | + "schema": { |
| 2277 | + "type": "object", |
| 2278 | + "properties": { |
| 2279 | + "id": { |
| 2280 | + "type": "string", |
| 2281 | + "description": "Protocol ID" |
| 2282 | + }, |
| 2283 | + "name": { |
| 2284 | + "type": "string", |
| 2285 | + "description": "Protocol name" |
| 2286 | + }, |
| 2287 | + "url": { |
| 2288 | + "type": "string", |
| 2289 | + "description": "Protocol URL" |
| 2290 | + }, |
| 2291 | + "referralUrl": { |
| 2292 | + "type": "string", |
| 2293 | + "description": "Referral URL" |
| 2294 | + }, |
| 2295 | + "description": { |
| 2296 | + "type": "string", |
| 2297 | + "description": "Protocol description" |
| 2298 | + }, |
| 2299 | + "logo": { |
| 2300 | + "type": "string", |
| 2301 | + "description": "Protocol logo URL" |
| 2302 | + }, |
| 2303 | + "gecko_id": { |
| 2304 | + "type": "string", |
| 2305 | + "description": "CoinGecko ID" |
| 2306 | + }, |
| 2307 | + "cmcId": { |
| 2308 | + "type": "string", |
| 2309 | + "description": "CoinMarketCap ID" |
| 2310 | + }, |
| 2311 | + "chains": { |
| 2312 | + "type": "array", |
| 2313 | + "items": { |
| 2314 | + "type": "string" |
| 2315 | + }, |
| 2316 | + "description": "Supported chains" |
| 2317 | + }, |
| 2318 | + "twitter": { |
| 2319 | + "type": "string", |
| 2320 | + "description": "Twitter handle" |
| 2321 | + }, |
| 2322 | + "github": { |
| 2323 | + "type": "array", |
| 2324 | + "items": { |
| 2325 | + "type": "string" |
| 2326 | + }, |
| 2327 | + "description": "GitHub repositories" |
| 2328 | + }, |
| 2329 | + "symbol": { |
| 2330 | + "type": "string", |
| 2331 | + "description": "Token symbol" |
| 2332 | + }, |
| 2333 | + "address": { |
| 2334 | + "type": "string", |
| 2335 | + "description": "Protocol address" |
| 2336 | + }, |
| 2337 | + "childProtocols": { |
| 2338 | + "type": "array", |
| 2339 | + "items": { |
| 2340 | + "type": "object" |
| 2341 | + }, |
| 2342 | + "description": "Child protocols" |
| 2343 | + }, |
| 2344 | + "linkedProtocols": { |
| 2345 | + "type": "array", |
| 2346 | + "items": { |
| 2347 | + "type": "string" |
| 2348 | + }, |
| 2349 | + "description": "Linked protocols" |
| 2350 | + }, |
| 2351 | + "defillamaId": { |
| 2352 | + "type": "string", |
| 2353 | + "description": "DefiLlama protocol ID" |
| 2354 | + }, |
| 2355 | + "disabled": { |
| 2356 | + "type": "boolean", |
| 2357 | + "nullable": true, |
| 2358 | + "description": "Whether protocol is disabled" |
| 2359 | + }, |
| 2360 | + "displayName": { |
| 2361 | + "type": "string", |
| 2362 | + "description": "Display name" |
| 2363 | + }, |
| 2364 | + "module": { |
| 2365 | + "type": "string", |
| 2366 | + "nullable": true, |
| 2367 | + "description": "Module name" |
| 2368 | + }, |
| 2369 | + "category": { |
| 2370 | + "type": "string", |
| 2371 | + "nullable": true, |
| 2372 | + "description": "Protocol category" |
| 2373 | + }, |
| 2374 | + "methodologyURL": { |
| 2375 | + "type": "string", |
| 2376 | + "nullable": true, |
| 2377 | + "description": "Methodology URL" |
| 2378 | + }, |
| 2379 | + "methodology": { |
| 2380 | + "type": "object", |
| 2381 | + "nullable": true, |
| 2382 | + "description": "Methodology details" |
| 2383 | + }, |
| 2384 | + "forkedFrom": { |
| 2385 | + "type": "string", |
| 2386 | + "nullable": true, |
| 2387 | + "description": "Forked from protocol" |
| 2388 | + }, |
| 2389 | + "audits": { |
| 2390 | + "type": "array", |
| 2391 | + "nullable": true, |
| 2392 | + "description": "Audit information" |
| 2393 | + }, |
| 2394 | + "audit_links": { |
| 2395 | + "type": "array", |
| 2396 | + "nullable": true, |
| 2397 | + "description": "Audit links" |
| 2398 | + }, |
| 2399 | + "versionKey": { |
| 2400 | + "type": "string", |
| 2401 | + "nullable": true, |
| 2402 | + "description": "Version key" |
| 2403 | + }, |
| 2404 | + "governanceID": { |
| 2405 | + "type": "string", |
| 2406 | + "nullable": true, |
| 2407 | + "description": "Governance ID" |
| 2408 | + }, |
| 2409 | + "treasury": { |
| 2410 | + "type": "string", |
| 2411 | + "nullable": true, |
| 2412 | + "description": "Treasury address" |
| 2413 | + }, |
| 2414 | + "parentProtocol": { |
| 2415 | + "type": "string", |
| 2416 | + "nullable": true, |
| 2417 | + "description": "Parent protocol" |
| 2418 | + }, |
| 2419 | + "previousNames": { |
| 2420 | + "type": "array", |
| 2421 | + "nullable": true, |
| 2422 | + "description": "Previous names" |
| 2423 | + }, |
| 2424 | + "latestFetchIsOk": { |
| 2425 | + "type": "boolean", |
| 2426 | + "description": "Latest fetch status" |
| 2427 | + }, |
| 2428 | + "slug": { |
| 2429 | + "type": "string", |
| 2430 | + "description": "Protocol slug" |
| 2431 | + }, |
| 2432 | + "protocolType": { |
| 2433 | + "type": "string", |
| 2434 | + "description": "Protocol type" |
| 2435 | + }, |
| 2436 | + "total24h": { |
| 2437 | + "type": "number", |
| 2438 | + "description": "24 hour fees" |
| 2439 | + }, |
| 2440 | + "total48hto24h": { |
| 2441 | + "type": "number", |
| 2442 | + "description": "48h to 24h fees" |
| 2443 | + }, |
| 2444 | + "total7d": { |
| 2445 | + "type": "number", |
| 2446 | + "description": "7 day fees" |
| 2447 | + }, |
| 2448 | + "totalAllTime": { |
| 2449 | + "type": "number", |
| 2450 | + "description": "All time fees" |
| 2451 | + }, |
| 2452 | + "change_1d": { |
| 2453 | + "type": "number", |
| 2454 | + "description": "1 day change percentage" |
| 2455 | + }, |
| 2456 | + "totalDataChart": { |
| 2457 | + "type": "array", |
| 2458 | + "items": { |
| 2459 | + "type": "array", |
| 2460 | + "items": [ |
| 2461 | + { |
| 2462 | + "type": "integer", |
| 2463 | + "description": "Timestamp" |
| 2464 | + }, |
| 2465 | + { |
| 2466 | + "type": "number", |
| 2467 | + "description": "Fee value" |
| 2468 | + } |
| 2469 | + ] |
| 2470 | + }, |
| 2471 | + "description": "Total data chart with timestamps and fees" |
| 2472 | + }, |
| 2473 | + "totalDataChartBreakdown": { |
| 2474 | + "type": "array", |
| 2475 | + "items": { |
| 2476 | + "type": "array", |
| 2477 | + "items": [ |
| 2478 | + { |
| 2479 | + "type": "integer", |
| 2480 | + "description": "Timestamp" |
| 2481 | + }, |
| 2482 | + { |
| 2483 | + "type": "object", |
| 2484 | + "description": "Chain and protocol breakdown" |
| 2485 | + } |
| 2486 | + ] |
| 2487 | + }, |
| 2488 | + "description": "Total data chart breakdown by chain and protocol" |
| 2489 | + } |
| 2490 | + } |
| 2491 | + }, |
| 2492 | + "example": { |
| 2493 | + "id": "parent#hyperliquid", |
| 2494 | + "name": "Hyperliquid", |
| 2495 | + "url": "https://hyperliquid.xyz", |
| 2496 | + "referralUrl": "https://app.hyperliquid.xyz/join/DEFILLAMAO", |
| 2497 | + "description": "Hyperliquid is a decentralized perpetual exchange with best-in-class speed, liquidity, and price", |
| 2498 | + "logo": "https://icons.llama.fi/hyperliquid.png", |
| 2499 | + "gecko_id": "hyperliquid", |
| 2500 | + "cmcId": "32196", |
| 2501 | + "chains": ["Hyperliquid L1"], |
| 2502 | + "twitter": "HyperliquidX", |
| 2503 | + "github": ["hyperliquid-dex"], |
| 2504 | + "symbol": "HYPE", |
| 2505 | + "address": "hyperliquid:0x0d01dc56dcaaca66ad901c959b4011ec", |
| 2506 | + "childProtocols": [{}], |
| 2507 | + "linkedProtocols": ["Hyperliquid", "Hyperliquid Spot Orderbook"], |
| 2508 | + "defillamaId": "parent#hyperliquid", |
| 2509 | + "disabled": null, |
| 2510 | + "displayName": "Hyperliquid", |
| 2511 | + "module": null, |
| 2512 | + "category": null, |
| 2513 | + "methodologyURL": null, |
| 2514 | + "methodology": null, |
| 2515 | + "forkedFrom": null, |
| 2516 | + "audits": null, |
| 2517 | + "audit_links": null, |
| 2518 | + "versionKey": null, |
| 2519 | + "governanceID": null, |
| 2520 | + "treasury": null, |
| 2521 | + "parentProtocol": null, |
| 2522 | + "previousNames": null, |
| 2523 | + "latestFetchIsOk": true, |
| 2524 | + "slug": "hyperliquid", |
| 2525 | + "protocolType": "protocol", |
| 2526 | + "total24h": 4890250, |
| 2527 | + "total48hto24h": 4550411, |
| 2528 | + "total7d": 26184696, |
| 2529 | + "totalAllTime": 499292857, |
| 2530 | + "change_1d": 7.47, |
| 2531 | + "totalDataChart": [[1734912000, 1472923]], |
| 2532 | + "totalDataChartBreakdown": [ |
| 2533 | + [ |
| 2534 | + 1734912000, |
| 2535 | + { |
| 2536 | + "Hyperliquid L1": { |
| 2537 | + "Hyperliquid Spot Orderbook": 1472923 |
| 2538 | + } |
| 2539 | + } |
| 2540 | + ] |
| 2541 | + ] |
| 2542 | + } |
| 2543 | + } |
| 2544 | + } |
2214 | 2545 | }
|
2215 | 2546 | }
|
2216 | 2547 | }
|
|
0 commit comments