(
self,
instruments="csi300",
start_time=None,
end_time=None,
infer_processors=[],
learn_processors=[],
fit_start_time=None,
fit_end_time=None,
inst_processors=None,
drop_raw=True,
)
| 306 | |
| 307 | class HighFreqOrderHandler(DataHandlerLP): |
| 308 | def __init__( |
| 309 | self, |
| 310 | instruments="csi300", |
| 311 | start_time=None, |
| 312 | end_time=None, |
| 313 | infer_processors=[], |
| 314 | learn_processors=[], |
| 315 | fit_start_time=None, |
| 316 | fit_end_time=None, |
| 317 | inst_processors=None, |
| 318 | drop_raw=True, |
| 319 | ): |
| 320 | infer_processors = check_transform_proc(infer_processors, fit_start_time, fit_end_time) |
| 321 | learn_processors = check_transform_proc(learn_processors, fit_start_time, fit_end_time) |
| 322 | |
| 323 | data_loader = { |
| 324 | "class": "QlibDataLoader", |
| 325 | "kwargs": { |
| 326 | "config": self.get_feature_config(), |
| 327 | "swap_level": False, |
| 328 | "freq": "1min", |
| 329 | "inst_processors": inst_processors, |
| 330 | }, |
| 331 | } |
| 332 | super().__init__( |
| 333 | instruments=instruments, |
| 334 | start_time=start_time, |
| 335 | end_time=end_time, |
| 336 | data_loader=data_loader, |
| 337 | infer_processors=infer_processors, |
| 338 | learn_processors=learn_processors, |
| 339 | drop_raw=drop_raw, |
| 340 | ) |
| 341 | |
| 342 | def get_feature_config(self): |
| 343 | fields = [] |
nothing calls this directly
no test coverage detected