Skip to content

Commit 352f48d

Browse files
committed
Handle missing planner YAML files and add src universe config
1 parent 6df2530 commit 352f48d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/configs/universe.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
universe:
2+
exchanges: ["okx"]
3+
# Use canonical_symbol or exchange_symbol based on planner logic.
4+
symbols:
5+
okx:
6+
- "BTC-USDT-SWAP"
7+
- "ETH-USDT-SWAP"
8+
# candles timeframes
9+
timeframes: ["1m", "5m"]
10+
endpoints: ["candles", "funding", "open_interest"]

src/orchestrator/planner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class UniverseRow:
3131

3232

3333
def _load_yaml(path: Path) -> dict:
34+
if not path.exists():
35+
return {}
3436
with path.open("r", encoding="utf-8") as f:
3537
return yaml.safe_load(f) or {}
3638

0 commit comments

Comments
 (0)