update-defillama-vault-path (#97)

This commit is contained in:
Matt Romano 2025-03-17 10:58:57 -07:00 committed by GitHub
parent b1a9b88266
commit e42a593519
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 13 additions and 13 deletions

View File

@ -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
),

View File

@ -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
)

View File

@ -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
)

View File

@ -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 (

View File

@ -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

View File

@ -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 (

View File

@ -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 (

View File

@ -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 (

View File

@ -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