EMT TraderAPI  ver: 2.2.0
_EMTMarketDataStruct结构体 参考

快照行情结构体 更多...

#include <emt_quote_struct.h>

成员变量

EMT_EXCHANGE_TYPE exchange_id
 交易所代码 更多...
 
char ticker [EMT_TICKER_LEN]
 合约代码(不包含交易所信息),不带空格。以"\0"结尾 更多...
 
double last_price
 最新价 更多...
 
double pre_close_price
 昨日收盘价 更多...
 
double open_price
 今开盘价 更多...
 
double high_price
 最高价 更多...
 
double low_price
 最低价 更多...
 
double close_price
 今收盘价(SH) 更多...
 
double upper_limit_price
 涨停价(SZ) 更多...
 
double lower_limit_price
 跌停价(SZ) 更多...
 
double pre_delta
 预留(目前未填写) 更多...
 
double curr_delta
 预留(目前未填写) 更多...
 
int64_t data_time
 行情时间,格式为YYYYMMDDHHMMSSssss 更多...
 
int64_t qty
 数量,为总成交量(单位股,与交易所一致) 更多...
 
double turnover
 成交金额,为总成交金额(单位元,与交易所一致) 更多...
 
double avg_price
 当日均价=(turnover/qty) 更多...
 
double bid [10]
 十档申买价 更多...
 
double ask [10]
 十档申卖价 更多...
 
int64_t bid_qty [10]
 十档申买量 更多...
 
int64_t ask_qty [10]
 十档申卖量 更多...
 
int64_t trades_count
 成交笔数 更多...
 
char ticker_status [8]
 当前交易状态说明(SH) 更多...
 
int64_t total_bid_qty
 委托买入总量(SH,SZ) 更多...
 
int64_t total_ask_qty
 委托卖出总量(SH,SZ) 更多...
 
double ma_bid_price
 加权平均委买价格(SH,SZ) 更多...
 
double ma_ask_price
 加权平均委卖价格(SH,SZ) 更多...
 
int32_t cancel_buy_count
 买入撤单笔数(SH) 更多...
 
int32_t cancel_sell_count
 卖出撤单笔数(SH) 更多...
 
double cancel_buy_qty
 买入撤单数量(SH) 更多...
 
double cancel_sell_qty
 卖出撤单数量(SH) 更多...
 
double cancel_buy_money
 买入撤单金额(SH) 更多...
 
double cancel_sell_money
 卖出撤单金额(SH) 更多...
 
int64_t total_buy_count
 买入总笔数(SH) 更多...
 
int64_t total_sell_count
 卖出总笔数(SH) 更多...
 
int32_t duration_after_buy
 买入委托成交最大等待时间(SH) 更多...
 
int32_t duration_after_sell
 卖出委托成交最大等待时间(SH) 更多...
 
int32_t num_bid_orders
 买方委托价位数(SH) 更多...
 
int32_t num_ask_orders
 卖方委托价位数(SH) 更多...
 
union {
   EMTMarketDataBondExData   bond
 债券额外数据 更多...
 
   EMTMarketDataFundExData   fund
 基金额外数据 更多...
 
   EMTMarketDataWarrantExData   warrant
 权证额外数据 更多...
 
   EMTMarketDataOptionExData   opt
 期权额外数据 更多...
 
}; 
 额外数据联合体 更多...
 
EMT_TICKER_TYPE data_type
 证券类别;1:股票,基金,债券,权证,质押式回购;2:期权;决定了union是哪种数据类型 更多...
 

详细描述

快照行情结构体

结构体成员变量说明

◆ 

union { ... }

额外数据联合体

◆ ask

double ask[10]

十档申卖价

◆ ask_qty

int64_t ask_qty[10]

十档申卖量

◆ avg_price

double avg_price

当日均价=(turnover/qty)

◆ bid

double bid[10]

十档申买价

◆ bid_qty

int64_t bid_qty[10]

十档申买量

◆ bond

债券额外数据

◆ cancel_buy_count

int32_t cancel_buy_count

买入撤单笔数(SH)

◆ cancel_buy_money

double cancel_buy_money

买入撤单金额(SH)

◆ cancel_buy_qty

double cancel_buy_qty

买入撤单数量(SH)

◆ cancel_sell_count

int32_t cancel_sell_count

卖出撤单笔数(SH)

◆ cancel_sell_money

double cancel_sell_money

卖出撤单金额(SH)

◆ cancel_sell_qty

double cancel_sell_qty

卖出撤单数量(SH)

◆ close_price

double close_price

今收盘价(SH)

◆ curr_delta

double curr_delta

预留(目前未填写)

◆ data_time

int64_t data_time

行情时间,格式为YYYYMMDDHHMMSSssss

◆ data_type

EMT_TICKER_TYPE data_type

证券类别;1:股票,基金,债券,权证,质押式回购;2:期权;决定了union是哪种数据类型

◆ duration_after_buy

int32_t duration_after_buy

买入委托成交最大等待时间(SH)

◆ duration_after_sell

int32_t duration_after_sell

卖出委托成交最大等待时间(SH)

◆ exchange_id

EMT_EXCHANGE_TYPE exchange_id

交易所代码

◆ fund

基金额外数据

◆ high_price

double high_price

最高价

◆ last_price

double last_price

最新价

◆ low_price

double low_price

最低价

◆ lower_limit_price

double lower_limit_price

跌停价(SZ)

◆ ma_ask_price

double ma_ask_price

加权平均委卖价格(SH,SZ)

◆ ma_bid_price

double ma_bid_price

加权平均委买价格(SH,SZ)

◆ num_ask_orders

int32_t num_ask_orders

卖方委托价位数(SH)

◆ num_bid_orders

int32_t num_bid_orders

买方委托价位数(SH)

◆ open_price

double open_price

今开盘价

◆ opt

期权额外数据

◆ pre_close_price

double pre_close_price

昨日收盘价

◆ pre_delta

double pre_delta

预留(目前未填写)

◆ qty

int64_t qty

数量,为总成交量(单位股,与交易所一致)

◆ ticker

char ticker[EMT_TICKER_LEN]

合约代码(不包含交易所信息),不带空格。以"\0"结尾

◆ ticker_status

char ticker_status[8]

当前交易状态说明(SH)

◆ total_ask_qty

int64_t total_ask_qty

委托卖出总量(SH,SZ)

◆ total_bid_qty

int64_t total_bid_qty

委托买入总量(SH,SZ)

◆ total_buy_count

int64_t total_buy_count

买入总笔数(SH)

◆ total_sell_count

int64_t total_sell_count

卖出总笔数(SH)

◆ trades_count

int64_t trades_count

成交笔数

◆ turnover

double turnover

成交金额,为总成交金额(单位元,与交易所一致)

◆ upper_limit_price

double upper_limit_price

涨停价(SZ)

◆ warrant

权证额外数据


该结构体的文档由以下文件生成: