![]() |
Xlight API用户手册 v1.6.0.23
Xlight极速柜台接口文档
|
命名空间 | |
| namespace | efh |
类型定义 | |
| 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 |
| 交易账户信息 | |
变量 | |
| 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 |
| 资金划拨业务流水号长度,含字符串终止符 | |
| typedef int64_t x1::amount_t |
金额 类型
| typedef int64_t x1::price_t |
价格 类型
| typedef int64_t x1::quantity_t |
数量 类型
| typedef struct x1::quote_thread_t x1::quote_thread_t |
| typedef uint32_t x1::trade_message_type_t |
交易消息类型
| typedef struct x1::xlt_asset_info_t x1::xlt_asset_info_t |
账户资金信息
| typedef struct x1::xlt_cancel_order_info_t x1::xlt_cancel_order_info_t |
撤单请求数据结构
| typedef struct x1::xlt_cancel_response_t x1::xlt_cancel_response_t |
撤单申报成功响应
| typedef struct x1::xlt_cluster_fund_transfer_request_t x1::xlt_cluster_fund_transfer_request_t |
双中心资金划转请求
| typedef struct x1::xlt_cluster_fund_transfer_result_t x1::xlt_cluster_fund_transfer_result_t |
双中心资金划转结果
| typedef struct x1::xlt_counter_fund_transfer_request_t x1::xlt_counter_fund_transfer_request_t |
主柜资金划转申请
| typedef struct x1::xlt_counter_fund_transfer_result_t x1::xlt_counter_fund_transfer_result_t |
主柜资金划转结果
| typedef struct x1::xlt_fund_transfer_exec_request_t x1::xlt_fund_transfer_exec_request_t |
资金划转执行请求
| typedef struct x1::xlt_fund_transfer_exec_result_t x1::xlt_fund_transfer_exec_result_t |
资金划转执行结果
| typedef struct x1::xlt_fund_transfer_head_t x1::xlt_fund_transfer_head_t |
资金划转消息头
| typedef struct x1::xlt_init_asset_info_t x1::xlt_init_asset_info_t |
日初资金信息结构体
| typedef struct x1::xlt_init_position_info_t x1::xlt_init_position_info_t |
日初持仓结构体
| typedef struct x1::xlt_internal_quote_login_info_t x1::xlt_internal_quote_login_info_t |
行情登陆流水信息
| typedef union x1::xlt_l1_quote_union_t x1::xlt_l1_quote_union_t |
L1行情联合体结构体
| typedef struct x1::xlt_level1_quote_t x1::xlt_level1_quote_t |
L1行情数据结构体,包含行情类型和对应的行情数据
| typedef struct x1::xlt_msg_desc_t x1::xlt_msg_desc_t |
消息推送描述信息
| typedef struct x1::xlt_order_book_error_t x1::xlt_order_book_error_t |
订单簿,订单错误通知结构体,包括申报失败、撤单失败等信息
| typedef struct x1::xlt_order_book_insert_t x1::xlt_order_book_insert_t |
订单簿,新订单通知结构体
| typedef union x1::xlt_order_book_report_union_t x1::xlt_order_book_report_union_t |
订单簿,订单响应回报联合体
| typedef struct x1::xlt_order_book_update_t x1::xlt_order_book_update_t |
订单簿,订单变更通知结构体,包括订单状态变更、撤单、成交等信息
| typedef struct x1::xlt_order_end_t x1::xlt_order_end_t |
订单结束通知
| typedef struct x1::xlt_order_error_response_t x1::xlt_order_error_response_t |
申报失败响应(新订单申报失败,撤单失败)
| typedef struct x1::xlt_order_info_t x1::xlt_order_info_t |
订单信息结构体
| typedef struct x1::xlt_order_insert_info_t x1::xlt_order_insert_info_t |
新订单请求数据结构
| typedef struct x1::xlt_order_response_t x1::xlt_order_response_t |
新订单申报成功响应
| typedef struct x1::xlt_page_query_reference_t x1::xlt_page_query_reference_t |
查询定位结构体 用于记录每个分表的查询位置,用于分页查询
| typedef struct x1::xlt_position_info_t x1::xlt_position_info_t |
持仓结构体
| typedef union x1::xlt_quote_data_union_t x1::xlt_quote_data_union_t |
| typedef struct x1::xlt_rebuild_tick_quote_req_t x1::xlt_rebuild_tick_quote_req_t |
重建逐笔数据请求结构体
| typedef struct x1::xlt_sse_l1_index_t x1::xlt_sse_l1_index_t |
上交所level1指数行情快照
| typedef struct x1::xlt_sse_l1_snapshot_t x1::xlt_sse_l1_snapshot_t |
上交所level1快照行情
| typedef struct x1::xlt_sse_l2_bond_tick_t x1::xlt_sse_l2_bond_tick_t |
上交所 Level-2 债券逐笔消息
| typedef struct x1::xlt_sse_l2_tick_t x1::xlt_sse_l2_tick_t |
上交所 Level-2 竞价逐笔消息
| typedef struct x1::xlt_static_quote_full_info_t x1::xlt_static_quote_full_info_t |
股票行情全量静态信息
| typedef struct x1::xlt_szse_l1_index_t x1::xlt_szse_l1_index_t |
深交所level1指数快照行情数据结构体
| typedef struct x1::xlt_szse_l1_snapshot_bond_t x1::xlt_szse_l1_snapshot_bond_t |
深交所level1债券快照行情数据结构体
| typedef struct x1::xlt_szse_l1_snapshot_t x1::xlt_szse_l1_snapshot_t |
深交所level1快照行情数据结构体
| typedef struct x1::xlt_szse_l2_order_t x1::xlt_szse_l2_order_t |
深交所Level2逐笔委托
| typedef struct x1::xlt_szse_l2_trade_t x1::xlt_szse_l2_trade_t |
深交所Level2逐笔成交
| typedef union x1::xlt_tick_quote_union_t x1::xlt_tick_quote_union_t |
xlight逐笔行情数据
| typedef struct x1::xlt_trade_account_info_t x1::xlt_trade_account_info_t |
交易账户信息
| typedef struct x1::xlt_trade_report_t x1::xlt_trade_report_t |
成交回报
| typedef struct x1::xlt_user_terminal_info_t x1::xlt_user_terminal_info_t |
申报用户的ip和mac等信息
| typedef struct x1::XLTQuoteItem x1::XLTQuoteItem |
get_next 返回的行情数据项
|
strong |
|
strong |
|
strong |
| enum x1::ExExecType : char |
| enum x1::ExOrdStatus : char |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
| enum x1::QuoteMCType : uint16_t |
| enum x1::QuoteMsgType : uint8_t |
| enum x1::QuoteRxMode : uint8_t |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
constexpr |
账户名称长度
|
constexpr |
账户密码长度
|
constexpr |
API 版本信息字符串长度
|
constexpr |
资金划拨业务流水号长度,含字符串终止符
|
constexpr |
委托合同号长度,含字符串终止符
|
constexpr |
错误信息长度
|
constexpr |
资金账户名称长度
|
constexpr |
回报ID长度
|
constexpr |
证券名称长度
|
constexpr |
证券代码长度,含字符串终止符
|
constexpr |
终端信息的字符串长度
|
constexpr |
成交编号长度,含字符串终止符
|
constexpr |
分页请求最小数量