"""Demo configuration helpers for quote demo.

Keep these defaults aligned with `demo/xlt_quote_api_demo/xlt_quote_demo.cpp`.
"""

from __future__ import annotations

import py_xlt_api as xlt


def default_config() -> xlt.XLTQuoteConfig:
    cfg = xlt.XLTQuoteConfig()
    cfg.set_trading_day(20260310)
    # (agw_local_ip, quote_local_ip)
    cfg.set_local_addr("172.16.10.155", "172.16.10.155")
    cfg.add_agw_addr("192.168.5.215", 6060)
    cfg.set_use_level2(True)     ## 注意开启之后才能订阅level2行情
    return cfg

