from __future__ import annotations

import json
from pathlib import Path


def main() -> int:
    out = Path("Temp/shadow_ledger_v1.json")
    payload = {
        "formula_id": "SHADOW_LEDGER_V1",
        "rows": [
            {
                "ticker": "005930",
                "status": "WATCH",
                "base_qty": 10,
                "stop_loss": 65000,
                "take_profit": 72000,
                "theoretical_qty": 10,
                "block_reason": "NONE",
            }
        ],
    }
    out.write_text(json.dumps(payload, ensure_ascii=False, indent=2), encoding="utf-8")
    print(json.dumps(payload, ensure_ascii=False, indent=2))
    return 0


if __name__ == "__main__":
    raise SystemExit(main())

