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
|
@@ -14,6 +14,13 @@ instruments_path = os.path.join(data_dir, "instruments") # 或 "cn_data/instrum
|
|
| 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):
|
| 19 |
print("\n=== Instruments directory ===")
|
|
|
|
| 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")
|
| 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):
|
| 26 |
print("\n=== Instruments directory ===")
|