Skip to content

Commit

Permalink
feat: datamart liquidity depth table (#13)
Browse files Browse the repository at this point in the history
**Motivation:**

Add liquidity depth table to the datamart for access by downstream
clients
  • Loading branch information
scottincrypto committed Aug 19, 2023
1 parent 230d783 commit 9c0c69a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions aave_dbt/models/datamart/aave_token_liquidity_depth_all.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{ config(materialized='table') }}

select
fetch_time
, from_asset
, from_asset_price
, from_amount_native
, from_amount_usd
, to_asset
, to_asset_price
, to_amount_native
, to_amount_usd
, price_impact
-- from `aave-prod.protocol_data_lake.aave_token_liquidity_depth`
from {{ source('protocol_data_lake', 'aave_token_liquidity_depth') }}
order by fetch_time, from_amount_usd

0 comments on commit 9c0c69a

Please sign in to comment.