QMT Python API

涨停,跌停

获取涨停价,跌停价

qmt://docs/python
Python
1# coding:gbk
2'''
3内置python,涨停价,跌停价
4'''
5 
6def init(C):
7 stock = "${stock_code}.${market}" # 股票代码
8 '''
9 field 对应字段名称
10
11 涨停 UpStopPrice
12 跌停 DownStopPrice
13 '''
14 data = C.get_instrumentdetail(stock)
15 UpStopPrice = data["UpStopPrice"]
16 DownStopPrice = data["DownStopPrice"]
17 print(f"涨停价:{UpStopPrice}; 跌停价:{DownStopPrice}")
18 return
19 
20def handlebar(C):
21 return

智能助手

咨询式 AI · 带入当前文档

智能助手加载中...