主力合约回测

This commit is contained in:
2025-06-23 22:21:59 +08:00
parent a81a32ce73
commit afed83f96f
12 changed files with 739 additions and 100713 deletions

View File

@@ -10,5 +10,9 @@ print(ls)
ls = api.query_quotes(ins_class="CONT", product_id="au")
print(ls)
quote = api.get_quote("KQ.m@SHFE.rb")
# 打印现在螺纹钢主连的标的合约
print(quote.underlying_symbol)
# 关闭api,释放相应资源
api.close()