Skip to content

Commit 214ee29

Browse files
author
李昆亮
committed
xtp_api_python
1 parent de0f6de commit 214ee29

File tree

312 files changed

+48260
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

312 files changed

+48260
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
# xtp_api_python
1+
事项说明
2+
1.当前xtp的api的python封装支持win7系统、win10系统和Linux系统,在bin目录下有Linux文件夹下存放Linux下python2和python3的封装库,Windows文件夹下还分别包括32位和64位下的python2和python3的封装库。test文件夹下包含行情和交易的测试脚本。
3+
4+
2.当前bin目录下编译时用的python2的版本为python2.7.15,python3用的版本的python3.6.5,在Windows下发现如果python的版本不对应时会导致调用python封装库会失败,如果使用当前的封装库请注意python的版本是否一致。
5+
6+
3.如果客户需要按自己的python版本编译封装库,可以自行用source目录下的代码,根据自己的python的版本,及该python版本对应的编译后的boost库,可自行编译所需的python封装库。(具体过程在doc文件夹下有编译过程文档,source文件夹下有源码,包括Linux和Windows下编译python2和python3封装库)
7+
8+
4.XTP_API_20180516_1.1.18.13文件夹下存放最新的xtp系统的api,当前python封装库的分别包含行情和交易库,python封装后的接口与当前xtp系统的api的所有接口都保持一致,只有方法名有所区别,python封装后的接口方法名首字母小写,xtp的api的方法名首字母大写。因此所有封装后的python接口方法使用和功能都可以参见xtp的api的接口方法。既在以下两个头文件中了解各个方法使用及功能。
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/////////////////////////////////////////////////////////////////////////
2+
///@author 中泰证券股份有限公司
3+
///@file xoms_api_fund_struct.h
4+
///@brief 定义资金划拨相关结构体类型
5+
/////////////////////////////////////////////////////////////////////////
6+
#ifndef XOMS_API_FUND_STRUCT_H_
7+
#define XOMS_API_FUND_STRUCT_H_
8+
9+
#include "xtp_api_data_type.h"
10+
#include "xoms_api_struct.h"
11+
#include "xtp_api_struct_common.h"
12+
13+
#pragma pack(8)
14+
15+
#define XTP_ACCOUNT_PASSWORD_LEN 64
16+
17+
/////////////////////////////////////////////////////////////////////////
18+
///用户资金请求
19+
/////////////////////////////////////////////////////////////////////////
20+
struct XTPFundTransferReq
21+
{
22+
///资金内转编号,无需用户填写,类似于xtp_id
23+
uint64_t serial_id;
24+
///资金账户代码
25+
char fund_account[XTP_ACCOUNT_NAME_LEN];
26+
///资金账户密码
27+
char password[XTP_ACCOUNT_PASSWORD_LEN];
28+
///金额
29+
double amount;
30+
///内转类型
31+
XTP_FUND_TRANSFER_TYPE transfer_type;
32+
33+
};
34+
35+
/////////////////////////////////////////////////////////////////////////
36+
///用户资金划转请求的响应-复用资金通知结构体
37+
/////////////////////////////////////////////////////////////////////////
38+
typedef struct XTPFundTransferNotice XTPFundTransferAck ;
39+
40+
#pragma pack()
41+
42+
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy