forked from DefiLlama/api-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllms.txt
More file actions
1916 lines (1817 loc) · 51.4 KB
/
llms.txt
File metadata and controls
1916 lines (1817 loc) · 51.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
DefiLlama API – Complete LLM Integration Guide
=====================================================
## Overview
This document provides comprehensive guidance for LLMs to interact with ALL DefiLlama APIs.
Includes API-Plan-only endpoints (marked with 🔒) and free endpoints, with full parameters and responses.
## Base URLs
**Main Pro API** (Most endpoints)
- Base URL: `https://pro-api.llama.fi`
- Used for: TVL data, protocols, prices, yields, user metrics, fees
**Bridge API**
- Base URL: `https://pro-api.llama.fi` (endpoints prefixed with `/bridges/`)
- Used for: Cross-chain bridge data and transactions
## Authentication
**For Pro Endpoints (🔒) on pro-api.llama.fi:**
API key is inserted between base URL and endpoint:
```
https://pro-api.llama.fi/<YOUR_API_KEY>/<ENDPOINT>
```
**Examples:**
```bash
# Pro endpoints (requires API key in URL)
GET https://pro-api.llama.fi/abc123key/yields/pools
```
===============================================================================
SECTION 1: TVL & PROTOCOL DATA
===============================================================================
## Core TVL Endpoints
1. **GET /api/protocols**
Base: `https://pro-api.llama.fi`
Purpose: List all protocols with current TVL
Parameters: None
Response:
```json
[{
"id": "2269",
"name": "Aave",
"symbol": "AAVE",
"category": "Lending",
"chains": ["Ethereum", "Polygon"],
"tvl": 5200000000,
"chainTvls": {"Ethereum": 3200000000},
"change_1h": 0.5,
"change_1d": 2.3,
"change_7d": -1.2,
"mcap": 1500000000
}]
```
2. **GET /api/protocol/{protocol}**
Base: `https://pro-api.llama.fi`
Purpose: Detailed protocol data including historical TVL
Parameters:
- protocol (path, required): Protocol slug (e.g., "aave", "uniswap")
Response:
```json
{
"id": "2269",
"name": "Aave",
"symbol": "AAVE",
"category": "Lending",
"chains": ["Ethereum", "Polygon"],
"description": "Decentralized lending protocol",
"logo": "https://...",
"url": "https://aave.com",
"twitter": "AaveAave",
"chainTvls": {
"Ethereum": {"tvl": [{"date": 1640995200, "totalLiquidityUSD": 3200000000}]},
"Polygon": {"tvl": [{"date": 1640995200, "totalLiquidityUSD": 2000000000}]}
},
"tvl": [{"date": 1640995200, "totalLiquidityUSD": 5200000000}],
"currentChainTvls": {"Ethereum": 3200000000},
"mcap": 1500000000,
"raises": [{"date": "2020-10-01", "amount": 25000000}],
"metrics": {
"fees": {"24h": 234567, "7d": 1645234},
"revenue": {"24h": 123456, "7d": 864192}
}
}
```
3. **GET /api/tvl/{protocol}**
Base: `https://pro-api.llama.fi`
Purpose: Simple endpoint returning only current TVL number
Parameters:
- protocol (path, required): Protocol slug
Response: `4962012809.795062`
4. 🔒 **GET /api/tokenProtocols/{symbol}**
Base: `https://pro-api.llama.fi`
Purpose: Shows which protocols hold a specific token
Parameters:
- symbol (path, required): Token symbol (e.g., "usdt", "dai")
Response:
```json
[{
"name": "Aave",
"category": "Lending",
"amountUsd": {
"coingecko:tether": 1234567.89,
"coingecko:usdt-avalanche": 98765.43
}
}]
```
5. 🔒 **GET /api/inflows/{protocol}/{timestamp}**
Base: `https://pro-api.llama.fi`
Purpose: Daily capital flows for a protocol
Parameters:
- protocol (path, required): Protocol slug
- timestamp (path, required): Unix timestamp at 00:00 UTC
Response:
```json
{
"outflows": -160563462.23,
"inflows": 145234567.89,
"oldTokens": {
"date": 1700005031,
"tvl": {"USDC": 27302168.77, "WETH": 138751.92}
},
"currentTokens": {
"date": 1752771743,
"tvl": {"USDC": 23936602.85, "WETH": 125432.11}
}
}
```
## Chain TVL Data
6. **GET /api/v2/chains**
Base: `https://pro-api.llama.fi`
Purpose: Current TVL of all chains
Parameters: None
Response:
```json
[{
"gecko_id": "ethereum",
"tvl": 50000000000,
"tokenSymbol": "ETH",
"cmcId": "1027",
"name": "Ethereum",
"chainId": 1
}]
```
7. **GET /api/v2/historicalChainTvl**
Base: `https://pro-api.llama.fi`
Purpose: Historical TVL for all chains
Parameters: None
Response:
```json
[{
"date": 1640995200,
"tvl": {"Ethereum": 150000000000, "BSC": 20000000000}
}]
```
8. **GET /api/v2/historicalChainTvl/{chain}**
Base: `https://pro-api.llama.fi`
Purpose: Historical TVL for specific chain
Parameters:
- chain (path, required): Chain name (e.g., "Ethereum")
Response:
```json
[{
"date": 1640995200,
"tvl": 150000000000
}]
```
9. 🔒 **GET /api/chainAssets**
Base: `https://pro-api.llama.fi`
Purpose: Asset breakdown across all chains
Parameters: None
Response:
```json
{
"Ethereum": {
"canonical": {
"total": "4482065428.83",
"breakdown": {"USDT": "2000000000", "USDC": "1500000000"}
},
"native": {
"total": "10848868127.01",
"breakdown": {"ETH": "10000000000"}
},
"thirdParty": {
"total": "3182802062.49",
"breakdown": {"WBTC": "2000000000"}
}
},
"timestamp": 1752843956
}
```
===============================================================================
SECTION 2: PRICE & COIN DATA
===============================================================================
Base URL for all: `https://pro-api.llama.fi`
10. **GET /coins/prices/current/{coins}**
Purpose: Current prices for specified coins
Parameters:
- coins (path, required): Comma-separated list with chain prefix
Format: "chain:address" (e.g., "ethereum:0x...")
- searchWidth (query, optional): Time range to search for price ("4h", "24h")
Response:
```json
{
"coins": {
"ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": {
"decimals": 6,
"symbol": "USDC",
"price": 0.999,
"timestamp": 1640995200,
"confidence": 0.99
}
}
}
```
11. **GET /coins/prices/historical/{timestamp}/{coins}**
Purpose: Historical prices at specific timestamp
Parameters:
- timestamp (path, required): Unix timestamp
- coins (path, required): Comma-separated coin list
- searchWidth (query, optional): Search range in seconds
Response: Same format as current prices
12. **POST /coins/batchHistorical**
Purpose: Batch historical price queries
Request Body:
```json
{
"coins": {
"ethereum:0x...": [1640995200, 1641081600],
"bsc:0x...": [1640995200]
}
}
```
Response:
```json
{
"coins": {
"ethereum:0x...": {
"prices": [
{"timestamp": 1640995200, "price": 1.01},
{"timestamp": 1641081600, "price": 0.99}
]
}
}
}
```
13. **GET /coins/chart/{coins}**
Purpose: Price chart data with configurable intervals
Parameters:
- coins (path, required): Comma-separated coins
- period (query, optional): Time period ("1d", "7d", "30d", "90d", "180d", "365d")
- span (query, optional): Data point interval in hours
- searchWidth (query, optional): Search width
Response:
```json
{
"coins": {
"ethereum:0x...": {
"prices": [
{"timestamp": 1640995200, "price": 1.01}
],
"symbol": "USDC",
"confidence": 0.99
}
}
}
```
14. **GET /coins/percentage/{coins}**
Purpose: Price change percentages
Parameters:
- coins (path, required): Comma-separated coins
- timestamp (query, optional): Base timestamp for comparison
- lookForward (query, optional): Look forward instead of backward
- period (query, optional): Time period
Response:
```json
{
"coins": {
"ethereum:0x...": {
"symbol": "USDC",
"price": 0.999,
"change": -0.1
}
}
}
```
15. **GET /coins/prices/first/{coins}**
Purpose: First recorded price for coins
Parameters:
- coins (path, required): Comma-separated coins
Response:
```json
{
"coins": {
"ethereum:0x...": {
"price": 1.0,
"timestamp": 1598918400,
"symbol": "USDC"
}
}
}
```
16. **GET /coins/block/{chain}/{timestamp}**
Purpose: Get block number at timestamp
Parameters:
- chain (path, required): Chain name
- timestamp (path, required): Unix timestamp
Response:
```json
{
"height": 13456789,
"timestamp": 1640995200
}
```
===============================================================================
SECTION 3: YIELDS & FARMING
===============================================================================
Base URL: `https://pro-api.llama.fi`
24. 🔒 **GET /yields/pools**
Base: `https://pro-api.llama.fi`
Purpose: All yield pools with current APY
Parameters: None
Response:
```json
{
"status": "success",
"data": [{
"pool": "747c1d2a-c668-4682-b9f9-296708a3dd90",
"chain": "Ethereum",
"project": "aave-v3",
"symbol": "USDC",
"tvlUsd": 1500000000,
"apy": 3.5,
"apyBase": 2.5,
"apyReward": 1.0,
"rewardTokens": ["AAVE"],
"underlyingTokens": ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],
"poolMeta": "Lending",
"exposure": "single",
"il7d": 0,
"apyBase7d": 2.3,
"volumeUsd1d": 50000000,
"volumeUsd7d": 350000000
}]
}
```
25. 🔒 **GET /yields/poolsOld**
Base: `https://pro-api.llama.fi`
Purpose: Legacy pools with contract addresses
Parameters: None
Response: Similar to /pools with additional `pool_old` field
26. 🔒 **GET /yields/chart/{pool}**
Base: `https://pro-api.llama.fi`
Purpose: Historical APY/TVL for a pool
Parameters:
- pool (path, required): Pool UUID
Response:
```json
{
"status": "success",
"data": [{
"timestamp": "2024-01-15T00:00:00.000Z",
"tvlUsd": 1500000000,
"apy": 3.5,
"apyBase": 2.5,
"apyReward": 1.0,
"il7d": 0,
"apyBase7d": 2.3
}]
}
```
27. 🔒 **GET /yields/poolsBorrow**
Base: `https://pro-api.llama.fi`
Purpose: Borrowing rates across protocols
Parameters: None
Response:
```json
{
"status": "success",
"data": [{
"pool": "abc-123",
"chain": "Ethereum",
"project": "aave-v3",
"symbol": "USDC",
"apyBaseBorrow": 5.2,
"apyRewardBorrow": -0.5,
"totalSupplyUsd": 2000000000,
"totalBorrowUsd": 1500000000,
"ltv": 0.75,
"borrowable": true,
"mintedCoin": "aUSDC"
}]
}
```
28. 🔒 **GET /yields/chartLendBorrow/{pool}**
Base: `https://pro-api.llama.fi`
Purpose: Historical lend/borrow rates
Parameters:
- pool (path, required): Pool UUID
Response:
```json
{
"status": "success",
"data": [{
"timestamp": "2024-01-15T00:00:00.000Z",
"totalSupplyUsd": 2000000000,
"totalBorrowUsd": 1500000000,
"apyBase": 3.5,
"apyBaseBorrow": 5.2,
"apyReward": 1.0,
"apyRewardBorrow": -0.5
}]
}
```
29. 🔒 **GET /yields/perps**
Base: `https://pro-api.llama.fi`
Purpose: Perpetual futures funding rates
Parameters: None
Response:
```json
{
"status": "success",
"data": [{
"pool": "perp-123",
"chain": "Arbitrum",
"project": "gmx",
"symbol": "ETH-USD",
"fundingRate": 0.01,
"fundingRate7dAvg": 0.008,
"fundingRate30dAvg": 0.009,
"openInterest": 500000000,
"indexPrice": 2500.50,
"markPrice": 2501.00,
"nextFundingTime": "2024-01-16T08:00:00Z"
}]
}
```
30. 🔒 **GET /yields/lsdRates**
Base: `https://pro-api.llama.fi`
Purpose: Liquid staking derivative rates
Parameters: None
Response:
```json
{
"status": "success",
"data": [{
"pool": "lsd-123",
"project": "lido",
"symbol": "stETH",
"chain": "Ethereum",
"apy": 3.8,
"tvlUsd": 35000000000,
"apyBase": 3.8,
"apyBase7d": 3.7,
"apyBase30d": 3.9,
"marketShare": 0.32
}]
}
```
===============================================================================
SECTION 4: STABLECOINS
===============================================================================
Base URL: `https://pro-api.llama.fi`
31. **GET /stablecoins/stablecoindominance/{chain}**
Purpose: Get stablecoin dominance per chain
Parameters:
- chain (path, required): Chain slug (e.g., "Ethereum")
Response:
```json
{
"dominance": 0.75,
"totalCirculating": 50000000000,
"largestStablecoin": {
"name": "Tether USD",
"symbol": "USDT",
"circulating": 37500000000,
"dominance": 0.75
}
}
```
32. **GET /stablecoins/stablecoins**
Purpose: List all stablecoins with current market data
Parameters: None
Response:
```json
[
{
"id": 1,
"name": "Tether USD",
"symbol": "USDT",
"gecko_id": "tether",
"circulating": 75000000000,
"price": 1.001,
"chains": ["Ethereum", "Tron", "BSC"],
"chainCirculating": {
"Ethereum": 45000000000,
"Tron": 20000000000,
"BSC": 10000000000
}
}
]
```
33. **GET /stablecoins/stablecoincharts/all**
Purpose: Historical market cap data for all stablecoins
Parameters: None
Response:
```json
[
{
"date": 1609459200,
"totalCirculating": {
"peggedUSD": 25000000000
}
}
]
```
34. **GET /stablecoins/stablecoincharts/{chain}**
Purpose: Historical stablecoin data for specific chain
Parameters:
- chain (path, required): Chain name (e.g., "Ethereum")
- stablecoin (query, optional): Stablecoin ID for filtering
Response:
```json
[
{
"date": 1609459200,
"totalCirculating": {
"peggedUSD": 45000000000
}
}
]
```
35. **GET /stablecoins/stablecoin/{asset}**
Purpose: Detailed data for specific stablecoin
Parameters:
- asset (path, required): Stablecoin ID
Response:
```json
{
"id": 1,
"name": "Tether USD",
"symbol": "USDT",
"gecko_id": "tether",
"pegType": "peggedUSD",
"priceSource": "coingecko",
"pegMechanism": "fiat-backed",
"circulating": {
"peggedUSD": 75000000000
},
"chainCirculating": {
"Ethereum": {"current": {"peggedUSD": 45000000000}},
"Tron": {"current": {"peggedUSD": 20000000000}}
},
"price": 1.001,
"mcap": 75075000000
}
```
36. **GET /stablecoins/stablecoinchains**
Purpose: List all chains with stablecoin data
Parameters: None
Response:
```json
[
{
"name": "Ethereum",
"totalCirculating": {
"peggedUSD": 45000000000
}
}
]
```
37. **GET /stablecoins/stablecoinprices**
Purpose: Historical prices for all stablecoins
Parameters: None
Response:
```json
[
{
"date": 1609459200,
"prices": {
"USDT": 1.001,
"USDC": 0.999,
"DAI": 1.002,
"BUSD": 1.000
}
}
]
```
===============================================================================
SECTION 5: VOLUME METRICS (DEXs, Derivatives, Options)
===============================================================================
Base URL: `https://pro-api.llama.fi`
38. **GET /api/overview/dexs**
Purpose: Aggregated DEX volumes
Parameters:
- excludeTotalDataChart (query, optional): Exclude chart data
- excludeTotalDataChartBreakdown (query, optional): Exclude breakdown
- dataType (query, optional): "dailyVolume" | "totalVolume"
Response:
```json
{
"totalVolume": 1234567890,
"change_1d": 5.2,
"change_7d": -2.1,
"change_30d": 15.3,
"protocols": [{
"name": "Uniswap",
"volume24h": 1500000000,
"volume7d": 10500000000,
"change_1d": 3.2,
"chains": ["Ethereum", "Arbitrum", "Polygon"]
}],
"chart": [{
"date": 1640995200,
"volume": 2000000000
}]
}
```
39. **GET /api/overview/dexs/{chain}**
Purpose: DEX volumes for specific chain
Parameters:
- chain (path, required): Chain name
- excludeTotalDataChart (query, optional): Exclude chart
- excludeTotalDataChartBreakdown (query, optional): Exclude breakdown
Response: Similar to overview but filtered by chain
40. **GET /api/summary/dexs/{protocol}**
Purpose: Specific DEX protocol volumes
Parameters:
- protocol (path, required): Protocol slug
- dataType (query, optional): "dailyVolume" | "totalVolume"
Response:
```json
{
"id": "2269",
"name": "Uniswap",
"displayName": "Uniswap V3",
"volume24h": 1500000000,
"volume7d": 10500000000,
"volume30d": 45000000000,
"totalVolume": 800000000000,
"change_1d": 3.2,
"change_7d": -1.5,
"chains": ["Ethereum", "Arbitrum"],
"chainBreakdown": {
"Ethereum": {"volume24h": 1000000000},
"Arbitrum": {"volume24h": 500000000}
},
"dailyVolume": [{
"date": 1640995200,
"volume": 1500000000
}]
}
```
41. **GET /api/overview/options**
Purpose: Options trading volumes
Parameters:
- excludeTotalDataChart (query, optional): Exclude chart
- excludeTotalDataChartBreakdown (query, optional): Exclude breakdown
Response:
```json
{
"totalPremiumVolume": 500000000,
"totalNotionalVolume": 10000000000,
"protocols": [{
"name": "Lyra",
"premiumVolume24h": 5000000,
"notionalVolume24h": 100000000,
"chains": ["Ethereum", "Optimism"]
}]
}
```
42. **GET /api/overview/options/{chain}**
Purpose: Options volumes for specific chain
Parameters:
- chain (path, required): Chain name
Response: Similar to overview but filtered
43. **GET /api/summary/options/{protocol}**
Purpose: Specific options protocol data
Parameters:
- protocol (path, required): Protocol slug
Response:
```json
{
"name": "Lyra",
"premiumVolume24h": 5000000,
"notionalVolume24h": 100000000,
"totalPremiumVolume": 250000000,
"totalNotionalVolume": 5000000000,
"chains": ["Ethereum", "Optimism"],
"dailyPremiumVolume": [{
"date": 1640995200,
"volume": 5000000
}],
"dailyNotionalVolume": [{
"date": 1640995200,
"volume": 100000000
}]
}
```
44. 🔒 **GET /api/overview/derivatives**
Base: `https://pro-api.llama.fi`
Purpose: Aggregated derivatives data
Parameters: None
Response:
```json
{
"totalVolume24h": 5000000000,
"totalOpenInterest": 2000000000,
"change_1d": 10.5,
"protocols": {
"gmx": {
"volume24h": 1000000000,
"openInterest": 500000000,
"chains": ["Arbitrum", "Avalanche"]
}
}
}
```
45. 🔒 **GET /api/summary/derivatives/{protocol}**
Base: `https://pro-api.llama.fi`
Purpose: Specific derivatives protocol
Parameters:
- protocol (path, required): Protocol slug
Response:
```json
{
"name": "GMX",
"volume24h": 1000000000,
"volume7d": 7000000000,
"openInterest": 500000000,
"totalVolume": 50000000000,
"chains": ["Arbitrum", "Avalanche"],
"dailyVolume": [{
"date": 1640995200,
"volume": 1000000000,
"openInterest": 500000000
}]
}
```
===============================================================================
SECTION 6: FEES & REVENUE
===============================================================================
Base URL: `https://pro-api.llama.fi`
46. **GET /api/overview/fees**
Purpose: Protocol fees overview
Parameters:
- excludeTotalDataChart (query, optional): Exclude chart
- excludeTotalDataChartBreakdown (query, optional): Exclude breakdown
- dataType (query, optional): "dailyFees" | "dailyRevenue" | "dailyHoldersRevenue"
Response:
```json
{
"totalFees24h": 5000000,
"totalRevenue24h": 2500000,
"change_1d": 8.3,
"protocols": [{
"name": "Uniswap",
"fees24h": 2000000,
"revenue24h": 0,
"chains": ["Ethereum", "Arbitrum"],
"breakdown24h": {
"ethereum": {
"WBTC": 0
}
},
"breakdown30d": {
"ethereum": {
"WBTC": 37283
}
}
}],
}
```
47. **GET /api/overview/fees/{chain}**
Purpose: Fees for specific chain
Parameters:
- chain (path, required): Chain name
- dataType (query, optional): "dailyFees" | "dailyRevenue" | "dailyHoldersRevenue"
Response: Similar to overview but filtered
48. **GET /api/summary/fees/{protocol}**
Purpose: Specific protocol fees
Parameters:
- protocol (path, required): Protocol slug
- dataType (query, optional): "dailyFees" | "dailyRevenue" | "dailyHoldersRevenue"
Response:
```json
{
"id": "parent#hyperliquid",
"name": "Hyperliquid",
"url": "https://hyperliquid.xyz",
"referralUrl": "https://app.hyperliquid.xyz/join/DEFILLAMAO",
"description": "Hyperliquid is a decentralized perpetual exchange with best-in-class speed, liquidity, and price",
"logo": "https://icons.llama.fi/hyperliquid.png",
"gecko_id": "hyperliquid",
"linkedProtocols": [
"Hyperliquid",
"Hyperliquid Spot Orderbook"
],
"twitter": "HyperliquidX",
"github": [
"hyperliquid-dex"
],
"symbol": "HYPE",
"address": "hyperliquid:0x0d01dc56dcaaca66ad901c959b4011ec",
"defillamaId": "parent#hyperliquid",
"disabled": null,
"displayName": "Hyperliquid",
"cmcId": "32196",
"chains": [
"Hyperliquid L1"
],
"latestFetchIsOk": true,
"slug": "hyperliquid",
"protocolType": "protocol",
"total24h": 4890250,
"total48hto24h": 4550411,
"total7d": 26184696,
"totalAllTime": 499292857,
"change_1d": 7.47,
"totalDataChart": [
[
1734912000,
1472923
]
],
"totalDataChartBreakdown": [
[
1734912000,
{
"Hyperliquid L1": {
"Hyperliquid Spot Orderbook": 1472923
}
}
]
]
}
```
===============================================================================
SECTION 7: UNLOCKS & EMISSIONS
===============================================================================
Base URL: `https://pro-api.llama.fi`
49. 🔒 **GET /api/emissions**
Purpose: All tokens with unlock schedules
Parameters: None
Response:
```json
[
{
"token": "coingecko:whitebit",
"sources": [
"https://cdn.whitebit.com/wbt/whitepaper-en.pdf"
],
"protocolId": "6143",
"name": "WhiteBIT",
"circSupply": 293500000,
"circSupply30d": 293500000,
"totalLocked": 81500000,
"maxSupply": 375000000,
"gecko_id": "whitebit",
"events": [
{
"description": "A cliff of {tokens[0]} tokens was unlocked from Funds 1 on {timestamp}",
"timestamp": 1659657600,
"noOfTokens": [
120000000
],
"category": "noncirculating",
"unlockType": "cliff"
}
],
"nextEvent": {
"date": 1773360001,
"toUnlock": 81500000
},
"unlocksPerDay": 0,
"mcap": 6577845629.249915
}
]
```
50. 🔒 **GET /api/emission/{protocol}**
Purpose: Detailed vesting schedule
Parameters:
- protocol (path, required): Protocol slug
Response:
```json
{
"body": {
"documentedData": {
"data": [
{
"label": "Hyper Foundation Budget",
"data": [
{
"timestamp": 1732838400,
"unlocked": 60000000,
"rawEmission": 60000000,
"burned": 0
}
]
}
],
"tokenAllocation": {
"current": {
"insiders": 16,
"noncirculating": 0.8,
"publicSale": 0,
"airdrop": 82.5,
"farming": 0.7
},
"final": {
"insiders": 45.8,
"noncirculating": 0.5,
"publicSale": 0,
"airdrop": 47.7,
"farming": 6
},
"progress": {
"insiders": 20.1,
"noncirculating": 100,
"publicSale": 100,
"airdrop": 100,
"farming": 6.5
}
}
},
"metadata": {
"notes": [
"The Community Rewards schedule has been linearly extrapolated using the rate of unlocks as of 4 March 2025.",
"The remaining allocation, not shown on the chart, belongs to Community Rewards. It has been excluded here to avoid obscuring the remaining data.",
"Most vesting schedules will complete between 2027–2028; some will continue after 2028. Here we have used an end date of end of 2027.",
"Although the full allocations for Hyper Foundation Budget and Community Grants were unlocked at TGE it is unclear what their spend rate is."
],
"token": "coingecko:hyperliquid",
"sources": [
"https://hyperfnd.medium.com/hype-genesis-1830a4dc2e3f"
],
"protocolIds": [
"4481",
"5448",
"5507",