Xlight API用户手册 v1.6.0.23
Xlight极速柜台接口文档
载入中...
搜索中...
未找到
xlt_privilege_struct.h
浏览该文件的文档.
1
8#pragma once
9
10#include "xlt_data_type.h"
11#include "xlt_trade_struct.h"
12
13namespace x1{
14#pragma pack(push, 1)
18 typedef struct {
19 uint64_t session_id;
20 uint32_t trade_way;
21 uint64_t token_id;
24 uint8_t client_id;
25 char terminal_info[CONST_TERMINAL_INFO_LEN];
26 char terminal_info_auto[CONST_TERMINAL_INFO_LEN];
27 char api_version[CONST_API_VERSION_STR_LEN];
29
30
43
44
55
65
77
92
93#pragma pack(pop)
94}
95
定义 xlt_data_type.h:13
FundTransExecType
资金划转执行类型
定义 xlt_trade_data_type.h:150
int64_t amount_t
金额 类型
定义 xlt_data_type.h:25
constexpr uint8_t CONST_API_VERSION_STR_LEN
API 版本信息字符串长度
定义 xlt_data_type.h:21
ExchangeIndex
交易所编号定义
定义 xlt_data_type.h:57
struct x1::xlt_internal_quote_login_info_t xlt_internal_quote_login_info_t
行情登陆流水信息
constexpr uint8_t CONST_STR_SECURITY_CODE_LEN
证券代码长度,含字符串终止符
定义 xlt_data_type.h:15
FundTransStatus
资金划转状态
定义 xlt_trade_data_type.h:140
struct x1::xlt_fund_transfer_exec_result_t xlt_fund_transfer_exec_result_t
资金划转执行结果
int64_t quantity_t
数量 类型
定义 xlt_data_type.h:27
constexpr uint16_t CONST_TERMINAL_INFO_LEN
终端信息的字符串长度
定义 xlt_data_type.h:20
FundTransSide
资金划转方向
定义 xlt_trade_data_type.h:131
struct x1::xlt_fund_transfer_exec_request_t xlt_fund_transfer_exec_request_t
资金划转执行请求
constexpr uint8_t CONST_BIZ_NO_LEN
资金划拨业务流水号长度,含字符串终止符
定义 xlt_trade_data_type.h:19
账户资金简要信息
定义 xlt_privilege_struct.h:59
uint64_t account_index
交易账户索引
定义 xlt_privilege_struct.h:60
amount_t deposit_amount
当日划入金额
定义 xlt_privilege_struct.h:63
amount_t withdraw_amount
当日划出金额
定义 xlt_privilege_struct.h:62
amount_t available_amount
可用资金
定义 xlt_privilege_struct.h:61
持仓简要信息
定义 xlt_privilege_struct.h:48
ExchangeIndex exchange_index
交易市场
定义 xlt_privilege_struct.h:51
uint64_t account_index
交易账户索引
定义 xlt_privilege_struct.h:49
quantity_t sellable_quantity
可卖持仓
定义 xlt_privilege_struct.h:53
quantity_t total_quantity
总持仓
定义 xlt_privilege_struct.h:52
错误信息
定义 xlt_struct.h:18
资金划转执行请求
定义 xlt_privilege_struct.h:69
uint64_t account_index
交易账号索引
定义 xlt_privilege_struct.h:70
char biz_no[CONST_BIZ_NO_LEN]
资金划转业务流水号,交易API:token_id+序号,管理API:外部系统保证全局唯一
定义 xlt_privilege_struct.h:71
amount_t amount
划转金额,放大10000倍
定义 xlt_privilege_struct.h:73
uint8_t check_flag
校验标记,0: 不做任何校验,1: 校验可用资金
定义 xlt_privilege_struct.h:74
FundTransSide side
划转方向,IN-划入(从主柜划入到xlight),OUT-划出(从xlight划出到主柜)
定义 xlt_privilege_struct.h:72
FundTransExecType exec_type
资金划转执行类型,NORMAL: 正常处理, ROLLBACK: 回滚
定义 xlt_privilege_struct.h:75
资金划转执行结果
定义 xlt_privilege_struct.h:81
FundTransSide side
划转方向,IN-划入(从主柜划入到xlight),OUT-划出(从xlight划出到主柜)
定义 xlt_privilege_struct.h:84
FundTransExecType exec_type
资金划转执行类型,NORMAL: 正常处理, ROLLBACK: 回滚
定义 xlt_privilege_struct.h:87
xlt_error_info_t error_info
如果资金划转失败将通过该字段返回错误信息
定义 xlt_privilege_struct.h:90
char biz_no[CONST_BIZ_NO_LEN]
资金划转业务流水号,交易API:token_id+序号,管理API:外部系统保证全局唯一
定义 xlt_privilege_struct.h:83
FundTransStatus status
划转状态,DOING-处理中,SUCCESS-成功,FAIL-失败,EXCEPTION-异常
定义 xlt_privilege_struct.h:89
int64_t time
资金划转的时间,格式为YYYYMMDDHHMMSSsss
定义 xlt_privilege_struct.h:88
uint8_t check_flag
校验标记,0: 不做任何校验,1: 校验可用资金
定义 xlt_privilege_struct.h:86
uint64_t account_index
交易账号索引
定义 xlt_privilege_struct.h:82
amount_t amount
划转金额,放大10000倍
定义 xlt_privilege_struct.h:85
行情登陆流水信息
定义 xlt_privilege_struct.h:34
uint16_t client_port
客户端端口号
定义 xlt_privilege_struct.h:39
uint64_t account_index
登录用户索引
定义 xlt_privilege_struct.h:35
char client_ip[46]
客户端IP地址
定义 xlt_privilege_struct.h:38
uint64_t time
明细时间, 格式为 YYYYMMDDHHMMSSsss
定义 xlt_privilege_struct.h:41
uint8_t detail_type
明细类型,0:登录明细,1:登出明细
定义 xlt_privilege_struct.h:40
uint8_t sz_l2_flag
深圳市场l2权限标识(0:无行情权限 1:深圳市场)
定义 xlt_privilege_struct.h:37
uint8_t sh_l2_flag
上海市场l2权限标识(0:无行情权限 1:上海市场)
定义 xlt_privilege_struct.h:36
token信息
定义 xlt_privilege_struct.h:18
uint64_t session_id
会话ID
定义 xlt_privilege_struct.h:19
uint64_t login_account_index
登录用户索引
定义 xlt_privilege_struct.h:22
uint8_t client_id
登录用户的client_id
定义 xlt_privilege_struct.h:24
uint64_t trade_account_index
交易用户索引
定义 xlt_privilege_struct.h:23
uint32_t trade_way
委托方式
定义 xlt_privilege_struct.h:20
uint64_t token_id
令牌ID
定义 xlt_privilege_struct.h:21
本文件定义XLT API中使用的基本数据类型和常量
本文件定义XLT交易数据结构体