Xlight API用户手册 v1.6.0.23
Xlight极速柜台接口文档
载入中...
搜索中...
未找到
x1 命名空间参考

命名空间

namespace  efh
 

struct  quote_thread_t
 
struct  xlt_asset_info_t
 账户资金信息 更多...
 
struct  xlt_brief_asset_t
 账户资金简要信息 更多...
 
struct  xlt_brief_position_t
 持仓简要信息 更多...
 
struct  xlt_cancel_order_info_t
 撤单请求数据结构 更多...
 
struct  xlt_cancel_response_t
 撤单申报成功响应 更多...
 
struct  xlt_cluster_fund_transfer_request_t
 双中心资金划转请求 更多...
 
struct  xlt_cluster_fund_transfer_result_t
 双中心资金划转结果 更多...
 
struct  xlt_counter_fund_transfer_request_t
 主柜资金划转申请 更多...
 
struct  xlt_counter_fund_transfer_result_t
 主柜资金划转结果 更多...
 
struct  xlt_error_info_t
 错误信息 更多...
 
struct  xlt_fund_transfer_exec_request_t
 资金划转执行请求 更多...
 
struct  xlt_fund_transfer_exec_result_t
 资金划转执行结果 更多...
 
struct  xlt_fund_transfer_head_t
 资金划转消息头 更多...
 
struct  xlt_init_asset_info_t
 日初资金信息结构体 更多...
 
struct  xlt_init_position_info_t
 日初持仓结构体 更多...
 
struct  xlt_internal_quote_login_info_t
 行情登陆流水信息 更多...
 
struct  xlt_internal_token_info_t
 token信息 更多...
 
union  xlt_l1_quote_union_t
 L1行情联合体结构体 更多...
 
struct  xlt_level1_quote_t
 L1行情数据结构体,包含行情类型和对应的行情数据 更多...
 
struct  xlt_msg_desc_t
 消息推送描述信息 更多...
 
struct  xlt_order_book_error_t
 订单簿,订单错误通知结构体,包括申报失败、撤单失败等信息 更多...
 
struct  xlt_order_book_insert_t
 订单簿,新订单通知结构体 更多...
 
union  xlt_order_book_report_union_t
 订单簿,订单响应回报联合体 更多...
 
struct  xlt_order_book_update_t
 订单簿,订单变更通知结构体,包括订单状态变更、撤单、成交等信息 更多...
 
struct  xlt_order_end_t
 订单结束通知 更多...
 
struct  xlt_order_error_response_t
 申报失败响应(新订单申报失败,撤单失败) 更多...
 
struct  xlt_order_info_t
 订单信息结构体 更多...
 
struct  xlt_order_insert_info_t
 新订单请求数据结构 更多...
 
struct  xlt_order_query_param_t
 订单查询请求-条件查询 更多...
 
struct  xlt_order_response_t
 新订单申报成功响应 更多...
 
struct  xlt_page_query_reference_t
 查询定位结构体 用于记录每个分表的查询位置,用于分页查询 更多...
 
struct  xlt_position_info_t
 持仓结构体 更多...
 
union  xlt_quote_data_union_t
 
struct  xlt_rebuild_tick_quote_req_t
 重建逐笔数据请求结构体 更多...
 
struct  xlt_sse_l1_index_t
 上交所level1指数行情快照 更多...
 
struct  xlt_sse_l1_snapshot_t
 上交所level1快照行情 更多...
 
struct  xlt_sse_l2_bond_tick_t
 上交所 Level-2 债券逐笔消息 更多...
 
struct  xlt_sse_l2_tick_t
 上交所 Level-2 竞价逐笔消息 更多...
 
struct  xlt_static_quote_full_info_t
 股票行情全量静态信息 更多...
 
struct  xlt_szse_l1_index_t
 深交所level1指数快照行情数据结构体 更多...
 
struct  xlt_szse_l1_snapshot_bond_t
 深交所level1债券快照行情数据结构体 更多...
 
struct  xlt_szse_l1_snapshot_t
 深交所level1快照行情数据结构体 更多...
 
struct  xlt_szse_l2_order_t
 深交所Level2逐笔委托 更多...
 
struct  xlt_szse_l2_trade_t
 深交所Level2逐笔成交 更多...
 
union  xlt_tick_quote_union_t
 xlight逐笔行情数据 更多...
 
struct  xlt_trade_account_info_t
 交易账户信息 更多...
 
struct  xlt_trade_report_t
 成交回报 更多...
 
struct  xlt_user_terminal_info_t
 申报用户的ip和mac等信息 更多...
 
class  XLTAccountIndexList
 只读账号索引列表 更多...
 
class  XLTAssetList
 只读资金信息列表 更多...
 
class  XLTBriefAssetList
 只读简要资金信息列表 更多...
 
class  XLTBriefPositionList
 只读简要持仓信息列表 更多...
 
class  XLTClusterFundTransferRequestList
 只读双中心资金划转请求信息列表 更多...
 
class  XLTClusterFundTransferResultList
 只读双中心资金划转结果信息列表 更多...
 
class  XLTFundTransferExecResultList
 只读资金划转执行结果信息列表 更多...
 
class  XLTFundTransferRequestList
 只读资金划转请求信息列表 更多...
 
class  XLTFundTransferResultList
 只读资金划转结果信息列表 更多...
 
class  XLTInitAssetList
 只读初始资金信息列表 更多...
 
class  XLTInitPositionList
 只读初始持仓信息列表 更多...
 
class  XLTLevel1QuoteList
 只读Level1行情信息列表 更多...
 
class  XLTOrderList
 只读订单信息列表 更多...
 
class  XLTPositionList
 只读持仓信息列表 更多...
 
class  XLTPrivilege
 管理接口类 更多...
 
class  XLTPrivilegeConfig
 
class  XLTPrivilegeSpi
 管理接口回调类 更多...
 
class  XLTQuoteApi
 接口类 更多...
 
class  XLTQuoteConfig
 API行情配置类 用户需要在调用XLTQuoteApi::initialize方法前,创建此类实例,并设置相应的配置参数,然后将此实例传递给XLTQuoteApi::initialize方法。 更多...
 
class  XLTQuoteDecoder
 xlight行情解码迭代器 更多...
 
struct  XLTQuoteItem
 get_next 返回的行情数据项 更多...
 
class  XLTQuoteSpi
 行情回调接口 更多...
 
class  XLTSecurityFilter
 证券过滤器类,提供添加过滤证券代码和检查证券代码是否被订阅的功能 更多...
 
class  XLTStaticQuoteList
 只读静态行情信息列表 更多...
 
class  XLTTradeAccountInfoList
 只读交易账号信息列表 更多...
 
class  XLTTradeApi
 接口类 更多...
 
class  XLTTradeConfig
 
class  XLTTradeReportList
 只读成交回报信息列表 更多...
 
class  XLTTradeSpi
 交易回调类 更多...
 

类型定义

typedef int64_t amount_t
 金额 类型
 
typedef int64_t price_t
 价格 类型
 
typedef int64_t quantity_t
 数量 类型
 
typedef struct x1::xlt_internal_quote_login_info_t xlt_internal_quote_login_info_t
 行情登陆流水信息
 
typedef struct x1::xlt_fund_transfer_exec_request_t xlt_fund_transfer_exec_request_t
 资金划转执行请求
 
typedef struct x1::xlt_fund_transfer_exec_result_t xlt_fund_transfer_exec_result_t
 资金划转执行结果
 
typedef union x1::xlt_quote_data_union_t xlt_quote_data_union_t
 
typedef struct x1::XLTQuoteItem XLTQuoteItem
 get_next 返回的行情数据项
 
typedef struct x1::quote_thread_t quote_thread_t
 
typedef struct x1::xlt_static_quote_full_info_t xlt_static_quote_full_info_t
 股票行情全量静态信息
 
typedef struct x1::xlt_sse_l1_index_t xlt_sse_l1_index_t
 上交所level1指数行情快照
 
typedef struct x1::xlt_sse_l1_snapshot_t xlt_sse_l1_snapshot_t
 上交所level1快照行情
 
typedef struct x1::xlt_szse_l1_index_t xlt_szse_l1_index_t
 深交所level1指数快照行情数据结构体
 
typedef struct x1::xlt_szse_l1_snapshot_t xlt_szse_l1_snapshot_t
 深交所level1快照行情数据结构体
 
typedef struct x1::xlt_szse_l1_snapshot_bond_t xlt_szse_l1_snapshot_bond_t
 深交所level1债券快照行情数据结构体
 
typedef union x1::xlt_l1_quote_union_t xlt_l1_quote_union_t
 L1行情联合体结构体
 
typedef struct x1::xlt_level1_quote_t xlt_level1_quote_t
 L1行情数据结构体,包含行情类型和对应的行情数据
 
typedef struct x1::xlt_sse_l2_tick_t xlt_sse_l2_tick_t
 上交所 Level-2 竞价逐笔消息
 
typedef struct x1::xlt_sse_l2_bond_tick_t xlt_sse_l2_bond_tick_t
 上交所 Level-2 债券逐笔消息
 
typedef struct x1::xlt_szse_l2_order_t xlt_szse_l2_order_t
 深交所Level2逐笔委托
 
typedef struct x1::xlt_szse_l2_trade_t xlt_szse_l2_trade_t
 深交所Level2逐笔成交
 
typedef struct x1::xlt_rebuild_tick_quote_req_t xlt_rebuild_tick_quote_req_t
 重建逐笔数据请求结构体
 
typedef union x1::xlt_tick_quote_union_t xlt_tick_quote_union_t
 xlight逐笔行情数据
 
typedef struct x1::xlt_user_terminal_info_t xlt_user_terminal_info_t
 申报用户的ip和mac等信息
 
typedef struct x1::xlt_page_query_reference_t xlt_page_query_reference_t
 查询定位结构体 用于记录每个分表的查询位置,用于分页查询
 
typedef uint32_t trade_message_type_t
 交易消息类型
 
typedef struct x1::xlt_order_insert_info_t xlt_order_insert_info_t
 新订单请求数据结构
 
typedef struct x1::xlt_cancel_order_info_t xlt_cancel_order_info_t
 撤单请求数据结构
 
typedef struct x1::xlt_init_asset_info_t xlt_init_asset_info_t
 日初资金信息结构体
 
typedef struct x1::xlt_init_position_info_t xlt_init_position_info_t
 日初持仓结构体
 
typedef struct x1::xlt_msg_desc_t xlt_msg_desc_t
 消息推送描述信息
 
typedef struct x1::xlt_order_response_t xlt_order_response_t
 新订单申报成功响应
 
typedef struct x1::xlt_cancel_response_t xlt_cancel_response_t
 撤单申报成功响应
 
typedef struct x1::xlt_trade_report_t xlt_trade_report_t
 成交回报
 
typedef struct x1::xlt_order_error_response_t xlt_order_error_response_t
 申报失败响应(新订单申报失败,撤单失败)
 
typedef struct x1::xlt_order_end_t xlt_order_end_t
 订单结束通知
 
typedef struct x1::xlt_order_info_t xlt_order_info_t
 订单信息结构体
 
typedef union x1::xlt_order_book_report_union_t xlt_order_book_report_union_t
 订单簿,订单响应回报联合体
 
typedef struct x1::xlt_order_book_insert_t xlt_order_book_insert_t
 订单簿,新订单通知结构体
 
typedef struct x1::xlt_order_book_update_t xlt_order_book_update_t
 订单簿,订单变更通知结构体,包括订单状态变更、撤单、成交等信息
 
typedef struct x1::xlt_order_book_error_t xlt_order_book_error_t
 订单簿,订单错误通知结构体,包括申报失败、撤单失败等信息
 
typedef struct x1::xlt_position_info_t xlt_position_info_t
 持仓结构体
 
typedef struct x1::xlt_asset_info_t xlt_asset_info_t
 账户资金信息
 
typedef struct x1::xlt_fund_transfer_head_t xlt_fund_transfer_head_t
 资金划转消息头
 
typedef struct x1::xlt_counter_fund_transfer_request_t xlt_counter_fund_transfer_request_t
 主柜资金划转申请
 
typedef struct x1::xlt_counter_fund_transfer_result_t xlt_counter_fund_transfer_result_t
 主柜资金划转结果
 
typedef struct x1::xlt_cluster_fund_transfer_request_t xlt_cluster_fund_transfer_request_t
 双中心资金划转请求
 
typedef struct x1::xlt_cluster_fund_transfer_result_t xlt_cluster_fund_transfer_result_t
 双中心资金划转结果
 
typedef struct x1::xlt_trade_account_info_t xlt_trade_account_info_t
 交易账户信息
 

枚举

enum class  ApiLogLevel : uint8_t {
  LOG_FATAL = 0 , LOG_ERROR = 1 , LOG_WARN = 2 , LOG_INFO = 3 ,
  LOG_DEBUG = 4 , LOG_TRACE = 5
}
 API日志级别 更多...
 
enum class  TerminalType : uint8_t {
  PC = 1 , ANDROID , IOS , WP ,
  STATION , TEL , PC_LINUX
}
 终端类型 更多...
 
enum class  ExchangeIndex : uint8_t { INIT = 0 , SH = 1 , SZ = 2 }
 交易所编号定义 更多...
 
enum class  Side : uint8_t { BUY = 1 , SELL = 2 }
 买卖方向 更多...
 
enum class  QuoteSecurityType : uint8_t {
  STOCK = 1 , FUND = 2 , BOND = 3 , OPTION = 4 ,
  INDEX = 5 , UNKNOWN = 99
}
 证券类型 更多...
 
enum class  QualificationType : uint8_t { PUBLIC = 1 , COMMON = 2 , ORGANIZATION = 3 , UNKNOWN = 99 }
 证券适当性枚举类型 更多...
 
enum  QuoteMsgType : uint8_t {
  SSE_L1_INDEX = 0 , SSE_L1_SNAPSHOT = 1 , SZSE_L1_INDEX = 2 , SZSE_L1_SNAPSHOT = 3 ,
  SZSE_L1_BOND_SNAPSHOT = 4 , SSE_L2_TICK = 32 , SSE_L2_BOND_TICK = 33 , SZSE_L2_ORDER = 64 ,
  SZSE_L2_TRADE = 65
}
 xlight 行情消息类型 更多...
 
enum  QuoteMCType : uint16_t {
  XLT_SSE_L1 = 1 , XLT_SZSE_L1 = 2 , HPF_SSE_L2_STOCK_SNAP = 101 , HPF_SSE_L2_STOCK_TICK = 102 ,
  HPF_SSE_L2_INDEX = 103 , HPF_SSE_L2_BOND_SNAP = 104 , HPF_SSE_L2_BOND_TICK = 105 , HPF_SZSE_L2_STOCK_SNAP = 106 ,
  HPF_SZSE_L2_STOCK_TICK = 107 , HPF_SZSE_L2_INDEX = 108 , HPF_SZSE_L2_BOND_SNAP = 109 , HPF_SZSE_L2_BOND_TICK = 110
}
 
enum  QuoteRxMode : uint8_t { RX_MODE_AUTO = 0 , RX_MODE_SOCKET = 1 , RX_MODE_EFVI = 2 }
 
enum class  TradeResumeType : uint8_t { RESTART = 1 , QUICK = 2 , SPECIFY = 3 , NONE = 99 }
 交易消息推送类型 更多...
 
enum class  OrderType : uint8_t {
  NONE = 0 , BEST_FIVE_PRICE_OR_CANCEL = 1 , LIMIT_PRICE = 2 , BEST_FIVE_PRICE_TO_LIMIT = 3 ,
  SELF_BEST = 4 , COUNTER_BEST = 5 , MARKET_PRICE_OR_CANCEL = 6 , MARKET_PRICE_ALL_OR_CANCEL = 7
}
 报单价格类型 更多...
 
enum class  BusinessType : uint8_t {
  NONE = 0 , CASH = 1 , BOND_MATCH = 2 , ETF = 3 ,
  ISSUE = 4 , ALLOT = 5 , BOND_CONVERT = 6 , PLEDGE_STYLE_REPO = 7
}
 业务类型 更多...
 
enum class  OrderStatus : uint8_t {
  INIT = 0 , ALL_TRADED = 1 , PART_TRADED = 2 , PART_CANCELED = 3 ,
  NOT_TRADED = 4 , ALL_CANCELED = 5 , REJECTED = 6 , COUNT = 7
}
 订单状态 更多...
 
enum  ExOrdStatus : char {
  ORD_STATUS_NEW = '0' , ORD_STATUS_PARTIAL_FILLED = '1' , ORD_STATUS_FILLED = '2' , ORD_STATUS_CANCELLED = '4' ,
  ORD_STATUS_REJECT = '8'
}
 交易所订单状态 更多...
 
enum  ExExecType : char { EXEC_TYPE_NEW = '0' , EXEC_TYPE_CANCELED = '4' , EXEC_TYPE_REJECT = '8' , EXEC_TYPE_TRADE = 'F' }
 交易所执行类型 更多...
 
enum  TradeMessageType : trade_message_type_t { REPORT = 1 , RAW_REPORT = 1<<1 , ORDER_BOOK = 1<<2 }
 交易消息类型枚举 更多...
 
enum class  TradeReportType : uint8_t {
  UNKNOWN = 0 , ORDER_RESPONSE = 1 , CANCEL_RESPONSE = 2 , TRADE_REPORT = 3 ,
  ORDER_ERROR_RESPONSE = 4 , ORDER_END = 5
}
 订单回报通知类型 更多...
 
enum class  FundTransSource : uint8_t { ADMIN = 0 , OTHER = 1 }
 资金划转请求来源 更多...
 
enum class  FundTransSide : uint8_t { UNKNOWN = 0 , IN = 1 , OUT = 2 }
 资金划转方向 更多...
 
enum class  FundTransStatus : uint8_t { DOING = 0 , SUCCESS = 1 , FAIL = 2 , EXCEPTION = 3 }
 资金划转状态 更多...
 
enum class  FundTransExecType : uint8_t { NORMAL = 0 , ROLLBACK = 1 }
 资金划转执行类型 更多...
 

变量

constexpr uint8_t CONST_STR_SECURITY_CODE_LEN = 9
 证券代码长度,含字符串终止符
 
constexpr uint16_t CONST_ERROR_MSG_LEN = 256
 错误信息长度
 
constexpr uint8_t CONST_SECURITY_NAME_LEN = 41
 证券名称长度
 
constexpr uint8_t CONST_ACC_NAME_LEN = 64 + 1
 账户名称长度
 
constexpr uint8_t CONST_ACC_PASSWD_LEN = 128 + 1
 账户密码长度
 
constexpr uint16_t CONST_TERMINAL_INFO_LEN = 256 + 1
 终端信息的字符串长度
 
constexpr uint8_t CONST_API_VERSION_STR_LEN = 24 + 1
 API 版本信息字符串长度
 
constexpr uint64_t PAGE_REQ_COUNT_MIN = 1
 分页请求最小数量
 
constexpr uint8_t CONST_CL_ORD_ID_LEN = 11
 委托合同号长度,含字符串终止符
 
constexpr uint8_t CONST_REPORT_ID_LEN = 32
 回报ID长度
 
constexpr uint16_t CONST_TRD_EXEC_ID_LEN = 16 + 1
 成交编号长度,含字符串终止符
 
constexpr uint8_t CONST_FUND_ACC_NAME_LEN = 14 + 1
 资金账户名称长度
 
constexpr uint8_t CONST_BIZ_NO_LEN = 20
 资金划拨业务流水号长度,含字符串终止符
 

类型定义说明

◆ amount_t

typedef int64_t x1::amount_t

金额 类型

◆ price_t

typedef int64_t x1::price_t

价格 类型

◆ quantity_t

typedef int64_t x1::quantity_t

数量 类型

◆ quote_thread_t

typedef struct x1::quote_thread_t x1::quote_thread_t

◆ trade_message_type_t

typedef uint32_t x1::trade_message_type_t

交易消息类型

◆ xlt_asset_info_t

typedef struct x1::xlt_asset_info_t x1::xlt_asset_info_t

账户资金信息

◆ xlt_cancel_order_info_t

typedef struct x1::xlt_cancel_order_info_t x1::xlt_cancel_order_info_t

撤单请求数据结构

◆ xlt_cancel_response_t

typedef struct x1::xlt_cancel_response_t x1::xlt_cancel_response_t

撤单申报成功响应

◆ xlt_cluster_fund_transfer_request_t

typedef struct x1::xlt_cluster_fund_transfer_request_t x1::xlt_cluster_fund_transfer_request_t

双中心资金划转请求

备注
方向只有划入

◆ xlt_cluster_fund_transfer_result_t

typedef struct x1::xlt_cluster_fund_transfer_result_t x1::xlt_cluster_fund_transfer_result_t

双中心资金划转结果

◆ xlt_counter_fund_transfer_request_t

typedef struct x1::xlt_counter_fund_transfer_request_t x1::xlt_counter_fund_transfer_request_t

主柜资金划转申请

◆ xlt_counter_fund_transfer_result_t

typedef struct x1::xlt_counter_fund_transfer_result_t x1::xlt_counter_fund_transfer_result_t

主柜资金划转结果

◆ xlt_fund_transfer_exec_request_t

typedef struct x1::xlt_fund_transfer_exec_request_t x1::xlt_fund_transfer_exec_request_t

资金划转执行请求

◆ xlt_fund_transfer_exec_result_t

typedef struct x1::xlt_fund_transfer_exec_result_t x1::xlt_fund_transfer_exec_result_t

资金划转执行结果

◆ xlt_fund_transfer_head_t

typedef struct x1::xlt_fund_transfer_head_t x1::xlt_fund_transfer_head_t

资金划转消息头

◆ xlt_init_asset_info_t

typedef struct x1::xlt_init_asset_info_t x1::xlt_init_asset_info_t

日初资金信息结构体

◆ xlt_init_position_info_t

typedef struct x1::xlt_init_position_info_t x1::xlt_init_position_info_t

日初持仓结构体

◆ xlt_internal_quote_login_info_t

typedef struct x1::xlt_internal_quote_login_info_t x1::xlt_internal_quote_login_info_t

行情登陆流水信息

◆ xlt_l1_quote_union_t

typedef union x1::xlt_l1_quote_union_t x1::xlt_l1_quote_union_t

L1行情联合体结构体

◆ xlt_level1_quote_t

typedef struct x1::xlt_level1_quote_t x1::xlt_level1_quote_t

L1行情数据结构体,包含行情类型和对应的行情数据

◆ xlt_msg_desc_t

typedef struct x1::xlt_msg_desc_t x1::xlt_msg_desc_t

消息推送描述信息

◆ xlt_order_book_error_t

typedef struct x1::xlt_order_book_error_t x1::xlt_order_book_error_t

订单簿,订单错误通知结构体,包括申报失败、撤单失败等信息

◆ xlt_order_book_insert_t

typedef struct x1::xlt_order_book_insert_t x1::xlt_order_book_insert_t

订单簿,新订单通知结构体

◆ xlt_order_book_report_union_t

typedef union x1::xlt_order_book_report_union_t x1::xlt_order_book_report_union_t

订单簿,订单响应回报联合体

◆ xlt_order_book_update_t

typedef struct x1::xlt_order_book_update_t x1::xlt_order_book_update_t

订单簿,订单变更通知结构体,包括订单状态变更、撤单、成交等信息

◆ xlt_order_end_t

typedef struct x1::xlt_order_end_t x1::xlt_order_end_t

订单结束通知

◆ xlt_order_error_response_t

typedef struct x1::xlt_order_error_response_t x1::xlt_order_error_response_t

申报失败响应(新订单申报失败,撤单失败)

◆ xlt_order_info_t

typedef struct x1::xlt_order_info_t x1::xlt_order_info_t

订单信息结构体

◆ xlt_order_insert_info_t

typedef struct x1::xlt_order_insert_info_t x1::xlt_order_insert_info_t

新订单请求数据结构

◆ xlt_order_response_t

typedef struct x1::xlt_order_response_t x1::xlt_order_response_t

新订单申报成功响应

◆ xlt_page_query_reference_t

typedef struct x1::xlt_page_query_reference_t x1::xlt_page_query_reference_t

查询定位结构体 用于记录每个分表的查询位置,用于分页查询

◆ xlt_position_info_t

typedef struct x1::xlt_position_info_t x1::xlt_position_info_t

持仓结构体

◆ xlt_quote_data_union_t

typedef union x1::xlt_quote_data_union_t x1::xlt_quote_data_union_t

◆ xlt_rebuild_tick_quote_req_t

typedef struct x1::xlt_rebuild_tick_quote_req_t x1::xlt_rebuild_tick_quote_req_t

重建逐笔数据请求结构体

◆ xlt_sse_l1_index_t

typedef struct x1::xlt_sse_l1_index_t x1::xlt_sse_l1_index_t

上交所level1指数行情快照

◆ xlt_sse_l1_snapshot_t

typedef struct x1::xlt_sse_l1_snapshot_t x1::xlt_sse_l1_snapshot_t

上交所level1快照行情

◆ xlt_sse_l2_bond_tick_t

typedef struct x1::xlt_sse_l2_bond_tick_t x1::xlt_sse_l2_bond_tick_t

上交所 Level-2 债券逐笔消息

◆ xlt_sse_l2_tick_t

typedef struct x1::xlt_sse_l2_tick_t x1::xlt_sse_l2_tick_t

上交所 Level-2 竞价逐笔消息

◆ xlt_static_quote_full_info_t

typedef struct x1::xlt_static_quote_full_info_t x1::xlt_static_quote_full_info_t

股票行情全量静态信息

◆ xlt_szse_l1_index_t

typedef struct x1::xlt_szse_l1_index_t x1::xlt_szse_l1_index_t

深交所level1指数快照行情数据结构体

◆ xlt_szse_l1_snapshot_bond_t

typedef struct x1::xlt_szse_l1_snapshot_bond_t x1::xlt_szse_l1_snapshot_bond_t

深交所level1债券快照行情数据结构体

◆ xlt_szse_l1_snapshot_t

typedef struct x1::xlt_szse_l1_snapshot_t x1::xlt_szse_l1_snapshot_t

深交所level1快照行情数据结构体

◆ xlt_szse_l2_order_t

typedef struct x1::xlt_szse_l2_order_t x1::xlt_szse_l2_order_t

深交所Level2逐笔委托

◆ xlt_szse_l2_trade_t

typedef struct x1::xlt_szse_l2_trade_t x1::xlt_szse_l2_trade_t

深交所Level2逐笔成交

◆ xlt_tick_quote_union_t

typedef union x1::xlt_tick_quote_union_t x1::xlt_tick_quote_union_t

xlight逐笔行情数据

◆ xlt_trade_account_info_t

typedef struct x1::xlt_trade_account_info_t x1::xlt_trade_account_info_t

交易账户信息

◆ xlt_trade_report_t

typedef struct x1::xlt_trade_report_t x1::xlt_trade_report_t

成交回报

◆ xlt_user_terminal_info_t

typedef struct x1::xlt_user_terminal_info_t x1::xlt_user_terminal_info_t

申报用户的ip和mac等信息

◆ XLTQuoteItem

typedef struct x1::XLTQuoteItem x1::XLTQuoteItem

get_next 返回的行情数据项

枚举类型说明

◆ ApiLogLevel

enum class x1::ApiLogLevel : uint8_t
strong

API日志级别

枚举值
LOG_FATAL 

fatal级别

LOG_ERROR 

error级别

LOG_WARN 

warn级别

LOG_INFO 

info级别

LOG_DEBUG 

debug级别

LOG_TRACE 

trace级别

◆ BusinessType

enum class x1::BusinessType : uint8_t
strong

业务类型

枚举值
NONE 

未知类型

CASH 

现货(股票、基金、深圳可转债等)集中竞价交易

BOND_MATCH 

债券现券竞价交易

ETF 

ETF申赎业务

ISSUE 

网上发行业务

ALLOT 

配售业务

BOND_CONVERT 

债转股业务

PLEDGE_STYLE_REPO 

债券质押式回购

◆ ExchangeIndex

enum class x1::ExchangeIndex : uint8_t
strong

交易所编号定义

枚举值
INIT 

初始化值或者未知

SH 

上海证券交易所。

SZ 

深圳证券交易所。

◆ ExExecType

enum x1::ExExecType : char

交易所执行类型

枚举值
EXEC_TYPE_NEW 

订单申报成功

EXEC_TYPE_CANCELED 

订单撤销成功

EXEC_TYPE_REJECT 

订单申报失败

EXEC_TYPE_TRADE 

成交

◆ ExOrdStatus

enum x1::ExOrdStatus : char

交易所订单状态

枚举值
ORD_STATUS_NEW 

新订单

ORD_STATUS_PARTIAL_FILLED 

部分成交

ORD_STATUS_FILLED 

全部成交

ORD_STATUS_CANCELLED 

已撤销

ORD_STATUS_REJECT 

拒绝

◆ FundTransExecType

enum class x1::FundTransExecType : uint8_t
strong

资金划转执行类型

枚举值
NORMAL 

正常处理

ROLLBACK 

回滚

◆ FundTransSide

enum class x1::FundTransSide : uint8_t
strong

资金划转方向

枚举值
UNKNOWN 

未知

IN 

资金划入

OUT 

资金划出

◆ FundTransSource

enum class x1::FundTransSource : uint8_t
strong

资金划转请求来源

枚举值
ADMIN 

管理系统发起的资金划转

OTHER 

其他来源发起的资金划转

◆ FundTransStatus

enum class x1::FundTransStatus : uint8_t
strong

资金划转状态

枚举值
DOING 

处理中

SUCCESS 

划转成功

FAIL 

划转失败

EXCEPTION 

划转异常

◆ OrderStatus

enum class x1::OrderStatus : uint8_t
strong

订单状态

枚举值
INIT 

初始。

ALL_TRADED 

全部成交。

PART_TRADED 

部分成交。

PART_CANCELED 

部分撤单。

NOT_TRADED 

未成交。

ALL_CANCELED 

全部撤单/已撤单。

REJECTED 

废单。

COUNT 

委托状态数量。

◆ OrderType

enum class x1::OrderType : uint8_t
strong

报单价格类型

枚举值
NONE 

无特定类型。

BEST_FIVE_PRICE_OR_CANCEL 

市转撤(市价最优五档全额成交剩余撤销)。

LIMIT_PRICE 

限价。

BEST_FIVE_PRICE_TO_LIMIT 

市转限(市价最优五档全额成交剩余转限价)(仅上海有效)。

SELF_BEST 

本方最优。

COUNTER_BEST 

对手方最优。

MARKET_PRICE_OR_CANCEL 

市价立即成交剩余撤销(仅深圳有效)。

MARKET_PRICE_ALL_OR_CANCEL 

市价全额成交或撤销(仅深圳有效)。

◆ QualificationType

enum class x1::QualificationType : uint8_t
strong

证券适当性枚举类型

枚举值
PUBLIC 

包括普通投资者、专业投资者 在内的所有投资者

COMMON 

仅专业投资者

ORGANIZATION 

仅专业投资者中的机构投资者

UNKNOWN 

其他

◆ QuoteMCType

enum x1::QuoteMCType : uint16_t
枚举值
XLT_SSE_L1 

XLIGHT上交所L1行情频道组播组

XLT_SZSE_L1 

XLIGHT深交所L1行情频道组播组

HPF_SSE_L2_STOCK_SNAP 

盛立上交所L2股票快照频道组播组

HPF_SSE_L2_STOCK_TICK 

盛立上交所L2股票逐笔频道组播组

HPF_SSE_L2_INDEX 

盛立上交所L2指数快照频道组播组

HPF_SSE_L2_BOND_SNAP 

盛立上交所L2债券快照频道组播组

HPF_SSE_L2_BOND_TICK 

盛立上交所L2债券逐笔频道组播组

HPF_SZSE_L2_STOCK_SNAP 

盛立深交所L2股票快照频道组播组

HPF_SZSE_L2_STOCK_TICK 

盛立深交所L2股票逐笔频道组播组

HPF_SZSE_L2_INDEX 

盛立深交所L2指数快照频道组播组

HPF_SZSE_L2_BOND_SNAP 

盛立深交所L2债券快照频道组播组

HPF_SZSE_L2_BOND_TICK 

盛立深交所L2债券逐笔频道组播组

◆ QuoteMsgType

enum x1::QuoteMsgType : uint8_t

xlight 行情消息类型

枚举值
SSE_L1_INDEX 

上交所Level1指数

SSE_L1_SNAPSHOT 

上交所Level1快照

SZSE_L1_INDEX 

深交所Level1指数

SZSE_L1_SNAPSHOT 

深交所Level1快照

SZSE_L1_BOND_SNAPSHOT 

深交所Level1债券快照

SSE_L2_TICK 

上交所Level2竞价逐笔

SSE_L2_BOND_TICK 

上交所Level2债券逐笔

SZSE_L2_ORDER 

深交所Level2逐笔委托

SZSE_L2_TRADE 

深交所Level2逐笔成交

◆ QuoteRxMode

enum x1::QuoteRxMode : uint8_t
枚举值
RX_MODE_AUTO 

自动选择行情接收模式,优先使用EFVI,如果EFVI不可用则回退到内核socket模式

RX_MODE_SOCKET 

使用内核socket接收行情数据

RX_MODE_EFVI 

使用EFVI接收行情数据

◆ QuoteSecurityType

enum class x1::QuoteSecurityType : uint8_t
strong

证券类型

枚举值
STOCK 

股票

FUND 

基金

BOND 

债券

OPTION 

期权

INDEX 

指数

UNKNOWN 

未知类型

◆ Side

enum class x1::Side : uint8_t
strong

买卖方向

枚举值
BUY 

买入(ETF申购)。

SELL 

卖出(ETF赎回)。

◆ TerminalType

enum class x1::TerminalType : uint8_t
strong

终端类型

枚举值
PC 

"PC",PC-windows及MacOS

ANDROID 

"MA",Mobile-Android

IOS 

"MI",Mobile-Ios

WP 

"MW",Mobile-Windows Phone

STATION 

"WP",无盘站

TEL 

"TO",电话委托

PC_LINUX 

"OH",PC-linux及其他终端

◆ TradeMessageType

交易消息类型枚举

枚举值
REPORT 

交易响应及回报

RAW_REPORT 

交易所原始报文

ORDER_BOOK 

订单簿消息:订单簿变动消息、资金变动消息、持仓变动消息

◆ TradeReportType

enum class x1::TradeReportType : uint8_t
strong

订单回报通知类型

枚举值
UNKNOWN 

未知类型

ORDER_RESPONSE 

申报成功响应

CANCEL_RESPONSE 

撤单成功响应

TRADE_REPORT 

成交回报

ORDER_ERROR_RESPONSE 

订单申报失败响应(拒单、交易所废单、撤单失败)

ORDER_END 

订单结束通知

◆ TradeResumeType

enum class x1::TradeResumeType : uint8_t
strong

交易消息推送类型

枚举值
RESTART 

从本交易日日初开始推送

QUICK 

从最新数据开始推送

SPECIFY 

从指定sequence开始推送

NONE 

不推送交易消息

变量说明

◆ CONST_ACC_NAME_LEN

uint8_t x1::CONST_ACC_NAME_LEN = 64 + 1
constexpr

账户名称长度

◆ CONST_ACC_PASSWD_LEN

uint8_t x1::CONST_ACC_PASSWD_LEN = 128 + 1
constexpr

账户密码长度

◆ CONST_API_VERSION_STR_LEN

uint8_t x1::CONST_API_VERSION_STR_LEN = 24 + 1
constexpr

API 版本信息字符串长度

◆ CONST_BIZ_NO_LEN

uint8_t x1::CONST_BIZ_NO_LEN = 20
constexpr

资金划拨业务流水号长度,含字符串终止符

◆ CONST_CL_ORD_ID_LEN

uint8_t x1::CONST_CL_ORD_ID_LEN = 11
constexpr

委托合同号长度,含字符串终止符

◆ CONST_ERROR_MSG_LEN

uint16_t x1::CONST_ERROR_MSG_LEN = 256
constexpr

错误信息长度

◆ CONST_FUND_ACC_NAME_LEN

uint8_t x1::CONST_FUND_ACC_NAME_LEN = 14 + 1
constexpr

资金账户名称长度

◆ CONST_REPORT_ID_LEN

uint8_t x1::CONST_REPORT_ID_LEN = 32
constexpr

回报ID长度

◆ CONST_SECURITY_NAME_LEN

uint8_t x1::CONST_SECURITY_NAME_LEN = 41
constexpr

证券名称长度

◆ CONST_STR_SECURITY_CODE_LEN

uint8_t x1::CONST_STR_SECURITY_CODE_LEN = 9
constexpr

证券代码长度,含字符串终止符

◆ CONST_TERMINAL_INFO_LEN

uint16_t x1::CONST_TERMINAL_INFO_LEN = 256 + 1
constexpr

终端信息的字符串长度

◆ CONST_TRD_EXEC_ID_LEN

uint16_t x1::CONST_TRD_EXEC_ID_LEN = 16 + 1
constexpr

成交编号长度,含字符串终止符

◆ PAGE_REQ_COUNT_MIN

uint64_t x1::PAGE_REQ_COUNT_MIN = 1
constexpr

分页请求最小数量