try:
    from zhenquant_sdk import ZhenQuantClient
except ImportError as exc:
    raise SystemExit(
        "Missing dependency: zhenquant_sdk.py. Download the getting-started bundle or place "
        "zhenquant_sdk.py in the same directory before running this example."
    ) from exc


def main():
    client = ZhenQuantClient(api_key="zq_live_your_api_key_here")

    result = client.factors.calculate(
        factor_code="MACD",
        symbols=["AAPL", "TSLA", "00700.HK"],
        timeframe="1d",
        fast_period=12,
        slow_period=26,
        signal_period=9,
    )

    print("ZhenQuant unified factor result:")
    print(result)


if __name__ == "__main__":
    main()
