modify scripts

This commit is contained in:
oscarz
2025-04-13 16:51:58 +08:00
parent 8f0c5b3eea
commit 26cd6b52ca
4 changed files with 80 additions and 11 deletions

View File

@ -56,13 +56,19 @@ def get_stock_by_fs():
save_to_csv(df, config.global_host_input_dir, f"em_index_all.csv")
return df
# 东财-概念板块成分股
def get_stock_by_xx(sy):
df = ak.stock_board_concept_cons_em(symbol=sy)
save_to_csv(df, config.global_host_input_dir, f"em_{sy}.csv")
def refresh_main_index():
#get_csindex(symbol='000300')
#get_csindex(symbol='000510')
#get_sina_index_stock(symbol='000300')
#get_ah_stock()
#get_hk_ggt_components()
get_stock_by_fs()
#get_stock_by_fs()
get_stock_by_xx('半导体概念')