def get_totalvaule(C, S): """获取股票列表中所有股票的总股本""" S.totalvaule = {} for code in C.stock_list: detail = C.get_instrumentdetail(code) total_volume = detail.get('TotalVolume', 0) S.totalvaule[code] = total_volume for code, df in S.totalvaule.items(): print(f"股票{code}的总股本:\n{df}")
获取的股本信息如下:
举报
本版积分规则 发表回复 回帖后跳转到最后一页
1
0