Skip to content

Commit 59ab88a

Browse files
feat: add cross-asset volatility metric (#111)
1 parent 11d2a7d commit 59ab88a

6 files changed

Lines changed: 3 additions & 8 deletions

File tree

.sqlfluff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ templater = dbt
44
# Allow longer lines for complex SQL (default is 80)
55
max_line_length = 120
66
ignore = parsing
7-
exclude_rules = RF02, RF03, RF04, CP01, AL01, ST01, ST02, ST06, LT02, LT03, LT05, LT08, LT09, LT14, AM03
7+
exclude_rules = RF01, RF02, RF03, RF04, CP01, CP02, CP03, CP04, CP05, AL01, ST01, ST02, ST03, ST06, LT02, LT03, LT05, LT08, LT09, LT14, AM03
88

99
[sqlfluff:templater:dbt]
1010
project_dir = dbt_project

dbt_project/dbt_project.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ models:
2525
staging:
2626
+schema: economics_staging
2727
+materialized: view
28-
analytics:
29-
+schema: economics_marts
30-
+materialized: table
3128
markets:
3229
+schema: economics_marts
3330
+materialized: table

dbt_project/models/analysis/market_economic_analysis.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ WITH economic_data AS (
1515
data_source AS economic_data_source,
1616
-- Create month_date for joining
1717
CASE
18-
WHEN REGEXP_CONTAINS(year_month, r'^\d{4}-\d{1,2}$')
18+
WHEN REGEXP_CONTAINS(year_month, '^\\d{4}-\\d{1,2}$')
1919
THEN
2020
DATE(
2121
CAST(SPLIT(year_month, '-')[OFFSET(0)] AS INT64),

dbt_project/models/markets/nasdaq_companies_summary.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
WITH base_data AS (
32
SELECT
43
symbol,

dbt_project/models/markets/sp500_companies_summary.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
WITH base_data AS (
32
SELECT
43
symbol,

dbt_project/models/staging/corporate_actions.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ splits_api_adjusted AS (
7777
FROM {{ ref('stg_sp500_companies_prices') }}
7878
) AS p
7979
ON sa.symbol = p.symbol
80-
AND p.date < sa.date
80+
AND sa.date > p.date
8181
)
8282
WHERE prior_price_rank = 1
8383
),

0 commit comments

Comments
 (0)