Xlight API用户手册 v1.6.0.23
Xlight极速柜台接口文档
载入中...
搜索中...
未找到
xlt_quote_define.h
浏览该文件的文档.
1#pragma once
3
4namespace x1 {
20
21 enum QuoteRxMode: uint8_t {
25 };
26
27 typedef struct quote_thread_t {
28 int cpu_affinity = -1;
29 bool busy_poll = false;
30 uint16_t mc_count = 0;
33}
定义 xlt_data_type.h:13
QuoteRxMode
定义 xlt_quote_define.h:21
@ RX_MODE_AUTO
自动选择行情接收模式,优先使用EFVI,如果EFVI不可用则回退到内核socket模式
定义 xlt_quote_define.h:22
@ RX_MODE_EFVI
使用EFVI接收行情数据
定义 xlt_quote_define.h:24
@ RX_MODE_SOCKET
使用内核socket接收行情数据
定义 xlt_quote_define.h:23
QuoteMCType
定义 xlt_quote_define.h:5
@ HPF_SZSE_L2_BOND_SNAP
盛立深交所L2债券快照频道组播组
定义 xlt_quote_define.h:17
@ XLT_SSE_L1
XLIGHT上交所L1行情频道组播组
定义 xlt_quote_define.h:6
@ HPF_SSE_L2_STOCK_SNAP
盛立上交所L2股票快照频道组播组
定义 xlt_quote_define.h:9
@ HPF_SSE_L2_INDEX
盛立上交所L2指数快照频道组播组
定义 xlt_quote_define.h:11
@ HPF_SZSE_L2_STOCK_TICK
盛立深交所L2股票逐笔频道组播组
定义 xlt_quote_define.h:15
@ HPF_SSE_L2_BOND_TICK
盛立上交所L2债券逐笔频道组播组
定义 xlt_quote_define.h:13
@ HPF_SZSE_L2_BOND_TICK
盛立深交所L2债券逐笔频道组播组
定义 xlt_quote_define.h:18
@ HPF_SSE_L2_STOCK_TICK
盛立上交所L2股票逐笔频道组播组
定义 xlt_quote_define.h:10
@ XLT_SZSE_L1
XLIGHT深交所L1行情频道组播组
定义 xlt_quote_define.h:7
@ HPF_SSE_L2_BOND_SNAP
盛立上交所L2债券快照频道组播组
定义 xlt_quote_define.h:12
@ HPF_SZSE_L2_STOCK_SNAP
盛立深交所L2股票快照频道组播组
定义 xlt_quote_define.h:14
@ HPF_SZSE_L2_INDEX
盛立深交所L2指数快照频道组播组
定义 xlt_quote_define.h:16
struct x1::quote_thread_t quote_thread_t
定义 xlt_quote_define.h:27
bool busy_poll
纯忙等模式,为true时收包空闲使用_mm_pause纯用户态自旋,不产生syscall;为false时使用sched_yield让出CPU。绑定隔离核场景建议设为true。
定义 xlt_quote_define.h:29
QuoteMCType mc_types[64]
线程负责接收的行情组播类型列表,每个组播类型对应一条行情组播地址记录
定义 xlt_quote_define.h:31
int cpu_affinity
线程CPU亲和力设置,-1表示不设置亲和力,0表示绑定到CPU0,1表示绑定到CPU1,以此类推
定义 xlt_quote_define.h:28
uint16_t mc_count
线程负责接收的行情组播数量,决定了mc_types列表的长度
定义 xlt_quote_define.h:30
本文件定义XLT 行情API中使用的基本数据类型和常量