31ece2e99a
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
513 B
Python
20 lines
513 B
Python
from pathlib import Path
|
|
import sys
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
if str(ROOT) not in sys.path:
|
|
sys.path.insert(0, str(ROOT))
|
|
|
|
from src.services.structure import MSSService
|
|
|
|
|
|
def main() -> None:
|
|
service = MSSService()
|
|
candidates = service.detect_mss(instrument_id=1, timeframe="1m")
|
|
written = service.persist_mss(instrument_id=1, timeframe="1m", candidates=candidates)
|
|
print(f"Detected {len(candidates)} MSS events; wrote {written} rows")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|