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