mirror of
https://github.com/FlipsideCrypto/osmosis-models.git
synced 2026-02-06 11:47:03 +00:00
* check in * check in * silver * gold views * remove dupe test, adjust silver logiv * warning for pools with > 4 assets
66 lines
2.2 KiB
YAML
66 lines
2.2 KiB
YAML
version: 2
|
|
models:
|
|
- name: silver__prices_swaps
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- BLOCK_HOUR
|
|
- CURRENCY
|
|
columns:
|
|
- name: BLOCK_HOUR
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_row_values_to_have_recent_data:
|
|
datepart: day
|
|
interval: 1
|
|
- name: CURRENCY
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- STRING
|
|
- VARCHAR
|
|
- name: PRICE_USD
|
|
description: "The price of the asset in USD"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- FLOAT
|
|
- name: MIN_PRICE_USD_HOUR
|
|
description: "The lowest price found in the hour in USD"
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- FLOAT
|
|
- name: MAX_PRICE_USD_HOUR
|
|
description: "The highest price found in the hour in USD"
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- FLOAT
|
|
- name: VOLATILITY_MEASURE
|
|
description: "The difference between the min and max price for the hour"
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- FLOAT
|
|
- name: SWAPS_IN_HOUR
|
|
description: "The number of swap transactions in the hour"
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- FLOAT
|
|
- name: VOLUME_USD_IN_HOUR
|
|
description: "The volume of swap transactions (in USD) in the hour"
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- FLOAT
|
|
|