You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns: array of {gecko_id, tvl, tokenSymbol, cmcId, name, chainId}
41
47
42
48
---
43
49
@@ -50,6 +56,7 @@ Get current prices of tokens by contract address
50
56
**Parameters:**
51
57
- `coins` (path, string, required) — set of comma-separated tokens defined as {chain}:{address} Example: `ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1,coingecko:ethereum,bsc:0x762539b45a1dcce3d36d080f74d1aed37844b878,ethereum:0xdB25f211AB05b1c97D595516F45794528a807ad8`
52
58
- `searchWidth` (query, string, optional) — time range on either side to find price data, defaults to 6 hours Example: `4h`
59
+
Returns: {coins}
53
60
54
61
### GET /prices/historical/{timestamp}/{coins}
55
62
**Base URL:** `https://api.llama.fi`
@@ -59,6 +66,7 @@ Get historical prices of tokens by contract address
59
66
- `coins` (path, string, required) — set of comma-separated tokens defined as {chain}:{address} Example: `ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1,coingecko:ethereum,bsc:0x762539b45a1dcce3d36d080f74d1aed37844b878,ethereum:0xdB25f211AB05b1c97D595516F45794528a807ad8`
60
67
- `timestamp` (path, number, required) — UNIX timestamp of time when you want historical prices Example: `1648680149`
61
68
- `searchWidth` (query, string, optional) — time range on either side to find price data, defaults to 6 hours Example: `4h`
69
+
Returns: {coins}
62
70
63
71
### GET /batchHistorical
64
72
**Base URL:** `https://api.llama.fi`
@@ -68,6 +76,7 @@ Get historical prices for multiple tokens at multiple different timestamps
68
76
- `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]}
69
77
`
70
78
- `searchWidth` (query, string, optional) — time range on either side to find price data, defaults to 6 hours Example: `600`
79
+
Returns: {coins}
71
80
72
81
### GET /chart/{coins}
73
82
**Base URL:** `https://api.llama.fi`
@@ -80,6 +89,7 @@ Get token prices at regular time intervals
80
89
- `span` (query, number, optional) — number of data points returned, defaults to 0 Example: `10`
81
90
- `period` (query, string, optional) — duration between data points, defaults to 24 hours Example: `2d`
82
91
- `searchWidth` (query, string, optional) — time range on either side to find price data, defaults to 10% of period Example: `600`
92
+
Returns: {coins}
83
93
84
94
### GET /percentage/{coins}
85
95
**Base URL:** `https://api.llama.fi`
@@ -90,13 +100,15 @@ Get percentage change in price over time
90
100
- `timestamp` (query, number, optional) — timestamp of data point requested, defaults to time now Example: `1664364537`
91
101
- `lookForward` (query, boolean, optional) — whether you want the duration after your given timestamp or not, defaults to false (looking back) Example: `false`
92
102
- `period` (query, string, optional) — duration between data points, defaults to 24 hours Example: `3w`
103
+
Returns: {coins}
93
104
94
105
### GET /prices/first/{coins}
95
106
**Base URL:** `https://api.llama.fi`
96
107
Get earliest timestamp price record for coins
97
108
98
109
**Parameters:**
99
110
- `coins` (path, string, required) — set of comma-separated tokens defined as {chain}:{address} Example: `ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1,coingecko:ethereum,bsc:0x762539b45a1dcce3d36d080f74d1aed37844b878,ethereum:0xdB25f211AB05b1c97D595516F45794528a807ad8`
111
+
Returns: {coins}
100
112
101
113
### GET /block/{chain}/{timestamp}
102
114
**Base URL:** `https://api.llama.fi`
@@ -105,6 +117,7 @@ Get the closest block to a timestamp
105
117
**Parameters:**
106
118
- `chain` (path, string, required) — Chain which you want to get the block from Example: `ethereum`
107
119
- `timestamp` (path, integer, required) — UNIX timestamp of the block you are searching for Example: `1603964988`
120
+
Returns: {height, timestamp}
108
121
109
122
---
110
123
@@ -116,13 +129,15 @@ List all stablecoins along with their circulating amounts
116
129
117
130
**Parameters:**
118
131
- `includePrices` (query, boolean, optional) — set whether to include current stablecoin prices Example: `true`
132
+
Returns: {peggedAssets}
119
133
120
134
### GET /stablecoincharts/all
121
135
**Base URL:** `https://api.llama.fi`
122
136
Get historical mcap sum of all stablecoins
123
137
124
138
**Parameters:**
125
139
- `stablecoin` (query, integer, optional) — stablecoin ID, you can get these from /stablecoins Example: `1`
140
+
Returns: array of {date, totalCirculating}
126
141
127
142
### GET /stablecoincharts/{chain}
128
143
**Base URL:** `https://api.llama.fi`
@@ -131,21 +146,25 @@ Get historical mcap sum of all stablecoins in a chain
131
146
**Parameters:**
132
147
- `chain` (path, string, required) — chain slug, you can get these from /chains or the chains property on /protocols Example: `Ethereum`
133
148
- `stablecoin` (query, integer, optional) — stablecoin ID, you can get these from /stablecoins Example: `1`
149
+
Returns: array of {date, totalCirculating}
134
150
135
151
### GET /stablecoin/{asset}
136
152
**Base URL:** `https://api.llama.fi`
137
153
Get historical mcap and historical chain distribution of a stablecoin
138
154
139
155
**Parameters:**
140
156
- `asset` (path, integer, required) — stablecoin ID, you can get these from /stablecoins Example: `1`
Get current mcap sum of all stablecoins on each chain
162
+
Returns: array of {name, totalCirculating}
145
163
146
164
### GET /stablecoinprices
147
165
**Base URL:** `https://api.llama.fi`
148
166
Get historical prices of all stablecoins
167
+
Returns: array of {date, prices}
149
168
150
169
---
151
170
@@ -154,13 +173,15 @@ Get historical prices of all stablecoins
154
173
### GET /pools
155
174
**Base URL:** `https://api.llama.fi`
156
175
Retrieve the latest data for all pools, including enriched information such as predictions
176
+
Returns: {status, data}
157
177
158
178
### GET /chart/{pool}
159
179
**Base URL:** `https://api.llama.fi`
160
180
Get historical APY and TVL of a pool
161
181
162
182
**Parameters:**
163
183
- `pool` (path, string, required) — pool id, can be retrieved from /pools (property is called pool) Example: `747c1d2a-c668-4682-b9f9-296708a3dd90`
184
+
Returns: {status, data}
164
185
165
186
---
166
187
@@ -173,6 +194,7 @@ List all dexs along with summaries of their volumes and dataType history data
173
194
**Parameters:**
174
195
- `excludeTotalDataChart` (query, boolean, required) — true to exclude aggregated chart from response Example: `true`
175
196
- `excludeTotalDataChartBreakdown` (query, boolean, required) — true to exclude broken down chart from response Example: `true`
197
+
Returns: {protocols, totalDataChart, allChains}
176
198
177
199
### GET /overview/dexs/{chain}
178
200
**Base URL:** `https://api.llama.fi`
@@ -182,6 +204,7 @@ List all dexs along with summaries of their volumes and dataType history data fi
182
204
- `chain` (path, string, required) — chain name, list of all supported chains can be found under allChains attribute in /overview/dexs response Example: `ethereum`
183
205
- `excludeTotalDataChart` (query, boolean, required) — true to exclude aggregated chart from response Example: `true`
184
206
- `excludeTotalDataChartBreakdown` (query, boolean, required) — true to exclude broken down chart from response Example: `true`
207
+
Returns: {protocols, totalDataChart}
185
208
186
209
### GET /summary/dexs/{protocol}
187
210
**Base URL:** `https://api.llama.fi`
@@ -191,6 +214,7 @@ Get summary of dex volume with historical data
0 commit comments