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,13 +13,6 @@ 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 |
-
from qlib.data import D
|
| 17 |
-
|
| 18 |
-
# 打印 day 频率标的
|
| 19 |
-
instruments = D.list_instruments(freq="day")
|
| 20 |
-
print("=== Day-frequency instruments ===")
|
| 21 |
-
print(f"Total instruments: {len(instruments)}")
|
| 22 |
-
print("Sample instruments:", instruments[:10])
|
| 23 |
|
| 24 |
# 打印 instruments
|
| 25 |
if os.path.exists(instruments_path):
|
|
|
|
| 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 |
# 打印 instruments
|
| 18 |
if os.path.exists(instruments_path):
|