- 初始化配置
初始化配置
初始化数据载入相关信息,可以分成3类:
- CSV文件路径
- 合约信息:合约代码、交易所、K线周期
- CSV表头信息:日期时间、开盘价、最高价、最低价、收盘价、成交量
- self.file_path: str = ''
- self.symbol: str = ""
- self.exchange: Exchange = Exchange.SSE
- self.interval: Interval = Interval.MINUTE
- self.datetime_head: str = ''
- self.open_head: str = ''
- self.close_head: str = ''
- self.low_head: str = ''
- self.high_head: str = ''
- self.volume_head: str = ''