From c500d05d2f9978aec7b484cc03f543136eb3b718 Mon Sep 17 00:00:00 2001 From: Hayden Shively <17186559+haydenshively@users.noreply.github.com> Date: Tue, 20 Sep 2022 16:18:39 -0500 Subject: [PATCH] Fallback to hourly prices for SQTH if necessary --- pipeline/meltano.yml | 4 ++++ pipeline/scripts/run_pipeline.sh | 4 +++- pipeline/transform/seeds/tokens.csv | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pipeline/meltano.yml b/pipeline/meltano.yml index 526146d..6cb0e2c 100644 --- a/pipeline/meltano.yml +++ b/pipeline/meltano.yml @@ -37,6 +37,10 @@ plugins: quote: USDT timeframe: 1m start_date: '2022-09-08T00:00:00Z' + - base: OSQTH + quote: USDT + timeframe: 1h + start_date: '2022-09-08T00:00:00Z' - id: gateio pairs: - base: FEI diff --git a/pipeline/scripts/run_pipeline.sh b/pipeline/scripts/run_pipeline.sh index 414ee69..b3eb260 100755 --- a/pipeline/scripts/run_pipeline.sh +++ b/pipeline/scripts/run_pipeline.sh @@ -14,4 +14,6 @@ meltano run tap-ethereum target-postgres meltano run tap-thegraph target-postgres # Run dbt transforms -meltano run dbt-postgres:seed dbt-postgres:run \ No newline at end of file +meltano invoke dbt-postgres:deps +meltano invoke dbt-postgres:seed +meltano run dbt-postgres:seed dbt-postgres:run \ No newline at end of file diff --git a/pipeline/transform/seeds/tokens.csv b/pipeline/transform/seeds/tokens.csv index 7925785..871e4c7 100644 --- a/pipeline/transform/seeds/tokens.csv +++ b/pipeline/transform/seeds/tokens.csv @@ -6,4 +6,4 @@ address,chain_id,symbol,decimals 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599,1,BTC,8 0x03ab458634910aad20ef5f1c8ee96f1d6ac54919,1,RAI,18 0xf4d2888d29d722226fafa5d9b24f9164c092421e,1,LOOKS,18 -0xf1b99e3e573a1a9c5e6b2ce818b617f0e664e86b,1,oSQTH,18 \ No newline at end of file +0xf1b99e3e573a1a9c5e6b2ce818b617f0e664e86b,1,OSQTH,18 \ No newline at end of file