from __future__ import annotations import json import sys from pathlib import Path ROOT = Path(__file__).resolve().parents[1] sys.path.insert(0, str(ROOT / "backend")) from app.services.eastmoney_sync_service import eastmoney_sync_service # noqa: E402 def main() -> None: result = eastmoney_sync_service.sync() print(json.dumps(result, ensure_ascii=False, indent=2)) if __name__ == "__main__": main()