mirror of
https://github.com/FlipsideCrypto/external-models.git
synced 2026-02-06 11:21:59 +00:00
update-defillama-vault-path (#97)
This commit is contained in:
parent
b1a9b88266
commit
e42a593519
@ -8,7 +8,7 @@ WITH chain_base AS (
|
||||
|
||||
SELECT
|
||||
live.udf_api(
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/chains',{},{},'Vault/prod/defillama'
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/chains',{},{},'Vault/prod/external/defillama'
|
||||
) AS read,
|
||||
SYSDATE() AS _inserted_timestamp
|
||||
),
|
||||
|
||||
@ -8,10 +8,10 @@ WITH base AS (
|
||||
|
||||
SELECT
|
||||
live.udf_api(
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyVolume',{},{},'Vault/prod/defillama'
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyVolume',{},{},'Vault/prod/external/defillama'
|
||||
) AS dex_read,
|
||||
live.udf_api(
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/overview/options?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyPremiumVolume',{},{},'Vault/prod/defillama'
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/overview/options?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyPremiumVolume',{},{},'Vault/prod/external/defillama'
|
||||
) AS options_read,
|
||||
SYSDATE() AS _inserted_timestamp
|
||||
)
|
||||
|
||||
@ -8,7 +8,7 @@ WITH protocol_base AS (
|
||||
|
||||
SELECT
|
||||
live.udf_api(
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/protocols',{},{},'Vault/prod/defillama'
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/protocols',{},{},'Vault/prod/external/defillama'
|
||||
) AS read,
|
||||
SYSDATE() AS _inserted_timestamp
|
||||
)
|
||||
|
||||
@ -13,7 +13,7 @@ SELECT
|
||||
chain_id,
|
||||
chain,
|
||||
live.udf_api(
|
||||
'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/charts/',chain),{},{},'Vault/prod/defillama'
|
||||
'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/charts/',chain),{},{},'Vault/prod/external/defillama'
|
||||
) AS read,
|
||||
SYSDATE() AS _inserted_timestamp
|
||||
FROM (
|
||||
|
||||
@ -11,7 +11,7 @@ WITH api_pull AS (
|
||||
PARSE_JSON(
|
||||
live.udf_api(
|
||||
'GET',
|
||||
'https://pro-api.llama.fi/{api_key}/api/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyVolume',{},{},'Vault/prod/defillama'
|
||||
'https://pro-api.llama.fi/{api_key}/api/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyVolume',{},{},'Vault/prod/external/defillama'
|
||||
)
|
||||
) :data :protocols AS response,
|
||||
SYSDATE() AS _inserted_timestamp
|
||||
|
||||
@ -14,7 +14,7 @@ SELECT
|
||||
FROM (
|
||||
SELECT
|
||||
live.udf_api(
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/overview/options?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyNotionalVolume',{},{},'Vault/prod/defillama'
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/overview/options?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyNotionalVolume',{},{},'Vault/prod/external/defillama'
|
||||
) AS read,
|
||||
SYSDATE() AS _inserted_timestamp
|
||||
),
|
||||
@ -28,7 +28,7 @@ options_base AS (
|
||||
SELECT
|
||||
chain,
|
||||
live.udf_api(
|
||||
'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyNotionalVolume'),{},{},'Vault/prod/defillama'
|
||||
'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyNotionalVolume'),{},{},'Vault/prod/external/defillama'
|
||||
) AS read,
|
||||
SYSDATE() AS _inserted_timestamp
|
||||
FROM (
|
||||
|
||||
@ -14,7 +14,7 @@ SELECT
|
||||
FROM (
|
||||
SELECT
|
||||
live.udf_api(
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/overview/options?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyPremiumVolume',{},{},'Vault/prod/defillama'
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/overview/options?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyPremiumVolume',{},{},'Vault/prod/external/defillama'
|
||||
) AS read,
|
||||
SYSDATE() AS _inserted_timestamp
|
||||
),
|
||||
@ -28,7 +28,7 @@ options_base AS (
|
||||
SELECT
|
||||
chain,
|
||||
live.udf_api(
|
||||
'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyPremiumVolume'),{},{},'Vault/prod/defillama'
|
||||
'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyPremiumVolume'),{},{},'Vault/prod/external/defillama'
|
||||
) AS read,
|
||||
SYSDATE() AS _inserted_timestamp
|
||||
FROM (
|
||||
|
||||
@ -14,7 +14,7 @@ SELECT
|
||||
FROM (
|
||||
SELECT
|
||||
live.udf_api(
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyFees',{},{},'Vault/prod/defillama'
|
||||
'GET','https://pro-api.llama.fi/{api_key}/api/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyFees',{},{},'Vault/prod/external/defillama'
|
||||
) AS read,
|
||||
SYSDATE() AS _inserted_timestamp
|
||||
),
|
||||
@ -28,7 +28,7 @@ fees_base AS (
|
||||
SELECT
|
||||
chain,
|
||||
live.udf_api(
|
||||
'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/fees/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyFees'),{},{},'Vault/prod/defillama'
|
||||
'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/fees/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyFees'),{},{},'Vault/prod/external/defillama'
|
||||
) AS read,
|
||||
SYSDATE() AS _inserted_timestamp
|
||||
FROM (
|
||||
|
||||
@ -11,7 +11,7 @@ WITH api_pull AS (
|
||||
PARSE_JSON(
|
||||
live.udf_api(
|
||||
'GET',
|
||||
'https://pro-api.llama.fi/{api_key}/api/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyRevenue',{},{},'Vault/prod/defillama'
|
||||
'https://pro-api.llama.fi/{api_key}/api/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyRevenue',{},{},'Vault/prod/external/defillama'
|
||||
)
|
||||
) :data :protocols AS response,
|
||||
SYSDATE() AS _inserted_timestamp
|
||||
|
||||
Loading…
Reference in New Issue
Block a user