flipsidecrypto⚡️ LQ / DefiLlama LiveQuery Function Guide
99
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
›
⌄
-- DefiLlama 🤝 Flipside LiveQuery Function Guide
-------------------------------------------------------------------------
-- The DefiLlama LiveQuery integration enables you to interact with
-- any DefiLlama API endpoint directly in SQL.
-- ======================================================================
--
-- ⚡️ DefiLlama Functions
-- schema: `defillama`
-- function docs: https://defillama.com/docs/api
--
-- ======================================================================
--
-- #️⃣ defillama.get('url', 'query args')
-- Issue a GET request to a DefiLlama Endpoint
--
-- examples:
--
SELECT defillama.get('/protocols', {}) as resp
--
-- #️⃣ defillama.post('url', 'body')
-- Issue a POST request to DefiLlama Endpoint
--
-- example
SELECT
defillama.post('/some/path/here', {
'foo': 'bar'
}) as resp
Run a query to Download Data