#!/usr/bin/env python3
"""检查BacktesterEngine有什么方法"""

from vnpy_ctabacktester import BacktesterEngine
from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine

event_engine = EventEngine()
main_engine = MainEngine(event_engine)

backtester = BacktesterEngine(main_engine, event_engine)

print("=== BacktesterEngine 方法列表 ===")
methods = [m for m in dir(backtester) if not m.startswith('_')]
for m in sorted(methods):
    print(f"  {m}")
print()

print("=== run_backtesting 签名 ===")
import inspect
sig = inspect.signature(backtester.run_backtesting)
print(f"  {sig}")
