"""Demo configuration helpers.

This module provides `default_config()` that mirrors the C++ demo config defaults.
Keeping it in a dedicated module avoids accidental deletion during callback-sync work.
"""

from __future__ import annotations

import py_xlt_api as xlt


def default_config() -> xlt.XLTTradeConfig:
    cfg = xlt.XLTTradeConfig()
    # Keep these defaults aligned with the C++ demo's hardcoded config.
    cfg.set_trading_day(20260310)
    cfg.set_local_addr("172.16.10.155", "172.16.10.155")
    cfg.add_agw_addr("192.168.5.215", 6060)
    cfg.set_order_timeout(10)
    cfg.set_order_seq_self_define(False)
    return cfg

