-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbt_project.yml
49 lines (42 loc) · 1.05 KB
/
dbt_project.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: borsa
profile: borsa
config-version: 2
model-paths: ["dbt/models"]
seed-paths: ["dbt/seeds"]
test-paths: ["dbt/tests"]
analysis-paths: ["dbt/analysis"]
macro-paths: ["dbt/macros"]
snapshot-paths: ["dbt/snapshots"]
docs-paths: ["dbt/docs"]
asset-paths: ["dbt/assets"]
packages-install-path: "dbt/packages"
clean-targets: ["dbt/target"]
vars:
smas: [0, 5, 10, 20, 40]
bars_ago: [1, 2, 3, 4, 5]
max_buy_value: 10_000
max_buys_per_day: 1
trailstop: -0.005
target_profit: 1
buy_after_minutes: 5
sell_by_minutes: 120
sell_conditions: "false"
include_optimal_strategy: "true"
strategies: [
{
id: "random1",
buy: "sma5 > sma10 and sma10 > sma20 and sma40cntdwn2",
},
{
id: "random2",
buy: "minutes_since_open = 15",
},
]
# Dev is for backtesting where tables are faster
# Prod is for trading where views are faster
models:
borsa:
intermediate:
+materialized: "{{ 'table' if target.name == 'dev' else 'view' }}"
reports:
+materialized: "{{ 'table' if target.name == 'dev' else 'view' }}"