Spaces:
Runtime error
Runtime error
Update qlib/mcp_output/mcp_plugin/mcp_service.py
Browse files
qlib/mcp_output/mcp_plugin/mcp_service.py
CHANGED
|
@@ -13,7 +13,7 @@ qlib.init(provider_uri=data_dir, region="cn")
|
|
| 13 |
instruments_path = os.path.join(data_dir, "instruments") # 或 "cn_data/instruments"
|
| 14 |
calendars_path = os.path.join(data_dir, "calendars")
|
| 15 |
features_path = os.path.join(data_dir, "features")
|
| 16 |
-
|
| 17 |
|
| 18 |
# 打印 day 频率标的
|
| 19 |
instruments = D.list_instruments(freq="day", market="cn")
|
|
|
|
| 13 |
instruments_path = os.path.join(data_dir, "instruments") # 或 "cn_data/instruments"
|
| 14 |
calendars_path = os.path.join(data_dir, "calendars")
|
| 15 |
features_path = os.path.join(data_dir, "features")
|
| 16 |
+
from qlib.data import D
|
| 17 |
|
| 18 |
# 打印 day 频率标的
|
| 19 |
instruments = D.list_instruments(freq="day", market="cn")
|