• 初始化配置

    初始化配置

    初始化数据载入相关信息,可以分成3类:

    • CSV文件路径
    • 合约信息:合约代码、交易所、K线周期
    • CSV表头信息:日期时间、开盘价、最高价、最低价、收盘价、成交量
    1. self.file_path: str = ''
    2.  
    3. self.symbol: str = ""
    4. self.exchange: Exchange = Exchange.SSE
    5. self.interval: Interval = Interval.MINUTE
    6.  
    7. self.datetime_head: str = ''
    8. self.open_head: str = ''
    9. self.close_head: str = ''
    10. self.low_head: str = ''
    11. self.high_head: str = ''
    12. self.volume_head: str = ''