MCPcopy
hub / github.com/microsoft/qlib / get_changes

Method get_changes

scripts/data_collector/index.py:103–117  ·  view source on GitHub ↗

get companies changes Returns ------- pd.DataFrame: symbol date type SH600000 2019-11-11 add SH600000 2020-11-10 remove dtypes: symbol: str date: pd.Timestamp

(self)

Source from the content-addressed store, hash-verified

101
102 @abc.abstractmethod
103 def get_changes(self) -> pd.DataFrame:
104 """get companies changes
105
106 Returns
107 -------
108 pd.DataFrame:
109 symbol date type
110 SH600000 2019-11-11 add
111 SH600000 2020-11-10 remove
112 dtypes:
113 symbol: str
114 date: pd.Timestamp
115 type: str, value from ["add", "remove"]
116 """
117 raise NotImplementedError("rewrite get_changes")
118
119 @abc.abstractmethod
120 def format_datetime(self, inst_df: pd.DataFrame) -> pd.DataFrame:

Callers 1

parse_instrumentsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected