{"record":{"id":"98b12671121a24ab","repo":"microsoft/qlib","slug":"please-implement-the-get-index-data-method","errorCode":null,"errorMessage":"Please implement the 'get_index_data' method","messagePattern":"Please implement the 'get_index_data' method","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"qlib/backtest/high_performance_ds.py","lineNumber":393,"sourceCode":"        \"\"\"\n\n        raise NotImplementedError(f\"Please implement the 'get_metric_series' method\")\n\n    def get_index_data(self, metric: str) -> SingleData:\n        \"\"\"get one metric with the format of SingleData\n\n        Parameters\n        ----------\n        metric : str\n            the metric name.\n\n        Return\n        ------\n        IndexData.Series\n            one metric with the format of SingleData\n        \"\"\"\n\n        raise NotImplementedError(f\"Please implement the 'get_index_data' method\")\n\n    @staticmethod\n    def sum_all_indicators(\n        order_indicator: BaseOrderIndicator,\n        indicators: List[BaseOrderIndicator],\n        metrics: Union[str, List[str]],\n        fill_value: float = 0,\n    ) -> None:\n        \"\"\"sum indicators with the same metrics.\n        and assign to the order_indicator(BaseOrderIndicator).\n        NOTE: indicators could be a empty list when orders in lower level all fail.\n\n        Parameters\n        ----------\n        order_indicator : BaseOrderIndicator\n            the order indicator to assign.\n        indicators : List[BaseOrderIndicator]\n            the list of all inner indicators.","sourceCodeStart":375,"sourceCodeEnd":411,"githubUrl":"https://github.com/microsoft/qlib/blob/79633dd9506ea689e5400dea0197717b5b3d74b7/qlib/backtest/high_performance_ds.py#L375-L411","documentation":"Error \"Please implement the 'get_index_data' method\" thrown in microsoft/qlib.","triggerScenarios":"This error is raised at qlib/backtest/high_performance_ds.py:393 when the guard condition fails: \"Please implement the 'get_index_data' method\". It triggers when the code path receives input or a state that violates the precondition checked at this point — e.g. an unimplemented abstract method being called, an unsupported argument type/value, or an invalid configuration. To avoid it, satisfy the documented precondition before this call: implement the required method in your subclass, or pass a supported value of the expected type as described by the message.","commonSituations":"See trigger scenarios.","solutions":["Implement the `get_index_data` method in your subclass before calling it.","Use a concrete class that provides `get_index_data` instead of the abstract base."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"79633dd9506ea689e5400dea0197717b5b3d74b7","analyzedAt":"2026-08-15T07:01:27.511Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}