主力合约回测
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user