8#ifndef __EMT_MARKETDATA_H__
9#define __EMT_MARKETDATA_H__ extern "C" _declspec(dllimport)
19#define MAX_LEVEL_NUM 10
20#define MAX_LEVEL_ORDERS_NUM 50
21#define EMQ_ERR_MSG_LEN 124
318 bool is_registration;
324 bool is_weighted_voting_rights;
326 bool is_have_price_limit;
328 double upper_limit_price;
330 double lower_limit_price;
332 double pre_close_price;
336 int32_t bid_qty_upper_limit;
338 int32_t bid_qty_lower_limit;
340 int32_t bid_qty_unit;
342 int32_t ask_qty_upper_limit;
344 int32_t ask_qty_lower_limit;
346 int32_t ask_qty_unit;
348 int32_t market_bid_qty_upper_limit;
350 int32_t market_bid_qty_lower_limit;
352 int32_t market_bid_qty_unit;
354 int32_t market_ask_qty_upper_limit;
356 int32_t market_ask_qty_lower_limit;
358 int32_t market_ask_qty_unit;
#define EMQ_TICKER_LEN
存放证券代码的字符串长度
Definition emt_quote_data_type.h:17
#define EMQ_TICKER_NAME_LEN
存放证券名称的字符串长度
Definition emt_quote_data_type.h:19
#define EMQ_HK_TICKER_LEN
Definition emt_quote_data_type.h:21
EMQ_QUALIFICATION_TYPE
EMQ_QUALIFICATION_TYPE是一个证券适当性枚举类型
Definition emt_quote_data_type.h:83
EMQ_SECURITY_TYPE
EMQ_SECURITY_TYPE是一个证券详细分类枚举类型
Definition emt_quote_data_type.h:94
EMQ_EXCHANGE_TYPE
EMQ_EXCHANGE_TYPE是交易所类型,行情里使用
Definition emt_quote_data_type.h:50
EMQ_TICKER_TYPE
EMQ_TICKER_TYPE证券类型
Definition emt_quote_data_type.h:64
struct _EMTQuoteFullInfo { EMQ_EXCHANGE_TYPE exchange_id; char ticker[EMQ_TICKER_LEN]; char ticker_name[EMQ_TICKER_NAME_LEN]; EMQ_SECURITY_TYPE security_type; EMQ_QUALIFICATION_TYPE ticker_qualification_class; bool is_registration; bool is_VIE; bool is_noprofit; bool is_weighted_voting_rights; bool is_have_price_limit; double upper_limit_price; double lower_limit_price; double pre_close_price; double price_tick; int32_t bid_qty_upper_limit; int32_t bid_qty_lower_limit; int32_t bid_qty_unit; int32_t ask_qty_upper_limit; int32_t ask_qty_lower_limit; int32_t ask_qty_unit; int32_t market_bid_qty_upper_limit; int32_t market_bid_qty_lower_limit; int32_t market_bid_qty_unit; int32_t market_ask_qty_upper_limit; int32_t market_ask_qty_lower_limit; int32_t market_ask_qty_unit; uint64_t unknown[4];} EMTQuoteFullInfo
股票行情全量静态信息
Definition emt_quote_struct.h:306
#define EMQ_ERR_MSG_LEN
Definition emt_quote_struct.h:21
股转静态信息数据
Definition emt_quote_struct.h:464
double upper_limit_price
Definition emt_quote_struct.h:531
double tick_size
Definition emt_quote_struct.h:521
char other_status[4]
Definition emt_quote_struct.h:586
char trade_type
Definition emt_quote_struct.h:554
double transfer_rate
double 过户费率
Definition emt_quote_struct.h:498
char reserved[2]
预留字段
Definition emt_quote_struct.h:581
double lower_limit_price
Definition emt_quote_struct.h:535
char trade_status
Definition emt_quote_struct.h:543
EMQ_EXCHANGE_TYPE exchange_type
交易所代码
Definition emt_quote_struct.h:466
int32_t market_maker_count
Definition emt_quote_struct.h:591
int32_t update_time
Definition emt_quote_struct.h:594
double transaction_rate
Definition emt_quote_struct.h:494
int32_t trade_unit
int32交易单位 申报数量的单位
Definition emt_quote_struct.h:583
int32_t end_date
Definition emt_quote_struct.h:506
char industry_type[6]
Definition emt_quote_struct.h:476
int32_t sell_quantity_unit
int32 卖数量单位
Definition emt_quote_struct.h:512
double denomination
Definition emt_quote_struct.h:482
double conv_ratio
Definition emt_quote_struct.h:538
char is_securities_loan
Definition emt_quote_struct.h:573
int32_t min_declare_count
Definition emt_quote_struct.h:515
int32_t buy_quantity_unit
int32 买数量单位
Definition emt_quote_struct.h:510
char ticker_name[8]
char[8] 证券简称 GBK
Definition emt_quote_struct.h:472
double stamp_duty_rate
double 印花税率
Definition emt_quote_struct.h:496
double block_trade_lower_limit_price
double 大宗交易价格下限 预留
Definition emt_quote_struct.h:598
char trading_ring[2]
char[2] 交易场所 预留
Definition emt_quote_struct.h:567
double block_trade_upper_limit_price
double 大宗交易价格上限 预留
Definition emt_quote_struct.h:596
char network_note_flag
char 网络投票标志 预留
Definition emt_quote_struct.h:562
char is_financing_today
Definition emt_quote_struct.h:576
int32_t param_type
Definition emt_quote_struct.h:518
char ex_divide_flag
Definition emt_quote_struct.h:560
char constituent_stock_flag
char 成分股标志 预留
Definition emt_quote_struct.h:540
int64_t nonrestricted_share_capital
int64 非限售股本
Definition emt_quote_struct.h:486
EMQ_TICKER_TYPE ticker_type
证券类型
Definition emt_quote_struct.h:468
char symbol_type
Definition emt_quote_struct.h:549
double sub_trade_limit_price_param
Definition emt_quote_struct.h:527
int64_t total_share_capital
int64 总股本
Definition emt_quote_struct.h:484
double first_trade_limit_price_param
Definition emt_quote_struct.h:524
double last_year_eps
Definition emt_quote_struct.h:489
char is_financing
Definition emt_quote_struct.h:570
double this_year_eps
double 今年每股收益 预留
Definition emt_quote_struct.h:491
char suspend_flag
Definition emt_quote_struct.h:557
char market_level
Definition emt_quote_struct.h:565
char currency_type[2]
Definition emt_quote_struct.h:479
char is_securities_loan_today
Definition emt_quote_struct.h:579
int32_t declare_upper_limit
int32 每笔限量 申报数量上限
Definition emt_quote_struct.h:508
char ticker[8]
合约代码(不包含交易所信息),不带空格,以'\0'结尾
Definition emt_quote_struct.h:470
int32_t start_date
Definition emt_quote_struct.h:503
int32_t list_date
int32 挂牌日期 CCYYMMDD
Definition emt_quote_struct.h:500
港股静态信息数据
Definition emt_quote_struct.h:375
EMQ_EXCHANGE_TYPE exchange_type
交易所代码
Definition emt_quote_struct.h:377
char currency_denomination_type[3]
面值货币种类 港币:HKD; 美元:USD;人民币:CNY
Definition emt_quote_struct.h:419
char ticker_name_zh[64]
中文证券简称 GBK编码
Definition emt_quote_struct.h:456
char ticker_name_en[64]
英文证券全称
Definition emt_quote_struct.h:459
double interest
利息 对于债券填写交收日利息 仅针对利息通过 CCASS 系统来结算的债券
Definition emt_quote_struct.h:439
char assist_symbol[5]
辅助证券代码 权证的正股代码
Definition emt_quote_struct.h:405
char ticker[EMQ_HK_TICKER_LEN]
合约代码(不包含交易所信息),不带空格,以'\0'结尾
Definition emt_quote_struct.h:383
char reserved1[4]
保留字段
Definition emt_quote_struct.h:422
char market_type[4]
市场种类
Definition emt_quote_struct.h:394
double denomination
面值 股票面值 单位:元
Definition emt_quote_struct.h:436
char reserverd3[16]
保留字段
Definition emt_quote_struct.h:445
int32_t round_lot
Definition emt_quote_struct.h:430
char symbol_type[4]
Definition emt_quote_struct.h:402
char short_form_ticke_en[EMQ_TICKER_LEN]
英文证券名简称
Definition emt_quote_struct.h:389
char currency_unit
Definition emt_quote_struct.h:416
char currency_type[3]
Definition emt_quote_struct.h:410
char reserved2[4]
保留字段
Definition emt_quote_struct.h:433
char isin_ticker[EMQ_TICKER_LEN]
ISIN 代码
Definition emt_quote_struct.h:386
EMQ_TICKER_TYPE ticker_type
证券类型
Definition emt_quote_struct.h:380
char text[64]
Definition emt_quote_struct.h:453
double pre_close_price
前收盘价 当日除权(息)后收盘价格
Definition emt_quote_struct.h:442
char issueDate[8]
上市日期 YYYYMMDD
Definition emt_quote_struct.h:425
指数行情结构体
Definition emt_quote_struct.h:33
char ticker[EMQ_TICKER_LEN]
合约代码(不包含交易所信息),不带空格,以"\0"结尾
Definition emt_quote_struct.h:37
int64_t qty
数量,为总成交量(单位股,与交易所一致)
Definition emt_quote_struct.h:51
EMQ_EXCHANGE_TYPE exchange_id
交易所代码
Definition emt_quote_struct.h:35
double high_price
最高价
Definition emt_quote_struct.h:47
double low_price
最低价
Definition emt_quote_struct.h:49
double last_price
最新价
Definition emt_quote_struct.h:45
double open_price
今日开盘价
Definition emt_quote_struct.h:43
int64_t data_time
行情时间,格式为YYYYMMDDHHMMSSssss
Definition emt_quote_struct.h:39
double turnover
成交金额,为总成交金额(单位元,与交易所一致)
Definition emt_quote_struct.h:53
double pre_close_price
昨日收盘价
Definition emt_quote_struct.h:41
北交所股转额外扩展数据
Definition emt_quote_struct.h:146
char ticker_relevant_info[8]
Definition emt_quote_struct.h:170
double LYR
静态市盈率
Definition emt_quote_struct.h:148
double TTM
动态市盈率
Definition emt_quote_struct.h:150
int64_t open_interest
合约持仓量
Definition emt_quote_struct.h:156
double price_change1
价格升跌一 较昨日收盘价涨跌
Definition emt_quote_struct.h:152
double price_change2
价格涨跌二 较上一笔成交涨跌
Definition emt_quote_struct.h:154
债券额外数据结构体
Definition emt_quote_struct.h:79
double ma_bond_ask_price
债券加权平均委卖价格(SH)
Definition emt_quote_struct.h:83
double ma_bond_bid_price
债券加权平均委买价格(SH)
Definition emt_quote_struct.h:81
double yield_to_maturity
债券到期收益率(SH)
Definition emt_quote_struct.h:85
基金额外数据结构体
Definition emt_quote_struct.h:58
double etf_sell_money
ETF赎回金额(SH)
Definition emt_quote_struct.h:72
int32_t etf_sell_count
ETF赎回笔数(SH)
Definition emt_quote_struct.h:64
double pre_iopv
基金T-1日净值(SZ)
Definition emt_quote_struct.h:74
double etf_buy_money
ETF申购金额(SH)
Definition emt_quote_struct.h:68
double iopv
基金实时参考净值(SH,SZ)
Definition emt_quote_struct.h:60
double etf_buy_qty
ETF申购数量(SH)
Definition emt_quote_struct.h:66
int32_t etf_buy_count
ETF申购笔数(SH)
Definition emt_quote_struct.h:62
double etf_sell_qty
ETF赎回数量(SH)
Definition emt_quote_struct.h:70
港股通额外扩展数据
Definition emt_quote_struct.h:124
int32_t complex_event_end_time
冷静期结束时间 HHmmssSSS
Definition emt_quote_struct.h:140
double buyside_low_limit_price
买盘下限价
Definition emt_quote_struct.h:132
double refer_price
参考价
Definition emt_quote_struct.h:126
double buyside_up_limit_price
买盘上限价
Definition emt_quote_struct.h:130
int32_t complex_event_start_time
冷静期开始时间 HHmmssSSS
Definition emt_quote_struct.h:138
double sellside_up_limit_price
卖盘上限价
Definition emt_quote_struct.h:134
double sellside_low_limit_price
卖盘下限价
Definition emt_quote_struct.h:136
double nominal_price
按盘价
Definition emt_quote_struct.h:128
期权额外数据
Definition emt_quote_struct.h:102
int64_t last_enquiry_time
最近询价时间(SH)
Definition emt_quote_struct.h:108
int64_t auction_qty
波段性中断集合竞价虚拟匹配量(SH)
Definition emt_quote_struct.h:106
int64_t total_long_positon
持仓量(张)(目前未填写)
Definition emt_quote_struct.h:114
double settl_price
今日结算价(目前未填写)
Definition emt_quote_struct.h:118
int64_t pre_total_long_positon
昨日持仓量(张)(目前未填写)
Definition emt_quote_struct.h:112
double auction_price
波段性中断参考价(SH)
Definition emt_quote_struct.h:104
double pre_settl_price
昨日结算价(目前未填写)
Definition emt_quote_struct.h:116
快照行情结构体
Definition emt_quote_struct.h:176
double upper_limit_price
涨停价(SZ)
Definition emt_quote_struct.h:198
EMQ_TICKER_TYPE data_type
证券类别;1:股票,基金,债券,权证,质押式回购;2:期权;决定了union是哪种数据类型
Definition emt_quote_struct.h:276
char ticker[EMQ_TICKER_LEN]
合约代码(不包含交易所信息),不带空格。以"\0"结尾
Definition emt_quote_struct.h:180
int64_t qty
数量,为总成交量(单位股,与交易所一致)
Definition emt_quote_struct.h:206
EMQ_EXCHANGE_TYPE exchange_id
交易所代码
Definition emt_quote_struct.h:178
double lower_limit_price
跌停价(SZ)
Definition emt_quote_struct.h:200
EMTMarketDataWarrantExData warrant
权证额外数据
Definition emt_quote_struct.h:267
int64_t total_bid_qty
委托买入总量(SH,SZ)
Definition emt_quote_struct.h:228
int64_t total_buy_count
买入总笔数(SH)
Definition emt_quote_struct.h:249
EMTMarketDataHkExData hk
港股额外数据
Definition emt_quote_struct.h:271
char ticker_status[8]
当前交易状态说明(SH)
Definition emt_quote_struct.h:225
double high_price
最高价
Definition emt_quote_struct.h:190
int32_t duration_after_buy
买入委托成交最大等待时间(SH)
Definition emt_quote_struct.h:253
int32_t num_bid_orders
买方委托价位数(SH)
Definition emt_quote_struct.h:257
EMTMarketDataBondExData bond
债券额外数据
Definition emt_quote_struct.h:263
int32_t num_ask_orders
卖方委托价位数(SH)
Definition emt_quote_struct.h:259
double avg_price
当日均价=(turnover/qty)
Definition emt_quote_struct.h:210
EMTMarketDataFundExData fund
基金额外数据
Definition emt_quote_struct.h:265
double low_price
最低价
Definition emt_quote_struct.h:192
double cancel_buy_money
买入撤单金额(SH)
Definition emt_quote_struct.h:245
EMTMarketDataOptionExData opt
期权额外数据
Definition emt_quote_struct.h:269
double ask[10]
十档申卖价
Definition emt_quote_struct.h:216
int32_t cancel_buy_count
买入撤单笔数(SH)
Definition emt_quote_struct.h:237
double cancel_sell_qty
卖出撤单数量(SH)
Definition emt_quote_struct.h:243
int64_t trades_count
成交笔数
Definition emt_quote_struct.h:223
double ma_bid_price
加权平均委买价格(SH,SZ)
Definition emt_quote_struct.h:232
double bid[10]
十档申买价
Definition emt_quote_struct.h:214
double last_price
最新价
Definition emt_quote_struct.h:184
int64_t bid_qty[10]
十档申买量
Definition emt_quote_struct.h:218
double ma_ask_price
加权平均委卖价格(SH,SZ)
Definition emt_quote_struct.h:234
int64_t total_ask_qty
委托卖出总量(SH,SZ)
Definition emt_quote_struct.h:230
double open_price
今开盘价
Definition emt_quote_struct.h:188
int32_t duration_after_sell
卖出委托成交最大等待时间(SH)
Definition emt_quote_struct.h:255
int64_t data_time
行情时间,格式为YYYYMMDDHHMMSSssss
Definition emt_quote_struct.h:202
double cancel_sell_money
卖出撤单金额(SH)
Definition emt_quote_struct.h:247
int32_t cancel_sell_count
卖出撤单笔数(SH)
Definition emt_quote_struct.h:239
int64_t ask_qty[10]
十档申卖量
Definition emt_quote_struct.h:220
double cancel_buy_qty
买入撤单数量(SH)
Definition emt_quote_struct.h:241
int64_t total_sell_count
卖出总笔数(SH)
Definition emt_quote_struct.h:251
double turnover
成交金额,为总成交金额(单位元,与交易所一致)
Definition emt_quote_struct.h:208
EMTMarketDataBJGZExData bjgz
北交所股转额外数据
Definition emt_quote_struct.h:273
double pre_close_price
昨日收盘价
Definition emt_quote_struct.h:186
double close_price
今收盘价(SH)
Definition emt_quote_struct.h:194
权证额外数据
Definition emt_quote_struct.h:90
double total_warrant_exec_qty
权证执行的总数量(SH)
Definition emt_quote_struct.h:92
double warrant_upper_price
权证涨停价格(元)(SH)
Definition emt_quote_struct.h:96
double warrant_lower_price
权证跌停价格(元)(SH)
Definition emt_quote_struct.h:94
股票行情静态信息
Definition emt_quote_struct.h:281
double upper_limit_price
涨停板价
Definition emt_quote_struct.h:293
char ticker[EMQ_TICKER_LEN]
合约代码(不包含交易所信息),不带空格,以'\0'结尾
Definition emt_quote_struct.h:285
EMQ_EXCHANGE_TYPE exchange_id
交易所代码
Definition emt_quote_struct.h:283
double lower_limit_price
跌停板价
Definition emt_quote_struct.h:295
double price_tick
最小变动价位
Definition emt_quote_struct.h:297
char ticker_name[EMQ_TICKER_NAME_LEN]
合约名称
Definition emt_quote_struct.h:287
int32_t sell_qty_unit
合约最小交易量(卖)
Definition emt_quote_struct.h:301
int32_t buy_qty_unit
合约最小交易量(买)
Definition emt_quote_struct.h:299
EMQ_TICKER_TYPE ticker_type
合约类型
Definition emt_quote_struct.h:289
double pre_close_price
昨收盘
Definition emt_quote_struct.h:291
逐笔重建数据
Definition emt_quote_struct.h:603
sse_hpf_exe_pkt sh_exe
/**< 沪市逐笔委托*/
Definition emt_quote_struct.h:611
sse_hpf_order_pkt sh_order
/**< 深市债券逐笔成交*/
Definition emt_quote_struct.h:610
sze_hpf_bond_exe_pkt sz_bond_exe
/**< 深市债券逐笔委托*/
Definition emt_quote_struct.h:608
sze_hpf_bond_order_pkt sz_bond_order
/**< 深市逐笔成交*/
Definition emt_quote_struct.h:607
sze_hpf_exe_pkt sz_exe
/**< 深市逐笔委托*/
Definition emt_quote_struct.h:606
sse_msg_bond_tick_pkt sh_bond_tick
/**< 沪市逐笔成交*/
Definition emt_quote_struct.h:612
sze_hpf_order_pkt sz_order
Definition emt_quote_struct.h:605
Definition emt_quote_struct.h:617
uint16_t channel
Definition emt_quote_struct.h:619
uint64_t sequence
Definition emt_quote_struct.h:620
EMTRebuildData * data
Definition emt_quote_struct.h:622
uint64_t request_id
Definition emt_quote_struct.h:621
int8_t data_type
Definition emt_quote_struct.h:618
响应错误结构体
Definition emt_quote_struct.h:627
int32_t error_id
错误代码
Definition emt_quote_struct.h:629
char error_msg[EMQ_ERR_MSG_LEN]
错误信息
Definition emt_quote_struct.h:631
指定的合约
Definition emt_quote_struct.h:24
char ticker[EMQ_TICKER_LEN]
合约代码(不包含交易所信息)例如"600000",不带空格,以'\0'结尾
Definition emt_quote_struct.h:28
EMQ_EXCHANGE_TYPE exchange_id
交易所代码
Definition emt_quote_struct.h:26
最新价
Definition emt_quote_struct.h:364
char ticker[EMQ_TICKER_LEN]
合约代码(不包含交易所信息),不带空格,以'\0'结尾
Definition emt_quote_struct.h:368
EMQ_EXCHANGE_TYPE exchange_type
交易所代码
Definition emt_quote_struct.h:366
double last_price
最新价
Definition emt_quote_struct.h:370
Definition sse_hpf_define.h:125
Definition sse_hpf_define.h:82
Definition sse_hpf_define.h:322
Definition sze_hpf_define.h:283
Definition sze_hpf_define.h:262
Definition sze_hpf_define.h:126
Definition sze_hpf_define.h:116