- 统一使用配置模型属性访问替代字典下标 - 完善百分比模式买卖的日志记录和错误处理 - 代码格式化和死代码清理 - 更新 notebook 数据及测试脚本
10 lines
293 B
Python
10 lines
293 B
Python
from operator import index
|
|
|
|
import tushare as ts
|
|
|
|
ts.set_token('3a0741c702ee7e5e5f2bf1f0846bafaafe4e320833240b2a7e4a685f')
|
|
pro = ts.pro_api()
|
|
|
|
df = ts.pro_bar(ts_code='601117.SH', adj='qfq', start_date='20240129', end_date='20240129', fields='trade_date,ts_code,close,tor')
|
|
|
|
print(df) |