refactor(qmt): 优化配置模型和百分比交易逻辑

- 统一使用配置模型属性访问替代字典下标
- 完善百分比模式买卖的日志记录和错误处理
- 代码格式化和死代码清理
- 更新 notebook 数据及测试脚本
This commit is contained in:
2026-03-03 15:16:37 +08:00
parent 7bb0a0537b
commit 4090b3c5be
5 changed files with 309 additions and 188 deletions

View File

@@ -2,14 +2,9 @@ from operator import index
import tushare as ts
import sys
print(sys.path)
from main.factor.factor import calculate_arbr
ts.set_token('3a0741c702ee7e5e5f2bf1f0846bafaafe4e320833240b2a7e4a685f')
pro = ts.pro_api()
df = pro.dc_member(trade_date='20190105')
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)