Files
global-live/scripts/live/build_global_universe.py
2026-08-12 16:40:47 -07:00

33 lines
876 B
Python

#!/usr/bin/env python
"""Build the configured global-equity universe from BlackRock holdings.
Usage:
python scripts/live/build_global_universe.py
python scripts/live/build_global_universe.py --use-cached # skip live BlackRock fetch
"""
import argparse
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[2])) # noqa: E402
from src.data.global_universe import build_global_universe
def main() -> None:
parser = argparse.ArgumentParser(
description="Build the configured global-equity universe from BlackRock holdings."
)
parser.add_argument(
"--use-cached",
action="store_true",
help="Use cached BlackRock fixtures instead of live fetch",
)
args = parser.parse_args()
build_global_universe(use_cached_fixtures=args.use_cached)
if __name__ == "__main__":
main()