QMT · 内置 Python变量约定与数据结构
Tick
行情快照数据
行情快照数据
get_market_data_ex/get_full_tick返回对象:
| 字段名 | 数据类型 | 含义 |
|---|---|---|
time |
int |
时间戳 |
stime |
string |
时间戳字符串形式 |
lastPrice |
float |
最新价 |
open |
float |
开盘价 |
high |
float |
最高价 |
low |
float |
最低价 |
lastClose |
float |
前收盘价 |
amount |
float |
成交总额 |
volume |
int |
成交总量(手) |
pvolume |
int |
原始成交总量(未经过股手转换的成交总量)【不推荐使用】 |
stockStatus |
int |
证券状态 |
openInt |
int |
若是股票,则openInt含义为股票状态,非股票则是持仓量openInt字段说明在新窗口打开 |
transactionNum |
float |
成交笔数(期货没有,单独计算) |
lastSettlementPrice |
float |
前结算(股票为0) |
settlementPrice |
float |
今结算(股票为0) |
askPrice |
list[float] |
多档委卖价 |
askVol |
list[int] |
多档委卖量 |
bidPrice |
list[float] |
多档委买价 |
bidVol |
list[int] |
多档委买量 |
get_market_data返回对象:
| 字段 | 数据类型 | 含义 |
|---|---|---|
timetag |
string |
时间戳,格式为: %Y%m%d %H:%M:%S |
lastPrice |
float |
最新价 |
open |
float |
开盘价 |
high |
float |
最高价 |
low |
float |
最低价 |
lastClose |
float |
前收盘价 |
amount |
float |
成交额 |
volume |
float |
成交量(手) |
pvolume |
float |
原始成交量(股)【不推荐使用】 |
stockStatus |
int |
作废 参考openInt |
openInt |
float |
若是股票,则openInt含义为股票状态,非股票则是持仓量openInt字段说明 |
lastSettlementPrice |
float |
昨结算价 |
pe |
float |
对于股票是市盈率,对于ETF是iopv值 |
askPrice |
list |
委卖价 |
bidPrice |
list |
委买价 |
askVol |
list |
委卖量 |
bidVol |
list |
委买量 |
settlementPrice |
float |
今结算价 |
subscribe_quote/subscribe_whole_quote回调对象:
同 get_full_tick 返回结构
官方来源
QMT 官方文档:Tick 对象。网页核对日期:2026-10-11。