macmini可以直接连自己的局域网ip,不需要通过host.docker.internal

This commit is contained in:
2025-10-29 22:17:40 +08:00
parent af4ac03884
commit d07f7d3c85
4 changed files with 5 additions and 219 deletions

View File

@@ -3,7 +3,7 @@ import re
import akshare as ak
import pandas as pd
from loguru import logger
from index_spot import stock_zh_index_spot_em
# index_hist_df = ak.index_zh_a_hist(
# symbol="000001", # 指数代码,如上证指数
@@ -18,7 +18,7 @@ def get_all_stock_index():
index_df_list = []
for source in index_choice:
logger.info(f"正在获取 {source}...")
index_df = stock_zh_index_spot_em(symbol=source)
index_df = ak.stock_zh_index_spot_em(symbol=source)
index_df["symbol"] = source
index_df_list.append(index_df)
logger.info(f"{source}: {index_df.shape[0]}")