forked from scalar/scalar
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathllms-free.txt
More file actions
292 lines (221 loc) · 14.2 KB
/
llms-free.txt
File metadata and controls
292 lines (221 loc) · 14.2 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
# DefiLlama Free API
> Free API — no authentication required. All endpoints below use base URL https://api.llama.fi
**Base URL for ALL endpoints below:** `https://api.llama.fi`
## TVL
### GET /protocols
**Base URL:** `https://api.llama.fi`
List all protocols on defillama along with their tvl
Returns: array of {id, name, symbol, category, chains, tvl, chainTvls, change_1d, change_7d}
### GET /protocol/{protocol}
**Base URL:** `https://api.llama.fi`
Get historical TVL of a protocol and breakdowns by token and chain
**Parameters:**
- `protocol` (path, string, required) — protocol slug Example: `aave`
Returns: {id, name, symbol, category, chains, currentChainTvls, chainTvls}
### GET /v2/historicalChainTvl
**Base URL:** `https://api.llama.fi`
Get historical TVL (excludes liquid staking and double counted tvl) of DeFi on all chains
Returns: array of {date, tvl}
### GET /v2/historicalChainTvl/{chain}
**Base URL:** `https://api.llama.fi`
Get historical TVL (excludes liquid staking and double counted tvl) of a chain
**Parameters:**
- `chain` (path, string, required) — chain slug, you can get these from /chains or the chains property on /protocols Example: `Ethereum`
Returns: array of {date, tvl}
### GET /tvl/{protocol}
**Base URL:** `https://api.llama.fi`
Simplified endpoint to get current TVL of a protocol
**Parameters:**
- `protocol` (path, string, required) — protocol slug Example: `uniswap`
Returns: number
### GET /v2/chains
**Base URL:** `https://api.llama.fi`
Get current TVL of all chains
Returns: array of {gecko_id, tvl, tokenSymbol, cmcId, name, chainId}
---
## Coins & Prices
### GET /prices/current/{coins}
**Base URL:** `https://api.llama.fi`
Get current prices of tokens by contract address
**Parameters:**
- `coins` (path, string, required) — set of comma-separated tokens defined as {chain}:{address} Example: `ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1,coingecko:ethereum,bsc:0x762539b45a1dcce3d36d080f74d1aed37844b878,ethereum:0xdB25f211AB05b1c97D595516F45794528a807ad8`
- `searchWidth` (query, string, optional) — time range on either side to find price data, defaults to 6 hours Example: `4h`
Returns: {coins}
### GET /prices/historical/{timestamp}/{coins}
**Base URL:** `https://api.llama.fi`
Get historical prices of tokens by contract address
**Parameters:**
- `coins` (path, string, required) — set of comma-separated tokens defined as {chain}:{address} Example: `ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1,coingecko:ethereum,bsc:0x762539b45a1dcce3d36d080f74d1aed37844b878,ethereum:0xdB25f211AB05b1c97D595516F45794528a807ad8`
- `timestamp` (path, number, required) — UNIX timestamp of time when you want historical prices Example: `1648680149`
- `searchWidth` (query, string, optional) — time range on either side to find price data, defaults to 6 hours Example: `4h`
Returns: {coins}
### GET /batchHistorical
**Base URL:** `https://api.llama.fi`
Get historical prices for multiple tokens at multiple different timestamps
**Parameters:**
- `coins` (query, string, required) — object where keys are coins in the form {chain}:{address}, and values are arrays of requested timestamps Example: `{"avax:0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e": [1666876743, 1666862343], "coingecko:ethereum": [1666869543, 1666862343]}
`
- `searchWidth` (query, string, optional) — time range on either side to find price data, defaults to 6 hours Example: `600`
Returns: {coins}
### GET /chart/{coins}
**Base URL:** `https://api.llama.fi`
Get token prices at regular time intervals
**Parameters:**
- `coins` (path, string, required) — set of comma-separated tokens defined as {chain}:{address} Example: `ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1,coingecko:ethereum,bsc:0x762539b45a1dcce3d36d080f74d1aed37844b878,ethereum:0xdB25f211AB05b1c97D595516F45794528a807ad8`
- `start` (query, number, optional) — unix timestamp of earliest data point requested Example: `1664364537`
- `end` (query, number, optional) — unix timestamp of latest data point requested
- `span` (query, number, optional) — number of data points returned, defaults to 0 Example: `10`
- `period` (query, string, optional) — duration between data points, defaults to 24 hours Example: `2d`
- `searchWidth` (query, string, optional) — time range on either side to find price data, defaults to 10% of period Example: `600`
Returns: {coins}
### GET /percentage/{coins}
**Base URL:** `https://api.llama.fi`
Get percentage change in price over time
**Parameters:**
- `coins` (path, string, required) — set of comma-separated tokens defined as {chain}:{address} Example: `ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1,coingecko:ethereum,bsc:0x762539b45a1dcce3d36d080f74d1aed37844b878,ethereum:0xdB25f211AB05b1c97D595516F45794528a807ad8`
- `timestamp` (query, number, optional) — timestamp of data point requested, defaults to time now Example: `1664364537`
- `lookForward` (query, boolean, optional) — whether you want the duration after your given timestamp or not, defaults to false (looking back) Example: `false`
- `period` (query, string, optional) — duration between data points, defaults to 24 hours Example: `3w`
Returns: {coins}
### GET /prices/first/{coins}
**Base URL:** `https://api.llama.fi`
Get earliest timestamp price record for coins
**Parameters:**
- `coins` (path, string, required) — set of comma-separated tokens defined as {chain}:{address} Example: `ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1,coingecko:ethereum,bsc:0x762539b45a1dcce3d36d080f74d1aed37844b878,ethereum:0xdB25f211AB05b1c97D595516F45794528a807ad8`
Returns: {coins}
### GET /block/{chain}/{timestamp}
**Base URL:** `https://api.llama.fi`
Get the closest block to a timestamp
**Parameters:**
- `chain` (path, string, required) — Chain which you want to get the block from Example: `ethereum`
- `timestamp` (path, integer, required) — UNIX timestamp of the block you are searching for Example: `1603964988`
Returns: {height, timestamp}
---
## Stablecoins
### GET /stablecoins
**Base URL:** `https://api.llama.fi`
List all stablecoins along with their circulating amounts
**Parameters:**
- `includePrices` (query, boolean, optional) — set whether to include current stablecoin prices Example: `true`
Returns: {peggedAssets}
### GET /stablecoincharts/all
**Base URL:** `https://api.llama.fi`
Get historical mcap sum of all stablecoins
**Parameters:**
- `stablecoin` (query, integer, optional) — stablecoin ID, you can get these from /stablecoins Example: `1`
Returns: array of {date, totalCirculating}
### GET /stablecoincharts/{chain}
**Base URL:** `https://api.llama.fi`
Get historical mcap sum of all stablecoins in a chain
**Parameters:**
- `chain` (path, string, required) — chain slug, you can get these from /chains or the chains property on /protocols Example: `Ethereum`
- `stablecoin` (query, integer, optional) — stablecoin ID, you can get these from /stablecoins Example: `1`
Returns: array of {date, totalCirculating}
### GET /stablecoin/{asset}
**Base URL:** `https://api.llama.fi`
Get historical mcap and historical chain distribution of a stablecoin
**Parameters:**
- `asset` (path, integer, required) — stablecoin ID, you can get these from /stablecoins Example: `1`
Returns: {id, name, symbol, totalCirculating, chainCirculating}
### GET /stablecoinchains
**Base URL:** `https://api.llama.fi`
Get current mcap sum of all stablecoins on each chain
Returns: array of {name, totalCirculating}
### GET /stablecoinprices
**Base URL:** `https://api.llama.fi`
Get historical prices of all stablecoins
Returns: array of {date, prices}
---
## Yields & APY
### GET /pools
**Base URL:** `https://api.llama.fi`
Retrieve the latest data for all pools, including enriched information such as predictions
Returns: {status, data}
### GET /chart/{pool}
**Base URL:** `https://api.llama.fi`
Get historical APY and TVL of a pool
**Parameters:**
- `pool` (path, string, required) — pool id, can be retrieved from /pools (property is called pool) Example: `747c1d2a-c668-4682-b9f9-296708a3dd90`
Returns: {status, data}
---
## DEX Volumes
### GET /overview/dexs
**Base URL:** `https://api.llama.fi`
List all dexs along with summaries of their volumes and dataType history data
**Parameters:**
- `excludeTotalDataChart` (query, boolean, required) — true to exclude aggregated chart from response Example: `true`
- `excludeTotalDataChartBreakdown` (query, boolean, required) — true to exclude broken down chart from response Example: `true`
Returns: {protocols, totalDataChart, allChains}
### GET /overview/dexs/{chain}
**Base URL:** `https://api.llama.fi`
List all dexs along with summaries of their volumes and dataType history data filtering by chain
**Parameters:**
- `chain` (path, string, required) — chain name, list of all supported chains can be found under allChains attribute in /overview/dexs response Example: `ethereum`
- `excludeTotalDataChart` (query, boolean, required) — true to exclude aggregated chart from response Example: `true`
- `excludeTotalDataChartBreakdown` (query, boolean, required) — true to exclude broken down chart from response Example: `true`
Returns: {protocols, totalDataChart}
### GET /summary/dexs/{protocol}
**Base URL:** `https://api.llama.fi`
Get summary of dex volume with historical data
**Parameters:**
- `protocol` (path, string, required) — protocol slug Example: `uniswap`
- `excludeTotalDataChart` (query, boolean, required) — true to exclude aggregated chart from response Example: `true`
- `excludeTotalDataChartBreakdown` (query, boolean, required) — true to exclude broken down chart from response Example: `true`
Returns: {name, total24h, totalAllTime, totalDataChart, totalDataChartBreakdown, chains}
### GET /overview/options
**Base URL:** `https://api.llama.fi`
List all options dexs along with summaries of their volumes and dataType history data
**Parameters:**
- `excludeTotalDataChart` (query, boolean, required) — true to exclude aggregated chart from response Example: `true`
- `excludeTotalDataChartBreakdown` (query, boolean, required) — true to exclude broken down chart from response Example: `true`
- `dataType` (query, string, optional) — Desired data type, dailyNotionalVolume by default. (one of: dailyPremiumVolume, dailyNotionalVolume) Example: `dailyPremiumVolume`
Returns: {protocols, totalDataChart}
### GET /overview/options/{chain}
**Base URL:** `https://api.llama.fi`
List all options dexs along with summaries of their volumes and dataType history data filtering by chain
**Parameters:**
- `chain` (path, string, required) — chain name, list of all supported chains can be found under allChains attribute in /overview/options response Example: `ethereum`
- `excludeTotalDataChart` (query, boolean, required) — true to exclude aggregated chart from response Example: `true`
- `excludeTotalDataChartBreakdown` (query, boolean, required) — true to exclude broken down chart from response Example: `true`
- `dataType` (query, string, optional) — Desired data type, dailyNotionalVolume by default. (one of: dailyPremiumVolume, dailyNotionalVolume) Example: `dailyPremiumVolume`
### GET /summary/options/{protocol}
**Base URL:** `https://api.llama.fi`
Get summary of options dex volume with historical data
**Parameters:**
- `protocol` (path, string, required) — protocol slug Example: `derive`
- `dataType` (query, string, optional) — Desired data type, dailyNotionalVolume by default. (one of: dailyPremiumVolume, dailyNotionalVolume) Example: `dailyPremiumVolume`
---
## Perpetuals & Open Interest
### GET /overview/open-interest
**Base URL:** `https://api.llama.fi`
List all open interest dex exchanges along with summaries of their open interest
**Parameters:**
- `excludeTotalDataChart` (query, boolean, required) — true to exclude aggregated chart from response Example: `true`
- `excludeTotalDataChartBreakdown` (query, boolean, required) — true to exclude broken down chart from response Example: `true`
Returns: {protocols, totalDataChart, allChains}
---
## Fees & Revenue
### GET /overview/fees
**Base URL:** `https://api.llama.fi`
List all protocols along with summaries of their fees and revenue and dataType history data
**Parameters:**
- `excludeTotalDataChart` (query, boolean, required) — true to exclude aggregated chart from response Example: `true`
- `excludeTotalDataChartBreakdown` (query, boolean, required) — true to exclude broken down chart from response Example: `true`
- `dataType` (query, string, optional) — Desired data type, dailyFees by default. (one of: dailyFees, dailyRevenue, dailyHoldersRevenue) Example: `dailyFees`
Returns: {protocols, totalDataChart, totalDataChartBreakdown}
### GET /overview/fees/{chain}
**Base URL:** `https://api.llama.fi`
List all protocols along with summaries of their fees and revenue and dataType history data by chain
**Parameters:**
- `chain` (path, string, required) — chain name, list of all supported chains can be found under allChains attribute in /overview/fees response Example: `ethereum`
- `excludeTotalDataChart` (query, boolean, required) — true to exclude aggregated chart from response Example: `true`
- `excludeTotalDataChartBreakdown` (query, boolean, required) — true to exclude broken down chart from response Example: `true`
- `dataType` (query, string, optional) — Desired data type, dailyFees by default. (one of: dailyFees, dailyRevenue, dailyHoldersRevenue) Example: `dailyFees`
Returns: {protocols, totalDataChart, totalDataChartBreakdown}
### GET /summary/fees/{protocol}
**Base URL:** `https://api.llama.fi`
Get summary of protocol fees and revenue with historical data
**Parameters:**
- `protocol` (path, string, required) — protocol slug Example: `derive`
- `dataType` (query, string, optional) — Desired data type, dailyFees by default. (one of: dailyFees, dailyRevenue, dailyHoldersRevenue) Example: `dailyFees`
Returns: {id, name, url, referralUrl, description, logo, gecko_id, cmcId, chains, twitter, github, symbol, address, childProtocols, linkedProtocols, defillamaId, disabled, displayName, module, category, methodologyURL, methodology, forkedFrom, audits, audit_links, versionKey, governanceID, treasury, parentProtocol, previousNames, latestFetchIsOk, slug, protocolType, total24h, total48hto24h, total7d, totalAllTime, change_1d, totalDataChart, totalDataChartBreakdown}