diff --git a/README.md b/README.md index b720f2d..8cee7f2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # PyCTP CTP for Python +更新为监管版本 + 这是程序化期货交易上期ctp接口版本.将其包装为python版本. 支持python3 编译需求:vs2010/gcc 编译方法 python setup.py build diff --git a/setup.py b/setup.py index ba36a9d..6440e27 100644 --- a/setup.py +++ b/setup.py @@ -26,20 +26,20 @@ optional['include_dirs'] = ['./v6.3.6_20160606_tradeapi_windows'] optional['library_dirs'] = ['./v6.3.6_20160606_tradeapi_windows'] if '64 bit' in platform.python_compiler(): - optional['include_dirs'] = ['./v6.3.6_20160606_tradeapi64_windows'] - optional['library_dirs'] = ['./v6.3.6_20160606_tradeapi64_windows'] + optional['include_dirs'] = ['./v6.3.15_20190220_tradeapi64_se_windows','v6.3.15_20190220_clientdll64_windows'] + optional['library_dirs'] = ['./v6.3.15_20190220_tradeapi64_se_windows','v6.3.15_20190220_clientdll64_windows'] # depend_dynamics = ['thostmduserapi.dll', 'thosttraderapi.dll'] argments = dict(name='PyCTP', sources=sources, language='c++', - libraries=['thostmduserapi', 'thosttraderapi'], + libraries=['thostmduserapi_se', 'thosttraderapi_se','WinDataCollect'], depends=depends) argments.update(optional) setup(name='PyCTP', - version='1.0.1', + version='1.1.0', description='CTP for Python', - long_description='CTP v6.3.6_20160606 for Python', + long_description='CTP v6.3.15_20190220 for Python', author='Shi Zhuolin', author_email='shizhuolin@hotmail.com', url='http://www.pyctp.org/', diff --git a/src/PyCTP.cpp b/src/PyCTP.cpp index eb64c3d..78b1a72 100644 --- a/src/PyCTP.cpp +++ b/src/PyCTP.cpp @@ -13,13 +13,31 @@ #include "UserApiDataType.h" #include "MdApi.h" #include "TraderApi.h" +#include "DataCollect.h" #define MODULE_NAME "PyCTP" -#define MODULE_DOC "CTP 201612191535 for Python author:http://www.shizhuolin.com shizhuolin@hotmail.com qq:383193853" +#define MODULE_DOC "CTP v6.3.15_20190220 for Python author:http://www.shizhuolin.com shizhuolin@hotmail.com qq:383193853" + +///获取AES加密和RSA加密的终端信息 +PyObject *METHOD_CTP_GetSystemInfo(PyObject *self, PyObject *args) +{ + char pSystemInfo[270]; + int nLen; + int ret = CTP_GetSystemInfo(pSystemInfo, nLen); + return Py_BuildValue("{s:y,s:i,s:i}", + "SystemInfo", pSystemInfo, + "nLen", nLen, + "ret", ret); +} + +static PyMethodDef PyCTPMethods[] = { + {"CTP_GetSystemInfo", METHOD_CTP_GetSystemInfo, METH_NOARGS, "获取AES加密和RSA加密的终端信息"}, + {nullptr} /* Sentinel */ +}; //设置模块 #if PY_MAJOR_VERSION >= 3 -static struct PyModuleDef PyCTP_Module = {PyModuleDef_HEAD_INIT, MODULE_NAME, MODULE_DOC, -1}; +static struct PyModuleDef PyCTP_Module = {PyModuleDef_HEAD_INIT, MODULE_NAME, MODULE_DOC, -1, PyCTPMethods}; #endif //初始化模块 diff --git a/src/UserApiStruct.cpp b/src/UserApiStruct.cpp index 8a924d5..c4185a4 100644 --- a/src/UserApiStruct.cpp +++ b/src/UserApiStruct.cpp @@ -1,15 +1,15 @@ #include "stdafx.h" #include "UserApiStruct.h" -//字符编码转换 -//数据类型转换(不包含数据结构转换) +//ַת +//ת(ݽṹת) //char <=> c //char* <=> y //int <=> i //short <=> h //double<=> d //bool => pybool => p => int(0/1) -//char*中文=>PyCTP_PyCTP_PyUnicode_DecodeGB2312 +//char*=>PyCTP_PyCTP_PyUnicode_DecodeGB2312 //struct <=> dict #define PyCTP_PyDict_FromStruct_BEGIN(_in_name, _in_format) \ diff --git a/src/test_PyCTP.py b/src/test_PyCTP.py index d32bf2a..a2e8793 100644 --- a/src/test_PyCTP.py +++ b/src/test_PyCTP.py @@ -595,6 +595,7 @@ def __main__(): Password = b'' ExchangeID = b'SHFE' InstrumentID = b'cu1610' + print('终端信息:', PyCTP.CTP_GetSystemInfo()) trader = PyCTP_Trader.CreateFtdcTraderApi(b'_tmp_t_') market = PyCTP_Market.CreateFtdcMdApi(b'_tmp_m_') print('连接前置', trader.Connect(b'tcp://180.168.146.187:10000')) diff --git a/v6.3.15_20190220_api_clientdatacollectdll_linux64/DataCollect.h b/v6.3.15_20190220_api_clientdatacollectdll_linux64/DataCollect.h new file mode 100644 index 0000000..d088722 --- /dev/null +++ b/v6.3.15_20190220_api_clientdatacollectdll_linux64/DataCollect.h @@ -0,0 +1,24 @@ +#ifndef DATA_COLLECT_H +#define DATA_COLLECT_H + +#define DLL_EXPORT __declspec(dllexport) + +#if defined(IS_WINCOLLECT_LIB) && defined(WIN32) +#ifdef LIB_DATA_COLLECT_API_EXPORT +#define DATA_COLLECT_API_EXPORT __declspec(dllexport) +#else +#define DATA_COLLECT_API_EXPORT __declspec(dllimport) +#endif +#else +#define DATA_COLLECT_API_EXPORT +#endif + + +///获取AES加密和RSA加密的终端信息 +///@pSystemInfo 出参 空间需要调用者自己分配 至少270个字节 +///@nLen 出参 获取到的采集信息的长度 +///采集信息内可能含有‘\0’ 建议调用者使用内存复制 +DATA_COLLECT_API_EXPORT int CTP_GetSystemInfo(char* pSystemInfo, int& nLen); + + +#endif \ No newline at end of file diff --git a/v6.3.15_20190220_api_clientdatacollectdll_linux64/libLinuxDataCollect.so b/v6.3.15_20190220_api_clientdatacollectdll_linux64/libLinuxDataCollect.so new file mode 100644 index 0000000..c4879ff Binary files /dev/null and b/v6.3.15_20190220_api_clientdatacollectdll_linux64/libLinuxDataCollect.so differ diff --git a/v6.3.6_20160606_tradeapi_windows/ThostFtdcMdApi.h b/v6.3.15_20190220_api_tradeapi_se_linux64/ThostFtdcMdApi.h similarity index 96% rename from v6.3.6_20160606_tradeapi_windows/ThostFtdcMdApi.h rename to v6.3.15_20190220_api_tradeapi_se_linux64/ThostFtdcMdApi.h index 0c643c4..0e450ae 100644 --- a/v6.3.6_20160606_tradeapi_windows/ThostFtdcMdApi.h +++ b/v6.3.15_20190220_api_tradeapi_se_linux64/ThostFtdcMdApi.h @@ -1,162 +1,162 @@ -///////////////////////////////////////////////////////////////////////// -///@system 新一代交易所系统 -///@company 上海期货信息技术有限公司 -///@file ThostFtdcMdApi.h -///@brief 定义了客户端接口 -///@history -///20060106 赵鸿昊 创建该文件 -///////////////////////////////////////////////////////////////////////// - -#if !defined(THOST_FTDCMDAPI_H) -#define THOST_FTDCMDAPI_H - -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 - -#include "ThostFtdcUserApiStruct.h" - -#if defined(ISLIB) && defined(WIN32) -#ifdef LIB_MD_API_EXPORT -#define MD_API_EXPORT __declspec(dllexport) -#else -#define MD_API_EXPORT __declspec(dllimport) -#endif -#else -#define MD_API_EXPORT -#endif - -class CThostFtdcMdSpi -{ -public: - ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。 - virtual void OnFrontConnected(){}; - - ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。 - ///@param nReason 错误原因 - /// 0x1001 网络读失败 - /// 0x1002 网络写失败 - /// 0x2001 接收心跳超时 - /// 0x2002 发送心跳失败 - /// 0x2003 收到错误报文 - virtual void OnFrontDisconnected(int nReason){}; - - ///心跳超时警告。当长时间未收到报文时,该方法被调用。 - ///@param nTimeLapse 距离上次接收报文的时间 - virtual void OnHeartBeatWarning(int nTimeLapse){}; - - - ///登录请求响应 - virtual void OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///登出请求响应 - virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///错误应答 - virtual void OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///订阅行情应答 - virtual void OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///取消订阅行情应答 - virtual void OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///订阅询价应答 - virtual void OnRspSubForQuoteRsp(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///取消订阅询价应答 - virtual void OnRspUnSubForQuoteRsp(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///深度行情通知 - virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData) {}; - - ///询价通知 - virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) {}; -}; - -class MD_API_EXPORT CThostFtdcMdApi -{ -public: - ///创建MdApi - ///@param pszFlowPath 存贮订阅信息文件的目录,默认为当前目录 - ///@return 创建出的UserApi - ///modify for udp marketdata - static CThostFtdcMdApi *CreateFtdcMdApi(const char *pszFlowPath = "", const bool bIsUsingUdp=false, const bool bIsMulticast=false); - - ///获取API的版本信息 - ///@retrun 获取到的版本号 - static const char *GetApiVersion(); - - ///删除接口对象本身 - ///@remark 不再使用本接口对象时,调用该函数删除接口对象 - virtual void Release() = 0; - - ///初始化 - ///@remark 初始化运行环境,只有调用后,接口才开始工作 - virtual void Init() = 0; - - ///等待接口线程结束运行 - ///@return 线程退出代码 - virtual int Join() = 0; - - ///获取当前交易日 - ///@retrun 获取到的交易日 - ///@remark 只有登录成功后,才能得到正确的交易日 - virtual const char *GetTradingDay() = 0; - - ///注册前置机网络地址 - ///@param pszFrontAddress:前置机网络地址。 - ///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:17001”。 - ///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”17001”代表服务器端口号。 - virtual void RegisterFront(char *pszFrontAddress) = 0; - - ///注册名字服务器网络地址 - ///@param pszNsAddress:名字服务器网络地址。 - ///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:12001”。 - ///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”12001”代表服务器端口号。 - ///@remark RegisterNameServer优先于RegisterFront - virtual void RegisterNameServer(char *pszNsAddress) = 0; - - ///注册名字服务器用户信息 - ///@param pFensUserInfo:用户信息。 - virtual void RegisterFensUserInfo(CThostFtdcFensUserInfoField * pFensUserInfo) = 0; - - ///注册回调接口 - ///@param pSpi 派生自回调接口类的实例 - virtual void RegisterSpi(CThostFtdcMdSpi *pSpi) = 0; - - ///订阅行情。 - ///@param ppInstrumentID 合约ID - ///@param nCount 要订阅/退订行情的合约个数 - ///@remark - virtual int SubscribeMarketData(char *ppInstrumentID[], int nCount) = 0; - - ///退订行情。 - ///@param ppInstrumentID 合约ID - ///@param nCount 要订阅/退订行情的合约个数 - ///@remark - virtual int UnSubscribeMarketData(char *ppInstrumentID[], int nCount) = 0; - - ///订阅询价。 - ///@param ppInstrumentID 合约ID - ///@param nCount 要订阅/退订行情的合约个数 - ///@remark - virtual int SubscribeForQuoteRsp(char *ppInstrumentID[], int nCount) = 0; - - ///退订询价。 - ///@param ppInstrumentID 合约ID - ///@param nCount 要订阅/退订行情的合约个数 - ///@remark - virtual int UnSubscribeForQuoteRsp(char *ppInstrumentID[], int nCount) = 0; - - ///用户登录请求 - virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0; - - - ///登出请求 - virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0; -protected: - ~CThostFtdcMdApi(){}; -}; - -#endif +///////////////////////////////////////////////////////////////////////// +///@system 新一代交易所系统 +///@company 上海期货信息技术有限公司 +///@file ThostFtdcMdApi.h +///@brief 定义了客户端接口 +///@history +///20060106 赵鸿昊 创建该文件 +///////////////////////////////////////////////////////////////////////// + +#if !defined(THOST_FTDCMDAPI_H) +#define THOST_FTDCMDAPI_H + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#include "ThostFtdcUserApiStruct.h" + +#if defined(ISLIB) && defined(WIN32) +#ifdef LIB_MD_API_EXPORT +#define MD_API_EXPORT __declspec(dllexport) +#else +#define MD_API_EXPORT __declspec(dllimport) +#endif +#else +#define MD_API_EXPORT +#endif + +class CThostFtdcMdSpi +{ +public: + ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。 + virtual void OnFrontConnected(){}; + + ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。 + ///@param nReason 错误原因 + /// 0x1001 网络读失败 + /// 0x1002 网络写失败 + /// 0x2001 接收心跳超时 + /// 0x2002 发送心跳失败 + /// 0x2003 收到错误报文 + virtual void OnFrontDisconnected(int nReason){}; + + ///心跳超时警告。当长时间未收到报文时,该方法被调用。 + ///@param nTimeLapse 距离上次接收报文的时间 + virtual void OnHeartBeatWarning(int nTimeLapse){}; + + + ///登录请求响应 + virtual void OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///登出请求响应 + virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///错误应答 + virtual void OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///订阅行情应答 + virtual void OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///取消订阅行情应答 + virtual void OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///订阅询价应答 + virtual void OnRspSubForQuoteRsp(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///取消订阅询价应答 + virtual void OnRspUnSubForQuoteRsp(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///深度行情通知 + virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData) {}; + + ///询价通知 + virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) {}; +}; + +class MD_API_EXPORT CThostFtdcMdApi +{ +public: + ///创建MdApi + ///@param pszFlowPath 存贮订阅信息文件的目录,默认为当前目录 + ///@return 创建出的UserApi + ///modify for udp marketdata + static CThostFtdcMdApi *CreateFtdcMdApi(const char *pszFlowPath = "", const bool bIsUsingUdp=false, const bool bIsMulticast=false); + + ///获取API的版本信息 + ///@retrun 获取到的版本号 + static const char *GetApiVersion(); + + ///删除接口对象本身 + ///@remark 不再使用本接口对象时,调用该函数删除接口对象 + virtual void Release() = 0; + + ///初始化 + ///@remark 初始化运行环境,只有调用后,接口才开始工作 + virtual void Init() = 0; + + ///等待接口线程结束运行 + ///@return 线程退出代码 + virtual int Join() = 0; + + ///获取当前交易日 + ///@retrun 获取到的交易日 + ///@remark 只有登录成功后,才能得到正确的交易日 + virtual const char *GetTradingDay() = 0; + + ///注册前置机网络地址 + ///@param pszFrontAddress:前置机网络地址。 + ///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:17001”。 + ///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”17001”代表服务器端口号。 + virtual void RegisterFront(char *pszFrontAddress) = 0; + + ///注册名字服务器网络地址 + ///@param pszNsAddress:名字服务器网络地址。 + ///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:12001”。 + ///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”12001”代表服务器端口号。 + ///@remark RegisterNameServer优先于RegisterFront + virtual void RegisterNameServer(char *pszNsAddress) = 0; + + ///注册名字服务器用户信息 + ///@param pFensUserInfo:用户信息。 + virtual void RegisterFensUserInfo(CThostFtdcFensUserInfoField * pFensUserInfo) = 0; + + ///注册回调接口 + ///@param pSpi 派生自回调接口类的实例 + virtual void RegisterSpi(CThostFtdcMdSpi *pSpi) = 0; + + ///订阅行情。 + ///@param ppInstrumentID 合约ID + ///@param nCount 要订阅/退订行情的合约个数 + ///@remark + virtual int SubscribeMarketData(char *ppInstrumentID[], int nCount) = 0; + + ///退订行情。 + ///@param ppInstrumentID 合约ID + ///@param nCount 要订阅/退订行情的合约个数 + ///@remark + virtual int UnSubscribeMarketData(char *ppInstrumentID[], int nCount) = 0; + + ///订阅询价。 + ///@param ppInstrumentID 合约ID + ///@param nCount 要订阅/退订行情的合约个数 + ///@remark + virtual int SubscribeForQuoteRsp(char *ppInstrumentID[], int nCount) = 0; + + ///退订询价。 + ///@param ppInstrumentID 合约ID + ///@param nCount 要订阅/退订行情的合约个数 + ///@remark + virtual int UnSubscribeForQuoteRsp(char *ppInstrumentID[], int nCount) = 0; + + ///用户登录请求 + virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0; + + + ///登出请求 + virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0; +protected: + ~CThostFtdcMdApi(){}; +}; + +#endif diff --git a/v6.3.6_20160606_tradeapi64_windows/ThostFtdcTraderApi.h b/v6.3.15_20190220_api_tradeapi_se_linux64/ThostFtdcTraderApi.h similarity index 87% rename from v6.3.6_20160606_tradeapi64_windows/ThostFtdcTraderApi.h rename to v6.3.15_20190220_api_tradeapi_se_linux64/ThostFtdcTraderApi.h index eca0085..9d8e232 100644 --- a/v6.3.6_20160606_tradeapi64_windows/ThostFtdcTraderApi.h +++ b/v6.3.15_20190220_api_tradeapi_se_linux64/ThostFtdcTraderApi.h @@ -1,654 +1,739 @@ -///////////////////////////////////////////////////////////////////////// -///@system 新一代交易所系统 -///@company 上海期货信息技术有限公司 -///@file ThostFtdcTraderApi.h -///@brief 定义了客户端接口 -///@history -///20060106 赵鸿昊 创建该文件 -///////////////////////////////////////////////////////////////////////// - -#if !defined(THOST_FTDCTRADERAPI_H) -#define THOST_FTDCTRADERAPI_H - -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 - -#include "ThostFtdcUserApiStruct.h" - -#if defined(ISLIB) && defined(WIN32) -#ifdef LIB_TRADER_API_EXPORT -#define TRADER_API_EXPORT __declspec(dllexport) -#else -#define TRADER_API_EXPORT __declspec(dllimport) -#endif -#else -#define TRADER_API_EXPORT -#endif - -class CThostFtdcTraderSpi -{ -public: - ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。 - virtual void OnFrontConnected(){}; - - ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。 - ///@param nReason 错误原因 - /// 0x1001 网络读失败 - /// 0x1002 网络写失败 - /// 0x2001 接收心跳超时 - /// 0x2002 发送心跳失败 - /// 0x2003 收到错误报文 - virtual void OnFrontDisconnected(int nReason){}; - - ///心跳超时警告。当长时间未收到报文时,该方法被调用。 - ///@param nTimeLapse 距离上次接收报文的时间 - virtual void OnHeartBeatWarning(int nTimeLapse){}; - - ///客户端认证响应 - virtual void OnRspAuthenticate(CThostFtdcRspAuthenticateField *pRspAuthenticateField, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - - ///登录请求响应 - virtual void OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///登出请求响应 - virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///用户口令更新请求响应 - virtual void OnRspUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///资金账户口令更新请求响应 - virtual void OnRspTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///报单录入请求响应 - virtual void OnRspOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///预埋单录入请求响应 - virtual void OnRspParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///预埋撤单录入请求响应 - virtual void OnRspParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///报单操作请求响应 - virtual void OnRspOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///查询最大报单数量响应 - virtual void OnRspQueryMaxOrderVolume(CThostFtdcQueryMaxOrderVolumeField *pQueryMaxOrderVolume, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///投资者结算结果确认响应 - virtual void OnRspSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///删除预埋单响应 - virtual void OnRspRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///删除预埋撤单响应 - virtual void OnRspRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///执行宣告录入请求响应 - virtual void OnRspExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///执行宣告操作请求响应 - virtual void OnRspExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///询价录入请求响应 - virtual void OnRspForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///报价录入请求响应 - virtual void OnRspQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///报价操作请求响应 - virtual void OnRspQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///批量报单操作请求响应 - virtual void OnRspBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///申请组合录入请求响应 - virtual void OnRspCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询报单响应 - virtual void OnRspQryOrder(CThostFtdcOrderField *pOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询成交响应 - virtual void OnRspQryTrade(CThostFtdcTradeField *pTrade, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询投资者持仓响应 - virtual void OnRspQryInvestorPosition(CThostFtdcInvestorPositionField *pInvestorPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询资金账户响应 - virtual void OnRspQryTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询投资者响应 - virtual void OnRspQryInvestor(CThostFtdcInvestorField *pInvestor, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询交易编码响应 - virtual void OnRspQryTradingCode(CThostFtdcTradingCodeField *pTradingCode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询合约保证金率响应 - virtual void OnRspQryInstrumentMarginRate(CThostFtdcInstrumentMarginRateField *pInstrumentMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询合约手续费率响应 - virtual void OnRspQryInstrumentCommissionRate(CThostFtdcInstrumentCommissionRateField *pInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询交易所响应 - virtual void OnRspQryExchange(CThostFtdcExchangeField *pExchange, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询产品响应 - virtual void OnRspQryProduct(CThostFtdcProductField *pProduct, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询合约响应 - virtual void OnRspQryInstrument(CThostFtdcInstrumentField *pInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询行情响应 - virtual void OnRspQryDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询投资者结算结果响应 - virtual void OnRspQrySettlementInfo(CThostFtdcSettlementInfoField *pSettlementInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询转帐银行响应 - virtual void OnRspQryTransferBank(CThostFtdcTransferBankField *pTransferBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询投资者持仓明细响应 - virtual void OnRspQryInvestorPositionDetail(CThostFtdcInvestorPositionDetailField *pInvestorPositionDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询客户通知响应 - virtual void OnRspQryNotice(CThostFtdcNoticeField *pNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询结算信息确认响应 - virtual void OnRspQrySettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询投资者持仓明细响应 - virtual void OnRspQryInvestorPositionCombineDetail(CThostFtdcInvestorPositionCombineDetailField *pInvestorPositionCombineDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///查询保证金监管系统经纪公司资金账户密钥响应 - virtual void OnRspQryCFMMCTradingAccountKey(CThostFtdcCFMMCTradingAccountKeyField *pCFMMCTradingAccountKey, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询仓单折抵信息响应 - virtual void OnRspQryEWarrantOffset(CThostFtdcEWarrantOffsetField *pEWarrantOffset, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询投资者品种/跨品种保证金响应 - virtual void OnRspQryInvestorProductGroupMargin(CThostFtdcInvestorProductGroupMarginField *pInvestorProductGroupMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询交易所保证金率响应 - virtual void OnRspQryExchangeMarginRate(CThostFtdcExchangeMarginRateField *pExchangeMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询交易所调整保证金率响应 - virtual void OnRspQryExchangeMarginRateAdjust(CThostFtdcExchangeMarginRateAdjustField *pExchangeMarginRateAdjust, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询汇率响应 - virtual void OnRspQryExchangeRate(CThostFtdcExchangeRateField *pExchangeRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询二级代理操作员银期权限响应 - virtual void OnRspQrySecAgentACIDMap(CThostFtdcSecAgentACIDMapField *pSecAgentACIDMap, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询产品报价汇率 - virtual void OnRspQryProductExchRate(CThostFtdcProductExchRateField *pProductExchRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询产品组 - virtual void OnRspQryProductGroup(CThostFtdcProductGroupField *pProductGroup, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询做市商合约手续费率响应 - virtual void OnRspQryMMInstrumentCommissionRate(CThostFtdcMMInstrumentCommissionRateField *pMMInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询做市商期权合约手续费响应 - virtual void OnRspQryMMOptionInstrCommRate(CThostFtdcMMOptionInstrCommRateField *pMMOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询报单手续费响应 - virtual void OnRspQryInstrumentOrderCommRate(CThostFtdcInstrumentOrderCommRateField *pInstrumentOrderCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询期权交易成本响应 - virtual void OnRspQryOptionInstrTradeCost(CThostFtdcOptionInstrTradeCostField *pOptionInstrTradeCost, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询期权合约手续费响应 - virtual void OnRspQryOptionInstrCommRate(CThostFtdcOptionInstrCommRateField *pOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询执行宣告响应 - virtual void OnRspQryExecOrder(CThostFtdcExecOrderField *pExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询询价响应 - virtual void OnRspQryForQuote(CThostFtdcForQuoteField *pForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询报价响应 - virtual void OnRspQryQuote(CThostFtdcQuoteField *pQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询组合合约安全系数响应 - virtual void OnRspQryCombInstrumentGuard(CThostFtdcCombInstrumentGuardField *pCombInstrumentGuard, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询申请组合响应 - virtual void OnRspQryCombAction(CThostFtdcCombActionField *pCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询转帐流水响应 - virtual void OnRspQryTransferSerial(CThostFtdcTransferSerialField *pTransferSerial, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询银期签约关系响应 - virtual void OnRspQryAccountregister(CThostFtdcAccountregisterField *pAccountregister, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///错误应答 - virtual void OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///报单通知 - virtual void OnRtnOrder(CThostFtdcOrderField *pOrder) {}; - - ///成交通知 - virtual void OnRtnTrade(CThostFtdcTradeField *pTrade) {}; - - ///报单录入错误回报 - virtual void OnErrRtnOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo) {}; - - ///报单操作错误回报 - virtual void OnErrRtnOrderAction(CThostFtdcOrderActionField *pOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; - - ///合约交易状态通知 - virtual void OnRtnInstrumentStatus(CThostFtdcInstrumentStatusField *pInstrumentStatus) {}; - - ///交易所公告通知 - virtual void OnRtnBulletin(CThostFtdcBulletinField *pBulletin) {}; - - ///交易通知 - virtual void OnRtnTradingNotice(CThostFtdcTradingNoticeInfoField *pTradingNoticeInfo) {}; - - ///提示条件单校验错误 - virtual void OnRtnErrorConditionalOrder(CThostFtdcErrorConditionalOrderField *pErrorConditionalOrder) {}; - - ///执行宣告通知 - virtual void OnRtnExecOrder(CThostFtdcExecOrderField *pExecOrder) {}; - - ///执行宣告录入错误回报 - virtual void OnErrRtnExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo) {}; - - ///执行宣告操作错误回报 - virtual void OnErrRtnExecOrderAction(CThostFtdcExecOrderActionField *pExecOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; - - ///询价录入错误回报 - virtual void OnErrRtnForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo) {}; - - ///报价通知 - virtual void OnRtnQuote(CThostFtdcQuoteField *pQuote) {}; - - ///报价录入错误回报 - virtual void OnErrRtnQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo) {}; - - ///报价操作错误回报 - virtual void OnErrRtnQuoteAction(CThostFtdcQuoteActionField *pQuoteAction, CThostFtdcRspInfoField *pRspInfo) {}; - - ///询价通知 - virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) {}; - - ///保证金监控中心用户令牌 - virtual void OnRtnCFMMCTradingAccountToken(CThostFtdcCFMMCTradingAccountTokenField *pCFMMCTradingAccountToken) {}; - - ///批量报单操作错误回报 - virtual void OnErrRtnBatchOrderAction(CThostFtdcBatchOrderActionField *pBatchOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; - - ///申请组合通知 - virtual void OnRtnCombAction(CThostFtdcCombActionField *pCombAction) {}; - - ///申请组合录入错误回报 - virtual void OnErrRtnCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo) {}; - - ///请求查询签约银行响应 - virtual void OnRspQryContractBank(CThostFtdcContractBankField *pContractBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询预埋单响应 - virtual void OnRspQryParkedOrder(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询预埋撤单响应 - virtual void OnRspQryParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询交易通知响应 - virtual void OnRspQryTradingNotice(CThostFtdcTradingNoticeField *pTradingNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询经纪公司交易参数响应 - virtual void OnRspQryBrokerTradingParams(CThostFtdcBrokerTradingParamsField *pBrokerTradingParams, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询经纪公司交易算法响应 - virtual void OnRspQryBrokerTradingAlgos(CThostFtdcBrokerTradingAlgosField *pBrokerTradingAlgos, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///请求查询监控中心用户令牌 - virtual void OnRspQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///银行发起银行资金转期货通知 - virtual void OnRtnFromBankToFutureByBank(CThostFtdcRspTransferField *pRspTransfer) {}; - - ///银行发起期货资金转银行通知 - virtual void OnRtnFromFutureToBankByBank(CThostFtdcRspTransferField *pRspTransfer) {}; - - ///银行发起冲正银行转期货通知 - virtual void OnRtnRepealFromBankToFutureByBank(CThostFtdcRspRepealField *pRspRepeal) {}; - - ///银行发起冲正期货转银行通知 - virtual void OnRtnRepealFromFutureToBankByBank(CThostFtdcRspRepealField *pRspRepeal) {}; - - ///期货发起银行资金转期货通知 - virtual void OnRtnFromBankToFutureByFuture(CThostFtdcRspTransferField *pRspTransfer) {}; - - ///期货发起期货资金转银行通知 - virtual void OnRtnFromFutureToBankByFuture(CThostFtdcRspTransferField *pRspTransfer) {}; - - ///系统运行时期货端手工发起冲正银行转期货请求,银行处理完毕后报盘发回的通知 - virtual void OnRtnRepealFromBankToFutureByFutureManual(CThostFtdcRspRepealField *pRspRepeal) {}; - - ///系统运行时期货端手工发起冲正期货转银行请求,银行处理完毕后报盘发回的通知 - virtual void OnRtnRepealFromFutureToBankByFutureManual(CThostFtdcRspRepealField *pRspRepeal) {}; - - ///期货发起查询银行余额通知 - virtual void OnRtnQueryBankBalanceByFuture(CThostFtdcNotifyQueryAccountField *pNotifyQueryAccount) {}; - - ///期货发起银行资金转期货错误回报 - virtual void OnErrRtnBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) {}; - - ///期货发起期货资金转银行错误回报 - virtual void OnErrRtnFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) {}; - - ///系统运行时期货端手工发起冲正银行转期货错误回报 - virtual void OnErrRtnRepealBankToFutureByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) {}; - - ///系统运行时期货端手工发起冲正期货转银行错误回报 - virtual void OnErrRtnRepealFutureToBankByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) {}; - - ///期货发起查询银行余额错误回报 - virtual void OnErrRtnQueryBankBalanceByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo) {}; - - ///期货发起冲正银行转期货请求,银行处理完毕后报盘发回的通知 - virtual void OnRtnRepealFromBankToFutureByFuture(CThostFtdcRspRepealField *pRspRepeal) {}; - - ///期货发起冲正期货转银行请求,银行处理完毕后报盘发回的通知 - virtual void OnRtnRepealFromFutureToBankByFuture(CThostFtdcRspRepealField *pRspRepeal) {}; - - ///期货发起银行资金转期货应答 - virtual void OnRspFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///期货发起期货资金转银行应答 - virtual void OnRspFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///期货发起查询银行余额应答 - virtual void OnRspQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///银行发起银期开户通知 - virtual void OnRtnOpenAccountByBank(CThostFtdcOpenAccountField *pOpenAccount) {}; - - ///银行发起银期销户通知 - virtual void OnRtnCancelAccountByBank(CThostFtdcCancelAccountField *pCancelAccount) {}; - - ///银行发起变更银行账号通知 - virtual void OnRtnChangeAccountByBank(CThostFtdcChangeAccountField *pChangeAccount) {}; -}; - -class TRADER_API_EXPORT CThostFtdcTraderApi -{ -public: - ///创建TraderApi - ///@param pszFlowPath 存贮订阅信息文件的目录,默认为当前目录 - ///@return 创建出的UserApi - static CThostFtdcTraderApi *CreateFtdcTraderApi(const char *pszFlowPath = ""); - - ///获取API的版本信息 - ///@retrun 获取到的版本号 - static const char *GetApiVersion(); - - ///删除接口对象本身 - ///@remark 不再使用本接口对象时,调用该函数删除接口对象 - virtual void Release() = 0; - - ///初始化 - ///@remark 初始化运行环境,只有调用后,接口才开始工作 - virtual void Init() = 0; - - ///等待接口线程结束运行 - ///@return 线程退出代码 - virtual int Join() = 0; - - ///获取当前交易日 - ///@retrun 获取到的交易日 - ///@remark 只有登录成功后,才能得到正确的交易日 - virtual const char *GetTradingDay() = 0; - - ///注册前置机网络地址 - ///@param pszFrontAddress:前置机网络地址。 - ///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:17001”。 - ///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”17001”代表服务器端口号。 - virtual void RegisterFront(char *pszFrontAddress) = 0; - - ///注册名字服务器网络地址 - ///@param pszNsAddress:名字服务器网络地址。 - ///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:12001”。 - ///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”12001”代表服务器端口号。 - ///@remark RegisterNameServer优先于RegisterFront - virtual void RegisterNameServer(char *pszNsAddress) = 0; - - ///注册名字服务器用户信息 - ///@param pFensUserInfo:用户信息。 - virtual void RegisterFensUserInfo(CThostFtdcFensUserInfoField * pFensUserInfo) = 0; - - ///注册回调接口 - ///@param pSpi 派生自回调接口类的实例 - virtual void RegisterSpi(CThostFtdcTraderSpi *pSpi) = 0; - - ///订阅私有流。 - ///@param nResumeType 私有流重传方式 - /// THOST_TERT_RESTART:从本交易日开始重传 - /// THOST_TERT_RESUME:从上次收到的续传 - /// THOST_TERT_QUICK:只传送登录后私有流的内容 - ///@remark 该方法要在Init方法前调用。若不调用则不会收到私有流的数据。 - virtual void SubscribePrivateTopic(THOST_TE_RESUME_TYPE nResumeType) = 0; - - ///订阅公共流。 - ///@param nResumeType 公共流重传方式 - /// THOST_TERT_RESTART:从本交易日开始重传 - /// THOST_TERT_RESUME:从上次收到的续传 - /// THOST_TERT_QUICK:只传送登录后公共流的内容 - ///@remark 该方法要在Init方法前调用。若不调用则不会收到公共流的数据。 - virtual void SubscribePublicTopic(THOST_TE_RESUME_TYPE nResumeType) = 0; - - ///客户端认证请求 - virtual int ReqAuthenticate(CThostFtdcReqAuthenticateField *pReqAuthenticateField, int nRequestID) = 0; - - ///用户登录请求 - virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0; - - - ///登出请求 - virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0; - - ///用户口令更新请求 - virtual int ReqUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, int nRequestID) = 0; - - ///资金账户口令更新请求 - virtual int ReqTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, int nRequestID) = 0; - - ///报单录入请求 - virtual int ReqOrderInsert(CThostFtdcInputOrderField *pInputOrder, int nRequestID) = 0; - - ///预埋单录入请求 - virtual int ReqParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, int nRequestID) = 0; - - ///预埋撤单录入请求 - virtual int ReqParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, int nRequestID) = 0; - - ///报单操作请求 - virtual int ReqOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, int nRequestID) = 0; - - ///查询最大报单数量请求 - virtual int ReqQueryMaxOrderVolume(CThostFtdcQueryMaxOrderVolumeField *pQueryMaxOrderVolume, int nRequestID) = 0; - - ///投资者结算结果确认 - virtual int ReqSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, int nRequestID) = 0; - - ///请求删除预埋单 - virtual int ReqRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, int nRequestID) = 0; - - ///请求删除预埋撤单 - virtual int ReqRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, int nRequestID) = 0; - - ///执行宣告录入请求 - virtual int ReqExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, int nRequestID) = 0; - - ///执行宣告操作请求 - virtual int ReqExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, int nRequestID) = 0; - - ///询价录入请求 - virtual int ReqForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, int nRequestID) = 0; - - ///报价录入请求 - virtual int ReqQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, int nRequestID) = 0; - - ///报价操作请求 - virtual int ReqQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, int nRequestID) = 0; - - ///批量报单操作请求 - virtual int ReqBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, int nRequestID) = 0; - - ///申请组合录入请求 - virtual int ReqCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, int nRequestID) = 0; - - ///请求查询报单 - virtual int ReqQryOrder(CThostFtdcQryOrderField *pQryOrder, int nRequestID) = 0; - - ///请求查询成交 - virtual int ReqQryTrade(CThostFtdcQryTradeField *pQryTrade, int nRequestID) = 0; - - ///请求查询投资者持仓 - virtual int ReqQryInvestorPosition(CThostFtdcQryInvestorPositionField *pQryInvestorPosition, int nRequestID) = 0; - - ///请求查询资金账户 - virtual int ReqQryTradingAccount(CThostFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0; - - ///请求查询投资者 - virtual int ReqQryInvestor(CThostFtdcQryInvestorField *pQryInvestor, int nRequestID) = 0; - - ///请求查询交易编码 - virtual int ReqQryTradingCode(CThostFtdcQryTradingCodeField *pQryTradingCode, int nRequestID) = 0; - - ///请求查询合约保证金率 - virtual int ReqQryInstrumentMarginRate(CThostFtdcQryInstrumentMarginRateField *pQryInstrumentMarginRate, int nRequestID) = 0; - - ///请求查询合约手续费率 - virtual int ReqQryInstrumentCommissionRate(CThostFtdcQryInstrumentCommissionRateField *pQryInstrumentCommissionRate, int nRequestID) = 0; - - ///请求查询交易所 - virtual int ReqQryExchange(CThostFtdcQryExchangeField *pQryExchange, int nRequestID) = 0; - - ///请求查询产品 - virtual int ReqQryProduct(CThostFtdcQryProductField *pQryProduct, int nRequestID) = 0; - - ///请求查询合约 - virtual int ReqQryInstrument(CThostFtdcQryInstrumentField *pQryInstrument, int nRequestID) = 0; - - ///请求查询行情 - virtual int ReqQryDepthMarketData(CThostFtdcQryDepthMarketDataField *pQryDepthMarketData, int nRequestID) = 0; - - ///请求查询投资者结算结果 - virtual int ReqQrySettlementInfo(CThostFtdcQrySettlementInfoField *pQrySettlementInfo, int nRequestID) = 0; - - ///请求查询转帐银行 - virtual int ReqQryTransferBank(CThostFtdcQryTransferBankField *pQryTransferBank, int nRequestID) = 0; - - ///请求查询投资者持仓明细 - virtual int ReqQryInvestorPositionDetail(CThostFtdcQryInvestorPositionDetailField *pQryInvestorPositionDetail, int nRequestID) = 0; - - ///请求查询客户通知 - virtual int ReqQryNotice(CThostFtdcQryNoticeField *pQryNotice, int nRequestID) = 0; - - ///请求查询结算信息确认 - virtual int ReqQrySettlementInfoConfirm(CThostFtdcQrySettlementInfoConfirmField *pQrySettlementInfoConfirm, int nRequestID) = 0; - - ///请求查询投资者持仓明细 - virtual int ReqQryInvestorPositionCombineDetail(CThostFtdcQryInvestorPositionCombineDetailField *pQryInvestorPositionCombineDetail, int nRequestID) = 0; - - ///请求查询保证金监管系统经纪公司资金账户密钥 - virtual int ReqQryCFMMCTradingAccountKey(CThostFtdcQryCFMMCTradingAccountKeyField *pQryCFMMCTradingAccountKey, int nRequestID) = 0; - - ///请求查询仓单折抵信息 - virtual int ReqQryEWarrantOffset(CThostFtdcQryEWarrantOffsetField *pQryEWarrantOffset, int nRequestID) = 0; - - ///请求查询投资者品种/跨品种保证金 - virtual int ReqQryInvestorProductGroupMargin(CThostFtdcQryInvestorProductGroupMarginField *pQryInvestorProductGroupMargin, int nRequestID) = 0; - - ///请求查询交易所保证金率 - virtual int ReqQryExchangeMarginRate(CThostFtdcQryExchangeMarginRateField *pQryExchangeMarginRate, int nRequestID) = 0; - - ///请求查询交易所调整保证金率 - virtual int ReqQryExchangeMarginRateAdjust(CThostFtdcQryExchangeMarginRateAdjustField *pQryExchangeMarginRateAdjust, int nRequestID) = 0; - - ///请求查询汇率 - virtual int ReqQryExchangeRate(CThostFtdcQryExchangeRateField *pQryExchangeRate, int nRequestID) = 0; - - ///请求查询二级代理操作员银期权限 - virtual int ReqQrySecAgentACIDMap(CThostFtdcQrySecAgentACIDMapField *pQrySecAgentACIDMap, int nRequestID) = 0; - - ///请求查询产品报价汇率 - virtual int ReqQryProductExchRate(CThostFtdcQryProductExchRateField *pQryProductExchRate, int nRequestID) = 0; - - ///请求查询产品组 - virtual int ReqQryProductGroup(CThostFtdcQryProductGroupField *pQryProductGroup, int nRequestID) = 0; - - ///请求查询做市商合约手续费率 - virtual int ReqQryMMInstrumentCommissionRate(CThostFtdcQryMMInstrumentCommissionRateField *pQryMMInstrumentCommissionRate, int nRequestID) = 0; - - ///请求查询做市商期权合约手续费 - virtual int ReqQryMMOptionInstrCommRate(CThostFtdcQryMMOptionInstrCommRateField *pQryMMOptionInstrCommRate, int nRequestID) = 0; - - ///请求查询报单手续费 - virtual int ReqQryInstrumentOrderCommRate(CThostFtdcQryInstrumentOrderCommRateField *pQryInstrumentOrderCommRate, int nRequestID) = 0; - - ///请求查询期权交易成本 - virtual int ReqQryOptionInstrTradeCost(CThostFtdcQryOptionInstrTradeCostField *pQryOptionInstrTradeCost, int nRequestID) = 0; - - ///请求查询期权合约手续费 - virtual int ReqQryOptionInstrCommRate(CThostFtdcQryOptionInstrCommRateField *pQryOptionInstrCommRate, int nRequestID) = 0; - - ///请求查询执行宣告 - virtual int ReqQryExecOrder(CThostFtdcQryExecOrderField *pQryExecOrder, int nRequestID) = 0; - - ///请求查询询价 - virtual int ReqQryForQuote(CThostFtdcQryForQuoteField *pQryForQuote, int nRequestID) = 0; - - ///请求查询报价 - virtual int ReqQryQuote(CThostFtdcQryQuoteField *pQryQuote, int nRequestID) = 0; - - ///请求查询组合合约安全系数 - virtual int ReqQryCombInstrumentGuard(CThostFtdcQryCombInstrumentGuardField *pQryCombInstrumentGuard, int nRequestID) = 0; - - ///请求查询申请组合 - virtual int ReqQryCombAction(CThostFtdcQryCombActionField *pQryCombAction, int nRequestID) = 0; - - ///请求查询转帐流水 - virtual int ReqQryTransferSerial(CThostFtdcQryTransferSerialField *pQryTransferSerial, int nRequestID) = 0; - - ///请求查询银期签约关系 - virtual int ReqQryAccountregister(CThostFtdcQryAccountregisterField *pQryAccountregister, int nRequestID) = 0; - - ///请求查询签约银行 - virtual int ReqQryContractBank(CThostFtdcQryContractBankField *pQryContractBank, int nRequestID) = 0; - - ///请求查询预埋单 - virtual int ReqQryParkedOrder(CThostFtdcQryParkedOrderField *pQryParkedOrder, int nRequestID) = 0; - - ///请求查询预埋撤单 - virtual int ReqQryParkedOrderAction(CThostFtdcQryParkedOrderActionField *pQryParkedOrderAction, int nRequestID) = 0; - - ///请求查询交易通知 - virtual int ReqQryTradingNotice(CThostFtdcQryTradingNoticeField *pQryTradingNotice, int nRequestID) = 0; - - ///请求查询经纪公司交易参数 - virtual int ReqQryBrokerTradingParams(CThostFtdcQryBrokerTradingParamsField *pQryBrokerTradingParams, int nRequestID) = 0; - - ///请求查询经纪公司交易算法 - virtual int ReqQryBrokerTradingAlgos(CThostFtdcQryBrokerTradingAlgosField *pQryBrokerTradingAlgos, int nRequestID) = 0; - - ///请求查询监控中心用户令牌 - virtual int ReqQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, int nRequestID) = 0; - - ///期货发起银行资金转期货请求 - virtual int ReqFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, int nRequestID) = 0; - - ///期货发起期货资金转银行请求 - virtual int ReqFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, int nRequestID) = 0; - - ///期货发起查询银行余额请求 - virtual int ReqQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, int nRequestID) = 0; -protected: - ~CThostFtdcTraderApi(){}; -}; - -#endif +///////////////////////////////////////////////////////////////////////// +///@system 新一代交易所系统 +///@company 上海期货信息技术有限公司 +///@file ThostFtdcTraderApi.h +///@brief 定义了客户端接口 +///@history +///20060106 赵鸿昊 创建该文件 +///////////////////////////////////////////////////////////////////////// + +#if !defined(THOST_FTDCTRADERAPI_H) +#define THOST_FTDCTRADERAPI_H + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#include "ThostFtdcUserApiStruct.h" + +#if defined(ISLIB) && defined(WIN32) +#ifdef LIB_TRADER_API_EXPORT +#define TRADER_API_EXPORT __declspec(dllexport) +#else +#define TRADER_API_EXPORT __declspec(dllimport) +#endif +#else +#define TRADER_API_EXPORT +#endif + +class CThostFtdcTraderSpi +{ +public: + ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。 + virtual void OnFrontConnected(){}; + + ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。 + ///@param nReason 错误原因 + /// 0x1001 网络读失败 + /// 0x1002 网络写失败 + /// 0x2001 接收心跳超时 + /// 0x2002 发送心跳失败 + /// 0x2003 收到错误报文 + virtual void OnFrontDisconnected(int nReason){}; + + ///心跳超时警告。当长时间未收到报文时,该方法被调用。 + ///@param nTimeLapse 距离上次接收报文的时间 + virtual void OnHeartBeatWarning(int nTimeLapse){}; + + ///客户端认证响应 + virtual void OnRspAuthenticate(CThostFtdcRspAuthenticateField *pRspAuthenticateField, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + + ///登录请求响应 + virtual void OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///登出请求响应 + virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///用户口令更新请求响应 + virtual void OnRspUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///资金账户口令更新请求响应 + virtual void OnRspTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///查询用户当前支持的认证模式的回复 + virtual void OnRspUserAuthMethod(CThostFtdcRspUserAuthMethodField *pRspUserAuthMethod, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///获取图形验证码请求的回复 + virtual void OnRspGenUserCaptcha(CThostFtdcRspGenUserCaptchaField *pRspGenUserCaptcha, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///获取短信验证码请求的回复 + virtual void OnRspGenUserText(CThostFtdcRspGenUserTextField *pRspGenUserText, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///报单录入请求响应 + virtual void OnRspOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///预埋单录入请求响应 + virtual void OnRspParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///预埋撤单录入请求响应 + virtual void OnRspParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///报单操作请求响应 + virtual void OnRspOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///查询最大报单数量响应 + virtual void OnRspQueryMaxOrderVolume(CThostFtdcQueryMaxOrderVolumeField *pQueryMaxOrderVolume, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///投资者结算结果确认响应 + virtual void OnRspSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///删除预埋单响应 + virtual void OnRspRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///删除预埋撤单响应 + virtual void OnRspRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///执行宣告录入请求响应 + virtual void OnRspExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///执行宣告操作请求响应 + virtual void OnRspExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///询价录入请求响应 + virtual void OnRspForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///报价录入请求响应 + virtual void OnRspQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///报价操作请求响应 + virtual void OnRspQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///批量报单操作请求响应 + virtual void OnRspBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///期权自对冲录入请求响应 + virtual void OnRspOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///期权自对冲操作请求响应 + virtual void OnRspOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField *pInputOptionSelfCloseAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///申请组合录入请求响应 + virtual void OnRspCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询报单响应 + virtual void OnRspQryOrder(CThostFtdcOrderField *pOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询成交响应 + virtual void OnRspQryTrade(CThostFtdcTradeField *pTrade, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询投资者持仓响应 + virtual void OnRspQryInvestorPosition(CThostFtdcInvestorPositionField *pInvestorPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询资金账户响应 + virtual void OnRspQryTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询投资者响应 + virtual void OnRspQryInvestor(CThostFtdcInvestorField *pInvestor, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询交易编码响应 + virtual void OnRspQryTradingCode(CThostFtdcTradingCodeField *pTradingCode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询合约保证金率响应 + virtual void OnRspQryInstrumentMarginRate(CThostFtdcInstrumentMarginRateField *pInstrumentMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询合约手续费率响应 + virtual void OnRspQryInstrumentCommissionRate(CThostFtdcInstrumentCommissionRateField *pInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询交易所响应 + virtual void OnRspQryExchange(CThostFtdcExchangeField *pExchange, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询产品响应 + virtual void OnRspQryProduct(CThostFtdcProductField *pProduct, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询合约响应 + virtual void OnRspQryInstrument(CThostFtdcInstrumentField *pInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询行情响应 + virtual void OnRspQryDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询投资者结算结果响应 + virtual void OnRspQrySettlementInfo(CThostFtdcSettlementInfoField *pSettlementInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询转帐银行响应 + virtual void OnRspQryTransferBank(CThostFtdcTransferBankField *pTransferBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询投资者持仓明细响应 + virtual void OnRspQryInvestorPositionDetail(CThostFtdcInvestorPositionDetailField *pInvestorPositionDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询客户通知响应 + virtual void OnRspQryNotice(CThostFtdcNoticeField *pNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询结算信息确认响应 + virtual void OnRspQrySettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询投资者持仓明细响应 + virtual void OnRspQryInvestorPositionCombineDetail(CThostFtdcInvestorPositionCombineDetailField *pInvestorPositionCombineDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///查询保证金监管系统经纪公司资金账户密钥响应 + virtual void OnRspQryCFMMCTradingAccountKey(CThostFtdcCFMMCTradingAccountKeyField *pCFMMCTradingAccountKey, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询仓单折抵信息响应 + virtual void OnRspQryEWarrantOffset(CThostFtdcEWarrantOffsetField *pEWarrantOffset, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询投资者品种/跨品种保证金响应 + virtual void OnRspQryInvestorProductGroupMargin(CThostFtdcInvestorProductGroupMarginField *pInvestorProductGroupMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询交易所保证金率响应 + virtual void OnRspQryExchangeMarginRate(CThostFtdcExchangeMarginRateField *pExchangeMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询交易所调整保证金率响应 + virtual void OnRspQryExchangeMarginRateAdjust(CThostFtdcExchangeMarginRateAdjustField *pExchangeMarginRateAdjust, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询汇率响应 + virtual void OnRspQryExchangeRate(CThostFtdcExchangeRateField *pExchangeRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询二级代理操作员银期权限响应 + virtual void OnRspQrySecAgentACIDMap(CThostFtdcSecAgentACIDMapField *pSecAgentACIDMap, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询产品报价汇率 + virtual void OnRspQryProductExchRate(CThostFtdcProductExchRateField *pProductExchRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询产品组 + virtual void OnRspQryProductGroup(CThostFtdcProductGroupField *pProductGroup, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询做市商合约手续费率响应 + virtual void OnRspQryMMInstrumentCommissionRate(CThostFtdcMMInstrumentCommissionRateField *pMMInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询做市商期权合约手续费响应 + virtual void OnRspQryMMOptionInstrCommRate(CThostFtdcMMOptionInstrCommRateField *pMMOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询报单手续费响应 + virtual void OnRspQryInstrumentOrderCommRate(CThostFtdcInstrumentOrderCommRateField *pInstrumentOrderCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询资金账户响应 + virtual void OnRspQrySecAgentTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询二级代理商资金校验模式响应 + virtual void OnRspQrySecAgentCheckMode(CThostFtdcSecAgentCheckModeField *pSecAgentCheckMode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询二级代理商信息响应 + virtual void OnRspQrySecAgentTradeInfo(CThostFtdcSecAgentTradeInfoField *pSecAgentTradeInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询期权交易成本响应 + virtual void OnRspQryOptionInstrTradeCost(CThostFtdcOptionInstrTradeCostField *pOptionInstrTradeCost, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询期权合约手续费响应 + virtual void OnRspQryOptionInstrCommRate(CThostFtdcOptionInstrCommRateField *pOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询执行宣告响应 + virtual void OnRspQryExecOrder(CThostFtdcExecOrderField *pExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询询价响应 + virtual void OnRspQryForQuote(CThostFtdcForQuoteField *pForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询报价响应 + virtual void OnRspQryQuote(CThostFtdcQuoteField *pQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询期权自对冲响应 + virtual void OnRspQryOptionSelfClose(CThostFtdcOptionSelfCloseField *pOptionSelfClose, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询投资单元响应 + virtual void OnRspQryInvestUnit(CThostFtdcInvestUnitField *pInvestUnit, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询组合合约安全系数响应 + virtual void OnRspQryCombInstrumentGuard(CThostFtdcCombInstrumentGuardField *pCombInstrumentGuard, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询申请组合响应 + virtual void OnRspQryCombAction(CThostFtdcCombActionField *pCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询转帐流水响应 + virtual void OnRspQryTransferSerial(CThostFtdcTransferSerialField *pTransferSerial, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询银期签约关系响应 + virtual void OnRspQryAccountregister(CThostFtdcAccountregisterField *pAccountregister, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///错误应答 + virtual void OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///报单通知 + virtual void OnRtnOrder(CThostFtdcOrderField *pOrder) {}; + + ///成交通知 + virtual void OnRtnTrade(CThostFtdcTradeField *pTrade) {}; + + ///报单录入错误回报 + virtual void OnErrRtnOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo) {}; + + ///报单操作错误回报 + virtual void OnErrRtnOrderAction(CThostFtdcOrderActionField *pOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; + + ///合约交易状态通知 + virtual void OnRtnInstrumentStatus(CThostFtdcInstrumentStatusField *pInstrumentStatus) {}; + + ///交易所公告通知 + virtual void OnRtnBulletin(CThostFtdcBulletinField *pBulletin) {}; + + ///交易通知 + virtual void OnRtnTradingNotice(CThostFtdcTradingNoticeInfoField *pTradingNoticeInfo) {}; + + ///提示条件单校验错误 + virtual void OnRtnErrorConditionalOrder(CThostFtdcErrorConditionalOrderField *pErrorConditionalOrder) {}; + + ///执行宣告通知 + virtual void OnRtnExecOrder(CThostFtdcExecOrderField *pExecOrder) {}; + + ///执行宣告录入错误回报 + virtual void OnErrRtnExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo) {}; + + ///执行宣告操作错误回报 + virtual void OnErrRtnExecOrderAction(CThostFtdcExecOrderActionField *pExecOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; + + ///询价录入错误回报 + virtual void OnErrRtnForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo) {}; + + ///报价通知 + virtual void OnRtnQuote(CThostFtdcQuoteField *pQuote) {}; + + ///报价录入错误回报 + virtual void OnErrRtnQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo) {}; + + ///报价操作错误回报 + virtual void OnErrRtnQuoteAction(CThostFtdcQuoteActionField *pQuoteAction, CThostFtdcRspInfoField *pRspInfo) {}; + + ///询价通知 + virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) {}; + + ///保证金监控中心用户令牌 + virtual void OnRtnCFMMCTradingAccountToken(CThostFtdcCFMMCTradingAccountTokenField *pCFMMCTradingAccountToken) {}; + + ///批量报单操作错误回报 + virtual void OnErrRtnBatchOrderAction(CThostFtdcBatchOrderActionField *pBatchOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; + + ///期权自对冲通知 + virtual void OnRtnOptionSelfClose(CThostFtdcOptionSelfCloseField *pOptionSelfClose) {}; + + ///期权自对冲录入错误回报 + virtual void OnErrRtnOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, CThostFtdcRspInfoField *pRspInfo) {}; + + ///期权自对冲操作错误回报 + virtual void OnErrRtnOptionSelfCloseAction(CThostFtdcOptionSelfCloseActionField *pOptionSelfCloseAction, CThostFtdcRspInfoField *pRspInfo) {}; + + ///申请组合通知 + virtual void OnRtnCombAction(CThostFtdcCombActionField *pCombAction) {}; + + ///申请组合录入错误回报 + virtual void OnErrRtnCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo) {}; + + ///请求查询签约银行响应 + virtual void OnRspQryContractBank(CThostFtdcContractBankField *pContractBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询预埋单响应 + virtual void OnRspQryParkedOrder(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询预埋撤单响应 + virtual void OnRspQryParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询交易通知响应 + virtual void OnRspQryTradingNotice(CThostFtdcTradingNoticeField *pTradingNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询经纪公司交易参数响应 + virtual void OnRspQryBrokerTradingParams(CThostFtdcBrokerTradingParamsField *pBrokerTradingParams, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询经纪公司交易算法响应 + virtual void OnRspQryBrokerTradingAlgos(CThostFtdcBrokerTradingAlgosField *pBrokerTradingAlgos, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询监控中心用户令牌 + virtual void OnRspQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///银行发起银行资金转期货通知 + virtual void OnRtnFromBankToFutureByBank(CThostFtdcRspTransferField *pRspTransfer) {}; + + ///银行发起期货资金转银行通知 + virtual void OnRtnFromFutureToBankByBank(CThostFtdcRspTransferField *pRspTransfer) {}; + + ///银行发起冲正银行转期货通知 + virtual void OnRtnRepealFromBankToFutureByBank(CThostFtdcRspRepealField *pRspRepeal) {}; + + ///银行发起冲正期货转银行通知 + virtual void OnRtnRepealFromFutureToBankByBank(CThostFtdcRspRepealField *pRspRepeal) {}; + + ///期货发起银行资金转期货通知 + virtual void OnRtnFromBankToFutureByFuture(CThostFtdcRspTransferField *pRspTransfer) {}; + + ///期货发起期货资金转银行通知 + virtual void OnRtnFromFutureToBankByFuture(CThostFtdcRspTransferField *pRspTransfer) {}; + + ///系统运行时期货端手工发起冲正银行转期货请求,银行处理完毕后报盘发回的通知 + virtual void OnRtnRepealFromBankToFutureByFutureManual(CThostFtdcRspRepealField *pRspRepeal) {}; + + ///系统运行时期货端手工发起冲正期货转银行请求,银行处理完毕后报盘发回的通知 + virtual void OnRtnRepealFromFutureToBankByFutureManual(CThostFtdcRspRepealField *pRspRepeal) {}; + + ///期货发起查询银行余额通知 + virtual void OnRtnQueryBankBalanceByFuture(CThostFtdcNotifyQueryAccountField *pNotifyQueryAccount) {}; + + ///期货发起银行资金转期货错误回报 + virtual void OnErrRtnBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) {}; + + ///期货发起期货资金转银行错误回报 + virtual void OnErrRtnFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) {}; + + ///系统运行时期货端手工发起冲正银行转期货错误回报 + virtual void OnErrRtnRepealBankToFutureByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) {}; + + ///系统运行时期货端手工发起冲正期货转银行错误回报 + virtual void OnErrRtnRepealFutureToBankByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) {}; + + ///期货发起查询银行余额错误回报 + virtual void OnErrRtnQueryBankBalanceByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo) {}; + + ///期货发起冲正银行转期货请求,银行处理完毕后报盘发回的通知 + virtual void OnRtnRepealFromBankToFutureByFuture(CThostFtdcRspRepealField *pRspRepeal) {}; + + ///期货发起冲正期货转银行请求,银行处理完毕后报盘发回的通知 + virtual void OnRtnRepealFromFutureToBankByFuture(CThostFtdcRspRepealField *pRspRepeal) {}; + + ///期货发起银行资金转期货应答 + virtual void OnRspFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///期货发起期货资金转银行应答 + virtual void OnRspFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///期货发起查询银行余额应答 + virtual void OnRspQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///银行发起银期开户通知 + virtual void OnRtnOpenAccountByBank(CThostFtdcOpenAccountField *pOpenAccount) {}; + + ///银行发起银期销户通知 + virtual void OnRtnCancelAccountByBank(CThostFtdcCancelAccountField *pCancelAccount) {}; + + ///银行发起变更银行账号通知 + virtual void OnRtnChangeAccountByBank(CThostFtdcChangeAccountField *pChangeAccount) {}; +}; + +class TRADER_API_EXPORT CThostFtdcTraderApi +{ +public: + ///创建TraderApi + ///@param pszFlowPath 存贮订阅信息文件的目录,默认为当前目录 + ///@return 创建出的UserApi + static CThostFtdcTraderApi *CreateFtdcTraderApi(const char *pszFlowPath = ""); + + ///获取API的版本信息 + ///@retrun 获取到的版本号 + static const char *GetApiVersion(); + + ///删除接口对象本身 + ///@remark 不再使用本接口对象时,调用该函数删除接口对象 + virtual void Release() = 0; + + ///初始化 + ///@remark 初始化运行环境,只有调用后,接口才开始工作 + virtual void Init() = 0; + + ///等待接口线程结束运行 + ///@return 线程退出代码 + virtual int Join() = 0; + + ///获取当前交易日 + ///@retrun 获取到的交易日 + ///@remark 只有登录成功后,才能得到正确的交易日 + virtual const char *GetTradingDay() = 0; + + ///注册前置机网络地址 + ///@param pszFrontAddress:前置机网络地址。 + ///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:17001”。 + ///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”17001”代表服务器端口号。 + virtual void RegisterFront(char *pszFrontAddress) = 0; + + ///注册名字服务器网络地址 + ///@param pszNsAddress:名字服务器网络地址。 + ///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:12001”。 + ///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”12001”代表服务器端口号。 + ///@remark RegisterNameServer优先于RegisterFront + virtual void RegisterNameServer(char *pszNsAddress) = 0; + + ///注册名字服务器用户信息 + ///@param pFensUserInfo:用户信息。 + virtual void RegisterFensUserInfo(CThostFtdcFensUserInfoField * pFensUserInfo) = 0; + + ///注册回调接口 + ///@param pSpi 派生自回调接口类的实例 + virtual void RegisterSpi(CThostFtdcTraderSpi *pSpi) = 0; + + ///订阅私有流。 + ///@param nResumeType 私有流重传方式 + /// THOST_TERT_RESTART:从本交易日开始重传 + /// THOST_TERT_RESUME:从上次收到的续传 + /// THOST_TERT_QUICK:只传送登录后私有流的内容 + ///@remark 该方法要在Init方法前调用。若不调用则不会收到私有流的数据。 + virtual void SubscribePrivateTopic(THOST_TE_RESUME_TYPE nResumeType) = 0; + + ///订阅公共流。 + ///@param nResumeType 公共流重传方式 + /// THOST_TERT_RESTART:从本交易日开始重传 + /// THOST_TERT_RESUME:从上次收到的续传 + /// THOST_TERT_QUICK:只传送登录后公共流的内容 + ///@remark 该方法要在Init方法前调用。若不调用则不会收到公共流的数据。 + virtual void SubscribePublicTopic(THOST_TE_RESUME_TYPE nResumeType) = 0; + + ///客户端认证请求 + virtual int ReqAuthenticate(CThostFtdcReqAuthenticateField *pReqAuthenticateField, int nRequestID) = 0; + + ///注册用户终端信息,用于中继服务器多连接模式 + ///需要在终端认证成功后,用户登录前调用该接口 + virtual int RegisterUserSystemInfo(CThostFtdcUserSystemInfoField *pUserSystemInfo) = 0; + + ///上报用户终端信息,用于中继服务器操作员登录模式 + ///操作员登录后,可以多次调用该接口上报客户信息 + virtual int SubmitUserSystemInfo(CThostFtdcUserSystemInfoField *pUserSystemInfo) = 0; + + ///用户登录请求 + virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0; + + ///登出请求 + virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0; + + ///用户口令更新请求 + virtual int ReqUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, int nRequestID) = 0; + + ///资金账户口令更新请求 + virtual int ReqTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, int nRequestID) = 0; + + ///查询用户当前支持的认证模式 + virtual int ReqUserAuthMethod(CThostFtdcReqUserAuthMethodField *pReqUserAuthMethod, int nRequestID) = 0; + + ///用户发出获取图形验证码请求 + virtual int ReqGenUserCaptcha(CThostFtdcReqGenUserCaptchaField *pReqGenUserCaptcha, int nRequestID) = 0; + + ///用户发出获取短信验证码请求 + virtual int ReqGenUserText(CThostFtdcReqGenUserTextField *pReqGenUserText, int nRequestID) = 0; + + ///用户发出带有图片验证码的登陆请求 + virtual int ReqUserLoginWithCaptcha(CThostFtdcReqUserLoginWithCaptchaField *pReqUserLoginWithCaptcha, int nRequestID) = 0; + + ///用户发出带有短信验证码的登陆请求 + virtual int ReqUserLoginWithText(CThostFtdcReqUserLoginWithTextField *pReqUserLoginWithText, int nRequestID) = 0; + + ///用户发出带有动态口令的登陆请求 + virtual int ReqUserLoginWithOTP(CThostFtdcReqUserLoginWithOTPField *pReqUserLoginWithOTP, int nRequestID) = 0; + + ///报单录入请求 + virtual int ReqOrderInsert(CThostFtdcInputOrderField *pInputOrder, int nRequestID) = 0; + + ///预埋单录入请求 + virtual int ReqParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, int nRequestID) = 0; + + ///预埋撤单录入请求 + virtual int ReqParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, int nRequestID) = 0; + + ///报单操作请求 + virtual int ReqOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, int nRequestID) = 0; + + ///查询最大报单数量请求 + virtual int ReqQueryMaxOrderVolume(CThostFtdcQueryMaxOrderVolumeField *pQueryMaxOrderVolume, int nRequestID) = 0; + + ///投资者结算结果确认 + virtual int ReqSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, int nRequestID) = 0; + + ///请求删除预埋单 + virtual int ReqRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, int nRequestID) = 0; + + ///请求删除预埋撤单 + virtual int ReqRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, int nRequestID) = 0; + + ///执行宣告录入请求 + virtual int ReqExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, int nRequestID) = 0; + + ///执行宣告操作请求 + virtual int ReqExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, int nRequestID) = 0; + + ///询价录入请求 + virtual int ReqForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, int nRequestID) = 0; + + ///报价录入请求 + virtual int ReqQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, int nRequestID) = 0; + + ///报价操作请求 + virtual int ReqQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, int nRequestID) = 0; + + ///批量报单操作请求 + virtual int ReqBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, int nRequestID) = 0; + + ///期权自对冲录入请求 + virtual int ReqOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, int nRequestID) = 0; + + ///期权自对冲操作请求 + virtual int ReqOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField *pInputOptionSelfCloseAction, int nRequestID) = 0; + + ///申请组合录入请求 + virtual int ReqCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, int nRequestID) = 0; + + ///请求查询报单 + virtual int ReqQryOrder(CThostFtdcQryOrderField *pQryOrder, int nRequestID) = 0; + + ///请求查询成交 + virtual int ReqQryTrade(CThostFtdcQryTradeField *pQryTrade, int nRequestID) = 0; + + ///请求查询投资者持仓 + virtual int ReqQryInvestorPosition(CThostFtdcQryInvestorPositionField *pQryInvestorPosition, int nRequestID) = 0; + + ///请求查询资金账户 + virtual int ReqQryTradingAccount(CThostFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0; + + ///请求查询投资者 + virtual int ReqQryInvestor(CThostFtdcQryInvestorField *pQryInvestor, int nRequestID) = 0; + + ///请求查询交易编码 + virtual int ReqQryTradingCode(CThostFtdcQryTradingCodeField *pQryTradingCode, int nRequestID) = 0; + + ///请求查询合约保证金率 + virtual int ReqQryInstrumentMarginRate(CThostFtdcQryInstrumentMarginRateField *pQryInstrumentMarginRate, int nRequestID) = 0; + + ///请求查询合约手续费率 + virtual int ReqQryInstrumentCommissionRate(CThostFtdcQryInstrumentCommissionRateField *pQryInstrumentCommissionRate, int nRequestID) = 0; + + ///请求查询交易所 + virtual int ReqQryExchange(CThostFtdcQryExchangeField *pQryExchange, int nRequestID) = 0; + + ///请求查询产品 + virtual int ReqQryProduct(CThostFtdcQryProductField *pQryProduct, int nRequestID) = 0; + + ///请求查询合约 + virtual int ReqQryInstrument(CThostFtdcQryInstrumentField *pQryInstrument, int nRequestID) = 0; + + ///请求查询行情 + virtual int ReqQryDepthMarketData(CThostFtdcQryDepthMarketDataField *pQryDepthMarketData, int nRequestID) = 0; + + ///请求查询投资者结算结果 + virtual int ReqQrySettlementInfo(CThostFtdcQrySettlementInfoField *pQrySettlementInfo, int nRequestID) = 0; + + ///请求查询转帐银行 + virtual int ReqQryTransferBank(CThostFtdcQryTransferBankField *pQryTransferBank, int nRequestID) = 0; + + ///请求查询投资者持仓明细 + virtual int ReqQryInvestorPositionDetail(CThostFtdcQryInvestorPositionDetailField *pQryInvestorPositionDetail, int nRequestID) = 0; + + ///请求查询客户通知 + virtual int ReqQryNotice(CThostFtdcQryNoticeField *pQryNotice, int nRequestID) = 0; + + ///请求查询结算信息确认 + virtual int ReqQrySettlementInfoConfirm(CThostFtdcQrySettlementInfoConfirmField *pQrySettlementInfoConfirm, int nRequestID) = 0; + + ///请求查询投资者持仓明细 + virtual int ReqQryInvestorPositionCombineDetail(CThostFtdcQryInvestorPositionCombineDetailField *pQryInvestorPositionCombineDetail, int nRequestID) = 0; + + ///请求查询保证金监管系统经纪公司资金账户密钥 + virtual int ReqQryCFMMCTradingAccountKey(CThostFtdcQryCFMMCTradingAccountKeyField *pQryCFMMCTradingAccountKey, int nRequestID) = 0; + + ///请求查询仓单折抵信息 + virtual int ReqQryEWarrantOffset(CThostFtdcQryEWarrantOffsetField *pQryEWarrantOffset, int nRequestID) = 0; + + ///请求查询投资者品种/跨品种保证金 + virtual int ReqQryInvestorProductGroupMargin(CThostFtdcQryInvestorProductGroupMarginField *pQryInvestorProductGroupMargin, int nRequestID) = 0; + + ///请求查询交易所保证金率 + virtual int ReqQryExchangeMarginRate(CThostFtdcQryExchangeMarginRateField *pQryExchangeMarginRate, int nRequestID) = 0; + + ///请求查询交易所调整保证金率 + virtual int ReqQryExchangeMarginRateAdjust(CThostFtdcQryExchangeMarginRateAdjustField *pQryExchangeMarginRateAdjust, int nRequestID) = 0; + + ///请求查询汇率 + virtual int ReqQryExchangeRate(CThostFtdcQryExchangeRateField *pQryExchangeRate, int nRequestID) = 0; + + ///请求查询二级代理操作员银期权限 + virtual int ReqQrySecAgentACIDMap(CThostFtdcQrySecAgentACIDMapField *pQrySecAgentACIDMap, int nRequestID) = 0; + + ///请求查询产品报价汇率 + virtual int ReqQryProductExchRate(CThostFtdcQryProductExchRateField *pQryProductExchRate, int nRequestID) = 0; + + ///请求查询产品组 + virtual int ReqQryProductGroup(CThostFtdcQryProductGroupField *pQryProductGroup, int nRequestID) = 0; + + ///请求查询做市商合约手续费率 + virtual int ReqQryMMInstrumentCommissionRate(CThostFtdcQryMMInstrumentCommissionRateField *pQryMMInstrumentCommissionRate, int nRequestID) = 0; + + ///请求查询做市商期权合约手续费 + virtual int ReqQryMMOptionInstrCommRate(CThostFtdcQryMMOptionInstrCommRateField *pQryMMOptionInstrCommRate, int nRequestID) = 0; + + ///请求查询报单手续费 + virtual int ReqQryInstrumentOrderCommRate(CThostFtdcQryInstrumentOrderCommRateField *pQryInstrumentOrderCommRate, int nRequestID) = 0; + + ///请求查询资金账户 + virtual int ReqQrySecAgentTradingAccount(CThostFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0; + + ///请求查询二级代理商资金校验模式 + virtual int ReqQrySecAgentCheckMode(CThostFtdcQrySecAgentCheckModeField *pQrySecAgentCheckMode, int nRequestID) = 0; + + ///请求查询二级代理商信息 + virtual int ReqQrySecAgentTradeInfo(CThostFtdcQrySecAgentTradeInfoField *pQrySecAgentTradeInfo, int nRequestID) = 0; + + ///请求查询期权交易成本 + virtual int ReqQryOptionInstrTradeCost(CThostFtdcQryOptionInstrTradeCostField *pQryOptionInstrTradeCost, int nRequestID) = 0; + + ///请求查询期权合约手续费 + virtual int ReqQryOptionInstrCommRate(CThostFtdcQryOptionInstrCommRateField *pQryOptionInstrCommRate, int nRequestID) = 0; + + ///请求查询执行宣告 + virtual int ReqQryExecOrder(CThostFtdcQryExecOrderField *pQryExecOrder, int nRequestID) = 0; + + ///请求查询询价 + virtual int ReqQryForQuote(CThostFtdcQryForQuoteField *pQryForQuote, int nRequestID) = 0; + + ///请求查询报价 + virtual int ReqQryQuote(CThostFtdcQryQuoteField *pQryQuote, int nRequestID) = 0; + + ///请求查询期权自对冲 + virtual int ReqQryOptionSelfClose(CThostFtdcQryOptionSelfCloseField *pQryOptionSelfClose, int nRequestID) = 0; + + ///请求查询投资单元 + virtual int ReqQryInvestUnit(CThostFtdcQryInvestUnitField *pQryInvestUnit, int nRequestID) = 0; + + ///请求查询组合合约安全系数 + virtual int ReqQryCombInstrumentGuard(CThostFtdcQryCombInstrumentGuardField *pQryCombInstrumentGuard, int nRequestID) = 0; + + ///请求查询申请组合 + virtual int ReqQryCombAction(CThostFtdcQryCombActionField *pQryCombAction, int nRequestID) = 0; + + ///请求查询转帐流水 + virtual int ReqQryTransferSerial(CThostFtdcQryTransferSerialField *pQryTransferSerial, int nRequestID) = 0; + + ///请求查询银期签约关系 + virtual int ReqQryAccountregister(CThostFtdcQryAccountregisterField *pQryAccountregister, int nRequestID) = 0; + + ///请求查询签约银行 + virtual int ReqQryContractBank(CThostFtdcQryContractBankField *pQryContractBank, int nRequestID) = 0; + + ///请求查询预埋单 + virtual int ReqQryParkedOrder(CThostFtdcQryParkedOrderField *pQryParkedOrder, int nRequestID) = 0; + + ///请求查询预埋撤单 + virtual int ReqQryParkedOrderAction(CThostFtdcQryParkedOrderActionField *pQryParkedOrderAction, int nRequestID) = 0; + + ///请求查询交易通知 + virtual int ReqQryTradingNotice(CThostFtdcQryTradingNoticeField *pQryTradingNotice, int nRequestID) = 0; + + ///请求查询经纪公司交易参数 + virtual int ReqQryBrokerTradingParams(CThostFtdcQryBrokerTradingParamsField *pQryBrokerTradingParams, int nRequestID) = 0; + + ///请求查询经纪公司交易算法 + virtual int ReqQryBrokerTradingAlgos(CThostFtdcQryBrokerTradingAlgosField *pQryBrokerTradingAlgos, int nRequestID) = 0; + + ///请求查询监控中心用户令牌 + virtual int ReqQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, int nRequestID) = 0; + + ///期货发起银行资金转期货请求 + virtual int ReqFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, int nRequestID) = 0; + + ///期货发起期货资金转银行请求 + virtual int ReqFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, int nRequestID) = 0; + + ///期货发起查询银行余额请求 + virtual int ReqQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, int nRequestID) = 0; +protected: + ~CThostFtdcTraderApi(){}; +}; + +#endif diff --git a/v6.3.6_20160606_tradeapi_windows/ThostFtdcUserApiDataType.h b/v6.3.15_20190220_api_tradeapi_se_linux64/ThostFtdcUserApiDataType.h similarity index 95% rename from v6.3.6_20160606_tradeapi_windows/ThostFtdcUserApiDataType.h rename to v6.3.15_20190220_api_tradeapi_se_linux64/ThostFtdcUserApiDataType.h index 3efec65..439a9ee 100644 --- a/v6.3.6_20160606_tradeapi_windows/ThostFtdcUserApiDataType.h +++ b/v6.3.15_20190220_api_tradeapi_se_linux64/ThostFtdcUserApiDataType.h @@ -1,6378 +1,6663 @@ -///////////////////////////////////////////////////////////////////////// -///@system 新一代交易所系统 -///@company 上海期货信息技术有限公司 -///@file ThostFtdcUserApiDataType.h -///@brief 定义了客户端接口使用的业务数据类型 -///@history -///20060106 赵鸿昊 创建该文件 -///////////////////////////////////////////////////////////////////////// - -#ifndef THOST_FTDCDATATYPE_H -#define THOST_FTDCDATATYPE_H - -enum THOST_TE_RESUME_TYPE -{ - THOST_TERT_RESTART = 0, - THOST_TERT_RESUME, - THOST_TERT_QUICK -}; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTraderIDType是一个交易所交易员代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTraderIDType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorIDType是一个投资者代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInvestorIDType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerIDType是一个经纪公司代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBrokerIDType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerAbbrType是一个经纪公司简称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBrokerAbbrType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerNameType是一个经纪公司名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBrokerNameType[81]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeInstIDType是一个合约在交易所的代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcExchangeInstIDType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrderRefType是一个报单引用类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOrderRefType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcParticipantIDType是一个会员代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcParticipantIDType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUserIDType是一个用户代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUserIDType[16]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPasswordType是一个密码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPasswordType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClientIDType是一个交易编码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcClientIDType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInstrumentIDType是一个合约代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInstrumentIDType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMarketIDType是一个市场代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcMarketIDType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProductNameType是一个产品名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcProductNameType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeIDType是一个交易所代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcExchangeIDType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeNameType是一个交易所名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcExchangeNameType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeAbbrType是一个交易所简称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcExchangeAbbrType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeFlagType是一个交易所标志类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcExchangeFlagType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMacAddressType是一个Mac地址类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcMacAddressType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSystemIDType是一个系统编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSystemIDType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExchangePropertyType是一个交易所属性类型 -///////////////////////////////////////////////////////////////////////// -///正常 -#define THOST_FTDC_EXP_Normal '0' -///根据成交生成报单 -#define THOST_FTDC_EXP_GenOrderByTrade '1' - -typedef char TThostFtdcExchangePropertyType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDateType是一个日期类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcDateType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTimeType是一个时间类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTimeType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLongTimeType是一个长时间类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcLongTimeType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInstrumentNameType是一个合约名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInstrumentNameType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSettlementGroupIDType是一个结算组代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSettlementGroupIDType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrderSysIDType是一个报单编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOrderSysIDType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeIDType是一个成交编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTradeIDType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCommandTypeType是一个DB命令类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCommandTypeType[65]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcIPAddressType是一个IP地址类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcIPAddressType[16]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcIPPortType是一个IP端口类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcIPPortType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProductInfoType是一个产品信息类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcProductInfoType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProtocolInfoType是一个协议信息类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcProtocolInfoType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBusinessUnitType是一个业务单元类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBusinessUnitType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDepositSeqNoType是一个出入金流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcDepositSeqNoType[15]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcIdentifiedCardNoType是一个证件号码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcIdentifiedCardNoType[51]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcIdCardTypeType是一个证件类型类型 -///////////////////////////////////////////////////////////////////////// -///组织机构代码 -#define THOST_FTDC_ICT_EID '0' -///中国公民身份证 -#define THOST_FTDC_ICT_IDCard '1' -///军官证 -#define THOST_FTDC_ICT_OfficerIDCard '2' -///警官证 -#define THOST_FTDC_ICT_PoliceIDCard '3' -///士兵证 -#define THOST_FTDC_ICT_SoldierIDCard '4' -///户口簿 -#define THOST_FTDC_ICT_HouseholdRegister '5' -///护照 -#define THOST_FTDC_ICT_Passport '6' -///台胞证 -#define THOST_FTDC_ICT_TaiwanCompatriotIDCard '7' -///回乡证 -#define THOST_FTDC_ICT_HomeComingCard '8' -///营业执照号 -#define THOST_FTDC_ICT_LicenseNo '9' -///税务登记号/当地纳税ID -#define THOST_FTDC_ICT_TaxNo 'A' -///港澳居民来往内地通行证 -#define THOST_FTDC_ICT_HMMainlandTravelPermit 'B' -///台湾居民来往大陆通行证 -#define THOST_FTDC_ICT_TwMainlandTravelPermit 'C' -///驾照 -#define THOST_FTDC_ICT_DrivingLicense 'D' -///当地社保ID -#define THOST_FTDC_ICT_SocialID 'F' -///当地身份证 -#define THOST_FTDC_ICT_LocalID 'G' -///商业登记证 -#define THOST_FTDC_ICT_BusinessRegistration 'H' -///港澳永久性居民身份证 -#define THOST_FTDC_ICT_HKMCIDCard 'I' -///人行开户许可证 -#define THOST_FTDC_ICT_AccountsPermits 'J' -///其他证件 -#define THOST_FTDC_ICT_OtherCard 'x' - -typedef char TThostFtdcIdCardTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrderLocalIDType是一个本地报单编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOrderLocalIDType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUserNameType是一个用户名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUserNameType[81]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPartyNameType是一个参与人名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPartyNameType[81]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcErrorMsgType是一个错误信息类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcErrorMsgType[81]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFieldNameType是一个字段名类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFieldNameType[2049]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFieldContentType是一个字段内容类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFieldContentType[2049]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSystemNameType是一个系统名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSystemNameType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcContentType是一个消息正文类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcContentType[501]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorRangeType是一个投资者范围类型 -///////////////////////////////////////////////////////////////////////// -///所有 -#define THOST_FTDC_IR_All '1' -///投资者组 -#define THOST_FTDC_IR_Group '2' -///单一投资者 -#define THOST_FTDC_IR_Single '3' - -typedef char TThostFtdcInvestorRangeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDepartmentRangeType是一个投资者范围类型 -///////////////////////////////////////////////////////////////////////// -///所有 -#define THOST_FTDC_DR_All '1' -///组织架构 -#define THOST_FTDC_DR_Group '2' -///单一投资者 -#define THOST_FTDC_DR_Single '3' - -typedef char TThostFtdcDepartmentRangeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDataSyncStatusType是一个数据同步状态类型 -///////////////////////////////////////////////////////////////////////// -///未同步 -#define THOST_FTDC_DS_Asynchronous '1' -///同步中 -#define THOST_FTDC_DS_Synchronizing '2' -///已同步 -#define THOST_FTDC_DS_Synchronized '3' - -typedef char TThostFtdcDataSyncStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerDataSyncStatusType是一个经纪公司数据同步状态类型 -///////////////////////////////////////////////////////////////////////// -///已同步 -#define THOST_FTDC_BDS_Synchronized '1' -///同步中 -#define THOST_FTDC_BDS_Synchronizing '2' - -typedef char TThostFtdcBrokerDataSyncStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeConnectStatusType是一个交易所连接状态类型 -///////////////////////////////////////////////////////////////////////// -///没有任何连接 -#define THOST_FTDC_ECS_NoConnection '1' -///已经发出合约查询请求 -#define THOST_FTDC_ECS_QryInstrumentSent '2' -///已经获取信息 -#define THOST_FTDC_ECS_GotInformation '9' - -typedef char TThostFtdcExchangeConnectStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTraderConnectStatusType是一个交易所交易员连接状态类型 -///////////////////////////////////////////////////////////////////////// -///没有任何连接 -#define THOST_FTDC_TCS_NotConnected '1' -///已经连接 -#define THOST_FTDC_TCS_Connected '2' -///已经发出合约查询请求 -#define THOST_FTDC_TCS_QryInstrumentSent '3' -///订阅私有流 -#define THOST_FTDC_TCS_SubPrivateFlow '4' - -typedef char TThostFtdcTraderConnectStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFunctionCodeType是一个功能代码类型 -///////////////////////////////////////////////////////////////////////// -///数据异步化 -#define THOST_FTDC_FC_DataAsync '1' -///强制用户登出 -#define THOST_FTDC_FC_ForceUserLogout '2' -///变更管理用户口令 -#define THOST_FTDC_FC_UserPasswordUpdate '3' -///变更经纪公司口令 -#define THOST_FTDC_FC_BrokerPasswordUpdate '4' -///变更投资者口令 -#define THOST_FTDC_FC_InvestorPasswordUpdate '5' -///报单插入 -#define THOST_FTDC_FC_OrderInsert '6' -///报单操作 -#define THOST_FTDC_FC_OrderAction '7' -///同步系统数据 -#define THOST_FTDC_FC_SyncSystemData '8' -///同步经纪公司数据 -#define THOST_FTDC_FC_SyncBrokerData '9' -///批量同步经纪公司数据 -#define THOST_FTDC_FC_BachSyncBrokerData 'A' -///超级查询 -#define THOST_FTDC_FC_SuperQuery 'B' -///预埋报单插入 -#define THOST_FTDC_FC_ParkedOrderInsert 'C' -///预埋报单操作 -#define THOST_FTDC_FC_ParkedOrderAction 'D' -///同步动态令牌 -#define THOST_FTDC_FC_SyncOTP 'E' -///删除未知单 -#define THOST_FTDC_FC_DeleteOrder 'F' - -typedef char TThostFtdcFunctionCodeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerFunctionCodeType是一个经纪公司功能代码类型 -///////////////////////////////////////////////////////////////////////// -///强制用户登出 -#define THOST_FTDC_BFC_ForceUserLogout '1' -///变更用户口令 -#define THOST_FTDC_BFC_UserPasswordUpdate '2' -///同步经纪公司数据 -#define THOST_FTDC_BFC_SyncBrokerData '3' -///批量同步经纪公司数据 -#define THOST_FTDC_BFC_BachSyncBrokerData '4' -///报单插入 -#define THOST_FTDC_BFC_OrderInsert '5' -///报单操作 -#define THOST_FTDC_BFC_OrderAction '6' -///全部查询 -#define THOST_FTDC_BFC_AllQuery '7' -///系统功能:登入/登出/修改密码等 -#define THOST_FTDC_BFC_log 'a' -///基本查询:查询基础数据,如合约,交易所等常量 -#define THOST_FTDC_BFC_BaseQry 'b' -///交易查询:如查成交,委托 -#define THOST_FTDC_BFC_TradeQry 'c' -///交易功能:报单,撤单 -#define THOST_FTDC_BFC_Trade 'd' -///银期转账 -#define THOST_FTDC_BFC_Virement 'e' -///风险监控 -#define THOST_FTDC_BFC_Risk 'f' -///查询/管理:查询会话,踢人等 -#define THOST_FTDC_BFC_Session 'g' -///风控通知控制 -#define THOST_FTDC_BFC_RiskNoticeCtl 'h' -///风控通知发送 -#define THOST_FTDC_BFC_RiskNotice 'i' -///察看经纪公司资金权限 -#define THOST_FTDC_BFC_BrokerDeposit 'j' -///资金查询 -#define THOST_FTDC_BFC_QueryFund 'k' -///报单查询 -#define THOST_FTDC_BFC_QueryOrder 'l' -///成交查询 -#define THOST_FTDC_BFC_QueryTrade 'm' -///持仓查询 -#define THOST_FTDC_BFC_QueryPosition 'n' -///行情查询 -#define THOST_FTDC_BFC_QueryMarketData 'o' -///用户事件查询 -#define THOST_FTDC_BFC_QueryUserEvent 'p' -///风险通知查询 -#define THOST_FTDC_BFC_QueryRiskNotify 'q' -///出入金查询 -#define THOST_FTDC_BFC_QueryFundChange 'r' -///投资者信息查询 -#define THOST_FTDC_BFC_QueryInvestor 's' -///交易编码查询 -#define THOST_FTDC_BFC_QueryTradingCode 't' -///强平 -#define THOST_FTDC_BFC_ForceClose 'u' -///压力测试 -#define THOST_FTDC_BFC_PressTest 'v' -///权益反算 -#define THOST_FTDC_BFC_RemainCalc 'w' -///净持仓保证金指标 -#define THOST_FTDC_BFC_NetPositionInd 'x' -///风险预算 -#define THOST_FTDC_BFC_RiskPredict 'y' -///数据导出 -#define THOST_FTDC_BFC_DataExport 'z' -///风控指标设置 -#define THOST_FTDC_BFC_RiskTargetSetup 'A' -///行情预警 -#define THOST_FTDC_BFC_MarketDataWarn 'B' -///业务通知查询 -#define THOST_FTDC_BFC_QryBizNotice 'C' -///业务通知模板设置 -#define THOST_FTDC_BFC_CfgBizNotice 'D' -///同步动态令牌 -#define THOST_FTDC_BFC_SyncOTP 'E' -///发送业务通知 -#define THOST_FTDC_BFC_SendBizNotice 'F' -///风险级别标准设置 -#define THOST_FTDC_BFC_CfgRiskLevelStd 'G' -///交易终端应急功能 -#define THOST_FTDC_BFC_TbCommand 'H' -///删除未知单 -#define THOST_FTDC_BFC_DeleteOrder 'J' -///预埋报单插入 -#define THOST_FTDC_BFC_ParkedOrderInsert 'K' -///预埋报单操作 -#define THOST_FTDC_BFC_ParkedOrderAction 'L' -///资金不够仍允许行权 -#define THOST_FTDC_BFC_ExecOrderNoCheck 'M' - -typedef char TThostFtdcBrokerFunctionCodeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrderActionStatusType是一个报单操作状态类型 -///////////////////////////////////////////////////////////////////////// -///已经提交 -#define THOST_FTDC_OAS_Submitted 'a' -///已经接受 -#define THOST_FTDC_OAS_Accepted 'b' -///已经被拒绝 -#define THOST_FTDC_OAS_Rejected 'c' - -typedef char TThostFtdcOrderActionStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrderStatusType是一个报单状态类型 -///////////////////////////////////////////////////////////////////////// -///全部成交 -#define THOST_FTDC_OST_AllTraded '0' -///部分成交还在队列中 -#define THOST_FTDC_OST_PartTradedQueueing '1' -///部分成交不在队列中 -#define THOST_FTDC_OST_PartTradedNotQueueing '2' -///未成交还在队列中 -#define THOST_FTDC_OST_NoTradeQueueing '3' -///未成交不在队列中 -#define THOST_FTDC_OST_NoTradeNotQueueing '4' -///撤单 -#define THOST_FTDC_OST_Canceled '5' -///未知 -#define THOST_FTDC_OST_Unknown 'a' -///尚未触发 -#define THOST_FTDC_OST_NotTouched 'b' -///已触发 -#define THOST_FTDC_OST_Touched 'c' - -typedef char TThostFtdcOrderStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrderSubmitStatusType是一个报单提交状态类型 -///////////////////////////////////////////////////////////////////////// -///已经提交 -#define THOST_FTDC_OSS_InsertSubmitted '0' -///撤单已经提交 -#define THOST_FTDC_OSS_CancelSubmitted '1' -///修改已经提交 -#define THOST_FTDC_OSS_ModifySubmitted '2' -///已经接受 -#define THOST_FTDC_OSS_Accepted '3' -///报单已经被拒绝 -#define THOST_FTDC_OSS_InsertRejected '4' -///撤单已经被拒绝 -#define THOST_FTDC_OSS_CancelRejected '5' -///改单已经被拒绝 -#define THOST_FTDC_OSS_ModifyRejected '6' - -typedef char TThostFtdcOrderSubmitStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPositionDateType是一个持仓日期类型 -///////////////////////////////////////////////////////////////////////// -///今日持仓 -#define THOST_FTDC_PSD_Today '1' -///历史持仓 -#define THOST_FTDC_PSD_History '2' - -typedef char TThostFtdcPositionDateType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPositionDateTypeType是一个持仓日期类型类型 -///////////////////////////////////////////////////////////////////////// -///使用历史持仓 -#define THOST_FTDC_PDT_UseHistory '1' -///不使用历史持仓 -#define THOST_FTDC_PDT_NoUseHistory '2' - -typedef char TThostFtdcPositionDateTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradingRoleType是一个交易角色类型 -///////////////////////////////////////////////////////////////////////// -///代理 -#define THOST_FTDC_ER_Broker '1' -///自营 -#define THOST_FTDC_ER_Host '2' -///做市商 -#define THOST_FTDC_ER_Maker '3' - -typedef char TThostFtdcTradingRoleType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProductClassType是一个产品类型类型 -///////////////////////////////////////////////////////////////////////// -///期货 -#define THOST_FTDC_PC_Futures '1' -///期货期权 -#define THOST_FTDC_PC_Options '2' -///组合 -#define THOST_FTDC_PC_Combination '3' -///即期 -#define THOST_FTDC_PC_Spot '4' -///期转现 -#define THOST_FTDC_PC_EFP '5' -///现货期权 -#define THOST_FTDC_PC_SpotOption '6' - -typedef char TThostFtdcProductClassType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInstLifePhaseType是一个合约生命周期状态类型 -///////////////////////////////////////////////////////////////////////// -///未上市 -#define THOST_FTDC_IP_NotStart '0' -///上市 -#define THOST_FTDC_IP_Started '1' -///停牌 -#define THOST_FTDC_IP_Pause '2' -///到期 -#define THOST_FTDC_IP_Expired '3' - -typedef char TThostFtdcInstLifePhaseType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDirectionType是一个买卖方向类型 -///////////////////////////////////////////////////////////////////////// -///买 -#define THOST_FTDC_D_Buy '0' -///卖 -#define THOST_FTDC_D_Sell '1' - -typedef char TThostFtdcDirectionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPositionTypeType是一个持仓类型类型 -///////////////////////////////////////////////////////////////////////// -///净持仓 -#define THOST_FTDC_PT_Net '1' -///综合持仓 -#define THOST_FTDC_PT_Gross '2' - -typedef char TThostFtdcPositionTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPosiDirectionType是一个持仓多空方向类型 -///////////////////////////////////////////////////////////////////////// -///净 -#define THOST_FTDC_PD_Net '1' -///多头 -#define THOST_FTDC_PD_Long '2' -///空头 -#define THOST_FTDC_PD_Short '3' - -typedef char TThostFtdcPosiDirectionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSysSettlementStatusType是一个系统结算状态类型 -///////////////////////////////////////////////////////////////////////// -///不活跃 -#define THOST_FTDC_SS_NonActive '1' -///启动 -#define THOST_FTDC_SS_Startup '2' -///操作 -#define THOST_FTDC_SS_Operating '3' -///结算 -#define THOST_FTDC_SS_Settlement '4' -///结算完成 -#define THOST_FTDC_SS_SettlementFinished '5' - -typedef char TThostFtdcSysSettlementStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRatioAttrType是一个费率属性类型 -///////////////////////////////////////////////////////////////////////// -///交易费率 -#define THOST_FTDC_RA_Trade '0' -///结算费率 -#define THOST_FTDC_RA_Settlement '1' - -typedef char TThostFtdcRatioAttrType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcHedgeFlagType是一个投机套保标志类型 -///////////////////////////////////////////////////////////////////////// -///投机 -#define THOST_FTDC_HF_Speculation '1' -///套利 -#define THOST_FTDC_HF_Arbitrage '2' -///套保 -#define THOST_FTDC_HF_Hedge '3' -///做市商 -#define THOST_FTDC_HF_MarketMaker '5' - -typedef char TThostFtdcHedgeFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBillHedgeFlagType是一个投机套保标志类型 -///////////////////////////////////////////////////////////////////////// -///投机 -#define THOST_FTDC_BHF_Speculation '1' -///套利 -#define THOST_FTDC_BHF_Arbitrage '2' -///套保 -#define THOST_FTDC_BHF_Hedge '3' - -typedef char TThostFtdcBillHedgeFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClientIDTypeType是一个交易编码类型类型 -///////////////////////////////////////////////////////////////////////// -///投机 -#define THOST_FTDC_CIDT_Speculation '1' -///套利 -#define THOST_FTDC_CIDT_Arbitrage '2' -///套保 -#define THOST_FTDC_CIDT_Hedge '3' -///做市商 -#define THOST_FTDC_CIDT_MarketMaker '5' - -typedef char TThostFtdcClientIDTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrderPriceTypeType是一个报单价格条件类型 -///////////////////////////////////////////////////////////////////////// -///任意价 -#define THOST_FTDC_OPT_AnyPrice '1' -///限价 -#define THOST_FTDC_OPT_LimitPrice '2' -///最优价 -#define THOST_FTDC_OPT_BestPrice '3' -///最新价 -#define THOST_FTDC_OPT_LastPrice '4' -///最新价浮动上浮1个ticks -#define THOST_FTDC_OPT_LastPricePlusOneTicks '5' -///最新价浮动上浮2个ticks -#define THOST_FTDC_OPT_LastPricePlusTwoTicks '6' -///最新价浮动上浮3个ticks -#define THOST_FTDC_OPT_LastPricePlusThreeTicks '7' -///卖一价 -#define THOST_FTDC_OPT_AskPrice1 '8' -///卖一价浮动上浮1个ticks -#define THOST_FTDC_OPT_AskPrice1PlusOneTicks '9' -///卖一价浮动上浮2个ticks -#define THOST_FTDC_OPT_AskPrice1PlusTwoTicks 'A' -///卖一价浮动上浮3个ticks -#define THOST_FTDC_OPT_AskPrice1PlusThreeTicks 'B' -///买一价 -#define THOST_FTDC_OPT_BidPrice1 'C' -///买一价浮动上浮1个ticks -#define THOST_FTDC_OPT_BidPrice1PlusOneTicks 'D' -///买一价浮动上浮2个ticks -#define THOST_FTDC_OPT_BidPrice1PlusTwoTicks 'E' -///买一价浮动上浮3个ticks -#define THOST_FTDC_OPT_BidPrice1PlusThreeTicks 'F' -///五档价 -#define THOST_FTDC_OPT_FiveLevelPrice 'G' - -typedef char TThostFtdcOrderPriceTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOffsetFlagType是一个开平标志类型 -///////////////////////////////////////////////////////////////////////// -///开仓 -#define THOST_FTDC_OF_Open '0' -///平仓 -#define THOST_FTDC_OF_Close '1' -///强平 -#define THOST_FTDC_OF_ForceClose '2' -///平今 -#define THOST_FTDC_OF_CloseToday '3' -///平昨 -#define THOST_FTDC_OF_CloseYesterday '4' -///强减 -#define THOST_FTDC_OF_ForceOff '5' -///本地强平 -#define THOST_FTDC_OF_LocalForceClose '6' - -typedef char TThostFtdcOffsetFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcForceCloseReasonType是一个强平原因类型 -///////////////////////////////////////////////////////////////////////// -///非强平 -#define THOST_FTDC_FCC_NotForceClose '0' -///资金不足 -#define THOST_FTDC_FCC_LackDeposit '1' -///客户超仓 -#define THOST_FTDC_FCC_ClientOverPositionLimit '2' -///会员超仓 -#define THOST_FTDC_FCC_MemberOverPositionLimit '3' -///持仓非整数倍 -#define THOST_FTDC_FCC_NotMultiple '4' -///违规 -#define THOST_FTDC_FCC_Violation '5' -///其它 -#define THOST_FTDC_FCC_Other '6' -///自然人临近交割 -#define THOST_FTDC_FCC_PersonDeliv '7' - -typedef char TThostFtdcForceCloseReasonType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrderTypeType是一个报单类型类型 -///////////////////////////////////////////////////////////////////////// -///正常 -#define THOST_FTDC_ORDT_Normal '0' -///报价衍生 -#define THOST_FTDC_ORDT_DeriveFromQuote '1' -///组合衍生 -#define THOST_FTDC_ORDT_DeriveFromCombination '2' -///组合报单 -#define THOST_FTDC_ORDT_Combination '3' -///条件单 -#define THOST_FTDC_ORDT_ConditionalOrder '4' -///互换单 -#define THOST_FTDC_ORDT_Swap '5' - -typedef char TThostFtdcOrderTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTimeConditionType是一个有效期类型类型 -///////////////////////////////////////////////////////////////////////// -///立即完成,否则撤销 -#define THOST_FTDC_TC_IOC '1' -///本节有效 -#define THOST_FTDC_TC_GFS '2' -///当日有效 -#define THOST_FTDC_TC_GFD '3' -///指定日期前有效 -#define THOST_FTDC_TC_GTD '4' -///撤销前有效 -#define THOST_FTDC_TC_GTC '5' -///集合竞价有效 -#define THOST_FTDC_TC_GFA '6' - -typedef char TThostFtdcTimeConditionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcVolumeConditionType是一个成交量类型类型 -///////////////////////////////////////////////////////////////////////// -///任何数量 -#define THOST_FTDC_VC_AV '1' -///最小数量 -#define THOST_FTDC_VC_MV '2' -///全部数量 -#define THOST_FTDC_VC_CV '3' - -typedef char TThostFtdcVolumeConditionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcContingentConditionType是一个触发条件类型 -///////////////////////////////////////////////////////////////////////// -///立即 -#define THOST_FTDC_CC_Immediately '1' -///止损 -#define THOST_FTDC_CC_Touch '2' -///止赢 -#define THOST_FTDC_CC_TouchProfit '3' -///预埋单 -#define THOST_FTDC_CC_ParkedOrder '4' -///最新价大于条件价 -#define THOST_FTDC_CC_LastPriceGreaterThanStopPrice '5' -///最新价大于等于条件价 -#define THOST_FTDC_CC_LastPriceGreaterEqualStopPrice '6' -///最新价小于条件价 -#define THOST_FTDC_CC_LastPriceLesserThanStopPrice '7' -///最新价小于等于条件价 -#define THOST_FTDC_CC_LastPriceLesserEqualStopPrice '8' -///卖一价大于条件价 -#define THOST_FTDC_CC_AskPriceGreaterThanStopPrice '9' -///卖一价大于等于条件价 -#define THOST_FTDC_CC_AskPriceGreaterEqualStopPrice 'A' -///卖一价小于条件价 -#define THOST_FTDC_CC_AskPriceLesserThanStopPrice 'B' -///卖一价小于等于条件价 -#define THOST_FTDC_CC_AskPriceLesserEqualStopPrice 'C' -///买一价大于条件价 -#define THOST_FTDC_CC_BidPriceGreaterThanStopPrice 'D' -///买一价大于等于条件价 -#define THOST_FTDC_CC_BidPriceGreaterEqualStopPrice 'E' -///买一价小于条件价 -#define THOST_FTDC_CC_BidPriceLesserThanStopPrice 'F' -///买一价小于等于条件价 -#define THOST_FTDC_CC_BidPriceLesserEqualStopPrice 'H' - -typedef char TThostFtdcContingentConditionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcActionFlagType是一个操作标志类型 -///////////////////////////////////////////////////////////////////////// -///删除 -#define THOST_FTDC_AF_Delete '0' -///修改 -#define THOST_FTDC_AF_Modify '3' - -typedef char TThostFtdcActionFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradingRightType是一个交易权限类型 -///////////////////////////////////////////////////////////////////////// -///可以交易 -#define THOST_FTDC_TR_Allow '0' -///只能平仓 -#define THOST_FTDC_TR_CloseOnly '1' -///不能交易 -#define THOST_FTDC_TR_Forbidden '2' - -typedef char TThostFtdcTradingRightType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrderSourceType是一个报单来源类型 -///////////////////////////////////////////////////////////////////////// -///来自参与者 -#define THOST_FTDC_OSRC_Participant '0' -///来自管理员 -#define THOST_FTDC_OSRC_Administrator '1' - -typedef char TThostFtdcOrderSourceType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeTypeType是一个成交类型类型 -///////////////////////////////////////////////////////////////////////// -///组合持仓拆分为单一持仓,初始化不应包含该类型的持仓 -#define THOST_FTDC_TRDT_SplitCombination '#' -///普通成交 -#define THOST_FTDC_TRDT_Common '0' -///期权执行 -#define THOST_FTDC_TRDT_OptionsExecution '1' -///OTC成交 -#define THOST_FTDC_TRDT_OTC '2' -///期转现衍生成交 -#define THOST_FTDC_TRDT_EFPDerived '3' -///组合衍生成交 -#define THOST_FTDC_TRDT_CombinationDerived '4' - -typedef char TThostFtdcTradeTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPriceSourceType是一个成交价来源类型 -///////////////////////////////////////////////////////////////////////// -///前成交价 -#define THOST_FTDC_PSRC_LastPrice '0' -///买委托价 -#define THOST_FTDC_PSRC_Buy '1' -///卖委托价 -#define THOST_FTDC_PSRC_Sell '2' - -typedef char TThostFtdcPriceSourceType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInstrumentStatusType是一个合约交易状态类型 -///////////////////////////////////////////////////////////////////////// -///开盘前 -#define THOST_FTDC_IS_BeforeTrading '0' -///非交易 -#define THOST_FTDC_IS_NoTrading '1' -///连续交易 -#define THOST_FTDC_IS_Continous '2' -///集合竞价报单 -#define THOST_FTDC_IS_AuctionOrdering '3' -///集合竞价价格平衡 -#define THOST_FTDC_IS_AuctionBalance '4' -///集合竞价撮合 -#define THOST_FTDC_IS_AuctionMatch '5' -///收盘 -#define THOST_FTDC_IS_Closed '6' - -typedef char TThostFtdcInstrumentStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInstStatusEnterReasonType是一个品种进入交易状态原因类型 -///////////////////////////////////////////////////////////////////////// -///自动切换 -#define THOST_FTDC_IER_Automatic '1' -///手动切换 -#define THOST_FTDC_IER_Manual '2' -///熔断 -#define THOST_FTDC_IER_Fuse '3' - -typedef char TThostFtdcInstStatusEnterReasonType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrderActionRefType是一个报单操作引用类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcOrderActionRefType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInstallCountType是一个安装数量类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcInstallCountType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInstallIDType是一个安装编号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcInstallIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcErrorIDType是一个错误代码类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcErrorIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSettlementIDType是一个结算编号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcSettlementIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcVolumeType是一个数量类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcVolumeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFrontIDType是一个前置编号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcFrontIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSessionIDType是一个会话编号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcSessionIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSequenceNoType是一个序号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcSequenceNoType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCommandNoType是一个DB命令序号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcCommandNoType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMillisecType是一个时间(毫秒)类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcMillisecType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcVolumeMultipleType是一个合约数量乘数类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcVolumeMultipleType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradingSegmentSNType是一个交易阶段编号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcTradingSegmentSNType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRequestIDType是一个请求编号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcRequestIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcYearType是一个年份类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcYearType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMonthType是一个月份类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcMonthType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBoolType是一个布尔型类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcBoolType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPriceType是一个价格类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcPriceType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCombOffsetFlagType是一个组合开平标志类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCombOffsetFlagType[5]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCombHedgeFlagType是一个组合投机套保标志类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCombHedgeFlagType[5]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRatioType是一个比率类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcRatioType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMoneyType是一个资金类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcMoneyType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLargeVolumeType是一个大额数量类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcLargeVolumeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSequenceSeriesType是一个序列系列号类型 -///////////////////////////////////////////////////////////////////////// -typedef short TThostFtdcSequenceSeriesType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCommPhaseNoType是一个通讯时段编号类型 -///////////////////////////////////////////////////////////////////////// -typedef short TThostFtdcCommPhaseNoType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSequenceLabelType是一个序列编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSequenceLabelType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUnderlyingMultipleType是一个基础商品乘数类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcUnderlyingMultipleType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPriorityType是一个优先级类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcPriorityType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcContractCodeType是一个合同编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcContractCodeType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCityType是一个市类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCityType[51]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcIsStockType是一个是否股民类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcIsStockType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcChannelType是一个渠道类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcChannelType[51]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAddressType是一个通讯地址类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAddressType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcZipCodeType是一个邮政编码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcZipCodeType[7]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTelephoneType是一个联系电话类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTelephoneType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFaxType是一个传真类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFaxType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMobileType是一个手机类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcMobileType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcEMailType是一个电子邮件类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcEMailType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMemoType是一个备注类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcMemoType[161]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCompanyCodeType是一个企业代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCompanyCodeType[51]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcWebsiteType是一个网站地址类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcWebsiteType[51]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTaxNoType是一个税务登记号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTaxNoType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBatchStatusType是一个处理状态类型 -///////////////////////////////////////////////////////////////////////// -///未上传 -#define THOST_FTDC_BS_NoUpload '1' -///已上传 -#define THOST_FTDC_BS_Uploaded '2' -///审核失败 -#define THOST_FTDC_BS_Failed '3' - -typedef char TThostFtdcBatchStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPropertyIDType是一个属性代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPropertyIDType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPropertyNameType是一个属性名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPropertyNameType[65]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLicenseNoType是一个营业执照号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcLicenseNoType[51]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAgentIDType是一个经纪人代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAgentIDType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAgentNameType是一个经纪人名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAgentNameType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAgentGroupIDType是一个经纪人组代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAgentGroupIDType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAgentGroupNameType是一个经纪人组名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAgentGroupNameType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcReturnStyleType是一个按品种返还方式类型 -///////////////////////////////////////////////////////////////////////// -///按所有品种 -#define THOST_FTDC_RS_All '1' -///按品种 -#define THOST_FTDC_RS_ByProduct '2' - -typedef char TThostFtdcReturnStyleType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcReturnPatternType是一个返还模式类型 -///////////////////////////////////////////////////////////////////////// -///按成交手数 -#define THOST_FTDC_RP_ByVolume '1' -///按留存手续费 -#define THOST_FTDC_RP_ByFeeOnHand '2' - -typedef char TThostFtdcReturnPatternType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcReturnLevelType是一个返还级别类型 -///////////////////////////////////////////////////////////////////////// -///级别1 -#define THOST_FTDC_RL_Level1 '1' -///级别2 -#define THOST_FTDC_RL_Level2 '2' -///级别3 -#define THOST_FTDC_RL_Level3 '3' -///级别4 -#define THOST_FTDC_RL_Level4 '4' -///级别5 -#define THOST_FTDC_RL_Level5 '5' -///级别6 -#define THOST_FTDC_RL_Level6 '6' -///级别7 -#define THOST_FTDC_RL_Level7 '7' -///级别8 -#define THOST_FTDC_RL_Level8 '8' -///级别9 -#define THOST_FTDC_RL_Level9 '9' - -typedef char TThostFtdcReturnLevelType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcReturnStandardType是一个返还标准类型 -///////////////////////////////////////////////////////////////////////// -///分阶段返还 -#define THOST_FTDC_RSD_ByPeriod '1' -///按某一标准 -#define THOST_FTDC_RSD_ByStandard '2' - -typedef char TThostFtdcReturnStandardType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMortgageTypeType是一个质押类型类型 -///////////////////////////////////////////////////////////////////////// -///质出 -#define THOST_FTDC_MT_Out '0' -///质入 -#define THOST_FTDC_MT_In '1' - -typedef char TThostFtdcMortgageTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorSettlementParamIDType是一个投资者结算参数代码类型 -///////////////////////////////////////////////////////////////////////// -///质押比例 -#define THOST_FTDC_ISPI_MortgageRatio '4' -///保证金算法 -#define THOST_FTDC_ISPI_MarginWay '5' -///结算单结存是否包含质押 -#define THOST_FTDC_ISPI_BillDeposit '9' - -typedef char TThostFtdcInvestorSettlementParamIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeSettlementParamIDType是一个交易所结算参数代码类型 -///////////////////////////////////////////////////////////////////////// -///质押比例 -#define THOST_FTDC_ESPI_MortgageRatio '1' -///分项资金导入项 -#define THOST_FTDC_ESPI_OtherFundItem '2' -///分项资金入交易所出入金 -#define THOST_FTDC_ESPI_OtherFundImport '3' -///中金所开户最低可用金额 -#define THOST_FTDC_ESPI_CFFEXMinPrepa '6' -///郑商所结算方式 -#define THOST_FTDC_ESPI_CZCESettlementType '7' -///交易所交割手续费收取方式 -#define THOST_FTDC_ESPI_ExchDelivFeeMode '9' -///投资者交割手续费收取方式 -#define THOST_FTDC_ESPI_DelivFeeMode '0' -///郑商所组合持仓保证金收取方式 -#define THOST_FTDC_ESPI_CZCEComMarginType 'A' -///大商所套利保证金是否优惠 -#define THOST_FTDC_ESPI_DceComMarginType 'B' -///虚值期权保证金优惠比率 -#define THOST_FTDC_ESPI_OptOutDisCountRate 'a' -///最低保障系数 -#define THOST_FTDC_ESPI_OptMiniGuarantee 'b' - -typedef char TThostFtdcExchangeSettlementParamIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSystemParamIDType是一个系统参数代码类型 -///////////////////////////////////////////////////////////////////////// -///投资者代码最小长度 -#define THOST_FTDC_SPI_InvestorIDMinLength '1' -///投资者帐号代码最小长度 -#define THOST_FTDC_SPI_AccountIDMinLength '2' -///投资者开户默认登录权限 -#define THOST_FTDC_SPI_UserRightLogon '3' -///投资者交易结算单成交汇总方式 -#define THOST_FTDC_SPI_SettlementBillTrade '4' -///统一开户更新交易编码方式 -#define THOST_FTDC_SPI_TradingCode '5' -///结算是否判断存在未复核的出入金和分项资金 -#define THOST_FTDC_SPI_CheckFund '6' -///是否启用手续费模板数据权限 -#define THOST_FTDC_SPI_CommModelRight '7' -///是否启用保证金率模板数据权限 -#define THOST_FTDC_SPI_MarginModelRight '9' -///是否规范用户才能激活 -#define THOST_FTDC_SPI_IsStandardActive '8' -///上传的交易所结算文件路径 -#define THOST_FTDC_SPI_UploadSettlementFile 'U' -///上报保证金监控中心文件路径 -#define THOST_FTDC_SPI_DownloadCSRCFile 'D' -///生成的结算单文件路径 -#define THOST_FTDC_SPI_SettlementBillFile 'S' -///证监会文件标识 -#define THOST_FTDC_SPI_CSRCOthersFile 'C' -///投资者照片路径 -#define THOST_FTDC_SPI_InvestorPhoto 'P' -///全结经纪公司上传文件路径 -#define THOST_FTDC_SPI_CSRCData 'R' -///开户密码录入方式 -#define THOST_FTDC_SPI_InvestorPwdModel 'I' -///投资者中金所结算文件下载路径 -#define THOST_FTDC_SPI_CFFEXInvestorSettleFile 'F' -///投资者代码编码方式 -#define THOST_FTDC_SPI_InvestorIDType 'a' -///休眠户最高权益 -#define THOST_FTDC_SPI_FreezeMaxReMain 'r' -///手续费相关操作实时上场开关 -#define THOST_FTDC_SPI_IsSync 'A' -///解除开仓权限限制 -#define THOST_FTDC_SPI_RelieveOpenLimit 'O' -///是否规范用户才能休眠 -#define THOST_FTDC_SPI_IsStandardFreeze 'X' -///郑商所是否开放所有品种套保交易 -#define THOST_FTDC_SPI_CZCENormalProductHedge 'B' - -typedef char TThostFtdcSystemParamIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeParamIDType是一个交易系统参数代码类型 -///////////////////////////////////////////////////////////////////////// -///系统加密算法 -#define THOST_FTDC_TPID_EncryptionStandard 'E' -///系统风险算法 -#define THOST_FTDC_TPID_RiskMode 'R' -///系统风险算法是否全局 0-否 1-是 -#define THOST_FTDC_TPID_RiskModeGlobal 'G' -///密码加密算法 -#define THOST_FTDC_TPID_modeEncode 'P' -///价格小数位数参数 -#define THOST_FTDC_TPID_tickMode 'T' -///用户最大会话数 -#define THOST_FTDC_TPID_SingleUserSessionMaxNum 'S' -///最大连续登录失败数 -#define THOST_FTDC_TPID_LoginFailMaxNum 'L' -///是否强制认证 -#define THOST_FTDC_TPID_IsAuthForce 'A' -///是否冻结证券持仓 -#define THOST_FTDC_TPID_IsPosiFreeze 'F' -///是否限仓 -#define THOST_FTDC_TPID_IsPosiLimit 'M' -///郑商所询价时间间隔 -#define THOST_FTDC_TPID_ForQuoteTimeInterval 'Q' -///是否期货限仓 -#define THOST_FTDC_TPID_IsFuturePosiLimit 'B' -///是否期货下单频率限制 -#define THOST_FTDC_TPID_IsFutureOrderFreq 'C' -///行权冻结是否计算盈利 -#define THOST_FTDC_TPID_IsExecOrderProfit 'H' - -typedef char TThostFtdcTradeParamIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSettlementParamValueType是一个参数代码值类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSettlementParamValueType[256]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCounterIDType是一个计数器代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCounterIDType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorGroupNameType是一个投资者分组名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInvestorGroupNameType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBrandCodeType是一个牌号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBrandCodeType[257]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcWarehouseType是一个仓库类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcWarehouseType[257]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProductDateType是一个产期类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcProductDateType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcGradeType是一个等级类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcGradeType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClassifyType是一个类别类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcClassifyType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPositionType是一个货位类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPositionType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcYieldlyType是一个产地类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcYieldlyType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcWeightType是一个公定重量类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcWeightType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSubEntryFundNoType是一个分项资金流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcSubEntryFundNoType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFileIDType是一个文件标识类型 -///////////////////////////////////////////////////////////////////////// -///资金数据 -#define THOST_FTDC_FI_SettlementFund 'F' -///成交数据 -#define THOST_FTDC_FI_Trade 'T' -///投资者持仓数据 -#define THOST_FTDC_FI_InvestorPosition 'P' -///投资者分项资金数据 -#define THOST_FTDC_FI_SubEntryFund 'O' -///组合持仓数据 -#define THOST_FTDC_FI_CZCECombinationPos 'C' -///上报保证金监控中心数据 -#define THOST_FTDC_FI_CSRCData 'R' -///郑商所平仓了结数据 -#define THOST_FTDC_FI_CZCEClose 'L' -///郑商所非平仓了结数据 -#define THOST_FTDC_FI_CZCENoClose 'N' -///持仓明细数据 -#define THOST_FTDC_FI_PositionDtl 'D' -///期权执行文件 -#define THOST_FTDC_FI_OptionStrike 'S' -///结算价比对文件 -#define THOST_FTDC_FI_SettlementPriceComparison 'M' -///上期所非持仓变动明细 -#define THOST_FTDC_FI_NonTradePosChange 'B' - -typedef char TThostFtdcFileIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFileNameType是一个文件名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFileNameType[257]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFileTypeType是一个文件上传类型类型 -///////////////////////////////////////////////////////////////////////// -///结算 -#define THOST_FTDC_FUT_Settlement '0' -///核对 -#define THOST_FTDC_FUT_Check '1' - -typedef char TThostFtdcFileTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFileFormatType是一个文件格式类型 -///////////////////////////////////////////////////////////////////////// -///文本文件(.txt) -#define THOST_FTDC_FFT_Txt '0' -///压缩文件(.zip) -#define THOST_FTDC_FFT_Zip '1' -///DBF文件(.dbf) -#define THOST_FTDC_FFT_DBF '2' - -typedef char TThostFtdcFileFormatType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFileUploadStatusType是一个文件状态类型 -///////////////////////////////////////////////////////////////////////// -///上传成功 -#define THOST_FTDC_FUS_SucceedUpload '1' -///上传失败 -#define THOST_FTDC_FUS_FailedUpload '2' -///导入成功 -#define THOST_FTDC_FUS_SucceedLoad '3' -///导入部分成功 -#define THOST_FTDC_FUS_PartSucceedLoad '4' -///导入失败 -#define THOST_FTDC_FUS_FailedLoad '5' - -typedef char TThostFtdcFileUploadStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTransferDirectionType是一个移仓方向类型 -///////////////////////////////////////////////////////////////////////// -///移出 -#define THOST_FTDC_TD_Out '0' -///移入 -#define THOST_FTDC_TD_In '1' - -typedef char TThostFtdcTransferDirectionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUploadModeType是一个上传文件类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUploadModeType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAccountIDType是一个投资者帐号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAccountIDType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankFlagType是一个银行统一标识类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankFlagType[4]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankAccountType是一个银行账户类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankAccountType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOpenNameType是一个银行账户的开户人名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOpenNameType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOpenBankType是一个银行账户的开户行类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOpenBankType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankNameType是一个银行名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankNameType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPublishPathType是一个发布路径类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPublishPathType[257]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOperatorIDType是一个操作员代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOperatorIDType[65]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMonthCountType是一个月份数量类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcMonthCountType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAdvanceMonthArrayType是一个月份提前数组类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAdvanceMonthArrayType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDateExprType是一个日期表达式类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcDateExprType[1025]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInstrumentIDExprType是一个合约代码表达式类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInstrumentIDExprType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInstrumentNameExprType是一个合约名称表达式类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInstrumentNameExprType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSpecialCreateRuleType是一个特殊的创建规则类型 -///////////////////////////////////////////////////////////////////////// -///没有特殊创建规则 -#define THOST_FTDC_SC_NoSpecialRule '0' -///不包含春节 -#define THOST_FTDC_SC_NoSpringFestival '1' - -typedef char TThostFtdcSpecialCreateRuleType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBasisPriceTypeType是一个挂牌基准价类型类型 -///////////////////////////////////////////////////////////////////////// -///上一合约结算价 -#define THOST_FTDC_IPT_LastSettlement '1' -///上一合约收盘价 -#define THOST_FTDC_IPT_LaseClose '2' - -typedef char TThostFtdcBasisPriceTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProductLifePhaseType是一个产品生命周期状态类型 -///////////////////////////////////////////////////////////////////////// -///活跃 -#define THOST_FTDC_PLP_Active '1' -///不活跃 -#define THOST_FTDC_PLP_NonActive '2' -///注销 -#define THOST_FTDC_PLP_Canceled '3' - -typedef char TThostFtdcProductLifePhaseType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDeliveryModeType是一个交割方式类型 -///////////////////////////////////////////////////////////////////////// -///现金交割 -#define THOST_FTDC_DM_CashDeliv '1' -///实物交割 -#define THOST_FTDC_DM_CommodityDeliv '2' - -typedef char TThostFtdcDeliveryModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLogLevelType是一个日志级别类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcLogLevelType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProcessNameType是一个存储过程名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcProcessNameType[257]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOperationMemoType是一个操作摘要类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOperationMemoType[1025]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFundIOTypeType是一个出入金类型类型 -///////////////////////////////////////////////////////////////////////// -///出入金 -#define THOST_FTDC_FIOT_FundIO '1' -///银期转帐 -#define THOST_FTDC_FIOT_Transfer '2' -///银期换汇 -#define THOST_FTDC_FIOT_SwapCurrency '3' - -typedef char TThostFtdcFundIOTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFundTypeType是一个资金类型类型 -///////////////////////////////////////////////////////////////////////// -///银行存款 -#define THOST_FTDC_FT_Deposite '1' -///分项资金 -#define THOST_FTDC_FT_ItemFund '2' -///公司调整 -#define THOST_FTDC_FT_Company '3' -///资金内转 -#define THOST_FTDC_FT_InnerTransfer '4' - -typedef char TThostFtdcFundTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFundDirectionType是一个出入金方向类型 -///////////////////////////////////////////////////////////////////////// -///入金 -#define THOST_FTDC_FD_In '1' -///出金 -#define THOST_FTDC_FD_Out '2' - -typedef char TThostFtdcFundDirectionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFundStatusType是一个资金状态类型 -///////////////////////////////////////////////////////////////////////// -///已录入 -#define THOST_FTDC_FS_Record '1' -///已复核 -#define THOST_FTDC_FS_Check '2' -///已冲销 -#define THOST_FTDC_FS_Charge '3' - -typedef char TThostFtdcFundStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBillNoType是一个票据号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBillNoType[15]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBillNameType是一个票据名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBillNameType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPublishStatusType是一个发布状态类型 -///////////////////////////////////////////////////////////////////////// -///未发布 -#define THOST_FTDC_PS_None '1' -///正在发布 -#define THOST_FTDC_PS_Publishing '2' -///已发布 -#define THOST_FTDC_PS_Published '3' - -typedef char TThostFtdcPublishStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcEnumValueIDType是一个枚举值代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcEnumValueIDType[65]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcEnumValueTypeType是一个枚举值类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcEnumValueTypeType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcEnumValueLabelType是一个枚举值名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcEnumValueLabelType[65]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcEnumValueResultType是一个枚举值结果类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcEnumValueResultType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSystemStatusType是一个系统状态类型 -///////////////////////////////////////////////////////////////////////// -///不活跃 -#define THOST_FTDC_ES_NonActive '1' -///启动 -#define THOST_FTDC_ES_Startup '2' -///交易开始初始化 -#define THOST_FTDC_ES_Initialize '3' -///交易完成初始化 -#define THOST_FTDC_ES_Initialized '4' -///收市开始 -#define THOST_FTDC_ES_Close '5' -///收市完成 -#define THOST_FTDC_ES_Closed '6' -///结算 -#define THOST_FTDC_ES_Settlement '7' - -typedef char TThostFtdcSystemStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSettlementStatusType是一个结算状态类型 -///////////////////////////////////////////////////////////////////////// -///初始 -#define THOST_FTDC_STS_Initialize '0' -///结算中 -#define THOST_FTDC_STS_Settlementing '1' -///已结算 -#define THOST_FTDC_STS_Settlemented '2' -///结算完成 -#define THOST_FTDC_STS_Finished '3' - -typedef char TThostFtdcSettlementStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRangeIntTypeType是一个限定值类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRangeIntTypeType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRangeIntFromType是一个限定值下限类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRangeIntFromType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRangeIntToType是一个限定值上限类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRangeIntToType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFunctionIDType是一个功能代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFunctionIDType[25]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFunctionValueCodeType是一个功能编码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFunctionValueCodeType[257]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFunctionNameType是一个功能名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFunctionNameType[65]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRoleIDType是一个角色编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRoleIDType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRoleNameType是一个角色名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRoleNameType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDescriptionType是一个描述类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcDescriptionType[401]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCombineIDType是一个组合编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCombineIDType[25]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCombineTypeType是一个组合类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCombineTypeType[25]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorTypeType是一个投资者类型类型 -///////////////////////////////////////////////////////////////////////// -///自然人 -#define THOST_FTDC_CT_Person '0' -///法人 -#define THOST_FTDC_CT_Company '1' -///投资基金 -#define THOST_FTDC_CT_Fund '2' -///特殊法人 -#define THOST_FTDC_CT_SpecialOrgan '3' -///资管户 -#define THOST_FTDC_CT_Asset '4' - -typedef char TThostFtdcInvestorTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerTypeType是一个经纪公司类型类型 -///////////////////////////////////////////////////////////////////////// -///交易会员 -#define THOST_FTDC_BT_Trade '0' -///交易结算会员 -#define THOST_FTDC_BT_TradeSettle '1' - -typedef char TThostFtdcBrokerTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRiskLevelType是一个风险等级类型 -///////////////////////////////////////////////////////////////////////// -///低风险客户 -#define THOST_FTDC_FAS_Low '1' -///普通客户 -#define THOST_FTDC_FAS_Normal '2' -///关注客户 -#define THOST_FTDC_FAS_Focus '3' -///风险客户 -#define THOST_FTDC_FAS_Risk '4' - -typedef char TThostFtdcRiskLevelType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFeeAcceptStyleType是一个手续费收取方式类型 -///////////////////////////////////////////////////////////////////////// -///按交易收取 -#define THOST_FTDC_FAS_ByTrade '1' -///按交割收取 -#define THOST_FTDC_FAS_ByDeliv '2' -///不收 -#define THOST_FTDC_FAS_None '3' -///按指定手续费收取 -#define THOST_FTDC_FAS_FixFee '4' - -typedef char TThostFtdcFeeAcceptStyleType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPasswordTypeType是一个密码类型类型 -///////////////////////////////////////////////////////////////////////// -///交易密码 -#define THOST_FTDC_PWDT_Trade '1' -///资金密码 -#define THOST_FTDC_PWDT_Account '2' - -typedef char TThostFtdcPasswordTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAlgorithmType是一个盈亏算法类型 -///////////////////////////////////////////////////////////////////////// -///浮盈浮亏都计算 -#define THOST_FTDC_AG_All '1' -///浮盈不计,浮亏计 -#define THOST_FTDC_AG_OnlyLost '2' -///浮盈计,浮亏不计 -#define THOST_FTDC_AG_OnlyGain '3' -///浮盈浮亏都不计算 -#define THOST_FTDC_AG_None '4' - -typedef char TThostFtdcAlgorithmType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcIncludeCloseProfitType是一个是否包含平仓盈利类型 -///////////////////////////////////////////////////////////////////////// -///包含平仓盈利 -#define THOST_FTDC_ICP_Include '0' -///不包含平仓盈利 -#define THOST_FTDC_ICP_NotInclude '2' - -typedef char TThostFtdcIncludeCloseProfitType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAllWithoutTradeType是一个是否受可提比例限制类型 -///////////////////////////////////////////////////////////////////////// -///无仓无成交不受可提比例限制 -#define THOST_FTDC_AWT_Enable '0' -///受可提比例限制 -#define THOST_FTDC_AWT_Disable '2' -///无仓不受可提比例限制 -#define THOST_FTDC_AWT_NoHoldEnable '3' - -typedef char TThostFtdcAllWithoutTradeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCommentType是一个盈亏算法说明类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCommentType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcVersionType是一个版本号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcVersionType[4]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeCodeType是一个交易代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTradeCodeType[7]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeDateType是一个交易日期类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTradeDateType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeTimeType是一个交易时间类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTradeTimeType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeSerialType是一个发起方流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTradeSerialType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeSerialNoType是一个发起方流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcTradeSerialNoType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFutureIDType是一个期货公司代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFutureIDType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankIDType是一个银行代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankIDType[4]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankBrchIDType是一个银行分中心代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankBrchIDType[5]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankBranchIDType是一个分中心代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankBranchIDType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOperNoType是一个交易柜员类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOperNoType[17]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDeviceIDType是一个渠道标志类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcDeviceIDType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRecordNumType是一个记录数类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRecordNumType[7]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFutureAccountType是一个期货资金账号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFutureAccountType[22]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFuturePwdFlagType是一个资金密码核对标志类型 -///////////////////////////////////////////////////////////////////////// -///不核对 -#define THOST_FTDC_FPWD_UnCheck '0' -///核对 -#define THOST_FTDC_FPWD_Check '1' - -typedef char TThostFtdcFuturePwdFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTransferTypeType是一个银期转账类型类型 -///////////////////////////////////////////////////////////////////////// -///银行转期货 -#define THOST_FTDC_TT_BankToFuture '0' -///期货转银行 -#define THOST_FTDC_TT_FutureToBank '1' - -typedef char TThostFtdcTransferTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFutureAccPwdType是一个期货资金密码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFutureAccPwdType[17]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencyCodeType是一个币种类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCurrencyCodeType[4]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRetCodeType是一个响应代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRetCodeType[5]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRetInfoType是一个响应信息类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRetInfoType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeAmtType是一个银行总余额类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTradeAmtType[20]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUseAmtType是一个银行可用余额类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUseAmtType[20]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFetchAmtType是一个银行可取余额类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFetchAmtType[20]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTransferValidFlagType是一个转账有效标志类型 -///////////////////////////////////////////////////////////////////////// -///无效或失败 -#define THOST_FTDC_TVF_Invalid '0' -///有效 -#define THOST_FTDC_TVF_Valid '1' -///冲正 -#define THOST_FTDC_TVF_Reverse '2' - -typedef char TThostFtdcTransferValidFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCertCodeType是一个证件号码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCertCodeType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcReasonType是一个事由类型 -///////////////////////////////////////////////////////////////////////// -///错单 -#define THOST_FTDC_RN_CD '0' -///资金在途 -#define THOST_FTDC_RN_ZT '1' -///其它 -#define THOST_FTDC_RN_QT '2' - -typedef char TThostFtdcReasonType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFundProjectIDType是一个资金项目编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFundProjectIDType[5]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSexType是一个性别类型 -///////////////////////////////////////////////////////////////////////// -///未知 -#define THOST_FTDC_SEX_None '0' -///男 -#define THOST_FTDC_SEX_Man '1' -///女 -#define THOST_FTDC_SEX_Woman '2' - -typedef char TThostFtdcSexType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProfessionType是一个职业类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcProfessionType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcNationalType是一个国籍类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcNationalType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProvinceType是一个省类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcProvinceType[51]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRegionType是一个区类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRegionType[16]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCountryType是一个国家类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCountryType[16]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLicenseNOType是一个营业执照类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcLicenseNOType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCompanyTypeType是一个企业性质类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCompanyTypeType[16]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBusinessScopeType是一个经营范围类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBusinessScopeType[1001]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCapitalCurrencyType是一个注册资本币种类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCapitalCurrencyType[4]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUserTypeType是一个用户类型类型 -///////////////////////////////////////////////////////////////////////// -///投资者 -#define THOST_FTDC_UT_Investor '0' -///操作员 -#define THOST_FTDC_UT_Operator '1' -///管理员 -#define THOST_FTDC_UT_SuperUser '2' - -typedef char TThostFtdcUserTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBranchIDType是一个营业部编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBranchIDType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRateTypeType是一个费率类型类型 -///////////////////////////////////////////////////////////////////////// -///保证金率 -#define THOST_FTDC_RATETYPE_MarginRate '2' - -typedef char TThostFtdcRateTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcNoteTypeType是一个通知类型类型 -///////////////////////////////////////////////////////////////////////// -///交易结算单 -#define THOST_FTDC_NOTETYPE_TradeSettleBill '1' -///交易结算月报 -#define THOST_FTDC_NOTETYPE_TradeSettleMonth '2' -///追加保证金通知书 -#define THOST_FTDC_NOTETYPE_CallMarginNotes '3' -///强行平仓通知书 -#define THOST_FTDC_NOTETYPE_ForceCloseNotes '4' -///成交通知书 -#define THOST_FTDC_NOTETYPE_TradeNotes '5' -///交割通知书 -#define THOST_FTDC_NOTETYPE_DelivNotes '6' - -typedef char TThostFtdcNoteTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSettlementStyleType是一个结算单方式类型 -///////////////////////////////////////////////////////////////////////// -///逐日盯市 -#define THOST_FTDC_SBS_Day '1' -///逐笔对冲 -#define THOST_FTDC_SBS_Volume '2' - -typedef char TThostFtdcSettlementStyleType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerDNSType是一个域名类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBrokerDNSType[256]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSentenceType是一个语句类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSentenceType[501]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSettlementBillTypeType是一个结算单类型类型 -///////////////////////////////////////////////////////////////////////// -///日报 -#define THOST_FTDC_ST_Day '0' -///月报 -#define THOST_FTDC_ST_Month '1' - -typedef char TThostFtdcSettlementBillTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUserRightTypeType是一个客户权限类型类型 -///////////////////////////////////////////////////////////////////////// -///登录 -#define THOST_FTDC_URT_Logon '1' -///银期转帐 -#define THOST_FTDC_URT_Transfer '2' -///邮寄结算单 -#define THOST_FTDC_URT_EMail '3' -///传真结算单 -#define THOST_FTDC_URT_Fax '4' -///条件单 -#define THOST_FTDC_URT_ConditionOrder '5' - -typedef char TThostFtdcUserRightTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMarginPriceTypeType是一个保证金价格类型类型 -///////////////////////////////////////////////////////////////////////// -///昨结算价 -#define THOST_FTDC_MPT_PreSettlementPrice '1' -///最新价 -#define THOST_FTDC_MPT_SettlementPrice '2' -///成交均价 -#define THOST_FTDC_MPT_AveragePrice '3' -///开仓价 -#define THOST_FTDC_MPT_OpenPrice '4' - -typedef char TThostFtdcMarginPriceTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBillGenStatusType是一个结算单生成状态类型 -///////////////////////////////////////////////////////////////////////// -///未生成 -#define THOST_FTDC_BGS_None '0' -///生成中 -#define THOST_FTDC_BGS_NoGenerated '1' -///已生成 -#define THOST_FTDC_BGS_Generated '2' - -typedef char TThostFtdcBillGenStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAlgoTypeType是一个算法类型类型 -///////////////////////////////////////////////////////////////////////// -///持仓处理算法 -#define THOST_FTDC_AT_HandlePositionAlgo '1' -///寻找保证金率算法 -#define THOST_FTDC_AT_FindMarginRateAlgo '2' - -typedef char TThostFtdcAlgoTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcHandlePositionAlgoIDType是一个持仓处理算法编号类型 -///////////////////////////////////////////////////////////////////////// -///基本 -#define THOST_FTDC_HPA_Base '1' -///大连商品交易所 -#define THOST_FTDC_HPA_DCE '2' -///郑州商品交易所 -#define THOST_FTDC_HPA_CZCE '3' - -typedef char TThostFtdcHandlePositionAlgoIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFindMarginRateAlgoIDType是一个寻找保证金率算法编号类型 -///////////////////////////////////////////////////////////////////////// -///基本 -#define THOST_FTDC_FMRA_Base '1' -///大连商品交易所 -#define THOST_FTDC_FMRA_DCE '2' -///郑州商品交易所 -#define THOST_FTDC_FMRA_CZCE '3' - -typedef char TThostFtdcFindMarginRateAlgoIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcHandleTradingAccountAlgoIDType是一个资金处理算法编号类型 -///////////////////////////////////////////////////////////////////////// -///基本 -#define THOST_FTDC_HTAA_Base '1' -///大连商品交易所 -#define THOST_FTDC_HTAA_DCE '2' -///郑州商品交易所 -#define THOST_FTDC_HTAA_CZCE '3' - -typedef char TThostFtdcHandleTradingAccountAlgoIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPersonTypeType是一个联系人类型类型 -///////////////////////////////////////////////////////////////////////// -///指定下单人 -#define THOST_FTDC_PST_Order '1' -///开户授权人 -#define THOST_FTDC_PST_Open '2' -///资金调拨人 -#define THOST_FTDC_PST_Fund '3' -///结算单确认人 -#define THOST_FTDC_PST_Settlement '4' -///法人 -#define THOST_FTDC_PST_Company '5' -///法人代表 -#define THOST_FTDC_PST_Corporation '6' -///投资者联系人 -#define THOST_FTDC_PST_LinkMan '7' -///分户管理资产负责人 -#define THOST_FTDC_PST_Ledger '8' -///托(保)管人 -#define THOST_FTDC_PST_Trustee '9' -///托(保)管机构法人代表 -#define THOST_FTDC_PST_TrusteeCorporation 'A' -///托(保)管机构开户授权人 -#define THOST_FTDC_PST_TrusteeOpen 'B' -///托(保)管机构联系人 -#define THOST_FTDC_PST_TrusteeContact 'C' -///境外自然人参考证件 -#define THOST_FTDC_PST_ForeignerRefer 'D' -///法人代表参考证件 -#define THOST_FTDC_PST_CorporationRefer 'E' - -typedef char TThostFtdcPersonTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcQueryInvestorRangeType是一个查询范围类型 -///////////////////////////////////////////////////////////////////////// -///所有 -#define THOST_FTDC_QIR_All '1' -///查询分类 -#define THOST_FTDC_QIR_Group '2' -///单一投资者 -#define THOST_FTDC_QIR_Single '3' - -typedef char TThostFtdcQueryInvestorRangeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorRiskStatusType是一个投资者风险状态类型 -///////////////////////////////////////////////////////////////////////// -///正常 -#define THOST_FTDC_IRS_Normal '1' -///警告 -#define THOST_FTDC_IRS_Warn '2' -///追保 -#define THOST_FTDC_IRS_Call '3' -///强平 -#define THOST_FTDC_IRS_Force '4' -///异常 -#define THOST_FTDC_IRS_Exception '5' - -typedef char TThostFtdcInvestorRiskStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLegIDType是一个单腿编号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcLegIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLegMultipleType是一个单腿乘数类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcLegMultipleType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcImplyLevelType是一个派生层数类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcImplyLevelType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClearAccountType是一个结算账户类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcClearAccountType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrganNOType是一个结算账户类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOrganNOType[6]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClearbarchIDType是一个结算账户联行号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcClearbarchIDType[6]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUserEventTypeType是一个用户事件类型类型 -///////////////////////////////////////////////////////////////////////// -///登录 -#define THOST_FTDC_UET_Login '1' -///登出 -#define THOST_FTDC_UET_Logout '2' -///交易成功 -#define THOST_FTDC_UET_Trading '3' -///交易失败 -#define THOST_FTDC_UET_TradingError '4' -///修改密码 -#define THOST_FTDC_UET_UpdatePassword '5' -///客户端认证 -#define THOST_FTDC_UET_Authenticate '6' -///其他 -#define THOST_FTDC_UET_Other '9' - -typedef char TThostFtdcUserEventTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUserEventInfoType是一个用户事件信息类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUserEventInfoType[1025]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCloseStyleType是一个平仓方式类型 -///////////////////////////////////////////////////////////////////////// -///先开先平 -#define THOST_FTDC_ICS_Close '0' -///先平今再平昨 -#define THOST_FTDC_ICS_CloseToday '1' - -typedef char TThostFtdcCloseStyleType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcStatModeType是一个统计方式类型 -///////////////////////////////////////////////////////////////////////// -///---- -#define THOST_FTDC_SM_Non '0' -///按合约统计 -#define THOST_FTDC_SM_Instrument '1' -///按产品统计 -#define THOST_FTDC_SM_Product '2' -///按投资者统计 -#define THOST_FTDC_SM_Investor '3' - -typedef char TThostFtdcStatModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcParkedOrderStatusType是一个预埋单状态类型 -///////////////////////////////////////////////////////////////////////// -///未发送 -#define THOST_FTDC_PAOS_NotSend '1' -///已发送 -#define THOST_FTDC_PAOS_Send '2' -///已删除 -#define THOST_FTDC_PAOS_Deleted '3' - -typedef char TThostFtdcParkedOrderStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcParkedOrderIDType是一个预埋报单编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcParkedOrderIDType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcParkedOrderActionIDType是一个预埋撤单编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcParkedOrderActionIDType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcVirDealStatusType是一个处理状态类型 -///////////////////////////////////////////////////////////////////////// -///正在处理 -#define THOST_FTDC_VDS_Dealing '1' -///处理成功 -#define THOST_FTDC_VDS_DeaclSucceed '2' - -typedef char TThostFtdcVirDealStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrgSystemIDType是一个原有系统代码类型 -///////////////////////////////////////////////////////////////////////// -///综合交易平台 -#define THOST_FTDC_ORGS_Standard '0' -///易盛系统 -#define THOST_FTDC_ORGS_ESunny '1' -///金仕达V6系统 -#define THOST_FTDC_ORGS_KingStarV6 '2' - -typedef char TThostFtdcOrgSystemIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcVirTradeStatusType是一个交易状态类型 -///////////////////////////////////////////////////////////////////////// -///正常处理中 -#define THOST_FTDC_VTS_NaturalDeal '0' -///成功结束 -#define THOST_FTDC_VTS_SucceedEnd '1' -///失败结束 -#define THOST_FTDC_VTS_FailedEND '2' -///异常中 -#define THOST_FTDC_VTS_Exception '3' -///已人工异常处理 -#define THOST_FTDC_VTS_ManualDeal '4' -///通讯异常 ,请人工处理 -#define THOST_FTDC_VTS_MesException '5' -///系统出错,请人工处理 -#define THOST_FTDC_VTS_SysException '6' - -typedef char TThostFtdcVirTradeStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcVirBankAccTypeType是一个银行帐户类型类型 -///////////////////////////////////////////////////////////////////////// -///存折 -#define THOST_FTDC_VBAT_BankBook '1' -///储蓄卡 -#define THOST_FTDC_VBAT_BankCard '2' -///信用卡 -#define THOST_FTDC_VBAT_CreditCard '3' - -typedef char TThostFtdcVirBankAccTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcVirementStatusType是一个银行帐户类型类型 -///////////////////////////////////////////////////////////////////////// -///正常 -#define THOST_FTDC_VMS_Natural '0' -///销户 -#define THOST_FTDC_VMS_Canceled '9' - -typedef char TThostFtdcVirementStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcVirementAvailAbilityType是一个有效标志类型 -///////////////////////////////////////////////////////////////////////// -///未确认 -#define THOST_FTDC_VAA_NoAvailAbility '0' -///有效 -#define THOST_FTDC_VAA_AvailAbility '1' -///冲正 -#define THOST_FTDC_VAA_Repeal '2' - -typedef char TThostFtdcVirementAvailAbilityType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcVirementTradeCodeType是一个交易代码类型 -///////////////////////////////////////////////////////////////////////// -///银行发起银行资金转期货 -#define THOST_FTDC_VTC_BankBankToFuture '102001' -///银行发起期货资金转银行 -#define THOST_FTDC_VTC_BankFutureToBank '102002' -///期货发起银行资金转期货 -#define THOST_FTDC_VTC_FutureBankToFuture '202001' -///期货发起期货资金转银行 -#define THOST_FTDC_VTC_FutureFutureToBank '202002' - -typedef char TThostFtdcVirementTradeCodeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPhotoTypeNameType是一个影像类型名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPhotoTypeNameType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPhotoTypeIDType是一个影像类型代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPhotoTypeIDType[5]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPhotoNameType是一个影像名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPhotoNameType[161]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTopicIDType是一个主题代码类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcTopicIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcReportTypeIDType是一个交易报告类型标识类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcReportTypeIDType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCharacterIDType是一个交易特征代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCharacterIDType[5]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLParamIDType是一个参数代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLParamIDType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLInvestorTypeType是一个投资者类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLInvestorTypeType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLIdCardTypeType是一个证件类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLIdCardTypeType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLTradeDirectType是一个资金进出方向类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLTradeDirectType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLTradeModelType是一个资金进出方式类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLTradeModelType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLParamIDType是一个参数代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLParamIDType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLOpParamValueType是一个业务参数代码值类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcAMLOpParamValueType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLCustomerCardTypeType是一个客户身份证件/证明文件类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLCustomerCardTypeType[81]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLInstitutionNameType是一个金融机构网点名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLInstitutionNameType[65]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLDistrictIDType是一个金融机构网点所在地区行政区划代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLDistrictIDType[7]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLRelationShipType是一个金融机构网点与大额交易的关系类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLRelationShipType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLInstitutionTypeType是一个金融机构网点代码类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLInstitutionTypeType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLInstitutionIDType是一个金融机构网点代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLInstitutionIDType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLAccountTypeType是一个账户类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLAccountTypeType[5]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLTradingTypeType是一个交易方式类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLTradingTypeType[7]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLTransactClassType是一个涉外收支交易分类与代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLTransactClassType[7]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLCapitalIOType是一个资金收付标识类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLCapitalIOType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLSiteType是一个交易地点类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLSiteType[10]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLCapitalPurposeType是一个资金用途类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLCapitalPurposeType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLReportTypeType是一个报文类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLReportTypeType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLSerialNoType是一个编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLSerialNoType[5]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLStatusType是一个状态类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLStatusType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLGenStatusType是一个Aml生成方式类型 -///////////////////////////////////////////////////////////////////////// -///程序生成 -#define THOST_FTDC_GEN_Program '0' -///人工生成 -#define THOST_FTDC_GEN_HandWork '1' - -typedef char TThostFtdcAMLGenStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLSeqCodeType是一个业务标识号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLSeqCodeType[65]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLFileNameType是一个AML文件名类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLFileNameType[257]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLMoneyType是一个反洗钱资金类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcAMLMoneyType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLFileAmountType是一个反洗钱资金类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcAMLFileAmountType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCFMMCKeyType是一个密钥类型(保证金监管)类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCFMMCKeyType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCFMMCTokenType是一个令牌类型(保证金监管)类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCFMMCTokenType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCFMMCKeyKindType是一个动态密钥类别(保证金监管)类型 -///////////////////////////////////////////////////////////////////////// -///主动请求更新 -#define THOST_FTDC_CFMMCKK_REQUEST 'R' -///CFMMC自动更新 -#define THOST_FTDC_CFMMCKK_AUTO 'A' -///CFMMC手动更新 -#define THOST_FTDC_CFMMCKK_MANUAL 'M' - -typedef char TThostFtdcCFMMCKeyKindType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLReportNameType是一个报文名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAMLReportNameType[81]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcIndividualNameType是一个个人姓名类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcIndividualNameType[51]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencyIDType是一个币种代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCurrencyIDType[4]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCustNumberType是一个客户编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCustNumberType[36]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrganCodeType是一个机构编码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOrganCodeType[36]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrganNameType是一个机构名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOrganNameType[71]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSuperOrganCodeType是一个上级机构编码,即期货公司总部、银行总行类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSuperOrganCodeType[12]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSubBranchIDType是一个分支机构类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSubBranchIDType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSubBranchNameType是一个分支机构名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSubBranchNameType[71]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBranchNetCodeType是一个机构网点号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBranchNetCodeType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBranchNetNameType是一个机构网点名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBranchNetNameType[71]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrganFlagType是一个机构标识类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOrganFlagType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankCodingForFutureType是一个银行对期货公司的编码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankCodingForFutureType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankReturnCodeType是一个银行对返回码的定义类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankReturnCodeType[7]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPlateReturnCodeType是一个银期转帐平台对返回码的定义类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPlateReturnCodeType[5]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankSubBranchIDType是一个银行分支机构编码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankSubBranchIDType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFutureBranchIDType是一个期货分支机构编码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFutureBranchIDType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcReturnCodeType是一个返回代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcReturnCodeType[7]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOperatorCodeType是一个操作员类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOperatorCodeType[17]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClearDepIDType是一个机构结算帐户机构号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcClearDepIDType[6]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClearBrchIDType是一个机构结算帐户联行号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcClearBrchIDType[6]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClearNameType是一个机构结算帐户名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcClearNameType[71]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankAccountNameType是一个银行帐户名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankAccountNameType[71]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvDepIDType是一个机构投资人账号机构号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInvDepIDType[6]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvBrchIDType是一个机构投资人联行号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInvBrchIDType[6]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMessageFormatVersionType是一个信息格式版本类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcMessageFormatVersionType[36]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDigestType是一个摘要类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcDigestType[36]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAuthenticDataType是一个认证数据类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAuthenticDataType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPasswordKeyType是一个密钥类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPasswordKeyType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFutureAccountNameType是一个期货帐户名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFutureAccountNameType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMobilePhoneType是一个手机类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcMobilePhoneType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFutureMainKeyType是一个期货公司主密钥类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFutureMainKeyType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFutureWorkKeyType是一个期货公司工作密钥类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFutureWorkKeyType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFutureTransKeyType是一个期货公司传输密钥类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFutureTransKeyType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankMainKeyType是一个银行主密钥类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankMainKeyType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankWorkKeyType是一个银行工作密钥类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankWorkKeyType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankTransKeyType是一个银行传输密钥类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankTransKeyType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankServerDescriptionType是一个银行服务器描述信息类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankServerDescriptionType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAddInfoType是一个附加信息类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAddInfoType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDescrInfoForReturnCodeType是一个返回码描述类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcDescrInfoForReturnCodeType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCountryCodeType是一个国家代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCountryCodeType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSerialType是一个流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcSerialType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPlateSerialType是一个平台流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcPlateSerialType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankSerialType是一个银行流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankSerialType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCorrectSerialType是一个被冲正交易流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcCorrectSerialType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFutureSerialType是一个期货公司流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcFutureSerialType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcApplicationIDType是一个应用标识类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcApplicationIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankProxyIDType是一个银行代理标识类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcBankProxyIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBTCoreIDType是一个银期转帐核心系统标识类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcFBTCoreIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcServerPortType是一个服务端口号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcServerPortType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRepealedTimesType是一个已经冲正次数类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcRepealedTimesType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRepealTimeIntervalType是一个冲正时间间隔类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcRepealTimeIntervalType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTotalTimesType是一个每日累计转帐次数类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcTotalTimesType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBTRequestIDType是一个请求ID类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcFBTRequestIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTIDType是一个交易ID类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcTIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeAmountType是一个交易金额(元)类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcTradeAmountType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCustFeeType是一个应收客户费用(元)类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcCustFeeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFutureFeeType是一个应收期货公司费用(元)类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcFutureFeeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSingleMaxAmtType是一个单笔最高限额类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcSingleMaxAmtType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSingleMinAmtType是一个单笔最低限额类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcSingleMinAmtType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTotalAmtType是一个每日累计转帐额度类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcTotalAmtType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCertificationTypeType是一个证件类型类型 -///////////////////////////////////////////////////////////////////////// -///身份证 -#define THOST_FTDC_CFT_IDCard '0' -///护照 -#define THOST_FTDC_CFT_Passport '1' -///军官证 -#define THOST_FTDC_CFT_OfficerIDCard '2' -///士兵证 -#define THOST_FTDC_CFT_SoldierIDCard '3' -///回乡证 -#define THOST_FTDC_CFT_HomeComingCard '4' -///户口簿 -#define THOST_FTDC_CFT_HouseholdRegister '5' -///营业执照号 -#define THOST_FTDC_CFT_LicenseNo '6' -///组织机构代码证 -#define THOST_FTDC_CFT_InstitutionCodeCard '7' -///临时营业执照号 -#define THOST_FTDC_CFT_TempLicenseNo '8' -///民办非企业登记证书 -#define THOST_FTDC_CFT_NoEnterpriseLicenseNo '9' -///其他证件 -#define THOST_FTDC_CFT_OtherCard 'x' -///主管部门批文 -#define THOST_FTDC_CFT_SuperDepAgree 'a' - -typedef char TThostFtdcCertificationTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFileBusinessCodeType是一个文件业务功能类型 -///////////////////////////////////////////////////////////////////////// -///其他 -#define THOST_FTDC_FBC_Others '0' -///转账交易明细对账 -#define THOST_FTDC_FBC_TransferDetails '1' -///客户账户状态对账 -#define THOST_FTDC_FBC_CustAccStatus '2' -///账户类交易明细对账 -#define THOST_FTDC_FBC_AccountTradeDetails '3' -///期货账户信息变更明细对账 -#define THOST_FTDC_FBC_FutureAccountChangeInfoDetails '4' -///客户资金台账余额明细对账 -#define THOST_FTDC_FBC_CustMoneyDetail '5' -///客户销户结息明细对账 -#define THOST_FTDC_FBC_CustCancelAccountInfo '6' -///客户资金余额对账结果 -#define THOST_FTDC_FBC_CustMoneyResult '7' -///其它对账异常结果文件 -#define THOST_FTDC_FBC_OthersExceptionResult '8' -///客户结息净额明细 -#define THOST_FTDC_FBC_CustInterestNetMoneyDetails '9' -///客户资金交收明细 -#define THOST_FTDC_FBC_CustMoneySendAndReceiveDetails 'a' -///法人存管银行资金交收汇总 -#define THOST_FTDC_FBC_CorporationMoneyTotal 'b' -///主体间资金交收汇总 -#define THOST_FTDC_FBC_MainbodyMoneyTotal 'c' -///总分平衡监管数据 -#define THOST_FTDC_FBC_MainPartMonitorData 'd' -///存管银行备付金余额 -#define THOST_FTDC_FBC_PreparationMoney 'e' -///协办存管银行资金监管数据 -#define THOST_FTDC_FBC_BankMoneyMonitorData 'f' - -typedef char TThostFtdcFileBusinessCodeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCashExchangeCodeType是一个汇钞标志类型 -///////////////////////////////////////////////////////////////////////// -///汇 -#define THOST_FTDC_CEC_Exchange '1' -///钞 -#define THOST_FTDC_CEC_Cash '2' - -typedef char TThostFtdcCashExchangeCodeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcYesNoIndicatorType是一个是或否标识类型 -///////////////////////////////////////////////////////////////////////// -///是 -#define THOST_FTDC_YNI_Yes '0' -///否 -#define THOST_FTDC_YNI_No '1' - -typedef char TThostFtdcYesNoIndicatorType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBanlanceTypeType是一个余额类型类型 -///////////////////////////////////////////////////////////////////////// -///当前余额 -#define THOST_FTDC_BLT_CurrentMoney '0' -///可用余额 -#define THOST_FTDC_BLT_UsableMoney '1' -///可取余额 -#define THOST_FTDC_BLT_FetchableMoney '2' -///冻结余额 -#define THOST_FTDC_BLT_FreezeMoney '3' - -typedef char TThostFtdcBanlanceTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcGenderType是一个性别类型 -///////////////////////////////////////////////////////////////////////// -///未知状态 -#define THOST_FTDC_GD_Unknown '0' -///男 -#define THOST_FTDC_GD_Male '1' -///女 -#define THOST_FTDC_GD_Female '2' - -typedef char TThostFtdcGenderType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFeePayFlagType是一个费用支付标志类型 -///////////////////////////////////////////////////////////////////////// -///由受益方支付费用 -#define THOST_FTDC_FPF_BEN '0' -///由发送方支付费用 -#define THOST_FTDC_FPF_OUR '1' -///由发送方支付发起的费用,受益方支付接受的费用 -#define THOST_FTDC_FPF_SHA '2' - -typedef char TThostFtdcFeePayFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPassWordKeyTypeType是一个密钥类型类型 -///////////////////////////////////////////////////////////////////////// -///交换密钥 -#define THOST_FTDC_PWKT_ExchangeKey '0' -///密码密钥 -#define THOST_FTDC_PWKT_PassWordKey '1' -///MAC密钥 -#define THOST_FTDC_PWKT_MACKey '2' -///报文密钥 -#define THOST_FTDC_PWKT_MessageKey '3' - -typedef char TThostFtdcPassWordKeyTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBTPassWordTypeType是一个密码类型类型 -///////////////////////////////////////////////////////////////////////// -///查询 -#define THOST_FTDC_PWT_Query '0' -///取款 -#define THOST_FTDC_PWT_Fetch '1' -///转帐 -#define THOST_FTDC_PWT_Transfer '2' -///交易 -#define THOST_FTDC_PWT_Trade '3' - -typedef char TThostFtdcFBTPassWordTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBTEncryModeType是一个加密方式类型 -///////////////////////////////////////////////////////////////////////// -///不加密 -#define THOST_FTDC_EM_NoEncry '0' -///DES -#define THOST_FTDC_EM_DES '1' -///3DES -#define THOST_FTDC_EM_3DES '2' - -typedef char TThostFtdcFBTEncryModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankRepealFlagType是一个银行冲正标志类型 -///////////////////////////////////////////////////////////////////////// -///银行无需自动冲正 -#define THOST_FTDC_BRF_BankNotNeedRepeal '0' -///银行待自动冲正 -#define THOST_FTDC_BRF_BankWaitingRepeal '1' -///银行已自动冲正 -#define THOST_FTDC_BRF_BankBeenRepealed '2' - -typedef char TThostFtdcBankRepealFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerRepealFlagType是一个期商冲正标志类型 -///////////////////////////////////////////////////////////////////////// -///期商无需自动冲正 -#define THOST_FTDC_BRORF_BrokerNotNeedRepeal '0' -///期商待自动冲正 -#define THOST_FTDC_BRORF_BrokerWaitingRepeal '1' -///期商已自动冲正 -#define THOST_FTDC_BRORF_BrokerBeenRepealed '2' - -typedef char TThostFtdcBrokerRepealFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInstitutionTypeType是一个机构类别类型 -///////////////////////////////////////////////////////////////////////// -///银行 -#define THOST_FTDC_TS_Bank '0' -///期商 -#define THOST_FTDC_TS_Future '1' -///券商 -#define THOST_FTDC_TS_Store '2' - -typedef char TThostFtdcInstitutionTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLastFragmentType是一个最后分片标志类型 -///////////////////////////////////////////////////////////////////////// -///是最后分片 -#define THOST_FTDC_LF_Yes '0' -///不是最后分片 -#define THOST_FTDC_LF_No '1' - -typedef char TThostFtdcLastFragmentType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankAccStatusType是一个银行账户状态类型 -///////////////////////////////////////////////////////////////////////// -///正常 -#define THOST_FTDC_BAS_Normal '0' -///冻结 -#define THOST_FTDC_BAS_Freeze '1' -///挂失 -#define THOST_FTDC_BAS_ReportLoss '2' - -typedef char TThostFtdcBankAccStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMoneyAccountStatusType是一个资金账户状态类型 -///////////////////////////////////////////////////////////////////////// -///正常 -#define THOST_FTDC_MAS_Normal '0' -///销户 -#define THOST_FTDC_MAS_Cancel '1' - -typedef char TThostFtdcMoneyAccountStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcManageStatusType是一个存管状态类型 -///////////////////////////////////////////////////////////////////////// -///指定存管 -#define THOST_FTDC_MSS_Point '0' -///预指定 -#define THOST_FTDC_MSS_PrePoint '1' -///撤销指定 -#define THOST_FTDC_MSS_CancelPoint '2' - -typedef char TThostFtdcManageStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSystemTypeType是一个应用系统类型类型 -///////////////////////////////////////////////////////////////////////// -///银期转帐 -#define THOST_FTDC_SYT_FutureBankTransfer '0' -///银证转帐 -#define THOST_FTDC_SYT_StockBankTransfer '1' -///第三方存管 -#define THOST_FTDC_SYT_TheThirdPartStore '2' - -typedef char TThostFtdcSystemTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTxnEndFlagType是一个银期转帐划转结果标志类型 -///////////////////////////////////////////////////////////////////////// -///正常处理中 -#define THOST_FTDC_TEF_NormalProcessing '0' -///成功结束 -#define THOST_FTDC_TEF_Success '1' -///失败结束 -#define THOST_FTDC_TEF_Failed '2' -///异常中 -#define THOST_FTDC_TEF_Abnormal '3' -///已人工异常处理 -#define THOST_FTDC_TEF_ManualProcessedForException '4' -///通讯异常 ,请人工处理 -#define THOST_FTDC_TEF_CommuFailedNeedManualProcess '5' -///系统出错,请人工处理 -#define THOST_FTDC_TEF_SysErrorNeedManualProcess '6' - -typedef char TThostFtdcTxnEndFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProcessStatusType是一个银期转帐服务处理状态类型 -///////////////////////////////////////////////////////////////////////// -///未处理 -#define THOST_FTDC_PSS_NotProcess '0' -///开始处理 -#define THOST_FTDC_PSS_StartProcess '1' -///处理完成 -#define THOST_FTDC_PSS_Finished '2' - -typedef char TThostFtdcProcessStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCustTypeType是一个客户类型类型 -///////////////////////////////////////////////////////////////////////// -///自然人 -#define THOST_FTDC_CUSTT_Person '0' -///机构户 -#define THOST_FTDC_CUSTT_Institution '1' - -typedef char TThostFtdcCustTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBTTransferDirectionType是一个银期转帐方向类型 -///////////////////////////////////////////////////////////////////////// -///入金,银行转期货 -#define THOST_FTDC_FBTTD_FromBankToFuture '1' -///出金,期货转银行 -#define THOST_FTDC_FBTTD_FromFutureToBank '2' - -typedef char TThostFtdcFBTTransferDirectionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOpenOrDestroyType是一个开销户类别类型 -///////////////////////////////////////////////////////////////////////// -///开户 -#define THOST_FTDC_OOD_Open '1' -///销户 -#define THOST_FTDC_OOD_Destroy '0' - -typedef char TThostFtdcOpenOrDestroyType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAvailabilityFlagType是一个有效标志类型 -///////////////////////////////////////////////////////////////////////// -///未确认 -#define THOST_FTDC_AVAF_Invalid '0' -///有效 -#define THOST_FTDC_AVAF_Valid '1' -///冲正 -#define THOST_FTDC_AVAF_Repeal '2' - -typedef char TThostFtdcAvailabilityFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrganTypeType是一个机构类型类型 -///////////////////////////////////////////////////////////////////////// -///银行代理 -#define THOST_FTDC_OT_Bank '1' -///交易前置 -#define THOST_FTDC_OT_Future '2' -///银期转帐平台管理 -#define THOST_FTDC_OT_PlateForm '9' - -typedef char TThostFtdcOrganTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrganLevelType是一个机构级别类型 -///////////////////////////////////////////////////////////////////////// -///银行总行或期商总部 -#define THOST_FTDC_OL_HeadQuarters '1' -///银行分中心或期货公司营业部 -#define THOST_FTDC_OL_Branch '2' - -typedef char TThostFtdcOrganLevelType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProtocalIDType是一个协议类型类型 -///////////////////////////////////////////////////////////////////////// -///期商协议 -#define THOST_FTDC_PID_FutureProtocal '0' -///工行协议 -#define THOST_FTDC_PID_ICBCProtocal '1' -///农行协议 -#define THOST_FTDC_PID_ABCProtocal '2' -///中国银行协议 -#define THOST_FTDC_PID_CBCProtocal '3' -///建行协议 -#define THOST_FTDC_PID_CCBProtocal '4' -///交行协议 -#define THOST_FTDC_PID_BOCOMProtocal '5' -///银期转帐平台协议 -#define THOST_FTDC_PID_FBTPlateFormProtocal 'X' - -typedef char TThostFtdcProtocalIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcConnectModeType是一个套接字连接方式类型 -///////////////////////////////////////////////////////////////////////// -///短连接 -#define THOST_FTDC_CM_ShortConnect '0' -///长连接 -#define THOST_FTDC_CM_LongConnect '1' - -typedef char TThostFtdcConnectModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSyncModeType是一个套接字通信方式类型 -///////////////////////////////////////////////////////////////////////// -///异步 -#define THOST_FTDC_SRM_ASync '0' -///同步 -#define THOST_FTDC_SRM_Sync '1' - -typedef char TThostFtdcSyncModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankAccTypeType是一个银行帐号类型类型 -///////////////////////////////////////////////////////////////////////// -///银行存折 -#define THOST_FTDC_BAT_BankBook '1' -///储蓄卡 -#define THOST_FTDC_BAT_SavingCard '2' -///信用卡 -#define THOST_FTDC_BAT_CreditCard '3' - -typedef char TThostFtdcBankAccTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFutureAccTypeType是一个期货公司帐号类型类型 -///////////////////////////////////////////////////////////////////////// -///银行存折 -#define THOST_FTDC_FAT_BankBook '1' -///储蓄卡 -#define THOST_FTDC_FAT_SavingCard '2' -///信用卡 -#define THOST_FTDC_FAT_CreditCard '3' - -typedef char TThostFtdcFutureAccTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOrganStatusType是一个接入机构状态类型 -///////////////////////////////////////////////////////////////////////// -///启用 -#define THOST_FTDC_OS_Ready '0' -///签到 -#define THOST_FTDC_OS_CheckIn '1' -///签退 -#define THOST_FTDC_OS_CheckOut '2' -///对帐文件到达 -#define THOST_FTDC_OS_CheckFileArrived '3' -///对帐 -#define THOST_FTDC_OS_CheckDetail '4' -///日终清理 -#define THOST_FTDC_OS_DayEndClean '5' -///注销 -#define THOST_FTDC_OS_Invalid '9' - -typedef char TThostFtdcOrganStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCCBFeeModeType是一个建行收费模式类型 -///////////////////////////////////////////////////////////////////////// -///按金额扣收 -#define THOST_FTDC_CCBFM_ByAmount '1' -///按月扣收 -#define THOST_FTDC_CCBFM_ByMonth '2' - -typedef char TThostFtdcCCBFeeModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCommApiTypeType是一个通讯API类型类型 -///////////////////////////////////////////////////////////////////////// -///客户端 -#define THOST_FTDC_CAPIT_Client '1' -///服务端 -#define THOST_FTDC_CAPIT_Server '2' -///交易系统的UserApi -#define THOST_FTDC_CAPIT_UserApi '3' - -typedef char TThostFtdcCommApiTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcServiceIDType是一个服务编号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcServiceIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcServiceLineNoType是一个服务线路编号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcServiceLineNoType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcServiceNameType是一个服务名类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcServiceNameType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLinkStatusType是一个连接状态类型 -///////////////////////////////////////////////////////////////////////// -///已经连接 -#define THOST_FTDC_LS_Connected '1' -///没有连接 -#define THOST_FTDC_LS_Disconnected '2' - -typedef char TThostFtdcLinkStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCommApiPointerType是一个通讯API指针类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcCommApiPointerType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPwdFlagType是一个密码核对标志类型 -///////////////////////////////////////////////////////////////////////// -///不核对 -#define THOST_FTDC_BPWDF_NoCheck '0' -///明文核对 -#define THOST_FTDC_BPWDF_BlankCheck '1' -///密文核对 -#define THOST_FTDC_BPWDF_EncryptCheck '2' - -typedef char TThostFtdcPwdFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSecuAccTypeType是一个期货帐号类型类型 -///////////////////////////////////////////////////////////////////////// -///资金帐号 -#define THOST_FTDC_SAT_AccountID '1' -///资金卡号 -#define THOST_FTDC_SAT_CardID '2' -///上海股东帐号 -#define THOST_FTDC_SAT_SHStockholderID '3' -///深圳股东帐号 -#define THOST_FTDC_SAT_SZStockholderID '4' - -typedef char TThostFtdcSecuAccTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTransferStatusType是一个转账交易状态类型 -///////////////////////////////////////////////////////////////////////// -///正常 -#define THOST_FTDC_TRFS_Normal '0' -///被冲正 -#define THOST_FTDC_TRFS_Repealed '1' - -typedef char TThostFtdcTransferStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSponsorTypeType是一个发起方类型 -///////////////////////////////////////////////////////////////////////// -///期商 -#define THOST_FTDC_SPTYPE_Broker '0' -///银行 -#define THOST_FTDC_SPTYPE_Bank '1' - -typedef char TThostFtdcSponsorTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcReqRspTypeType是一个请求响应类别类型 -///////////////////////////////////////////////////////////////////////// -///请求 -#define THOST_FTDC_REQRSP_Request '0' -///响应 -#define THOST_FTDC_REQRSP_Response '1' - -typedef char TThostFtdcReqRspTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBTUserEventTypeType是一个银期转帐用户事件类型类型 -///////////////////////////////////////////////////////////////////////// -///签到 -#define THOST_FTDC_FBTUET_SignIn '0' -///银行转期货 -#define THOST_FTDC_FBTUET_FromBankToFuture '1' -///期货转银行 -#define THOST_FTDC_FBTUET_FromFutureToBank '2' -///开户 -#define THOST_FTDC_FBTUET_OpenAccount '3' -///销户 -#define THOST_FTDC_FBTUET_CancelAccount '4' -///变更银行账户 -#define THOST_FTDC_FBTUET_ChangeAccount '5' -///冲正银行转期货 -#define THOST_FTDC_FBTUET_RepealFromBankToFuture '6' -///冲正期货转银行 -#define THOST_FTDC_FBTUET_RepealFromFutureToBank '7' -///查询银行账户 -#define THOST_FTDC_FBTUET_QueryBankAccount '8' -///查询期货账户 -#define THOST_FTDC_FBTUET_QueryFutureAccount '9' -///签退 -#define THOST_FTDC_FBTUET_SignOut 'A' -///密钥同步 -#define THOST_FTDC_FBTUET_SyncKey 'B' -///预约开户 -#define THOST_FTDC_FBTUET_ReserveOpenAccount 'C' -///撤销预约开户 -#define THOST_FTDC_FBTUET_CancelReserveOpenAccount 'D' -///预约开户确认 -#define THOST_FTDC_FBTUET_ReserveOpenAccountConfirm 'E' -///其他 -#define THOST_FTDC_FBTUET_Other 'Z' - -typedef char TThostFtdcFBTUserEventTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankIDByBankType是一个银行自己的编码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankIDByBankType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankOperNoType是一个银行操作员号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankOperNoType[4]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankCustNoType是一个银行客户号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankCustNoType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDBOPSeqNoType是一个递增的序列号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcDBOPSeqNoType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTableNameType是一个FBT表名类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTableNameType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPKNameType是一个FBT表操作主键名类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPKNameType[201]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPKValueType是一个FBT表操作主键值类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPKValueType[501]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDBOperationType是一个记录操作类型类型 -///////////////////////////////////////////////////////////////////////// -///插入 -#define THOST_FTDC_DBOP_Insert '0' -///更新 -#define THOST_FTDC_DBOP_Update '1' -///删除 -#define THOST_FTDC_DBOP_Delete '2' - -typedef char TThostFtdcDBOperationType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSyncFlagType是一个同步标记类型 -///////////////////////////////////////////////////////////////////////// -///已同步 -#define THOST_FTDC_SYNF_Yes '0' -///未同步 -#define THOST_FTDC_SYNF_No '1' - -typedef char TThostFtdcSyncFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTargetIDType是一个同步目标编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTargetIDType[4]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSyncTypeType是一个同步类型类型 -///////////////////////////////////////////////////////////////////////// -///一次同步 -#define THOST_FTDC_SYNT_OneOffSync '0' -///定时同步 -#define THOST_FTDC_SYNT_TimerSync '1' -///定时完全同步 -#define THOST_FTDC_SYNT_TimerFullSync '2' - -typedef char TThostFtdcSyncTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBETimeType是一个各种换汇时间类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBETimeType[7]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEBankNoType是一个换汇银行行号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBEBankNoType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBECertNoType是一个换汇凭证号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBECertNoType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExDirectionType是一个换汇方向类型 -///////////////////////////////////////////////////////////////////////// -///结汇 -#define THOST_FTDC_FBEDIR_Settlement '0' -///售汇 -#define THOST_FTDC_FBEDIR_Sale '1' - -typedef char TThostFtdcExDirectionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEBankAccountType是一个换汇银行账户类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBEBankAccountType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEBankAccountNameType是一个换汇银行账户名类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBEBankAccountNameType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEAmtType是一个各种换汇金额类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcFBEAmtType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEBusinessTypeType是一个换汇业务类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBEBusinessTypeType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEPostScriptType是一个换汇附言类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBEPostScriptType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBERemarkType是一个换汇备注类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBERemarkType[71]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExRateType是一个换汇汇率类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcExRateType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEResultFlagType是一个换汇成功标志类型 -///////////////////////////////////////////////////////////////////////// -///成功 -#define THOST_FTDC_FBERES_Success '0' -///账户余额不足 -#define THOST_FTDC_FBERES_InsufficientBalance '1' -///交易结果未知 -#define THOST_FTDC_FBERES_UnknownTrading '8' -///失败 -#define THOST_FTDC_FBERES_Fail 'x' - -typedef char TThostFtdcFBEResultFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBERtnMsgType是一个换汇返回信息类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBERtnMsgType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEExtendMsgType是一个换汇扩展信息类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBEExtendMsgType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEBusinessSerialType是一个换汇记账流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBEBusinessSerialType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBESystemSerialType是一个换汇流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBESystemSerialType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBETotalExCntType是一个换汇交易总笔数类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcFBETotalExCntType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEExchStatusType是一个换汇交易状态类型 -///////////////////////////////////////////////////////////////////////// -///正常 -#define THOST_FTDC_FBEES_Normal '0' -///交易重发 -#define THOST_FTDC_FBEES_ReExchange '1' - -typedef char TThostFtdcFBEExchStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEFileFlagType是一个换汇文件标志类型 -///////////////////////////////////////////////////////////////////////// -///数据包 -#define THOST_FTDC_FBEFG_DataPackage '0' -///文件 -#define THOST_FTDC_FBEFG_File '1' - -typedef char TThostFtdcFBEFileFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEAlreadyTradeType是一个换汇已交易标志类型 -///////////////////////////////////////////////////////////////////////// -///未交易 -#define THOST_FTDC_FBEAT_NotTrade '0' -///已交易 -#define THOST_FTDC_FBEAT_Trade '1' - -typedef char TThostFtdcFBEAlreadyTradeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEOpenBankType是一个换汇账户开户行类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBEOpenBankType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEUserEventTypeType是一个银期换汇用户事件类型类型 -///////////////////////////////////////////////////////////////////////// -///签到 -#define THOST_FTDC_FBEUET_SignIn '0' -///换汇 -#define THOST_FTDC_FBEUET_Exchange '1' -///换汇重发 -#define THOST_FTDC_FBEUET_ReExchange '2' -///银行账户查询 -#define THOST_FTDC_FBEUET_QueryBankAccount '3' -///换汇明细查询 -#define THOST_FTDC_FBEUET_QueryExchDetial '4' -///换汇汇总查询 -#define THOST_FTDC_FBEUET_QueryExchSummary '5' -///换汇汇率查询 -#define THOST_FTDC_FBEUET_QueryExchRate '6' -///对账文件通知 -#define THOST_FTDC_FBEUET_CheckBankAccount '7' -///签退 -#define THOST_FTDC_FBEUET_SignOut '8' -///其他 -#define THOST_FTDC_FBEUET_Other 'Z' - -typedef char TThostFtdcFBEUserEventTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEFileNameType是一个换汇相关文件名类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBEFileNameType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEBatchSerialType是一个换汇批次号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFBEBatchSerialType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBEReqFlagType是一个换汇发送标志类型 -///////////////////////////////////////////////////////////////////////// -///未处理 -#define THOST_FTDC_FBERF_UnProcessed '0' -///等待发送 -#define THOST_FTDC_FBERF_WaitSend '1' -///发送成功 -#define THOST_FTDC_FBERF_SendSuccess '2' -///发送失败 -#define THOST_FTDC_FBERF_SendFailed '3' -///等待重发 -#define THOST_FTDC_FBERF_WaitReSend '4' - -typedef char TThostFtdcFBEReqFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcNotifyClassType是一个风险通知类型类型 -///////////////////////////////////////////////////////////////////////// -///正常 -#define THOST_FTDC_NC_NOERROR '0' -///警示 -#define THOST_FTDC_NC_Warn '1' -///追保 -#define THOST_FTDC_NC_Call '2' -///强平 -#define THOST_FTDC_NC_Force '3' -///穿仓 -#define THOST_FTDC_NC_CHUANCANG '4' -///异常 -#define THOST_FTDC_NC_Exception '5' - -typedef char TThostFtdcNotifyClassType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRiskNofityInfoType是一个客户风险通知消息类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRiskNofityInfoType[257]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcForceCloseSceneIdType是一个强平场景编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcForceCloseSceneIdType[24]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcForceCloseTypeType是一个强平单类型类型 -///////////////////////////////////////////////////////////////////////// -///手工强平 -#define THOST_FTDC_FCT_Manual '0' -///单一投资者辅助强平 -#define THOST_FTDC_FCT_Single '1' -///批量投资者辅助强平 -#define THOST_FTDC_FCT_Group '2' - -typedef char TThostFtdcForceCloseTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInstrumentIDsType是一个多个产品代码,用+分隔,如cu+zn类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInstrumentIDsType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRiskNotifyMethodType是一个风险通知途径类型 -///////////////////////////////////////////////////////////////////////// -///系统通知 -#define THOST_FTDC_RNM_System '0' -///短信通知 -#define THOST_FTDC_RNM_SMS '1' -///邮件通知 -#define THOST_FTDC_RNM_EMail '2' -///人工通知 -#define THOST_FTDC_RNM_Manual '3' - -typedef char TThostFtdcRiskNotifyMethodType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRiskNotifyStatusType是一个风险通知状态类型 -///////////////////////////////////////////////////////////////////////// -///未生成 -#define THOST_FTDC_RNS_NotGen '0' -///已生成未发送 -#define THOST_FTDC_RNS_Generated '1' -///发送失败 -#define THOST_FTDC_RNS_SendError '2' -///已发送未接收 -#define THOST_FTDC_RNS_SendOk '3' -///已接收未确认 -#define THOST_FTDC_RNS_Received '4' -///已确认 -#define THOST_FTDC_RNS_Confirmed '5' - -typedef char TThostFtdcRiskNotifyStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRiskUserEventType是一个风控用户操作事件类型 -///////////////////////////////////////////////////////////////////////// -///导出数据 -#define THOST_FTDC_RUE_ExportData '0' - -typedef char TThostFtdcRiskUserEventType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcParamIDType是一个参数代码类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcParamIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcParamNameType是一个参数名类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcParamNameType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcParamValueType是一个参数值类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcParamValueType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcConditionalOrderSortTypeType是一个条件单索引条件类型 -///////////////////////////////////////////////////////////////////////// -///使用最新价升序 -#define THOST_FTDC_COST_LastPriceAsc '0' -///使用最新价降序 -#define THOST_FTDC_COST_LastPriceDesc '1' -///使用卖价升序 -#define THOST_FTDC_COST_AskPriceAsc '2' -///使用卖价降序 -#define THOST_FTDC_COST_AskPriceDesc '3' -///使用买价升序 -#define THOST_FTDC_COST_BidPriceAsc '4' -///使用买价降序 -#define THOST_FTDC_COST_BidPriceDesc '5' - -typedef char TThostFtdcConditionalOrderSortTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSendTypeType是一个报送状态类型 -///////////////////////////////////////////////////////////////////////// -///未发送 -#define THOST_FTDC_UOAST_NoSend '0' -///已发送 -#define THOST_FTDC_UOAST_Sended '1' -///已生成 -#define THOST_FTDC_UOAST_Generated '2' -///报送失败 -#define THOST_FTDC_UOAST_SendFail '3' -///接收成功 -#define THOST_FTDC_UOAST_Success '4' -///接收失败 -#define THOST_FTDC_UOAST_Fail '5' -///取消报送 -#define THOST_FTDC_UOAST_Cancel '6' - -typedef char TThostFtdcSendTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClientIDStatusType是一个交易编码状态类型 -///////////////////////////////////////////////////////////////////////// -///未申请 -#define THOST_FTDC_UOACS_NoApply '1' -///已提交申请 -#define THOST_FTDC_UOACS_Submited '2' -///已发送申请 -#define THOST_FTDC_UOACS_Sended '3' -///完成 -#define THOST_FTDC_UOACS_Success '4' -///拒绝 -#define THOST_FTDC_UOACS_Refuse '5' -///已撤销编码 -#define THOST_FTDC_UOACS_Cancel '6' - -typedef char TThostFtdcClientIDStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcIndustryIDType是一个行业编码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcIndustryIDType[17]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcQuestionIDType是一个特有信息编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcQuestionIDType[5]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcQuestionContentType是一个特有信息说明类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcQuestionContentType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOptionIDType是一个选项编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOptionIDType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOptionContentType是一个选项说明类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOptionContentType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcQuestionTypeType是一个特有信息类型类型 -///////////////////////////////////////////////////////////////////////// -///单选 -#define THOST_FTDC_QT_Radio '1' -///多选 -#define THOST_FTDC_QT_Option '2' -///填空 -#define THOST_FTDC_QT_Blank '3' - -typedef char TThostFtdcQuestionTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProcessIDType是一个业务流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcProcessIDType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSeqNoType是一个流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcSeqNoType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUOAProcessStatusType是一个流程状态类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUOAProcessStatusType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProcessTypeType是一个流程功能类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcProcessTypeType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBusinessTypeType是一个业务类型类型 -///////////////////////////////////////////////////////////////////////// -///请求 -#define THOST_FTDC_BT_Request '1' -///应答 -#define THOST_FTDC_BT_Response '2' -///通知 -#define THOST_FTDC_BT_Notice '3' - -typedef char TThostFtdcBusinessTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCfmmcReturnCodeType是一个监控中心返回码类型 -///////////////////////////////////////////////////////////////////////// -///成功 -#define THOST_FTDC_CRC_Success '0' -///该客户已经有流程在处理中 -#define THOST_FTDC_CRC_Working '1' -///监控中客户资料检查失败 -#define THOST_FTDC_CRC_InfoFail '2' -///监控中实名制检查失败 -#define THOST_FTDC_CRC_IDCardFail '3' -///其他错误 -#define THOST_FTDC_CRC_OtherFail '4' - -typedef char TThostFtdcCfmmcReturnCodeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExReturnCodeType是一个交易所返回码类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcExReturnCodeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClientTypeType是一个客户类型类型 -///////////////////////////////////////////////////////////////////////// -///所有 -#define THOST_FTDC_CfMMCCT_All '0' -///个人 -#define THOST_FTDC_CfMMCCT_Person '1' -///单位 -#define THOST_FTDC_CfMMCCT_Company '2' -///其他 -#define THOST_FTDC_CfMMCCT_Other '3' -///特殊法人 -#define THOST_FTDC_CfMMCCT_SpecialOrgan '4' -///资管户 -#define THOST_FTDC_CfMMCCT_Asset '5' - -typedef char TThostFtdcClientTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeIDTypeType是一个交易所编号类型 -///////////////////////////////////////////////////////////////////////// -///上海期货交易所 -#define THOST_FTDC_EIDT_SHFE 'S' -///郑州商品交易所 -#define THOST_FTDC_EIDT_CZCE 'Z' -///大连商品交易所 -#define THOST_FTDC_EIDT_DCE 'D' -///中国金融期货交易所 -#define THOST_FTDC_EIDT_CFFEX 'J' -///上海国际能源交易中心股份有限公司 -#define THOST_FTDC_EIDT_INE 'N' - -typedef char TThostFtdcExchangeIDTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExClientIDTypeType是一个交易编码类型类型 -///////////////////////////////////////////////////////////////////////// -///套保 -#define THOST_FTDC_ECIDT_Hedge '1' -///套利 -#define THOST_FTDC_ECIDT_Arbitrage '2' -///投机 -#define THOST_FTDC_ECIDT_Speculation '3' - -typedef char TThostFtdcExClientIDTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClientClassifyType是一个客户分类码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcClientClassifyType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUOAOrganTypeType是一个单位性质类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUOAOrganTypeType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUOACountryCodeType是一个国家代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUOACountryCodeType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAreaCodeType是一个区号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAreaCodeType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFuturesIDType是一个监控中心为客户分配的代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFuturesIDType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCffmcDateType是一个日期类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCffmcDateType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCffmcTimeType是一个时间类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCffmcTimeType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcNocIDType是一个组织机构代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcNocIDType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUpdateFlagType是一个更新状态类型 -///////////////////////////////////////////////////////////////////////// -///未更新 -#define THOST_FTDC_UF_NoUpdate '0' -///更新全部信息成功 -#define THOST_FTDC_UF_Success '1' -///更新全部信息失败 -#define THOST_FTDC_UF_Fail '2' -///更新交易编码成功 -#define THOST_FTDC_UF_TCSuccess '3' -///更新交易编码失败 -#define THOST_FTDC_UF_TCFail '4' -///已丢弃 -#define THOST_FTDC_UF_Cancel '5' - -typedef char TThostFtdcUpdateFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcApplyOperateIDType是一个申请动作类型 -///////////////////////////////////////////////////////////////////////// -///开户 -#define THOST_FTDC_AOID_OpenInvestor '1' -///修改身份信息 -#define THOST_FTDC_AOID_ModifyIDCard '2' -///修改一般信息 -#define THOST_FTDC_AOID_ModifyNoIDCard '3' -///申请交易编码 -#define THOST_FTDC_AOID_ApplyTradingCode '4' -///撤销交易编码 -#define THOST_FTDC_AOID_CancelTradingCode '5' -///销户 -#define THOST_FTDC_AOID_CancelInvestor '6' -///账户休眠 -#define THOST_FTDC_AOID_FreezeAccount '8' -///激活休眠账户 -#define THOST_FTDC_AOID_ActiveFreezeAccount '9' - -typedef char TThostFtdcApplyOperateIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcApplyStatusIDType是一个申请状态类型 -///////////////////////////////////////////////////////////////////////// -///未补全 -#define THOST_FTDC_ASID_NoComplete '1' -///已提交 -#define THOST_FTDC_ASID_Submited '2' -///已审核 -#define THOST_FTDC_ASID_Checked '3' -///已拒绝 -#define THOST_FTDC_ASID_Refused '4' -///已删除 -#define THOST_FTDC_ASID_Deleted '5' - -typedef char TThostFtdcApplyStatusIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSendMethodType是一个发送方式类型 -///////////////////////////////////////////////////////////////////////// -///文件发送 -#define THOST_FTDC_UOASM_ByAPI '1' -///电子发送 -#define THOST_FTDC_UOASM_ByFile '2' - -typedef char TThostFtdcSendMethodType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcEventTypeType是一个业务操作类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcEventTypeType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcEventModeType是一个操作方法类型 -///////////////////////////////////////////////////////////////////////// -///增加 -#define THOST_FTDC_EvM_ADD '1' -///修改 -#define THOST_FTDC_EvM_UPDATE '2' -///删除 -#define THOST_FTDC_EvM_DELETE '3' -///复核 -#define THOST_FTDC_EvM_CHECK '4' -///复制 -#define THOST_FTDC_EvM_COPY '5' -///注销 -#define THOST_FTDC_EvM_CANCEL '6' -///冲销 -#define THOST_FTDC_EvM_Reverse '7' - -typedef char TThostFtdcEventModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUOAAutoSendType是一个统一开户申请自动发送类型 -///////////////////////////////////////////////////////////////////////// -///自动发送并接收 -#define THOST_FTDC_UOAA_ASR '1' -///自动发送,不自动接收 -#define THOST_FTDC_UOAA_ASNR '2' -///不自动发送,自动接收 -#define THOST_FTDC_UOAA_NSAR '3' -///不自动发送,也不自动接收 -#define THOST_FTDC_UOAA_NSR '4' - -typedef char TThostFtdcUOAAutoSendType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcQueryDepthType是一个查询深度类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcQueryDepthType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDataCenterIDType是一个数据中心代码类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcDataCenterIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFlowIDType是一个流程ID类型 -///////////////////////////////////////////////////////////////////////// -///投资者对应投资者组设置 -#define THOST_FTDC_EvM_InvestorGroupFlow '1' -///投资者手续费率设置 -#define THOST_FTDC_EvM_InvestorRate '2' -///投资者手续费率模板关系设置 -#define THOST_FTDC_EvM_InvestorCommRateModel '3' - -typedef char TThostFtdcFlowIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCheckLevelType是一个复核级别类型 -///////////////////////////////////////////////////////////////////////// -///零级复核 -#define THOST_FTDC_CL_Zero '0' -///一级复核 -#define THOST_FTDC_CL_One '1' -///二级复核 -#define THOST_FTDC_CL_Two '2' - -typedef char TThostFtdcCheckLevelType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCheckNoType是一个操作次数类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcCheckNoType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCheckStatusType是一个复核级别类型 -///////////////////////////////////////////////////////////////////////// -///未复核 -#define THOST_FTDC_CHS_Init '0' -///复核中 -#define THOST_FTDC_CHS_Checking '1' -///已复核 -#define THOST_FTDC_CHS_Checked '2' -///拒绝 -#define THOST_FTDC_CHS_Refuse '3' -///作废 -#define THOST_FTDC_CHS_Cancel '4' - -typedef char TThostFtdcCheckStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUsedStatusType是一个生效状态类型 -///////////////////////////////////////////////////////////////////////// -///未生效 -#define THOST_FTDC_CHU_Unused '0' -///已生效 -#define THOST_FTDC_CHU_Used '1' -///生效失败 -#define THOST_FTDC_CHU_Fail '2' - -typedef char TThostFtdcUsedStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRateTemplateNameType是一个模型名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRateTemplateNameType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPropertyStringType是一个用于查询的投资属性字段类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPropertyStringType[2049]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankAcountOriginType是一个账户来源类型 -///////////////////////////////////////////////////////////////////////// -///手工录入 -#define THOST_FTDC_BAO_ByAccProperty '0' -///银期转账 -#define THOST_FTDC_BAO_ByFBTransfer '1' - -typedef char TThostFtdcBankAcountOriginType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMonthBillTradeSumType是一个结算单月报成交汇总方式类型 -///////////////////////////////////////////////////////////////////////// -///同日同合约 -#define THOST_FTDC_MBTS_ByInstrument '0' -///同日同合约同价格 -#define THOST_FTDC_MBTS_ByDayInsPrc '1' -///同合约 -#define THOST_FTDC_MBTS_ByDayIns '2' - -typedef char TThostFtdcMonthBillTradeSumType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFBTTradeCodeEnumType是一个银期交易代码枚举类型 -///////////////////////////////////////////////////////////////////////// -///银行发起银行转期货 -#define THOST_FTDC_FTC_BankLaunchBankToBroker '102001' -///期货发起银行转期货 -#define THOST_FTDC_FTC_BrokerLaunchBankToBroker '202001' -///银行发起期货转银行 -#define THOST_FTDC_FTC_BankLaunchBrokerToBank '102002' -///期货发起期货转银行 -#define THOST_FTDC_FTC_BrokerLaunchBrokerToBank '202002' - -typedef char TThostFtdcFBTTradeCodeEnumType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRateTemplateIDType是一个模型代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRateTemplateIDType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRiskRateType是一个风险度类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRiskRateType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTimestampType是一个时间戳类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcTimestampType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorIDRuleNameType是一个号段规则名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInvestorIDRuleNameType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorIDRuleExprType是一个号段规则表达式类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInvestorIDRuleExprType[513]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLastDriftType是一个上次OTP漂移值类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcLastDriftType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLastSuccessType是一个上次OTP成功值类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcLastSuccessType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAuthKeyType是一个令牌密钥类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAuthKeyType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSerialNumberType是一个序列号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSerialNumberType[17]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOTPTypeType是一个动态令牌类型类型 -///////////////////////////////////////////////////////////////////////// -///无动态令牌 -#define THOST_FTDC_OTP_NONE '0' -///时间令牌 -#define THOST_FTDC_OTP_TOTP '1' - -typedef char TThostFtdcOTPTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOTPVendorsIDType是一个动态令牌提供商类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOTPVendorsIDType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOTPVendorsNameType是一个动态令牌提供商名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOTPVendorsNameType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOTPStatusType是一个动态令牌状态类型 -///////////////////////////////////////////////////////////////////////// -///未使用 -#define THOST_FTDC_OTPS_Unused '0' -///已使用 -#define THOST_FTDC_OTPS_Used '1' -///注销 -#define THOST_FTDC_OTPS_Disuse '2' - -typedef char TThostFtdcOTPStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerUserTypeType是一个经济公司用户类型类型 -///////////////////////////////////////////////////////////////////////// -///投资者 -#define THOST_FTDC_BUT_Investor '1' -///操作员 -#define THOST_FTDC_BUT_BrokerUser '2' - -typedef char TThostFtdcBrokerUserTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFutureTypeType是一个期货类型类型 -///////////////////////////////////////////////////////////////////////// -///商品期货 -#define THOST_FTDC_FUTT_Commodity '1' -///金融期货 -#define THOST_FTDC_FUTT_Financial '2' - -typedef char TThostFtdcFutureTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFundEventTypeType是一个资金管理操作类型类型 -///////////////////////////////////////////////////////////////////////// -///转账限额 -#define THOST_FTDC_FET_Restriction '0' -///当日转账限额 -#define THOST_FTDC_FET_TodayRestriction '1' -///期商流水 -#define THOST_FTDC_FET_Transfer '2' -///资金冻结 -#define THOST_FTDC_FET_Credit '3' -///投资者可提资金比例 -#define THOST_FTDC_FET_InvestorWithdrawAlm '4' -///单个银行帐户转账限额 -#define THOST_FTDC_FET_BankRestriction '5' -///银期签约账户 -#define THOST_FTDC_FET_Accountregister '6' -///交易所出入金 -#define THOST_FTDC_FET_ExchangeFundIO '7' -///投资者出入金 -#define THOST_FTDC_FET_InvestorFundIO '8' - -typedef char TThostFtdcFundEventTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAccountSourceTypeType是一个资金账户来源类型 -///////////////////////////////////////////////////////////////////////// -///银期同步 -#define THOST_FTDC_AST_FBTransfer '0' -///手工录入 -#define THOST_FTDC_AST_ManualEntry '1' - -typedef char TThostFtdcAccountSourceTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCodeSourceTypeType是一个交易编码来源类型 -///////////////////////////////////////////////////////////////////////// -///统一开户(已规范) -#define THOST_FTDC_CST_UnifyAccount '0' -///手工录入(未规范) -#define THOST_FTDC_CST_ManualEntry '1' - -typedef char TThostFtdcCodeSourceTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUserRangeType是一个操作员范围类型 -///////////////////////////////////////////////////////////////////////// -///所有 -#define THOST_FTDC_UR_All '0' -///单一操作员 -#define THOST_FTDC_UR_Single '1' - -typedef char TThostFtdcUserRangeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTimeSpanType是一个时间跨度类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcTimeSpanType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcImportSequenceIDType是一个动态令牌导入批次编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcImportSequenceIDType[17]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcByGroupType是一个交易统计表按客户统计方式类型 -///////////////////////////////////////////////////////////////////////// -///按投资者统计 -#define THOST_FTDC_BG_Investor '2' -///按类统计 -#define THOST_FTDC_BG_Group '1' - -typedef char TThostFtdcByGroupType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeSumStatModeType是一个交易统计表按范围统计方式类型 -///////////////////////////////////////////////////////////////////////// -///按合约统计 -#define THOST_FTDC_TSSM_Instrument '1' -///按产品统计 -#define THOST_FTDC_TSSM_Product '2' -///按交易所统计 -#define THOST_FTDC_TSSM_Exchange '3' - -typedef char TThostFtdcTradeSumStatModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcComTypeType是一个组合成交类型类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcComTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUserProductIDType是一个产品标识类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUserProductIDType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUserProductNameType是一个产品名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUserProductNameType[65]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUserProductMemoType是一个产品说明类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUserProductMemoType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCCancelFlagType是一个新增或变更标志类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCCancelFlagType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCDateType是一个日期类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCDateType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCInvestorNameType是一个客户名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCInvestorNameType[201]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCOpenInvestorNameType是一个客户名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCOpenInvestorNameType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCInvestorIDType是一个客户代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCInvestorIDType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCIdentifiedCardNoType是一个证件号码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCIdentifiedCardNoType[51]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCClientIDType是一个交易编码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCClientIDType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCBankFlagType是一个银行标识类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCBankFlagType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCBankAccountType是一个银行账户类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCBankAccountType[23]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCOpenNameType是一个开户人类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCOpenNameType[401]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCMemoType是一个说明类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCMemoType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCTimeType是一个时间类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCTimeType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCTradeIDType是一个成交流水号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCTradeIDType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCExchangeInstIDType是一个合约代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCExchangeInstIDType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCMortgageNameType是一个质押品名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCMortgageNameType[7]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCReasonType是一个事由类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCReasonType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcIsSettlementType是一个是否为非结算会员类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcIsSettlementType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCMoneyType是一个资金类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcCSRCMoneyType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCPriceType是一个价格类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcCSRCPriceType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCOptionsTypeType是一个期权类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCOptionsTypeType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCStrikePriceType是一个执行价类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcCSRCStrikePriceType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCTargetProductIDType是一个标的品种类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCTargetProductIDType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCTargetInstrIDType是一个标的合约类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCTargetInstrIDType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCommModelNameType是一个手续费率模板名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCommModelNameType[161]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCommModelMemoType是一个手续费率模板备注类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCommModelMemoType[1025]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExprSetModeType是一个日期表达式设置类型类型 -///////////////////////////////////////////////////////////////////////// -///相对已有规则设置 -#define THOST_FTDC_ESM_Relative '1' -///典型设置 -#define THOST_FTDC_ESM_Typical '2' - -typedef char TThostFtdcExprSetModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRateInvestorRangeType是一个投资者范围类型 -///////////////////////////////////////////////////////////////////////// -///公司标准 -#define THOST_FTDC_RIR_All '1' -///模板 -#define THOST_FTDC_RIR_Model '2' -///单一投资者 -#define THOST_FTDC_RIR_Single '3' - -typedef char TThostFtdcRateInvestorRangeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAgentBrokerIDType是一个代理经纪公司代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAgentBrokerIDType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDRIdentityIDType是一个交易中心代码类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcDRIdentityIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDRIdentityNameType是一个交易中心名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcDRIdentityNameType[65]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDBLinkIDType是一个DBLink标识号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcDBLinkIDType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSyncDataStatusType是一个主次用系统数据同步状态类型 -///////////////////////////////////////////////////////////////////////// -///未同步 -#define THOST_FTDC_SDS_Initialize '0' -///同步中 -#define THOST_FTDC_SDS_Settlementing '1' -///已同步 -#define THOST_FTDC_SDS_Settlemented '2' - -typedef char TThostFtdcSyncDataStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeSourceType是一个成交来源类型 -///////////////////////////////////////////////////////////////////////// -///来自交易所普通回报 -#define THOST_FTDC_TSRC_NORMAL '0' -///来自查询 -#define THOST_FTDC_TSRC_QUERY '1' - -typedef char TThostFtdcTradeSourceType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFlexStatModeType是一个产品合约统计方式类型 -///////////////////////////////////////////////////////////////////////// -///产品统计 -#define THOST_FTDC_FSM_Product '1' -///交易所统计 -#define THOST_FTDC_FSM_Exchange '2' -///统计所有 -#define THOST_FTDC_FSM_All '3' - -typedef char TThostFtdcFlexStatModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcByInvestorRangeType是一个投资者范围统计方式类型 -///////////////////////////////////////////////////////////////////////// -///属性统计 -#define THOST_FTDC_BIR_Property '1' -///统计所有 -#define THOST_FTDC_BIR_All '2' - -typedef char TThostFtdcByInvestorRangeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSRiskRateType是一个风险度类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSRiskRateType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSequenceNo12Type是一个序号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcSequenceNo12Type; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPropertyInvestorRangeType是一个投资者范围类型 -///////////////////////////////////////////////////////////////////////// -///所有 -#define THOST_FTDC_PIR_All '1' -///投资者属性 -#define THOST_FTDC_PIR_Property '2' -///单一投资者 -#define THOST_FTDC_PIR_Single '3' - -typedef char TThostFtdcPropertyInvestorRangeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFileStatusType是一个文件状态类型 -///////////////////////////////////////////////////////////////////////// -///未生成 -#define THOST_FTDC_FIS_NoCreate '0' -///已生成 -#define THOST_FTDC_FIS_Created '1' -///生成失败 -#define THOST_FTDC_FIS_Failed '2' - -typedef char TThostFtdcFileStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFileGenStyleType是一个文件生成方式类型 -///////////////////////////////////////////////////////////////////////// -///下发 -#define THOST_FTDC_FGS_FileTransmit '0' -///生成 -#define THOST_FTDC_FGS_FileGen '1' - -typedef char TThostFtdcFileGenStyleType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSysOperModeType是一个系统日志操作方法类型 -///////////////////////////////////////////////////////////////////////// -///增加 -#define THOST_FTDC_SoM_Add '1' -///修改 -#define THOST_FTDC_SoM_Update '2' -///删除 -#define THOST_FTDC_SoM_Delete '3' -///复制 -#define THOST_FTDC_SoM_Copy '4' -///激活 -#define THOST_FTDC_SoM_AcTive '5' -///注销 -#define THOST_FTDC_SoM_CanCel '6' -///重置 -#define THOST_FTDC_SoM_ReSet '7' - -typedef char TThostFtdcSysOperModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSysOperTypeType是一个系统日志操作类型类型 -///////////////////////////////////////////////////////////////////////// -///修改操作员密码 -#define THOST_FTDC_SoT_UpdatePassword '0' -///操作员组织架构关系 -#define THOST_FTDC_SoT_UserDepartment '1' -///角色管理 -#define THOST_FTDC_SoT_RoleManager '2' -///角色功能设置 -#define THOST_FTDC_SoT_RoleFunction '3' -///基础参数设置 -#define THOST_FTDC_SoT_BaseParam '4' -///设置操作员 -#define THOST_FTDC_SoT_SetUserID '5' -///用户角色设置 -#define THOST_FTDC_SoT_SetUserRole '6' -///用户IP限制 -#define THOST_FTDC_SoT_UserIpRestriction '7' -///组织架构管理 -#define THOST_FTDC_SoT_DepartmentManager '8' -///组织架构向查询分类复制 -#define THOST_FTDC_SoT_DepartmentCopy '9' -///交易编码管理 -#define THOST_FTDC_SoT_Tradingcode 'A' -///投资者状态维护 -#define THOST_FTDC_SoT_InvestorStatus 'B' -///投资者权限管理 -#define THOST_FTDC_SoT_InvestorAuthority 'C' -///属性设置 -#define THOST_FTDC_SoT_PropertySet 'D' -///重置投资者密码 -#define THOST_FTDC_SoT_ReSetInvestorPasswd 'E' -///投资者个性信息维护 -#define THOST_FTDC_SoT_InvestorPersonalityInfo 'F' - -typedef char TThostFtdcSysOperTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCDataQueyTypeType是一个上报数据查询类型类型 -///////////////////////////////////////////////////////////////////////// -///查询当前交易日报送的数据 -#define THOST_FTDC_CSRCQ_Current '0' -///查询历史报送的代理经纪公司的数据 -#define THOST_FTDC_CSRCQ_History '1' - -typedef char TThostFtdcCSRCDataQueyTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFreezeStatusType是一个休眠状态类型 -///////////////////////////////////////////////////////////////////////// -///活跃 -#define THOST_FTDC_FRS_Normal '1' -///休眠 -#define THOST_FTDC_FRS_Freeze '0' - -typedef char TThostFtdcFreezeStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcStandardStatusType是一个规范状态类型 -///////////////////////////////////////////////////////////////////////// -///已规范 -#define THOST_FTDC_STST_Standard '0' -///未规范 -#define THOST_FTDC_STST_NonStandard '1' - -typedef char TThostFtdcStandardStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCFreezeStatusType是一个休眠状态类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCFreezeStatusType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRightParamTypeType是一个配置类型类型 -///////////////////////////////////////////////////////////////////////// -///休眠户 -#define THOST_FTDC_RPT_Freeze '1' -///激活休眠户 -#define THOST_FTDC_RPT_FreezeActive '2' -///开仓权限限制 -#define THOST_FTDC_RPT_OpenLimit '3' -///解除开仓权限限制 -#define THOST_FTDC_RPT_RelieveOpenLimit '4' - -typedef char TThostFtdcRightParamTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRightTemplateIDType是一个模板代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRightTemplateIDType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRightTemplateNameType是一个模板名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcRightTemplateNameType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDataStatusType是一个反洗钱审核表数据状态类型 -///////////////////////////////////////////////////////////////////////// -///正常 -#define THOST_FTDC_AMLDS_Normal '0' -///已删除 -#define THOST_FTDC_AMLDS_Deleted '1' - -typedef char TThostFtdcDataStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAMLCheckStatusType是一个审核状态类型 -///////////////////////////////////////////////////////////////////////// -///未复核 -#define THOST_FTDC_AMLCHS_Init '0' -///复核中 -#define THOST_FTDC_AMLCHS_Checking '1' -///已复核 -#define THOST_FTDC_AMLCHS_Checked '2' -///拒绝上报 -#define THOST_FTDC_AMLCHS_RefuseReport '3' - -typedef char TThostFtdcAMLCheckStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAmlDateTypeType是一个日期类型类型 -///////////////////////////////////////////////////////////////////////// -///检查日期 -#define THOST_FTDC_AMLDT_DrawDay '0' -///发生日期 -#define THOST_FTDC_AMLDT_TouchDay '1' - -typedef char TThostFtdcAmlDateTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAmlCheckLevelType是一个审核级别类型 -///////////////////////////////////////////////////////////////////////// -///零级审核 -#define THOST_FTDC_AMLCL_CheckLevel0 '0' -///一级审核 -#define THOST_FTDC_AMLCL_CheckLevel1 '1' -///二级审核 -#define THOST_FTDC_AMLCL_CheckLevel2 '2' -///三级审核 -#define THOST_FTDC_AMLCL_CheckLevel3 '3' - -typedef char TThostFtdcAmlCheckLevelType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAmlCheckFlowType是一个反洗钱数据抽取审核流程类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAmlCheckFlowType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDataTypeType是一个数据类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcDataTypeType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExportFileTypeType是一个导出文件类型类型 -///////////////////////////////////////////////////////////////////////// -///CSV -#define THOST_FTDC_EFT_CSV '0' -///Excel -#define THOST_FTDC_EFT_EXCEL '1' -///DBF -#define THOST_FTDC_EFT_DBF '2' - -typedef char TThostFtdcExportFileTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSettleManagerTypeType是一个结算配置类型类型 -///////////////////////////////////////////////////////////////////////// -///结算前准备 -#define THOST_FTDC_SMT_Before '1' -///结算 -#define THOST_FTDC_SMT_Settlement '2' -///结算后核对 -#define THOST_FTDC_SMT_After '3' -///结算后处理 -#define THOST_FTDC_SMT_Settlemented '4' - -typedef char TThostFtdcSettleManagerTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSettleManagerIDType是一个结算配置代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSettleManagerIDType[33]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSettleManagerNameType是一个结算配置名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSettleManagerNameType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSettleManagerLevelType是一个结算配置等级类型 -///////////////////////////////////////////////////////////////////////// -///必要 -#define THOST_FTDC_SML_Must '1' -///警告 -#define THOST_FTDC_SML_Alarm '2' -///提示 -#define THOST_FTDC_SML_Prompt '3' -///不检查 -#define THOST_FTDC_SML_Ignore '4' - -typedef char TThostFtdcSettleManagerLevelType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSettleManagerGroupType是一个模块分组类型 -///////////////////////////////////////////////////////////////////////// -///交易所核对 -#define THOST_FTDC_SMG_Exhcange '1' -///内部核对 -#define THOST_FTDC_SMG_ASP '2' -///上报数据核对 -#define THOST_FTDC_SMG_CSRC '3' - -typedef char TThostFtdcSettleManagerGroupType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCheckResultMemoType是一个核对结果说明类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCheckResultMemoType[1025]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFunctionUrlType是一个功能链接类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcFunctionUrlType[1025]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAuthInfoType是一个客户端认证信息类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAuthInfoType[129]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAuthCodeType是一个客户端认证码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAuthCodeType[17]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLimitUseTypeType是一个保值额度使用类型类型 -///////////////////////////////////////////////////////////////////////// -///可重复使用 -#define THOST_FTDC_LUT_Repeatable '1' -///不可重复使用 -#define THOST_FTDC_LUT_Unrepeatable '2' - -typedef char TThostFtdcLimitUseTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDataResourceType是一个数据来源类型 -///////////////////////////////////////////////////////////////////////// -///本系统 -#define THOST_FTDC_DAR_Settle '1' -///交易所 -#define THOST_FTDC_DAR_Exchange '2' -///报送数据 -#define THOST_FTDC_DAR_CSRC '3' - -typedef char TThostFtdcDataResourceType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMarginTypeType是一个保证金类型类型 -///////////////////////////////////////////////////////////////////////// -///交易所保证金率 -#define THOST_FTDC_MGT_ExchMarginRate '0' -///投资者保证金率 -#define THOST_FTDC_MGT_InstrMarginRate '1' -///投资者交易保证金率 -#define THOST_FTDC_MGT_InstrMarginRateTrade '2' - -typedef char TThostFtdcMarginTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcActiveTypeType是一个生效类型类型 -///////////////////////////////////////////////////////////////////////// -///仅当日生效 -#define THOST_FTDC_ACT_Intraday '1' -///长期生效 -#define THOST_FTDC_ACT_Long '2' - -typedef char TThostFtdcActiveTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMarginRateTypeType是一个冲突保证金率类型类型 -///////////////////////////////////////////////////////////////////////// -///交易所保证金率 -#define THOST_FTDC_MRT_Exchange '1' -///投资者保证金率 -#define THOST_FTDC_MRT_Investor '2' -///投资者交易保证金率 -#define THOST_FTDC_MRT_InvestorTrade '3' - -typedef char TThostFtdcMarginRateTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBackUpStatusType是一个备份数据状态类型 -///////////////////////////////////////////////////////////////////////// -///未生成备份数据 -#define THOST_FTDC_BUS_UnBak '0' -///备份数据生成中 -#define THOST_FTDC_BUS_BakUp '1' -///已生成备份数据 -#define THOST_FTDC_BUS_BakUped '2' -///备份数据失败 -#define THOST_FTDC_BUS_BakFail '3' - -typedef char TThostFtdcBackUpStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInitSettlementType是一个结算初始化状态类型 -///////////////////////////////////////////////////////////////////////// -///结算初始化未开始 -#define THOST_FTDC_SIS_UnInitialize '0' -///结算初始化中 -#define THOST_FTDC_SIS_Initialize '1' -///结算初始化完成 -#define THOST_FTDC_SIS_Initialized '2' - -typedef char TThostFtdcInitSettlementType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcReportStatusType是一个报表数据生成状态类型 -///////////////////////////////////////////////////////////////////////// -///未生成报表数据 -#define THOST_FTDC_SRS_NoCreate '0' -///报表数据生成中 -#define THOST_FTDC_SRS_Create '1' -///已生成报表数据 -#define THOST_FTDC_SRS_Created '2' -///生成报表数据失败 -#define THOST_FTDC_SRS_CreateFail '3' - -typedef char TThostFtdcReportStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSaveStatusType是一个数据归档状态类型 -///////////////////////////////////////////////////////////////////////// -///归档未完成 -#define THOST_FTDC_SSS_UnSaveData '0' -///归档完成 -#define THOST_FTDC_SSS_SaveDatad '1' - -typedef char TThostFtdcSaveStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSettArchiveStatusType是一个结算确认数据归档状态类型 -///////////////////////////////////////////////////////////////////////// -///未归档数据 -#define THOST_FTDC_SAS_UnArchived '0' -///数据归档中 -#define THOST_FTDC_SAS_Archiving '1' -///已归档数据 -#define THOST_FTDC_SAS_Archived '2' -///归档数据失败 -#define THOST_FTDC_SAS_ArchiveFail '3' - -typedef char TThostFtdcSettArchiveStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCTPTypeType是一个CTP交易系统类型类型 -///////////////////////////////////////////////////////////////////////// -///未知类型 -#define THOST_FTDC_CTPT_Unkown '0' -///主中心 -#define THOST_FTDC_CTPT_MainCenter '1' -///备中心 -#define THOST_FTDC_CTPT_BackUp '2' - -typedef char TThostFtdcCTPTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcToolIDType是一个工具代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcToolIDType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcToolNameType是一个工具名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcToolNameType[81]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCloseDealTypeType是一个平仓处理类型类型 -///////////////////////////////////////////////////////////////////////// -///正常 -#define THOST_FTDC_CDT_Normal '0' -///投机平仓优先 -#define THOST_FTDC_CDT_SpecFirst '1' - -typedef char TThostFtdcCloseDealTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMortgageFundUseRangeType是一个货币质押资金可用范围类型 -///////////////////////////////////////////////////////////////////////// -///不能使用 -#define THOST_FTDC_MFUR_None '0' -///用于保证金 -#define THOST_FTDC_MFUR_Margin '1' -///用于手续费、盈亏、保证金 -#define THOST_FTDC_MFUR_All '2' - -typedef char TThostFtdcMortgageFundUseRangeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencyUnitType是一个币种单位数量类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcCurrencyUnitType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeRateType是一个汇率类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcExchangeRateType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSpecProductTypeType是一个特殊产品类型类型 -///////////////////////////////////////////////////////////////////////// -///郑商所套保产品 -#define THOST_FTDC_SPT_CzceHedge '1' -///货币质押产品 -#define THOST_FTDC_SPT_IneForeignCurrency '2' -///大连短线开平仓产品 -#define THOST_FTDC_SPT_DceOpenClose '3' - -typedef char TThostFtdcSpecProductTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFundMortgageTypeType是一个货币质押类型类型 -///////////////////////////////////////////////////////////////////////// -///质押 -#define THOST_FTDC_FMT_Mortgage '1' -///解质 -#define THOST_FTDC_FMT_Redemption '2' - -typedef char TThostFtdcFundMortgageTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAccountSettlementParamIDType是一个投资者账户结算参数代码类型 -///////////////////////////////////////////////////////////////////////// -///基础保证金 -#define THOST_FTDC_ASPI_BaseMargin '1' -///最低权益标准 -#define THOST_FTDC_ASPI_LowestInterest '2' - -typedef char TThostFtdcAccountSettlementParamIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencyNameType是一个币种名称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCurrencyNameType[31]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencySignType是一个币种符号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCurrencySignType[4]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFundMortDirectionType是一个货币质押方向类型 -///////////////////////////////////////////////////////////////////////// -///货币质入 -#define THOST_FTDC_FMD_In '1' -///货币质出 -#define THOST_FTDC_FMD_Out '2' - -typedef char TThostFtdcFundMortDirectionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBusinessClassType是一个换汇类别类型 -///////////////////////////////////////////////////////////////////////// -///盈利 -#define THOST_FTDC_BT_Profit '0' -///亏损 -#define THOST_FTDC_BT_Loss '1' -///其他 -#define THOST_FTDC_BT_Other 'Z' - -typedef char TThostFtdcBusinessClassType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSwapSourceTypeType是一个换汇数据来源类型 -///////////////////////////////////////////////////////////////////////// -///手工 -#define THOST_FTDC_SST_Manual '0' -///自动生成 -#define THOST_FTDC_SST_Automatic '1' - -typedef char TThostFtdcSwapSourceTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCurrExDirectionType是一个换汇类型类型 -///////////////////////////////////////////////////////////////////////// -///结汇 -#define THOST_FTDC_CED_Settlement '0' -///售汇 -#define THOST_FTDC_CED_Sale '1' - -typedef char TThostFtdcCurrExDirectionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencySwapStatusType是一个申请状态类型 -///////////////////////////////////////////////////////////////////////// -///已录入 -#define THOST_FTDC_CSS_Entry '1' -///已审核 -#define THOST_FTDC_CSS_Approve '2' -///已拒绝 -#define THOST_FTDC_CSS_Refuse '3' -///已撤销 -#define THOST_FTDC_CSS_Revoke '4' -///已发送 -#define THOST_FTDC_CSS_Send '5' -///换汇成功 -#define THOST_FTDC_CSS_Success '6' -///换汇失败 -#define THOST_FTDC_CSS_Failure '7' - -typedef char TThostFtdcCurrencySwapStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCurrExchCertNoType是一个凭证号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCurrExchCertNoType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBatchSerialNoType是一个批次号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBatchSerialNoType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcReqFlagType是一个换汇发送标志类型 -///////////////////////////////////////////////////////////////////////// -///未发送 -#define THOST_FTDC_REQF_NoSend '0' -///发送成功 -#define THOST_FTDC_REQF_SendSuccess '1' -///发送失败 -#define THOST_FTDC_REQF_SendFailed '2' -///等待重发 -#define THOST_FTDC_REQF_WaitReSend '3' - -typedef char TThostFtdcReqFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcResFlagType是一个换汇返回成功标志类型 -///////////////////////////////////////////////////////////////////////// -///成功 -#define THOST_FTDC_RESF_Success '0' -///账户余额不足 -#define THOST_FTDC_RESF_InsuffiCient '1' -///交易结果未知 -#define THOST_FTDC_RESF_UnKnown '8' - -typedef char TThostFtdcResFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPageControlType是一个换汇页面控制类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPageControlType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcRecordCountType是一个记录数类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcRecordCountType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencySwapMemoType是一个换汇需确认信息类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCurrencySwapMemoType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExStatusType是一个修改状态类型 -///////////////////////////////////////////////////////////////////////// -///修改前 -#define THOST_FTDC_EXS_Before '0' -///修改后 -#define THOST_FTDC_EXS_After '1' - -typedef char TThostFtdcExStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClientRegionType是一个开户客户地域类型 -///////////////////////////////////////////////////////////////////////// -///国内客户 -#define THOST_FTDC_CR_Domestic '1' -///港澳台客户 -#define THOST_FTDC_CR_GMT '2' -///国外客户 -#define THOST_FTDC_CR_Foreign '3' - -typedef char TThostFtdcClientRegionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcWorkPlaceType是一个工作单位类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcWorkPlaceType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBusinessPeriodType是一个经营期限类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBusinessPeriodType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcWebSiteType是一个网址类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcWebSiteType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUOAIdCardTypeType是一个统一开户证件类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUOAIdCardTypeType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcClientModeType是一个开户模式类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcClientModeType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorFullNameType是一个投资者全称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInvestorFullNameType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUOABrokerIDType是一个境外中介机构ID类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUOABrokerIDType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUOAZipCodeType是一个邮政编码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUOAZipCodeType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUOAEMailType是一个电子邮箱类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUOAEMailType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOldCityType是一个城市类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcOldCityType[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCorporateIdentifiedCardNoType是一个法人代表证件号码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCorporateIdentifiedCardNoType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcHasBoardType是一个是否有董事会类型 -///////////////////////////////////////////////////////////////////////// -///没有 -#define THOST_FTDC_HB_No '0' -///有 -#define THOST_FTDC_HB_Yes '1' - -typedef char TThostFtdcHasBoardType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcStartModeType是一个启动模式类型 -///////////////////////////////////////////////////////////////////////// -///正常 -#define THOST_FTDC_SM_Normal '1' -///应急 -#define THOST_FTDC_SM_Emerge '2' -///恢复 -#define THOST_FTDC_SM_Restore '3' - -typedef char TThostFtdcStartModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTemplateTypeType是一个模型类型类型 -///////////////////////////////////////////////////////////////////////// -///全量 -#define THOST_FTDC_TPT_Full '1' -///增量 -#define THOST_FTDC_TPT_Increment '2' -///备份 -#define THOST_FTDC_TPT_BackUp '3' - -typedef char TThostFtdcTemplateTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLoginModeType是一个登录模式类型 -///////////////////////////////////////////////////////////////////////// -///交易 -#define THOST_FTDC_LM_Trade '0' -///转账 -#define THOST_FTDC_LM_Transfer '1' - -typedef char TThostFtdcLoginModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPromptTypeType是一个日历提示类型类型 -///////////////////////////////////////////////////////////////////////// -///合约上下市 -#define THOST_FTDC_CPT_Instrument '1' -///保证金分段生效 -#define THOST_FTDC_CPT_Margin '2' - -typedef char TThostFtdcPromptTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLedgerManageIDType是一个分户管理资产编码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcLedgerManageIDType[51]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvestVarietyType是一个投资品种类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInvestVarietyType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBankAccountTypeType是一个账户类别类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcBankAccountTypeType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLedgerManageBankType是一个开户银行类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcLedgerManageBankType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCffexDepartmentNameType是一个开户营业部类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCffexDepartmentNameType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCffexDepartmentCodeType是一个营业部代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCffexDepartmentCodeType[9]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcHasTrusteeType是一个是否有托管人类型 -///////////////////////////////////////////////////////////////////////// -///有 -#define THOST_FTDC_HT_Yes '1' -///没有 -#define THOST_FTDC_HT_No '0' - -typedef char TThostFtdcHasTrusteeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCMemo1Type是一个说明类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCMemo1Type[41]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAssetmgrCFullNameType是一个代理资产管理业务的期货公司全称类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAssetmgrCFullNameType[101]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAssetmgrApprovalNOType是一个资产管理业务批文号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAssetmgrApprovalNOType[51]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAssetmgrMgrNameType是一个资产管理业务负责人姓名类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAssetmgrMgrNameType[401]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAmTypeType是一个机构类型类型 -///////////////////////////////////////////////////////////////////////// -///银行 -#define THOST_FTDC_AMT_Bank '1' -///证券公司 -#define THOST_FTDC_AMT_Securities '2' -///基金公司 -#define THOST_FTDC_AMT_Fund '3' -///保险公司 -#define THOST_FTDC_AMT_Insurance '4' -///信托公司 -#define THOST_FTDC_AMT_Trust '5' -///其他 -#define THOST_FTDC_AMT_Other '9' - -typedef char TThostFtdcAmTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCAmTypeType是一个机构类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCAmTypeType[5]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCFundIOTypeType是一个出入金类型类型 -///////////////////////////////////////////////////////////////////////// -///出入金 -#define THOST_FTDC_CFIOT_FundIO '0' -///银期换汇 -#define THOST_FTDC_CFIOT_SwapCurrency '1' - -typedef char TThostFtdcCSRCFundIOTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCusAccountTypeType是一个结算账户类型类型 -///////////////////////////////////////////////////////////////////////// -///期货结算账户 -#define THOST_FTDC_CAT_Futures '1' -///纯期货资管业务下的资管结算账户 -#define THOST_FTDC_CAT_AssetmgrFuture '2' -///综合类资管业务下的期货资管托管账户 -#define THOST_FTDC_CAT_AssetmgrTrustee '3' -///综合类资管业务下的资金中转账户 -#define THOST_FTDC_CAT_AssetmgrTransfer '4' - -typedef char TThostFtdcCusAccountTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCNationalType是一个国籍类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCNationalType[4]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCSecAgentIDType是一个二级代理ID类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCSRCSecAgentIDType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLanguageTypeType是一个通知语言类型类型 -///////////////////////////////////////////////////////////////////////// -///中文 -#define THOST_FTDC_LT_Chinese '1' -///英文 -#define THOST_FTDC_LT_English '2' - -typedef char TThostFtdcLanguageTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAmAccountType是一个投资账户类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAmAccountType[23]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAssetmgrClientTypeType是一个资产管理客户类型类型 -///////////////////////////////////////////////////////////////////////// -///个人资管客户 -#define THOST_FTDC_AMCT_Person '1' -///单位资管客户 -#define THOST_FTDC_AMCT_Organ '2' -///特殊单位资管客户 -#define THOST_FTDC_AMCT_SpecialOrgan '4' - -typedef char TThostFtdcAssetmgrClientTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAssetmgrTypeType是一个投资类型类型 -///////////////////////////////////////////////////////////////////////// -///期货类 -#define THOST_FTDC_ASST_Futures '3' -///综合类 -#define THOST_FTDC_ASST_SpecialOrgan '4' - -typedef char TThostFtdcAssetmgrTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUOMType是一个计量单位类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcUOMType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSHFEInstLifePhaseType是一个上期所合约生命周期状态类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSHFEInstLifePhaseType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSHFEProductClassType是一个产品类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSHFEProductClassType[11]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcPriceDecimalType是一个价格小数位类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcPriceDecimalType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInTheMoneyFlagType是一个平值期权标志类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInTheMoneyFlagType[2]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCheckInstrTypeType是一个合约比较类型类型 -///////////////////////////////////////////////////////////////////////// -///合约交易所不存在 -#define THOST_FTDC_CIT_HasExch '0' -///合约本系统不存在 -#define THOST_FTDC_CIT_HasATP '1' -///合约比较不一致 -#define THOST_FTDC_CIT_HasDiff '2' - -typedef char TThostFtdcCheckInstrTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDeliveryTypeType是一个交割类型类型 -///////////////////////////////////////////////////////////////////////// -///手工交割 -#define THOST_FTDC_DT_HandDeliv '1' -///到期交割 -#define THOST_FTDC_DT_PersonDeliv '2' - -typedef char TThostFtdcDeliveryTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBigMoneyType是一个资金类型 -///////////////////////////////////////////////////////////////////////// -typedef double TThostFtdcBigMoneyType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcMaxMarginSideAlgorithmType是一个大额单边保证金算法类型 -///////////////////////////////////////////////////////////////////////// -///不使用大额单边保证金算法 -#define THOST_FTDC_MMSA_NO '0' -///使用大额单边保证金算法 -#define THOST_FTDC_MMSA_YES '1' - -typedef char TThostFtdcMaxMarginSideAlgorithmType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDAClientTypeType是一个资产管理客户类型类型 -///////////////////////////////////////////////////////////////////////// -///自然人 -#define THOST_FTDC_CACT_Person '0' -///法人 -#define THOST_FTDC_CACT_Company '1' -///其他 -#define THOST_FTDC_CACT_Other '2' - -typedef char TThostFtdcDAClientTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCombinInstrIDType是一个套利合约代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCombinInstrIDType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCombinSettlePriceType是一个各腿结算价类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcCombinSettlePriceType[61]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDCEPriorityType是一个优先级类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcDCEPriorityType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcTradeGroupIDType是一个成交组号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcTradeGroupIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcIsCheckPrepaType是一个是否校验开户可用资金类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcIsCheckPrepaType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcUOAAssetmgrTypeType是一个投资类型类型 -///////////////////////////////////////////////////////////////////////// -///期货类 -#define THOST_FTDC_UOAAT_Futures '1' -///综合类 -#define THOST_FTDC_UOAAT_SpecialOrgan '2' - -typedef char TThostFtdcUOAAssetmgrTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDirectionEnType是一个买卖方向类型 -///////////////////////////////////////////////////////////////////////// -///Buy -#define THOST_FTDC_DEN_Buy '0' -///Sell -#define THOST_FTDC_DEN_Sell '1' - -typedef char TThostFtdcDirectionEnType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOffsetFlagEnType是一个开平标志类型 -///////////////////////////////////////////////////////////////////////// -///Position Opening -#define THOST_FTDC_OFEN_Open '0' -///Position Close -#define THOST_FTDC_OFEN_Close '1' -///Forced Liquidation -#define THOST_FTDC_OFEN_ForceClose '2' -///Close Today -#define THOST_FTDC_OFEN_CloseToday '3' -///Close Prev. -#define THOST_FTDC_OFEN_CloseYesterday '4' -///Forced Reduction -#define THOST_FTDC_OFEN_ForceOff '5' -///Local Forced Liquidation -#define THOST_FTDC_OFEN_LocalForceClose '6' - -typedef char TThostFtdcOffsetFlagEnType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcHedgeFlagEnType是一个投机套保标志类型 -///////////////////////////////////////////////////////////////////////// -///Speculation -#define THOST_FTDC_HFEN_Speculation '1' -///Arbitrage -#define THOST_FTDC_HFEN_Arbitrage '2' -///Hedge -#define THOST_FTDC_HFEN_Hedge '3' - -typedef char TThostFtdcHedgeFlagEnType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFundIOTypeEnType是一个出入金类型类型 -///////////////////////////////////////////////////////////////////////// -///Deposit/Withdrawal -#define THOST_FTDC_FIOTEN_FundIO '1' -///Bank-Futures Transfer -#define THOST_FTDC_FIOTEN_Transfer '2' -///Bank-Futures FX Exchange -#define THOST_FTDC_FIOTEN_SwapCurrency '3' - -typedef char TThostFtdcFundIOTypeEnType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFundTypeEnType是一个资金类型类型 -///////////////////////////////////////////////////////////////////////// -///Bank Deposit -#define THOST_FTDC_FTEN_Deposite '1' -///Payment/Fee -#define THOST_FTDC_FTEN_ItemFund '2' -///Brokerage Adj -#define THOST_FTDC_FTEN_Company '3' -///Internal Transfer -#define THOST_FTDC_FTEN_InnerTransfer '4' - -typedef char TThostFtdcFundTypeEnType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFundDirectionEnType是一个出入金方向类型 -///////////////////////////////////////////////////////////////////////// -///Deposit -#define THOST_FTDC_FDEN_In '1' -///Withdrawal -#define THOST_FTDC_FDEN_Out '2' - -typedef char TThostFtdcFundDirectionEnType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcFundMortDirectionEnType是一个货币质押方向类型 -///////////////////////////////////////////////////////////////////////// -///Pledge -#define THOST_FTDC_FMDEN_In '1' -///Redemption -#define THOST_FTDC_FMDEN_Out '2' - -typedef char TThostFtdcFundMortDirectionEnType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSwapBusinessTypeType是一个换汇业务种类类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcSwapBusinessTypeType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOptionsTypeType是一个期权类型类型 -///////////////////////////////////////////////////////////////////////// -///看涨 -#define THOST_FTDC_CP_CallOptions '1' -///看跌 -#define THOST_FTDC_CP_PutOptions '2' - -typedef char TThostFtdcOptionsTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcStrikeModeType是一个执行方式类型 -///////////////////////////////////////////////////////////////////////// -///欧式 -#define THOST_FTDC_STM_Continental '0' -///美式 -#define THOST_FTDC_STM_American '1' -///百慕大 -#define THOST_FTDC_STM_Bermuda '2' - -typedef char TThostFtdcStrikeModeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcStrikeTypeType是一个执行类型类型 -///////////////////////////////////////////////////////////////////////// -///自身对冲 -#define THOST_FTDC_STT_Hedge '0' -///匹配执行 -#define THOST_FTDC_STT_Match '1' - -typedef char TThostFtdcStrikeTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcApplyTypeType是一个中金所期权放弃执行申请类型类型 -///////////////////////////////////////////////////////////////////////// -///不执行数量 -#define THOST_FTDC_APPT_NotStrikeNum '4' - -typedef char TThostFtdcApplyTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcGiveUpDataSourceType是一个放弃执行申请数据来源类型 -///////////////////////////////////////////////////////////////////////// -///系统生成 -#define THOST_FTDC_GUDS_Gen '0' -///手工添加 -#define THOST_FTDC_GUDS_Hand '1' - -typedef char TThostFtdcGiveUpDataSourceType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExecOrderSysIDType是一个执行宣告系统编号类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcExecOrderSysIDType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExecResultType是一个执行结果类型 -///////////////////////////////////////////////////////////////////////// -///没有执行 -#define THOST_FTDC_OER_NoExec 'n' -///已经取消 -#define THOST_FTDC_OER_Canceled 'c' -///执行成功 -#define THOST_FTDC_OER_OK '0' -///期权持仓不够 -#define THOST_FTDC_OER_NoPosition '1' -///资金不够 -#define THOST_FTDC_OER_NoDeposit '2' -///会员不存在 -#define THOST_FTDC_OER_NoParticipant '3' -///客户不存在 -#define THOST_FTDC_OER_NoClient '4' -///合约不存在 -#define THOST_FTDC_OER_NoInstrument '6' -///没有执行权限 -#define THOST_FTDC_OER_NoRight '7' -///不合理的数量 -#define THOST_FTDC_OER_InvalidVolume '8' -///没有足够的历史成交 -#define THOST_FTDC_OER_NoEnoughHistoryTrade '9' -///未知 -#define THOST_FTDC_OER_Unknown 'a' - -typedef char TThostFtdcExecResultType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcStrikeSequenceType是一个执行序号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcStrikeSequenceType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcStrikeTimeType是一个执行时间类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcStrikeTimeType[13]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCombinationTypeType是一个组合类型类型 -///////////////////////////////////////////////////////////////////////// -///期货组合 -#define THOST_FTDC_COMBT_Future '0' -///垂直价差BUL -#define THOST_FTDC_COMBT_BUL '1' -///垂直价差BER -#define THOST_FTDC_COMBT_BER '2' -///跨式组合 -#define THOST_FTDC_COMBT_STD '3' -///宽跨式组合 -#define THOST_FTDC_COMBT_STG '4' -///备兑组合 -#define THOST_FTDC_COMBT_PRT '5' -///时间价差组合 -#define THOST_FTDC_COMBT_CLD '6' - -typedef char TThostFtdcCombinationTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcOptionRoyaltyPriceTypeType是一个期权权利金价格类型类型 -///////////////////////////////////////////////////////////////////////// -///昨结算价 -#define THOST_FTDC_ORPT_PreSettlementPrice '1' -///开仓价 -#define THOST_FTDC_ORPT_OpenPrice '4' - -typedef char TThostFtdcOptionRoyaltyPriceTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBalanceAlgorithmType是一个权益算法类型 -///////////////////////////////////////////////////////////////////////// -///不计算期权市值盈亏 -#define THOST_FTDC_BLAG_Default '1' -///计算期权市值亏损 -#define THOST_FTDC_BLAG_IncludeOptValLost '2' - -typedef char TThostFtdcBalanceAlgorithmType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcActionTypeType是一个执行类型类型 -///////////////////////////////////////////////////////////////////////// -///执行 -#define THOST_FTDC_ACTP_Exec '1' -///放弃 -#define THOST_FTDC_ACTP_Abandon '2' - -typedef char TThostFtdcActionTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcForQuoteStatusType是一个询价状态类型 -///////////////////////////////////////////////////////////////////////// -///已经提交 -#define THOST_FTDC_FQST_Submitted 'a' -///已经接受 -#define THOST_FTDC_FQST_Accepted 'b' -///已经被拒绝 -#define THOST_FTDC_FQST_Rejected 'c' - -typedef char TThostFtdcForQuoteStatusType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcValueMethodType是一个取值方式类型 -///////////////////////////////////////////////////////////////////////// -///按绝对值 -#define THOST_FTDC_VM_Absolute '0' -///按比率 -#define THOST_FTDC_VM_Ratio '1' - -typedef char TThostFtdcValueMethodType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExecOrderPositionFlagType是一个期权行权后是否保留期货头寸的标记类型 -///////////////////////////////////////////////////////////////////////// -///保留 -#define THOST_FTDC_EOPF_Reserve '0' -///不保留 -#define THOST_FTDC_EOPF_UnReserve '1' - -typedef char TThostFtdcExecOrderPositionFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcExecOrderCloseFlagType是一个期权行权后生成的头寸是否自动平仓类型 -///////////////////////////////////////////////////////////////////////// -///自动平仓 -#define THOST_FTDC_EOCF_AutoClose '0' -///免于自动平仓 -#define THOST_FTDC_EOCF_NotToClose '1' - -typedef char TThostFtdcExecOrderCloseFlagType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcProductTypeType是一个产品类型类型 -///////////////////////////////////////////////////////////////////////// -///期货 -#define THOST_FTDC_PTE_Futures '1' -///期权 -#define THOST_FTDC_PTE_Options '2' - -typedef char TThostFtdcProductTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCZCEUploadFileNameType是一个郑商所结算文件名类型 -///////////////////////////////////////////////////////////////////////// -///^\d{8}_zz_\d{4} -#define THOST_FTDC_CUFN_CUFN_O 'O' -///^\d{8}成交表 -#define THOST_FTDC_CUFN_CUFN_T 'T' -///^\d{8}单腿持仓表new -#define THOST_FTDC_CUFN_CUFN_P 'P' -///^\d{8}非平仓了结表 -#define THOST_FTDC_CUFN_CUFN_N 'N' -///^\d{8}平仓表 -#define THOST_FTDC_CUFN_CUFN_L 'L' -///^\d{8}资金表 -#define THOST_FTDC_CUFN_CUFN_F 'F' -///^\d{8}组合持仓表 -#define THOST_FTDC_CUFN_CUFN_C 'C' -///^\d{8}保证金参数表 -#define THOST_FTDC_CUFN_CUFN_M 'M' - -typedef char TThostFtdcCZCEUploadFileNameType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcDCEUploadFileNameType是一个大商所结算文件名类型 -///////////////////////////////////////////////////////////////////////// -///^\d{8}_dl_\d{3} -#define THOST_FTDC_DUFN_DUFN_O 'O' -///^\d{8}_成交表 -#define THOST_FTDC_DUFN_DUFN_T 'T' -///^\d{8}_持仓表 -#define THOST_FTDC_DUFN_DUFN_P 'P' -///^\d{8}_资金结算表 -#define THOST_FTDC_DUFN_DUFN_F 'F' -///^\d{8}_优惠组合持仓明细表 -#define THOST_FTDC_DUFN_DUFN_C 'C' -///^\d{8}_持仓明细表 -#define THOST_FTDC_DUFN_DUFN_D 'D' -///^\d{8}_保证金参数表 -#define THOST_FTDC_DUFN_DUFN_M 'M' -///^\d{8}_期权执行表 -#define THOST_FTDC_DUFN_DUFN_S 'S' - -typedef char TThostFtdcDCEUploadFileNameType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcSHFEUploadFileNameType是一个上期所结算文件名类型 -///////////////////////////////////////////////////////////////////////// -///^\d{4}_\d{8}_\d{8}_DailyFundChg -#define THOST_FTDC_SUFN_SUFN_O 'O' -///^\d{4}_\d{8}_\d{8}_Trade -#define THOST_FTDC_SUFN_SUFN_T 'T' -///^\d{4}_\d{8}_\d{8}_SettlementDetail -#define THOST_FTDC_SUFN_SUFN_P 'P' -///^\d{4}_\d{8}_\d{8}_Capital -#define THOST_FTDC_SUFN_SUFN_F 'F' - -typedef char TThostFtdcSHFEUploadFileNameType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCFFEXUploadFileNameType是一个中金所结算文件名类型 -///////////////////////////////////////////////////////////////////////// -///^\d{4}_SG\d{1}_\d{8}_\d{1}_Trade -#define THOST_FTDC_CFUFN_SUFN_T 'T' -///^\d{4}_SG\d{1}_\d{8}_\d{1}_SettlementDetail -#define THOST_FTDC_CFUFN_SUFN_P 'P' -///^\d{4}_SG\d{1}_\d{8}_\d{1}_Capital -#define THOST_FTDC_CFUFN_SUFN_F 'F' -///^\d{4}_SG\d{1}_\d{8}_\d{1}_OptionExec -#define THOST_FTDC_CFUFN_SUFN_S 'S' - -typedef char TThostFtdcCFFEXUploadFileNameType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcCombDirectionType是一个组合指令方向类型 -///////////////////////////////////////////////////////////////////////// -///申请组合 -#define THOST_FTDC_CMDR_Comb '0' -///申请拆分 -#define THOST_FTDC_CMDR_UnComb '1' - -typedef char TThostFtdcCombDirectionType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcStrikeOffsetTypeType是一个行权偏移类型类型 -///////////////////////////////////////////////////////////////////////// -///实值额 -#define THOST_FTDC_STOV_RealValue '1' -///盈利额 -#define THOST_FTDC_STOV_ProfitValue '2' -///实值比例 -#define THOST_FTDC_STOV_RealRatio '3' -///盈利比例 -#define THOST_FTDC_STOV_ProfitRatio '4' - -typedef char TThostFtdcStrikeOffsetTypeType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcReserveOpenAccStasType是一个预约开户状态类型 -///////////////////////////////////////////////////////////////////////// -///等待处理中 -#define THOST_FTDC_ROAST_Processing '0' -///已撤销 -#define THOST_FTDC_ROAST_Cancelled '1' -///已开户 -#define THOST_FTDC_ROAST_Opened '2' -///无效请求 -#define THOST_FTDC_ROAST_Invalid '3' - -typedef char TThostFtdcReserveOpenAccStasType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLoginRemarkType是一个登录备注类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcLoginRemarkType[36]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcInvestUnitIDType是一个投资单元代码类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcInvestUnitIDType[17]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcBulletinIDType是一个公告编号类型 -///////////////////////////////////////////////////////////////////////// -typedef int TThostFtdcBulletinIDType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcNewsTypeType是一个公告类型类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcNewsTypeType[3]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcNewsUrgencyType是一个紧急程度类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcNewsUrgencyType; - -///////////////////////////////////////////////////////////////////////// -///TFtdcAbstractType是一个消息摘要类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcAbstractType[81]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcComeFromType是一个消息来源类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcComeFromType[21]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcURLLinkType是一个WEB地址类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcURLLinkType[201]; - -///////////////////////////////////////////////////////////////////////// -///TFtdcLongIndividualNameType是一个长个人姓名类型 -///////////////////////////////////////////////////////////////////////// -typedef char TThostFtdcLongIndividualNameType[161]; - -#endif +///////////////////////////////////////////////////////////////////////// +///@system 新一代交易所系统 +///@company 上海期货信息技术有限公司 +///@file ThostFtdcUserApiDataType.h +///@brief 定义了客户端接口使用的业务数据类型 +///@history +///20060106 赵鸿昊 创建该文件 +///////////////////////////////////////////////////////////////////////// + +#ifndef THOST_FTDCDATATYPE_H +#define THOST_FTDCDATATYPE_H + +enum THOST_TE_RESUME_TYPE +{ + THOST_TERT_RESTART = 0, + THOST_TERT_RESUME, + THOST_TERT_QUICK +}; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTraderIDType是一个交易所交易员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTraderIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorIDType是一个投资者代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerIDType是一个经纪公司代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerAbbrType是一个经纪公司简称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerAbbrType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerNameType是一个经纪公司名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeInstIDType是一个合约在交易所的代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeInstIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderRefType是一个报单引用类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrderRefType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParticipantIDType是一个会员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParticipantIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserIDType是一个用户代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserIDType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPasswordType是一个密码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPasswordType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientIDType是一个交易编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentIDType是一个合约代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentCodeType是一个合约标识码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentCodeType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarketIDType是一个市场代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMarketIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductNameType是一个产品名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProductNameType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeIDType是一个交易所代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeNameType是一个交易所名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeAbbrType是一个交易所简称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeAbbrType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeFlagType是一个交易所标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMacAddressType是一个Mac地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMacAddressType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemIDType是一个系统编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSystemIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangePropertyType是一个交易所属性类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_EXP_Normal '0' +///根据成交生成报单 +#define THOST_FTDC_EXP_GenOrderByTrade '1' + +typedef char TThostFtdcExchangePropertyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateType是一个日期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimeType是一个时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTimeType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLongTimeType是一个长时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongTimeType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentNameType是一个合约名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentNameType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementGroupIDType是一个结算组代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettlementGroupIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderSysIDType是一个报单编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrderSysIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeIDType是一个成交编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommandTypeType是一个DB命令类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommandTypeType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIPAddressType是一个IP地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIPAddressType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIPPortType是一个IP端口类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcIPPortType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductInfoType是一个产品信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProductInfoType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProtocolInfoType是一个协议信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProtocolInfoType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessUnitType是一个业务单元类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBusinessUnitType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDepositSeqNoType是一个出入金流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDepositSeqNoType[15]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIdentifiedCardNoType是一个证件号码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIdentifiedCardNoType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIdCardTypeType是一个证件类型类型 +///////////////////////////////////////////////////////////////////////// +///组织机构代码 +#define THOST_FTDC_ICT_EID '0' +///中国公民身份证 +#define THOST_FTDC_ICT_IDCard '1' +///军官证 +#define THOST_FTDC_ICT_OfficerIDCard '2' +///警官证 +#define THOST_FTDC_ICT_PoliceIDCard '3' +///士兵证 +#define THOST_FTDC_ICT_SoldierIDCard '4' +///户口簿 +#define THOST_FTDC_ICT_HouseholdRegister '5' +///护照 +#define THOST_FTDC_ICT_Passport '6' +///台胞证 +#define THOST_FTDC_ICT_TaiwanCompatriotIDCard '7' +///回乡证 +#define THOST_FTDC_ICT_HomeComingCard '8' +///营业执照号 +#define THOST_FTDC_ICT_LicenseNo '9' +///税务登记号/当地纳税ID +#define THOST_FTDC_ICT_TaxNo 'A' +///港澳居民来往内地通行证 +#define THOST_FTDC_ICT_HMMainlandTravelPermit 'B' +///台湾居民来往大陆通行证 +#define THOST_FTDC_ICT_TwMainlandTravelPermit 'C' +///驾照 +#define THOST_FTDC_ICT_DrivingLicense 'D' +///当地社保ID +#define THOST_FTDC_ICT_SocialID 'F' +///当地身份证 +#define THOST_FTDC_ICT_LocalID 'G' +///商业登记证 +#define THOST_FTDC_ICT_BusinessRegistration 'H' +///港澳永久性居民身份证 +#define THOST_FTDC_ICT_HKMCIDCard 'I' +///人行开户许可证 +#define THOST_FTDC_ICT_AccountsPermits 'J' +///外国人永久居留证 +#define THOST_FTDC_ICT_FrgPrmtRdCard 'K' +///资管产品备案函 +#define THOST_FTDC_ICT_CptMngPrdLetter 'L' +///其他证件 +#define THOST_FTDC_ICT_OtherCard 'x' + +typedef char TThostFtdcIdCardTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderLocalIDType是一个本地报单编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrderLocalIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserNameType是一个用户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPartyNameType是一个参与人名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPartyNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcErrorMsgType是一个错误信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcErrorMsgType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFieldNameType是一个字段名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFieldNameType[2049]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFieldContentType是一个字段内容类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFieldContentType[2049]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemNameType是一个系统名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSystemNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcContentType是一个消息正文类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcContentType[501]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorRangeType是一个投资者范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_IR_All '1' +///投资者组 +#define THOST_FTDC_IR_Group '2' +///单一投资者 +#define THOST_FTDC_IR_Single '3' + +typedef char TThostFtdcInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDepartmentRangeType是一个投资者范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_DR_All '1' +///组织架构 +#define THOST_FTDC_DR_Group '2' +///单一投资者 +#define THOST_FTDC_DR_Single '3' + +typedef char TThostFtdcDepartmentRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataSyncStatusType是一个数据同步状态类型 +///////////////////////////////////////////////////////////////////////// +///未同步 +#define THOST_FTDC_DS_Asynchronous '1' +///同步中 +#define THOST_FTDC_DS_Synchronizing '2' +///已同步 +#define THOST_FTDC_DS_Synchronized '3' + +typedef char TThostFtdcDataSyncStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerDataSyncStatusType是一个经纪公司数据同步状态类型 +///////////////////////////////////////////////////////////////////////// +///已同步 +#define THOST_FTDC_BDS_Synchronized '1' +///同步中 +#define THOST_FTDC_BDS_Synchronizing '2' + +typedef char TThostFtdcBrokerDataSyncStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeConnectStatusType是一个交易所连接状态类型 +///////////////////////////////////////////////////////////////////////// +///没有任何连接 +#define THOST_FTDC_ECS_NoConnection '1' +///已经发出合约查询请求 +#define THOST_FTDC_ECS_QryInstrumentSent '2' +///已经获取信息 +#define THOST_FTDC_ECS_GotInformation '9' + +typedef char TThostFtdcExchangeConnectStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTraderConnectStatusType是一个交易所交易员连接状态类型 +///////////////////////////////////////////////////////////////////////// +///没有任何连接 +#define THOST_FTDC_TCS_NotConnected '1' +///已经连接 +#define THOST_FTDC_TCS_Connected '2' +///已经发出合约查询请求 +#define THOST_FTDC_TCS_QryInstrumentSent '3' +///订阅私有流 +#define THOST_FTDC_TCS_SubPrivateFlow '4' + +typedef char TThostFtdcTraderConnectStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionCodeType是一个功能代码类型 +///////////////////////////////////////////////////////////////////////// +///数据异步化 +#define THOST_FTDC_FC_DataAsync '1' +///强制用户登出 +#define THOST_FTDC_FC_ForceUserLogout '2' +///变更管理用户口令 +#define THOST_FTDC_FC_UserPasswordUpdate '3' +///变更经纪公司口令 +#define THOST_FTDC_FC_BrokerPasswordUpdate '4' +///变更投资者口令 +#define THOST_FTDC_FC_InvestorPasswordUpdate '5' +///报单插入 +#define THOST_FTDC_FC_OrderInsert '6' +///报单操作 +#define THOST_FTDC_FC_OrderAction '7' +///同步系统数据 +#define THOST_FTDC_FC_SyncSystemData '8' +///同步经纪公司数据 +#define THOST_FTDC_FC_SyncBrokerData '9' +///批量同步经纪公司数据 +#define THOST_FTDC_FC_BachSyncBrokerData 'A' +///超级查询 +#define THOST_FTDC_FC_SuperQuery 'B' +///预埋报单插入 +#define THOST_FTDC_FC_ParkedOrderInsert 'C' +///预埋报单操作 +#define THOST_FTDC_FC_ParkedOrderAction 'D' +///同步动态令牌 +#define THOST_FTDC_FC_SyncOTP 'E' +///删除未知单 +#define THOST_FTDC_FC_DeleteOrder 'F' + +typedef char TThostFtdcFunctionCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerFunctionCodeType是一个经纪公司功能代码类型 +///////////////////////////////////////////////////////////////////////// +///强制用户登出 +#define THOST_FTDC_BFC_ForceUserLogout '1' +///变更用户口令 +#define THOST_FTDC_BFC_UserPasswordUpdate '2' +///同步经纪公司数据 +#define THOST_FTDC_BFC_SyncBrokerData '3' +///批量同步经纪公司数据 +#define THOST_FTDC_BFC_BachSyncBrokerData '4' +///报单插入 +#define THOST_FTDC_BFC_OrderInsert '5' +///报单操作 +#define THOST_FTDC_BFC_OrderAction '6' +///全部查询 +#define THOST_FTDC_BFC_AllQuery '7' +///系统功能:登入/登出/修改密码等 +#define THOST_FTDC_BFC_log 'a' +///基本查询:查询基础数据,如合约,交易所等常量 +#define THOST_FTDC_BFC_BaseQry 'b' +///交易查询:如查成交,委托 +#define THOST_FTDC_BFC_TradeQry 'c' +///交易功能:报单,撤单 +#define THOST_FTDC_BFC_Trade 'd' +///银期转账 +#define THOST_FTDC_BFC_Virement 'e' +///风险监控 +#define THOST_FTDC_BFC_Risk 'f' +///查询/管理:查询会话,踢人等 +#define THOST_FTDC_BFC_Session 'g' +///风控通知控制 +#define THOST_FTDC_BFC_RiskNoticeCtl 'h' +///风控通知发送 +#define THOST_FTDC_BFC_RiskNotice 'i' +///察看经纪公司资金权限 +#define THOST_FTDC_BFC_BrokerDeposit 'j' +///资金查询 +#define THOST_FTDC_BFC_QueryFund 'k' +///报单查询 +#define THOST_FTDC_BFC_QueryOrder 'l' +///成交查询 +#define THOST_FTDC_BFC_QueryTrade 'm' +///持仓查询 +#define THOST_FTDC_BFC_QueryPosition 'n' +///行情查询 +#define THOST_FTDC_BFC_QueryMarketData 'o' +///用户事件查询 +#define THOST_FTDC_BFC_QueryUserEvent 'p' +///风险通知查询 +#define THOST_FTDC_BFC_QueryRiskNotify 'q' +///出入金查询 +#define THOST_FTDC_BFC_QueryFundChange 'r' +///投资者信息查询 +#define THOST_FTDC_BFC_QueryInvestor 's' +///交易编码查询 +#define THOST_FTDC_BFC_QueryTradingCode 't' +///强平 +#define THOST_FTDC_BFC_ForceClose 'u' +///压力测试 +#define THOST_FTDC_BFC_PressTest 'v' +///权益反算 +#define THOST_FTDC_BFC_RemainCalc 'w' +///净持仓保证金指标 +#define THOST_FTDC_BFC_NetPositionInd 'x' +///风险预算 +#define THOST_FTDC_BFC_RiskPredict 'y' +///数据导出 +#define THOST_FTDC_BFC_DataExport 'z' +///风控指标设置 +#define THOST_FTDC_BFC_RiskTargetSetup 'A' +///行情预警 +#define THOST_FTDC_BFC_MarketDataWarn 'B' +///业务通知查询 +#define THOST_FTDC_BFC_QryBizNotice 'C' +///业务通知模板设置 +#define THOST_FTDC_BFC_CfgBizNotice 'D' +///同步动态令牌 +#define THOST_FTDC_BFC_SyncOTP 'E' +///发送业务通知 +#define THOST_FTDC_BFC_SendBizNotice 'F' +///风险级别标准设置 +#define THOST_FTDC_BFC_CfgRiskLevelStd 'G' +///交易终端应急功能 +#define THOST_FTDC_BFC_TbCommand 'H' +///删除未知单 +#define THOST_FTDC_BFC_DeleteOrder 'J' +///预埋报单插入 +#define THOST_FTDC_BFC_ParkedOrderInsert 'K' +///预埋报单操作 +#define THOST_FTDC_BFC_ParkedOrderAction 'L' +///资金不够仍允许行权 +#define THOST_FTDC_BFC_ExecOrderNoCheck 'M' +///指定 +#define THOST_FTDC_BFC_Designate 'N' +///证券处置 +#define THOST_FTDC_BFC_StockDisposal 'O' +///席位资金预警 +#define THOST_FTDC_BFC_BrokerDepositWarn 'Q' +///备兑不足预警 +#define THOST_FTDC_BFC_CoverWarn 'S' +///行权试算 +#define THOST_FTDC_BFC_PreExecOrder 'T' +///行权交收风险 +#define THOST_FTDC_BFC_ExecOrderRisk 'P' +///持仓限额预警 +#define THOST_FTDC_BFC_PosiLimitWarn 'U' +///持仓限额查询 +#define THOST_FTDC_BFC_QryPosiLimit 'V' +///银期签到签退 +#define THOST_FTDC_BFC_FBSign 'W' +///银期签约解约 +#define THOST_FTDC_BFC_FBAccount 'X' + +typedef char TThostFtdcBrokerFunctionCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderActionStatusType是一个报单操作状态类型 +///////////////////////////////////////////////////////////////////////// +///已经提交 +#define THOST_FTDC_OAS_Submitted 'a' +///已经接受 +#define THOST_FTDC_OAS_Accepted 'b' +///已经被拒绝 +#define THOST_FTDC_OAS_Rejected 'c' + +typedef char TThostFtdcOrderActionStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderStatusType是一个报单状态类型 +///////////////////////////////////////////////////////////////////////// +///全部成交 +#define THOST_FTDC_OST_AllTraded '0' +///部分成交还在队列中 +#define THOST_FTDC_OST_PartTradedQueueing '1' +///部分成交不在队列中 +#define THOST_FTDC_OST_PartTradedNotQueueing '2' +///未成交还在队列中 +#define THOST_FTDC_OST_NoTradeQueueing '3' +///未成交不在队列中 +#define THOST_FTDC_OST_NoTradeNotQueueing '4' +///撤单 +#define THOST_FTDC_OST_Canceled '5' +///未知 +#define THOST_FTDC_OST_Unknown 'a' +///尚未触发 +#define THOST_FTDC_OST_NotTouched 'b' +///已触发 +#define THOST_FTDC_OST_Touched 'c' + +typedef char TThostFtdcOrderStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderSubmitStatusType是一个报单提交状态类型 +///////////////////////////////////////////////////////////////////////// +///已经提交 +#define THOST_FTDC_OSS_InsertSubmitted '0' +///撤单已经提交 +#define THOST_FTDC_OSS_CancelSubmitted '1' +///修改已经提交 +#define THOST_FTDC_OSS_ModifySubmitted '2' +///已经接受 +#define THOST_FTDC_OSS_Accepted '3' +///报单已经被拒绝 +#define THOST_FTDC_OSS_InsertRejected '4' +///撤单已经被拒绝 +#define THOST_FTDC_OSS_CancelRejected '5' +///改单已经被拒绝 +#define THOST_FTDC_OSS_ModifyRejected '6' + +typedef char TThostFtdcOrderSubmitStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionDateType是一个持仓日期类型 +///////////////////////////////////////////////////////////////////////// +///今日持仓 +#define THOST_FTDC_PSD_Today '1' +///历史持仓 +#define THOST_FTDC_PSD_History '2' + +typedef char TThostFtdcPositionDateType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionDateTypeType是一个持仓日期类型类型 +///////////////////////////////////////////////////////////////////////// +///使用历史持仓 +#define THOST_FTDC_PDT_UseHistory '1' +///不使用历史持仓 +#define THOST_FTDC_PDT_NoUseHistory '2' + +typedef char TThostFtdcPositionDateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingRoleType是一个交易角色类型 +///////////////////////////////////////////////////////////////////////// +///代理 +#define THOST_FTDC_ER_Broker '1' +///自营 +#define THOST_FTDC_ER_Host '2' +///做市商 +#define THOST_FTDC_ER_Maker '3' + +typedef char TThostFtdcTradingRoleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductClassType是一个产品类型类型 +///////////////////////////////////////////////////////////////////////// +///期货 +#define THOST_FTDC_PC_Futures '1' +///期货期权 +#define THOST_FTDC_PC_Options '2' +///组合 +#define THOST_FTDC_PC_Combination '3' +///即期 +#define THOST_FTDC_PC_Spot '4' +///期转现 +#define THOST_FTDC_PC_EFP '5' +///现货期权 +#define THOST_FTDC_PC_SpotOption '6' + +typedef char TThostFtdcProductClassType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstLifePhaseType是一个合约生命周期状态类型 +///////////////////////////////////////////////////////////////////////// +///未上市 +#define THOST_FTDC_IP_NotStart '0' +///上市 +#define THOST_FTDC_IP_Started '1' +///停牌 +#define THOST_FTDC_IP_Pause '2' +///到期 +#define THOST_FTDC_IP_Expired '3' + +typedef char TThostFtdcInstLifePhaseType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDirectionType是一个买卖方向类型 +///////////////////////////////////////////////////////////////////////// +///买 +#define THOST_FTDC_D_Buy '0' +///卖 +#define THOST_FTDC_D_Sell '1' + +typedef char TThostFtdcDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionTypeType是一个持仓类型类型 +///////////////////////////////////////////////////////////////////////// +///净持仓 +#define THOST_FTDC_PT_Net '1' +///综合持仓 +#define THOST_FTDC_PT_Gross '2' + +typedef char TThostFtdcPositionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPosiDirectionType是一个持仓多空方向类型 +///////////////////////////////////////////////////////////////////////// +///净 +#define THOST_FTDC_PD_Net '1' +///多头 +#define THOST_FTDC_PD_Long '2' +///空头 +#define THOST_FTDC_PD_Short '3' + +typedef char TThostFtdcPosiDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysSettlementStatusType是一个系统结算状态类型 +///////////////////////////////////////////////////////////////////////// +///不活跃 +#define THOST_FTDC_SS_NonActive '1' +///启动 +#define THOST_FTDC_SS_Startup '2' +///操作 +#define THOST_FTDC_SS_Operating '3' +///结算 +#define THOST_FTDC_SS_Settlement '4' +///结算完成 +#define THOST_FTDC_SS_SettlementFinished '5' + +typedef char TThostFtdcSysSettlementStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRatioAttrType是一个费率属性类型 +///////////////////////////////////////////////////////////////////////// +///交易费率 +#define THOST_FTDC_RA_Trade '0' +///结算费率 +#define THOST_FTDC_RA_Settlement '1' + +typedef char TThostFtdcRatioAttrType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHedgeFlagType是一个投机套保标志类型 +///////////////////////////////////////////////////////////////////////// +///投机 +#define THOST_FTDC_HF_Speculation '1' +///套利 +#define THOST_FTDC_HF_Arbitrage '2' +///套保 +#define THOST_FTDC_HF_Hedge '3' +///做市商 +#define THOST_FTDC_HF_MarketMaker '5' +///第一腿投机第二腿套保 大商所专用 +#define THOST_FTDC_HF_SpecHedge '6' +///第一腿套保第二腿投机 大商所专用 +#define THOST_FTDC_HF_HedgeSpec '7' + +typedef char TThostFtdcHedgeFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillHedgeFlagType是一个投机套保标志类型 +///////////////////////////////////////////////////////////////////////// +///投机 +#define THOST_FTDC_BHF_Speculation '1' +///套利 +#define THOST_FTDC_BHF_Arbitrage '2' +///套保 +#define THOST_FTDC_BHF_Hedge '3' + +typedef char TThostFtdcBillHedgeFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientIDTypeType是一个交易编码类型类型 +///////////////////////////////////////////////////////////////////////// +///投机 +#define THOST_FTDC_CIDT_Speculation '1' +///套利 +#define THOST_FTDC_CIDT_Arbitrage '2' +///套保 +#define THOST_FTDC_CIDT_Hedge '3' +///做市商 +#define THOST_FTDC_CIDT_MarketMaker '5' + +typedef char TThostFtdcClientIDTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderPriceTypeType是一个报单价格条件类型 +///////////////////////////////////////////////////////////////////////// +///任意价 +#define THOST_FTDC_OPT_AnyPrice '1' +///限价 +#define THOST_FTDC_OPT_LimitPrice '2' +///最优价 +#define THOST_FTDC_OPT_BestPrice '3' +///最新价 +#define THOST_FTDC_OPT_LastPrice '4' +///最新价浮动上浮1个ticks +#define THOST_FTDC_OPT_LastPricePlusOneTicks '5' +///最新价浮动上浮2个ticks +#define THOST_FTDC_OPT_LastPricePlusTwoTicks '6' +///最新价浮动上浮3个ticks +#define THOST_FTDC_OPT_LastPricePlusThreeTicks '7' +///卖一价 +#define THOST_FTDC_OPT_AskPrice1 '8' +///卖一价浮动上浮1个ticks +#define THOST_FTDC_OPT_AskPrice1PlusOneTicks '9' +///卖一价浮动上浮2个ticks +#define THOST_FTDC_OPT_AskPrice1PlusTwoTicks 'A' +///卖一价浮动上浮3个ticks +#define THOST_FTDC_OPT_AskPrice1PlusThreeTicks 'B' +///买一价 +#define THOST_FTDC_OPT_BidPrice1 'C' +///买一价浮动上浮1个ticks +#define THOST_FTDC_OPT_BidPrice1PlusOneTicks 'D' +///买一价浮动上浮2个ticks +#define THOST_FTDC_OPT_BidPrice1PlusTwoTicks 'E' +///买一价浮动上浮3个ticks +#define THOST_FTDC_OPT_BidPrice1PlusThreeTicks 'F' +///五档价 +#define THOST_FTDC_OPT_FiveLevelPrice 'G' + +typedef char TThostFtdcOrderPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOffsetFlagType是一个开平标志类型 +///////////////////////////////////////////////////////////////////////// +///开仓 +#define THOST_FTDC_OF_Open '0' +///平仓 +#define THOST_FTDC_OF_Close '1' +///强平 +#define THOST_FTDC_OF_ForceClose '2' +///平今 +#define THOST_FTDC_OF_CloseToday '3' +///平昨 +#define THOST_FTDC_OF_CloseYesterday '4' +///强减 +#define THOST_FTDC_OF_ForceOff '5' +///本地强平 +#define THOST_FTDC_OF_LocalForceClose '6' + +typedef char TThostFtdcOffsetFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForceCloseReasonType是一个强平原因类型 +///////////////////////////////////////////////////////////////////////// +///非强平 +#define THOST_FTDC_FCC_NotForceClose '0' +///资金不足 +#define THOST_FTDC_FCC_LackDeposit '1' +///客户超仓 +#define THOST_FTDC_FCC_ClientOverPositionLimit '2' +///会员超仓 +#define THOST_FTDC_FCC_MemberOverPositionLimit '3' +///持仓非整数倍 +#define THOST_FTDC_FCC_NotMultiple '4' +///违规 +#define THOST_FTDC_FCC_Violation '5' +///其它 +#define THOST_FTDC_FCC_Other '6' +///自然人临近交割 +#define THOST_FTDC_FCC_PersonDeliv '7' + +typedef char TThostFtdcForceCloseReasonType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderTypeType是一个报单类型类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_ORDT_Normal '0' +///报价衍生 +#define THOST_FTDC_ORDT_DeriveFromQuote '1' +///组合衍生 +#define THOST_FTDC_ORDT_DeriveFromCombination '2' +///组合报单 +#define THOST_FTDC_ORDT_Combination '3' +///条件单 +#define THOST_FTDC_ORDT_ConditionalOrder '4' +///互换单 +#define THOST_FTDC_ORDT_Swap '5' +///大宗交易成交衍生 +#define THOST_FTDC_ORDT_DeriveFromBlockTrade '6' +///期转现成交衍生 +#define THOST_FTDC_ORDT_DeriveFromEFPTrade '7' + +typedef char TThostFtdcOrderTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimeConditionType是一个有效期类型类型 +///////////////////////////////////////////////////////////////////////// +///立即完成,否则撤销 +#define THOST_FTDC_TC_IOC '1' +///本节有效 +#define THOST_FTDC_TC_GFS '2' +///当日有效 +#define THOST_FTDC_TC_GFD '3' +///指定日期前有效 +#define THOST_FTDC_TC_GTD '4' +///撤销前有效 +#define THOST_FTDC_TC_GTC '5' +///集合竞价有效 +#define THOST_FTDC_TC_GFA '6' + +typedef char TThostFtdcTimeConditionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVolumeConditionType是一个成交量类型类型 +///////////////////////////////////////////////////////////////////////// +///任何数量 +#define THOST_FTDC_VC_AV '1' +///最小数量 +#define THOST_FTDC_VC_MV '2' +///全部数量 +#define THOST_FTDC_VC_CV '3' + +typedef char TThostFtdcVolumeConditionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcContingentConditionType是一个触发条件类型 +///////////////////////////////////////////////////////////////////////// +///立即 +#define THOST_FTDC_CC_Immediately '1' +///止损 +#define THOST_FTDC_CC_Touch '2' +///止赢 +#define THOST_FTDC_CC_TouchProfit '3' +///预埋单 +#define THOST_FTDC_CC_ParkedOrder '4' +///最新价大于条件价 +#define THOST_FTDC_CC_LastPriceGreaterThanStopPrice '5' +///最新价大于等于条件价 +#define THOST_FTDC_CC_LastPriceGreaterEqualStopPrice '6' +///最新价小于条件价 +#define THOST_FTDC_CC_LastPriceLesserThanStopPrice '7' +///最新价小于等于条件价 +#define THOST_FTDC_CC_LastPriceLesserEqualStopPrice '8' +///卖一价大于条件价 +#define THOST_FTDC_CC_AskPriceGreaterThanStopPrice '9' +///卖一价大于等于条件价 +#define THOST_FTDC_CC_AskPriceGreaterEqualStopPrice 'A' +///卖一价小于条件价 +#define THOST_FTDC_CC_AskPriceLesserThanStopPrice 'B' +///卖一价小于等于条件价 +#define THOST_FTDC_CC_AskPriceLesserEqualStopPrice 'C' +///买一价大于条件价 +#define THOST_FTDC_CC_BidPriceGreaterThanStopPrice 'D' +///买一价大于等于条件价 +#define THOST_FTDC_CC_BidPriceGreaterEqualStopPrice 'E' +///买一价小于条件价 +#define THOST_FTDC_CC_BidPriceLesserThanStopPrice 'F' +///买一价小于等于条件价 +#define THOST_FTDC_CC_BidPriceLesserEqualStopPrice 'H' + +typedef char TThostFtdcContingentConditionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcActionFlagType是一个操作标志类型 +///////////////////////////////////////////////////////////////////////// +///删除 +#define THOST_FTDC_AF_Delete '0' +///修改 +#define THOST_FTDC_AF_Modify '3' + +typedef char TThostFtdcActionFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingRightType是一个交易权限类型 +///////////////////////////////////////////////////////////////////////// +///可以交易 +#define THOST_FTDC_TR_Allow '0' +///只能平仓 +#define THOST_FTDC_TR_CloseOnly '1' +///不能交易 +#define THOST_FTDC_TR_Forbidden '2' + +typedef char TThostFtdcTradingRightType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderSourceType是一个报单来源类型 +///////////////////////////////////////////////////////////////////////// +///来自参与者 +#define THOST_FTDC_OSRC_Participant '0' +///来自管理员 +#define THOST_FTDC_OSRC_Administrator '1' + +typedef char TThostFtdcOrderSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeTypeType是一个成交类型类型 +///////////////////////////////////////////////////////////////////////// +///组合持仓拆分为单一持仓,初始化不应包含该类型的持仓 +#define THOST_FTDC_TRDT_SplitCombination '#' +///普通成交 +#define THOST_FTDC_TRDT_Common '0' +///期权执行 +#define THOST_FTDC_TRDT_OptionsExecution '1' +///OTC成交 +#define THOST_FTDC_TRDT_OTC '2' +///期转现衍生成交 +#define THOST_FTDC_TRDT_EFPDerived '3' +///组合衍生成交 +#define THOST_FTDC_TRDT_CombinationDerived '4' +///大宗交易成交 +#define THOST_FTDC_TRDT_BlockTrade '5' + +typedef char TThostFtdcTradeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriceSourceType是一个成交价来源类型 +///////////////////////////////////////////////////////////////////////// +///前成交价 +#define THOST_FTDC_PSRC_LastPrice '0' +///买委托价 +#define THOST_FTDC_PSRC_Buy '1' +///卖委托价 +#define THOST_FTDC_PSRC_Sell '2' +///场外成交价 +#define THOST_FTDC_PSRC_OTC '3' + +typedef char TThostFtdcPriceSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentStatusType是一个合约交易状态类型 +///////////////////////////////////////////////////////////////////////// +///开盘前 +#define THOST_FTDC_IS_BeforeTrading '0' +///非交易 +#define THOST_FTDC_IS_NoTrading '1' +///连续交易 +#define THOST_FTDC_IS_Continous '2' +///集合竞价报单 +#define THOST_FTDC_IS_AuctionOrdering '3' +///集合竞价价格平衡 +#define THOST_FTDC_IS_AuctionBalance '4' +///集合竞价撮合 +#define THOST_FTDC_IS_AuctionMatch '5' +///收盘 +#define THOST_FTDC_IS_Closed '6' + +typedef char TThostFtdcInstrumentStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstStatusEnterReasonType是一个品种进入交易状态原因类型 +///////////////////////////////////////////////////////////////////////// +///自动切换 +#define THOST_FTDC_IER_Automatic '1' +///手动切换 +#define THOST_FTDC_IER_Manual '2' +///熔断 +#define THOST_FTDC_IER_Fuse '3' + +typedef char TThostFtdcInstStatusEnterReasonType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderActionRefType是一个报单操作引用类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcOrderActionRefType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstallCountType是一个安装数量类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcInstallCountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstallIDType是一个安装编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcInstallIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcErrorIDType是一个错误代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcErrorIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementIDType是一个结算编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSettlementIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVolumeType是一个数量类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcVolumeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFrontIDType是一个前置编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFrontIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSessionIDType是一个会话编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSessionIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceNoType是一个序号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSequenceNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommandNoType是一个DB命令序号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCommandNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMillisecType是一个时间(毫秒)类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcMillisecType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVolumeMultipleType是一个合约数量乘数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcVolumeMultipleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingSegmentSNType是一个交易阶段编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTradingSegmentSNType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRequestIDType是一个请求编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRequestIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcYearType是一个年份类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcYearType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMonthType是一个月份类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcMonthType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBoolType是一个布尔型类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcBoolType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriceType是一个价格类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcPriceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombOffsetFlagType是一个组合开平标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombOffsetFlagType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombHedgeFlagType是一个组合投机套保标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombHedgeFlagType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRatioType是一个比率类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcRatioType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMoneyType是一个资金类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLargeVolumeType是一个大额数量类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcLargeVolumeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceSeriesType是一个序列系列号类型 +///////////////////////////////////////////////////////////////////////// +typedef short TThostFtdcSequenceSeriesType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommPhaseNoType是一个通讯时段编号类型 +///////////////////////////////////////////////////////////////////////// +typedef short TThostFtdcCommPhaseNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceLabelType是一个序列编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSequenceLabelType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUnderlyingMultipleType是一个基础商品乘数类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcUnderlyingMultipleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriorityType是一个优先级类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcPriorityType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcContractCodeType是一个合同编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcContractCodeType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCityType是一个市类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCityType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIsStockType是一个是否股民类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIsStockType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcChannelType是一个渠道类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcChannelType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAddressType是一个通讯地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAddressType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcZipCodeType是一个邮政编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcZipCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTelephoneType是一个联系电话类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTelephoneType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFaxType是一个传真类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFaxType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMobileType是一个手机类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMobileType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEMailType是一个电子邮件类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEMailType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMemoType是一个备注类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMemoType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCompanyCodeType是一个企业代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCompanyCodeType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWebsiteType是一个网站地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWebsiteType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTaxNoType是一个税务登记号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTaxNoType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBatchStatusType是一个处理状态类型 +///////////////////////////////////////////////////////////////////////// +///未上传 +#define THOST_FTDC_BS_NoUpload '1' +///已上传 +#define THOST_FTDC_BS_Uploaded '2' +///审核失败 +#define THOST_FTDC_BS_Failed '3' + +typedef char TThostFtdcBatchStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyIDType是一个属性代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPropertyIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyNameType是一个属性名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPropertyNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLicenseNoType是一个营业执照号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLicenseNoType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentIDType是一个经纪人代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentNameType是一个经纪人名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentGroupIDType是一个经纪人组代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentGroupIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentGroupNameType是一个经纪人组名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentGroupNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnStyleType是一个按品种返还方式类型 +///////////////////////////////////////////////////////////////////////// +///按所有品种 +#define THOST_FTDC_RS_All '1' +///按品种 +#define THOST_FTDC_RS_ByProduct '2' + +typedef char TThostFtdcReturnStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnPatternType是一个返还模式类型 +///////////////////////////////////////////////////////////////////////// +///按成交手数 +#define THOST_FTDC_RP_ByVolume '1' +///按留存手续费 +#define THOST_FTDC_RP_ByFeeOnHand '2' + +typedef char TThostFtdcReturnPatternType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnLevelType是一个返还级别类型 +///////////////////////////////////////////////////////////////////////// +///级别1 +#define THOST_FTDC_RL_Level1 '1' +///级别2 +#define THOST_FTDC_RL_Level2 '2' +///级别3 +#define THOST_FTDC_RL_Level3 '3' +///级别4 +#define THOST_FTDC_RL_Level4 '4' +///级别5 +#define THOST_FTDC_RL_Level5 '5' +///级别6 +#define THOST_FTDC_RL_Level6 '6' +///级别7 +#define THOST_FTDC_RL_Level7 '7' +///级别8 +#define THOST_FTDC_RL_Level8 '8' +///级别9 +#define THOST_FTDC_RL_Level9 '9' + +typedef char TThostFtdcReturnLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnStandardType是一个返还标准类型 +///////////////////////////////////////////////////////////////////////// +///分阶段返还 +#define THOST_FTDC_RSD_ByPeriod '1' +///按某一标准 +#define THOST_FTDC_RSD_ByStandard '2' + +typedef char TThostFtdcReturnStandardType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMortgageTypeType是一个质押类型类型 +///////////////////////////////////////////////////////////////////////// +///质出 +#define THOST_FTDC_MT_Out '0' +///质入 +#define THOST_FTDC_MT_In '1' + +typedef char TThostFtdcMortgageTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorSettlementParamIDType是一个投资者结算参数代码类型 +///////////////////////////////////////////////////////////////////////// +///质押比例 +#define THOST_FTDC_ISPI_MortgageRatio '4' +///保证金算法 +#define THOST_FTDC_ISPI_MarginWay '5' +///结算单结存是否包含质押 +#define THOST_FTDC_ISPI_BillDeposit '9' + +typedef char TThostFtdcInvestorSettlementParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeSettlementParamIDType是一个交易所结算参数代码类型 +///////////////////////////////////////////////////////////////////////// +///质押比例 +#define THOST_FTDC_ESPI_MortgageRatio '1' +///分项资金导入项 +#define THOST_FTDC_ESPI_OtherFundItem '2' +///分项资金入交易所出入金 +#define THOST_FTDC_ESPI_OtherFundImport '3' +///中金所开户最低可用金额 +#define THOST_FTDC_ESPI_CFFEXMinPrepa '6' +///郑商所结算方式 +#define THOST_FTDC_ESPI_CZCESettlementType '7' +///交易所交割手续费收取方式 +#define THOST_FTDC_ESPI_ExchDelivFeeMode '9' +///投资者交割手续费收取方式 +#define THOST_FTDC_ESPI_DelivFeeMode '0' +///郑商所组合持仓保证金收取方式 +#define THOST_FTDC_ESPI_CZCEComMarginType 'A' +///大商所套利保证金是否优惠 +#define THOST_FTDC_ESPI_DceComMarginType 'B' +///虚值期权保证金优惠比率 +#define THOST_FTDC_ESPI_OptOutDisCountRate 'a' +///最低保障系数 +#define THOST_FTDC_ESPI_OptMiniGuarantee 'b' + +typedef char TThostFtdcExchangeSettlementParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemParamIDType是一个系统参数代码类型 +///////////////////////////////////////////////////////////////////////// +///投资者代码最小长度 +#define THOST_FTDC_SPI_InvestorIDMinLength '1' +///投资者帐号代码最小长度 +#define THOST_FTDC_SPI_AccountIDMinLength '2' +///投资者开户默认登录权限 +#define THOST_FTDC_SPI_UserRightLogon '3' +///投资者交易结算单成交汇总方式 +#define THOST_FTDC_SPI_SettlementBillTrade '4' +///统一开户更新交易编码方式 +#define THOST_FTDC_SPI_TradingCode '5' +///结算是否判断存在未复核的出入金和分项资金 +#define THOST_FTDC_SPI_CheckFund '6' +///是否启用手续费模板数据权限 +#define THOST_FTDC_SPI_CommModelRight '7' +///是否启用保证金率模板数据权限 +#define THOST_FTDC_SPI_MarginModelRight '9' +///是否规范用户才能激活 +#define THOST_FTDC_SPI_IsStandardActive '8' +///上传的交易所结算文件路径 +#define THOST_FTDC_SPI_UploadSettlementFile 'U' +///上报保证金监控中心文件路径 +#define THOST_FTDC_SPI_DownloadCSRCFile 'D' +///生成的结算单文件路径 +#define THOST_FTDC_SPI_SettlementBillFile 'S' +///证监会文件标识 +#define THOST_FTDC_SPI_CSRCOthersFile 'C' +///投资者照片路径 +#define THOST_FTDC_SPI_InvestorPhoto 'P' +///全结经纪公司上传文件路径 +#define THOST_FTDC_SPI_CSRCData 'R' +///开户密码录入方式 +#define THOST_FTDC_SPI_InvestorPwdModel 'I' +///投资者中金所结算文件下载路径 +#define THOST_FTDC_SPI_CFFEXInvestorSettleFile 'F' +///投资者代码编码方式 +#define THOST_FTDC_SPI_InvestorIDType 'a' +///休眠户最高权益 +#define THOST_FTDC_SPI_FreezeMaxReMain 'r' +///手续费相关操作实时上场开关 +#define THOST_FTDC_SPI_IsSync 'A' +///解除开仓权限限制 +#define THOST_FTDC_SPI_RelieveOpenLimit 'O' +///是否规范用户才能休眠 +#define THOST_FTDC_SPI_IsStandardFreeze 'X' +///郑商所是否开放所有品种套保交易 +#define THOST_FTDC_SPI_CZCENormalProductHedge 'B' + +typedef char TThostFtdcSystemParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeParamIDType是一个交易系统参数代码类型 +///////////////////////////////////////////////////////////////////////// +///系统加密算法 +#define THOST_FTDC_TPID_EncryptionStandard 'E' +///系统风险算法 +#define THOST_FTDC_TPID_RiskMode 'R' +///系统风险算法是否全局 0-否 1-是 +#define THOST_FTDC_TPID_RiskModeGlobal 'G' +///密码加密算法 +#define THOST_FTDC_TPID_modeEncode 'P' +///价格小数位数参数 +#define THOST_FTDC_TPID_tickMode 'T' +///用户最大会话数 +#define THOST_FTDC_TPID_SingleUserSessionMaxNum 'S' +///最大连续登录失败数 +#define THOST_FTDC_TPID_LoginFailMaxNum 'L' +///是否强制认证 +#define THOST_FTDC_TPID_IsAuthForce 'A' +///是否冻结证券持仓 +#define THOST_FTDC_TPID_IsPosiFreeze 'F' +///是否限仓 +#define THOST_FTDC_TPID_IsPosiLimit 'M' +///郑商所询价时间间隔 +#define THOST_FTDC_TPID_ForQuoteTimeInterval 'Q' +///是否期货限仓 +#define THOST_FTDC_TPID_IsFuturePosiLimit 'B' +///是否期货下单频率限制 +#define THOST_FTDC_TPID_IsFutureOrderFreq 'C' +///行权冻结是否计算盈利 +#define THOST_FTDC_TPID_IsExecOrderProfit 'H' +///银期开户是否验证开户银行卡号是否是预留银行账户 +#define THOST_FTDC_TPID_IsCheckBankAcc 'I' +///弱密码最后修改日期 +#define THOST_FTDC_TPID_PasswordDeadLine 'J' +///强密码校验 +#define THOST_FTDC_TPID_IsStrongPassword 'K' +///自有资金质押比 +#define THOST_FTDC_TPID_BalanceMorgage 'a' +///最小密码长度 +#define THOST_FTDC_TPID_MinPwdLen 'O' +///IP当日最大登陆失败次数 +#define THOST_FTDC_TPID_LoginFailMaxNumForIP 'U' +///密码有效期 +#define THOST_FTDC_TPID_PasswordPeriod 'V' + +typedef char TThostFtdcTradeParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementParamValueType是一个参数代码值类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettlementParamValueType[256]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCounterIDType是一个计数器代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCounterIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorGroupNameType是一个投资者分组名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorGroupNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrandCodeType是一个牌号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrandCodeType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWarehouseType是一个仓库类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWarehouseType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductDateType是一个产期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProductDateType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcGradeType是一个等级类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcGradeType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClassifyType是一个类别类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClassifyType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionType是一个货位类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPositionType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcYieldlyType是一个产地类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcYieldlyType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWeightType是一个公定重量类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWeightType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSubEntryFundNoType是一个分项资金流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSubEntryFundNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileIDType是一个文件标识类型 +///////////////////////////////////////////////////////////////////////// +///资金数据 +#define THOST_FTDC_FI_SettlementFund 'F' +///成交数据 +#define THOST_FTDC_FI_Trade 'T' +///投资者持仓数据 +#define THOST_FTDC_FI_InvestorPosition 'P' +///投资者分项资金数据 +#define THOST_FTDC_FI_SubEntryFund 'O' +///组合持仓数据 +#define THOST_FTDC_FI_CZCECombinationPos 'C' +///上报保证金监控中心数据 +#define THOST_FTDC_FI_CSRCData 'R' +///郑商所平仓了结数据 +#define THOST_FTDC_FI_CZCEClose 'L' +///郑商所非平仓了结数据 +#define THOST_FTDC_FI_CZCENoClose 'N' +///持仓明细数据 +#define THOST_FTDC_FI_PositionDtl 'D' +///期权执行文件 +#define THOST_FTDC_FI_OptionStrike 'S' +///结算价比对文件 +#define THOST_FTDC_FI_SettlementPriceComparison 'M' +///上期所非持仓变动明细 +#define THOST_FTDC_FI_NonTradePosChange 'B' + +typedef char TThostFtdcFileIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileNameType是一个文件名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFileNameType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileTypeType是一个文件上传类型类型 +///////////////////////////////////////////////////////////////////////// +///结算 +#define THOST_FTDC_FUT_Settlement '0' +///核对 +#define THOST_FTDC_FUT_Check '1' + +typedef char TThostFtdcFileTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileFormatType是一个文件格式类型 +///////////////////////////////////////////////////////////////////////// +///文本文件(.txt) +#define THOST_FTDC_FFT_Txt '0' +///压缩文件(.zip) +#define THOST_FTDC_FFT_Zip '1' +///DBF文件(.dbf) +#define THOST_FTDC_FFT_DBF '2' + +typedef char TThostFtdcFileFormatType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileUploadStatusType是一个文件状态类型 +///////////////////////////////////////////////////////////////////////// +///上传成功 +#define THOST_FTDC_FUS_SucceedUpload '1' +///上传失败 +#define THOST_FTDC_FUS_FailedUpload '2' +///导入成功 +#define THOST_FTDC_FUS_SucceedLoad '3' +///导入部分成功 +#define THOST_FTDC_FUS_PartSucceedLoad '4' +///导入失败 +#define THOST_FTDC_FUS_FailedLoad '5' + +typedef char TThostFtdcFileUploadStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferDirectionType是一个移仓方向类型 +///////////////////////////////////////////////////////////////////////// +///移出 +#define THOST_FTDC_TD_Out '0' +///移入 +#define THOST_FTDC_TD_In '1' + +typedef char TThostFtdcTransferDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUploadModeType是一个上传文件类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUploadModeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAccountIDType是一个投资者帐号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAccountIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankFlagType是一个银行统一标识类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankFlagType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccountType是一个银行账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankAccountType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenNameType是一个银行账户的开户人名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOpenNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenBankType是一个银行账户的开户行类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOpenBankType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankNameType是一个银行名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPublishPathType是一个发布路径类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPublishPathType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperatorIDType是一个操作员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperatorIDType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMonthCountType是一个月份数量类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcMonthCountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdvanceMonthArrayType是一个月份提前数组类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAdvanceMonthArrayType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateExprType是一个日期表达式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateExprType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentIDExprType是一个合约代码表达式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentIDExprType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentNameExprType是一个合约名称表达式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentNameExprType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSpecialCreateRuleType是一个特殊的创建规则类型 +///////////////////////////////////////////////////////////////////////// +///没有特殊创建规则 +#define THOST_FTDC_SC_NoSpecialRule '0' +///不包含春节 +#define THOST_FTDC_SC_NoSpringFestival '1' + +typedef char TThostFtdcSpecialCreateRuleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBasisPriceTypeType是一个挂牌基准价类型类型 +///////////////////////////////////////////////////////////////////////// +///上一合约结算价 +#define THOST_FTDC_IPT_LastSettlement '1' +///上一合约收盘价 +#define THOST_FTDC_IPT_LaseClose '2' + +typedef char TThostFtdcBasisPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductLifePhaseType是一个产品生命周期状态类型 +///////////////////////////////////////////////////////////////////////// +///活跃 +#define THOST_FTDC_PLP_Active '1' +///不活跃 +#define THOST_FTDC_PLP_NonActive '2' +///注销 +#define THOST_FTDC_PLP_Canceled '3' + +typedef char TThostFtdcProductLifePhaseType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDeliveryModeType是一个交割方式类型 +///////////////////////////////////////////////////////////////////////// +///现金交割 +#define THOST_FTDC_DM_CashDeliv '1' +///实物交割 +#define THOST_FTDC_DM_CommodityDeliv '2' + +typedef char TThostFtdcDeliveryModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLogLevelType是一个日志级别类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLogLevelType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessNameType是一个存储过程名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProcessNameType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperationMemoType是一个操作摘要类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperationMemoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundIOTypeType是一个出入金类型类型 +///////////////////////////////////////////////////////////////////////// +///出入金 +#define THOST_FTDC_FIOT_FundIO '1' +///银期转帐 +#define THOST_FTDC_FIOT_Transfer '2' +///银期换汇 +#define THOST_FTDC_FIOT_SwapCurrency '3' + +typedef char TThostFtdcFundIOTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundTypeType是一个资金类型类型 +///////////////////////////////////////////////////////////////////////// +///银行存款 +#define THOST_FTDC_FT_Deposite '1' +///分项资金 +#define THOST_FTDC_FT_ItemFund '2' +///公司调整 +#define THOST_FTDC_FT_Company '3' +///资金内转 +#define THOST_FTDC_FT_InnerTransfer '4' + +typedef char TThostFtdcFundTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundDirectionType是一个出入金方向类型 +///////////////////////////////////////////////////////////////////////// +///入金 +#define THOST_FTDC_FD_In '1' +///出金 +#define THOST_FTDC_FD_Out '2' + +typedef char TThostFtdcFundDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundStatusType是一个资金状态类型 +///////////////////////////////////////////////////////////////////////// +///已录入 +#define THOST_FTDC_FS_Record '1' +///已复核 +#define THOST_FTDC_FS_Check '2' +///已冲销 +#define THOST_FTDC_FS_Charge '3' + +typedef char TThostFtdcFundStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillNoType是一个票据号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBillNoType[15]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillNameType是一个票据名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBillNameType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPublishStatusType是一个发布状态类型 +///////////////////////////////////////////////////////////////////////// +///未发布 +#define THOST_FTDC_PS_None '1' +///正在发布 +#define THOST_FTDC_PS_Publishing '2' +///已发布 +#define THOST_FTDC_PS_Published '3' + +typedef char TThostFtdcPublishStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueIDType是一个枚举值代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueIDType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueTypeType是一个枚举值类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueTypeType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueLabelType是一个枚举值名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueLabelType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueResultType是一个枚举值结果类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueResultType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemStatusType是一个系统状态类型 +///////////////////////////////////////////////////////////////////////// +///不活跃 +#define THOST_FTDC_ES_NonActive '1' +///启动 +#define THOST_FTDC_ES_Startup '2' +///交易开始初始化 +#define THOST_FTDC_ES_Initialize '3' +///交易完成初始化 +#define THOST_FTDC_ES_Initialized '4' +///收市开始 +#define THOST_FTDC_ES_Close '5' +///收市完成 +#define THOST_FTDC_ES_Closed '6' +///结算 +#define THOST_FTDC_ES_Settlement '7' + +typedef char TThostFtdcSystemStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementStatusType是一个结算状态类型 +///////////////////////////////////////////////////////////////////////// +///初始 +#define THOST_FTDC_STS_Initialize '0' +///结算中 +#define THOST_FTDC_STS_Settlementing '1' +///已结算 +#define THOST_FTDC_STS_Settlemented '2' +///结算完成 +#define THOST_FTDC_STS_Finished '3' + +typedef char TThostFtdcSettlementStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRangeIntTypeType是一个限定值类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRangeIntTypeType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRangeIntFromType是一个限定值下限类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRangeIntFromType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRangeIntToType是一个限定值上限类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRangeIntToType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionIDType是一个功能代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionIDType[25]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionValueCodeType是一个功能编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionValueCodeType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionNameType是一个功能名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRoleIDType是一个角色编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRoleIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRoleNameType是一个角色名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRoleNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDescriptionType是一个描述类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDescriptionType[401]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombineIDType是一个组合编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombineIDType[25]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombineTypeType是一个组合类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombineTypeType[25]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorTypeType是一个投资者类型类型 +///////////////////////////////////////////////////////////////////////// +///自然人 +#define THOST_FTDC_CT_Person '0' +///法人 +#define THOST_FTDC_CT_Company '1' +///投资基金 +#define THOST_FTDC_CT_Fund '2' +///特殊法人 +#define THOST_FTDC_CT_SpecialOrgan '3' +///资管户 +#define THOST_FTDC_CT_Asset '4' + +typedef char TThostFtdcInvestorTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerTypeType是一个经纪公司类型类型 +///////////////////////////////////////////////////////////////////////// +///交易会员 +#define THOST_FTDC_BT_Trade '0' +///交易结算会员 +#define THOST_FTDC_BT_TradeSettle '1' + +typedef char TThostFtdcBrokerTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskLevelType是一个风险等级类型 +///////////////////////////////////////////////////////////////////////// +///低风险客户 +#define THOST_FTDC_FAS_Low '1' +///普通客户 +#define THOST_FTDC_FAS_Normal '2' +///关注客户 +#define THOST_FTDC_FAS_Focus '3' +///风险客户 +#define THOST_FTDC_FAS_Risk '4' + +typedef char TThostFtdcRiskLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFeeAcceptStyleType是一个手续费收取方式类型 +///////////////////////////////////////////////////////////////////////// +///按交易收取 +#define THOST_FTDC_FAS_ByTrade '1' +///按交割收取 +#define THOST_FTDC_FAS_ByDeliv '2' +///不收 +#define THOST_FTDC_FAS_None '3' +///按指定手续费收取 +#define THOST_FTDC_FAS_FixFee '4' + +typedef char TThostFtdcFeeAcceptStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPasswordTypeType是一个密码类型类型 +///////////////////////////////////////////////////////////////////////// +///交易密码 +#define THOST_FTDC_PWDT_Trade '1' +///资金密码 +#define THOST_FTDC_PWDT_Account '2' + +typedef char TThostFtdcPasswordTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAlgorithmType是一个盈亏算法类型 +///////////////////////////////////////////////////////////////////////// +///浮盈浮亏都计算 +#define THOST_FTDC_AG_All '1' +///浮盈不计,浮亏计 +#define THOST_FTDC_AG_OnlyLost '2' +///浮盈计,浮亏不计 +#define THOST_FTDC_AG_OnlyGain '3' +///浮盈浮亏都不计算 +#define THOST_FTDC_AG_None '4' + +typedef char TThostFtdcAlgorithmType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIncludeCloseProfitType是一个是否包含平仓盈利类型 +///////////////////////////////////////////////////////////////////////// +///包含平仓盈利 +#define THOST_FTDC_ICP_Include '0' +///不包含平仓盈利 +#define THOST_FTDC_ICP_NotInclude '2' + +typedef char TThostFtdcIncludeCloseProfitType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAllWithoutTradeType是一个是否受可提比例限制类型 +///////////////////////////////////////////////////////////////////////// +///无仓无成交不受可提比例限制 +#define THOST_FTDC_AWT_Enable '0' +///受可提比例限制 +#define THOST_FTDC_AWT_Disable '2' +///无仓不受可提比例限制 +#define THOST_FTDC_AWT_NoHoldEnable '3' + +typedef char TThostFtdcAllWithoutTradeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommentType是一个盈亏算法说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommentType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVersionType是一个版本号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcVersionType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeCodeType是一个交易代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeDateType是一个交易日期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeDateType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeTimeType是一个交易时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeTimeType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSerialType是一个发起方流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeSerialType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSerialNoType是一个发起方流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTradeSerialNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureIDType是一个期货公司代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankIDType是一个银行代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankIDType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankBrchIDType是一个银行分中心代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankBrchIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankBranchIDType是一个分中心代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankBranchIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperNoType是一个交易柜员类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperNoType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDeviceIDType是一个渠道标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDeviceIDType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRecordNumType是一个记录数类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRecordNumType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccountType是一个期货资金账号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureAccountType[22]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFuturePwdFlagType是一个资金密码核对标志类型 +///////////////////////////////////////////////////////////////////////// +///不核对 +#define THOST_FTDC_FPWD_UnCheck '0' +///核对 +#define THOST_FTDC_FPWD_Check '1' + +typedef char TThostFtdcFuturePwdFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferTypeType是一个银期转账类型类型 +///////////////////////////////////////////////////////////////////////// +///银行转期货 +#define THOST_FTDC_TT_BankToFuture '0' +///期货转银行 +#define THOST_FTDC_TT_FutureToBank '1' + +typedef char TThostFtdcTransferTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccPwdType是一个期货资金密码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureAccPwdType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyCodeType是一个币种类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencyCodeType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRetCodeType是一个响应代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRetCodeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRetInfoType是一个响应信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRetInfoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeAmtType是一个银行总余额类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeAmtType[20]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUseAmtType是一个银行可用余额类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUseAmtType[20]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFetchAmtType是一个银行可取余额类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFetchAmtType[20]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferValidFlagType是一个转账有效标志类型 +///////////////////////////////////////////////////////////////////////// +///无效或失败 +#define THOST_FTDC_TVF_Invalid '0' +///有效 +#define THOST_FTDC_TVF_Valid '1' +///冲正 +#define THOST_FTDC_TVF_Reverse '2' + +typedef char TThostFtdcTransferValidFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCertCodeType是一个证件号码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCertCodeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReasonType是一个事由类型 +///////////////////////////////////////////////////////////////////////// +///错单 +#define THOST_FTDC_RN_CD '0' +///资金在途 +#define THOST_FTDC_RN_ZT '1' +///其它 +#define THOST_FTDC_RN_QT '2' + +typedef char TThostFtdcReasonType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundProjectIDType是一个资金项目编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFundProjectIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSexType是一个性别类型 +///////////////////////////////////////////////////////////////////////// +///未知 +#define THOST_FTDC_SEX_None '0' +///男 +#define THOST_FTDC_SEX_Man '1' +///女 +#define THOST_FTDC_SEX_Woman '2' + +typedef char TThostFtdcSexType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProfessionType是一个职业类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProfessionType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNationalType是一个国籍类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNationalType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProvinceType是一个省类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProvinceType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRegionType是一个区类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRegionType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCountryType是一个国家类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCountryType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLicenseNOType是一个营业执照类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLicenseNOType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCompanyTypeType是一个企业性质类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCompanyTypeType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessScopeType是一个经营范围类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBusinessScopeType[1001]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCapitalCurrencyType是一个注册资本币种类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCapitalCurrencyType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserTypeType是一个用户类型类型 +///////////////////////////////////////////////////////////////////////// +///投资者 +#define THOST_FTDC_UT_Investor '0' +///操作员 +#define THOST_FTDC_UT_Operator '1' +///管理员 +#define THOST_FTDC_UT_SuperUser '2' + +typedef char TThostFtdcUserTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBranchIDType是一个营业部编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBranchIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateTypeType是一个费率类型类型 +///////////////////////////////////////////////////////////////////////// +///保证金率 +#define THOST_FTDC_RATETYPE_MarginRate '2' + +typedef char TThostFtdcRateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNoteTypeType是一个通知类型类型 +///////////////////////////////////////////////////////////////////////// +///交易结算单 +#define THOST_FTDC_NOTETYPE_TradeSettleBill '1' +///交易结算月报 +#define THOST_FTDC_NOTETYPE_TradeSettleMonth '2' +///追加保证金通知书 +#define THOST_FTDC_NOTETYPE_CallMarginNotes '3' +///强行平仓通知书 +#define THOST_FTDC_NOTETYPE_ForceCloseNotes '4' +///成交通知书 +#define THOST_FTDC_NOTETYPE_TradeNotes '5' +///交割通知书 +#define THOST_FTDC_NOTETYPE_DelivNotes '6' + +typedef char TThostFtdcNoteTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementStyleType是一个结算单方式类型 +///////////////////////////////////////////////////////////////////////// +///逐日盯市 +#define THOST_FTDC_SBS_Day '1' +///逐笔对冲 +#define THOST_FTDC_SBS_Volume '2' + +typedef char TThostFtdcSettlementStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerDNSType是一个域名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerDNSType[256]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSentenceType是一个语句类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSentenceType[501]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementBillTypeType是一个结算单类型类型 +///////////////////////////////////////////////////////////////////////// +///日报 +#define THOST_FTDC_ST_Day '0' +///月报 +#define THOST_FTDC_ST_Month '1' + +typedef char TThostFtdcSettlementBillTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserRightTypeType是一个客户权限类型类型 +///////////////////////////////////////////////////////////////////////// +///登录 +#define THOST_FTDC_URT_Logon '1' +///银期转帐 +#define THOST_FTDC_URT_Transfer '2' +///邮寄结算单 +#define THOST_FTDC_URT_EMail '3' +///传真结算单 +#define THOST_FTDC_URT_Fax '4' +///条件单 +#define THOST_FTDC_URT_ConditionOrder '5' + +typedef char TThostFtdcUserRightTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarginPriceTypeType是一个保证金价格类型类型 +///////////////////////////////////////////////////////////////////////// +///昨结算价 +#define THOST_FTDC_MPT_PreSettlementPrice '1' +///最新价 +#define THOST_FTDC_MPT_SettlementPrice '2' +///成交均价 +#define THOST_FTDC_MPT_AveragePrice '3' +///开仓价 +#define THOST_FTDC_MPT_OpenPrice '4' + +typedef char TThostFtdcMarginPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillGenStatusType是一个结算单生成状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成 +#define THOST_FTDC_BGS_None '0' +///生成中 +#define THOST_FTDC_BGS_NoGenerated '1' +///已生成 +#define THOST_FTDC_BGS_Generated '2' + +typedef char TThostFtdcBillGenStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAlgoTypeType是一个算法类型类型 +///////////////////////////////////////////////////////////////////////// +///持仓处理算法 +#define THOST_FTDC_AT_HandlePositionAlgo '1' +///寻找保证金率算法 +#define THOST_FTDC_AT_FindMarginRateAlgo '2' + +typedef char TThostFtdcAlgoTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandlePositionAlgoIDType是一个持仓处理算法编号类型 +///////////////////////////////////////////////////////////////////////// +///基本 +#define THOST_FTDC_HPA_Base '1' +///大连商品交易所 +#define THOST_FTDC_HPA_DCE '2' +///郑州商品交易所 +#define THOST_FTDC_HPA_CZCE '3' + +typedef char TThostFtdcHandlePositionAlgoIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFindMarginRateAlgoIDType是一个寻找保证金率算法编号类型 +///////////////////////////////////////////////////////////////////////// +///基本 +#define THOST_FTDC_FMRA_Base '1' +///大连商品交易所 +#define THOST_FTDC_FMRA_DCE '2' +///郑州商品交易所 +#define THOST_FTDC_FMRA_CZCE '3' + +typedef char TThostFtdcFindMarginRateAlgoIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandleTradingAccountAlgoIDType是一个资金处理算法编号类型 +///////////////////////////////////////////////////////////////////////// +///基本 +#define THOST_FTDC_HTAA_Base '1' +///大连商品交易所 +#define THOST_FTDC_HTAA_DCE '2' +///郑州商品交易所 +#define THOST_FTDC_HTAA_CZCE '3' + +typedef char TThostFtdcHandleTradingAccountAlgoIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPersonTypeType是一个联系人类型类型 +///////////////////////////////////////////////////////////////////////// +///指定下单人 +#define THOST_FTDC_PST_Order '1' +///开户授权人 +#define THOST_FTDC_PST_Open '2' +///资金调拨人 +#define THOST_FTDC_PST_Fund '3' +///结算单确认人 +#define THOST_FTDC_PST_Settlement '4' +///法人 +#define THOST_FTDC_PST_Company '5' +///法人代表 +#define THOST_FTDC_PST_Corporation '6' +///投资者联系人 +#define THOST_FTDC_PST_LinkMan '7' +///分户管理资产负责人 +#define THOST_FTDC_PST_Ledger '8' +///托(保)管人 +#define THOST_FTDC_PST_Trustee '9' +///托(保)管机构法人代表 +#define THOST_FTDC_PST_TrusteeCorporation 'A' +///托(保)管机构开户授权人 +#define THOST_FTDC_PST_TrusteeOpen 'B' +///托(保)管机构联系人 +#define THOST_FTDC_PST_TrusteeContact 'C' +///境外自然人参考证件 +#define THOST_FTDC_PST_ForeignerRefer 'D' +///法人代表参考证件 +#define THOST_FTDC_PST_CorporationRefer 'E' + +typedef char TThostFtdcPersonTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryInvestorRangeType是一个查询范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_QIR_All '1' +///查询分类 +#define THOST_FTDC_QIR_Group '2' +///单一投资者 +#define THOST_FTDC_QIR_Single '3' + +typedef char TThostFtdcQueryInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorRiskStatusType是一个投资者风险状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_IRS_Normal '1' +///警告 +#define THOST_FTDC_IRS_Warn '2' +///追保 +#define THOST_FTDC_IRS_Call '3' +///强平 +#define THOST_FTDC_IRS_Force '4' +///异常 +#define THOST_FTDC_IRS_Exception '5' + +typedef char TThostFtdcInvestorRiskStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLegIDType是一个单腿编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLegIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLegMultipleType是一个单腿乘数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLegMultipleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcImplyLevelType是一个派生层数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcImplyLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearAccountType是一个结算账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearAccountType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganNOType是一个结算账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganNOType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearbarchIDType是一个结算账户联行号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearbarchIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserEventTypeType是一个用户事件类型类型 +///////////////////////////////////////////////////////////////////////// +///登录 +#define THOST_FTDC_UET_Login '1' +///登出 +#define THOST_FTDC_UET_Logout '2' +///交易成功 +#define THOST_FTDC_UET_Trading '3' +///交易失败 +#define THOST_FTDC_UET_TradingError '4' +///修改密码 +#define THOST_FTDC_UET_UpdatePassword '5' +///客户端认证 +#define THOST_FTDC_UET_Authenticate '6' +///其他 +#define THOST_FTDC_UET_Other '9' + +typedef char TThostFtdcUserEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserEventInfoType是一个用户事件信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserEventInfoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCloseStyleType是一个平仓方式类型 +///////////////////////////////////////////////////////////////////////// +///先开先平 +#define THOST_FTDC_ICS_Close '0' +///先平今再平昨 +#define THOST_FTDC_ICS_CloseToday '1' + +typedef char TThostFtdcCloseStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStatModeType是一个统计方式类型 +///////////////////////////////////////////////////////////////////////// +///---- +#define THOST_FTDC_SM_Non '0' +///按合约统计 +#define THOST_FTDC_SM_Instrument '1' +///按产品统计 +#define THOST_FTDC_SM_Product '2' +///按投资者统计 +#define THOST_FTDC_SM_Investor '3' + +typedef char TThostFtdcStatModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParkedOrderStatusType是一个预埋单状态类型 +///////////////////////////////////////////////////////////////////////// +///未发送 +#define THOST_FTDC_PAOS_NotSend '1' +///已发送 +#define THOST_FTDC_PAOS_Send '2' +///已删除 +#define THOST_FTDC_PAOS_Deleted '3' + +typedef char TThostFtdcParkedOrderStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParkedOrderIDType是一个预埋报单编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParkedOrderIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParkedOrderActionIDType是一个预埋撤单编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParkedOrderActionIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirDealStatusType是一个处理状态类型 +///////////////////////////////////////////////////////////////////////// +///正在处理 +#define THOST_FTDC_VDS_Dealing '1' +///处理成功 +#define THOST_FTDC_VDS_DeaclSucceed '2' + +typedef char TThostFtdcVirDealStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrgSystemIDType是一个原有系统代码类型 +///////////////////////////////////////////////////////////////////////// +///综合交易平台 +#define THOST_FTDC_ORGS_Standard '0' +///易盛系统 +#define THOST_FTDC_ORGS_ESunny '1' +///金仕达V6系统 +#define THOST_FTDC_ORGS_KingStarV6 '2' + +typedef char TThostFtdcOrgSystemIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirTradeStatusType是一个交易状态类型 +///////////////////////////////////////////////////////////////////////// +///正常处理中 +#define THOST_FTDC_VTS_NaturalDeal '0' +///成功结束 +#define THOST_FTDC_VTS_SucceedEnd '1' +///失败结束 +#define THOST_FTDC_VTS_FailedEND '2' +///异常中 +#define THOST_FTDC_VTS_Exception '3' +///已人工异常处理 +#define THOST_FTDC_VTS_ManualDeal '4' +///通讯异常 ,请人工处理 +#define THOST_FTDC_VTS_MesException '5' +///系统出错,请人工处理 +#define THOST_FTDC_VTS_SysException '6' + +typedef char TThostFtdcVirTradeStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirBankAccTypeType是一个银行帐户类型类型 +///////////////////////////////////////////////////////////////////////// +///存折 +#define THOST_FTDC_VBAT_BankBook '1' +///储蓄卡 +#define THOST_FTDC_VBAT_BankCard '2' +///信用卡 +#define THOST_FTDC_VBAT_CreditCard '3' + +typedef char TThostFtdcVirBankAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirementStatusType是一个银行帐户类型类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_VMS_Natural '0' +///销户 +#define THOST_FTDC_VMS_Canceled '9' + +typedef char TThostFtdcVirementStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirementAvailAbilityType是一个有效标志类型 +///////////////////////////////////////////////////////////////////////// +///未确认 +#define THOST_FTDC_VAA_NoAvailAbility '0' +///有效 +#define THOST_FTDC_VAA_AvailAbility '1' +///冲正 +#define THOST_FTDC_VAA_Repeal '2' + +typedef char TThostFtdcVirementAvailAbilityType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirementTradeCodeType是一个交易代码类型 +///////////////////////////////////////////////////////////////////////// +///银行发起银行资金转期货 +#define THOST_FTDC_VTC_BankBankToFuture '102001' +///银行发起期货资金转银行 +#define THOST_FTDC_VTC_BankFutureToBank '102002' +///期货发起银行资金转期货 +#define THOST_FTDC_VTC_FutureBankToFuture '202001' +///期货发起期货资金转银行 +#define THOST_FTDC_VTC_FutureFutureToBank '202002' + +typedef char TThostFtdcVirementTradeCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPhotoTypeNameType是一个影像类型名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPhotoTypeNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPhotoTypeIDType是一个影像类型代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPhotoTypeIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPhotoNameType是一个影像名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPhotoNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTopicIDType是一个主题代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTopicIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReportTypeIDType是一个交易报告类型标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcReportTypeIDType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCharacterIDType是一个交易特征代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCharacterIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLParamIDType是一个参数代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLParamIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInvestorTypeType是一个投资者类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInvestorTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLIdCardTypeType是一个证件类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLIdCardTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTradeDirectType是一个资金进出方向类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTradeDirectType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTradeModelType是一个资金进出方式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTradeModelType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLParamIDType是一个参数代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLParamIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLOpParamValueType是一个业务参数代码值类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcAMLOpParamValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCustomerCardTypeType是一个客户身份证件/证明文件类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLCustomerCardTypeType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInstitutionNameType是一个金融机构网点名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInstitutionNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLDistrictIDType是一个金融机构网点所在地区行政区划代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLDistrictIDType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLRelationShipType是一个金融机构网点与大额交易的关系类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLRelationShipType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInstitutionTypeType是一个金融机构网点代码类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInstitutionTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInstitutionIDType是一个金融机构网点代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInstitutionIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLAccountTypeType是一个账户类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLAccountTypeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTradingTypeType是一个交易方式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTradingTypeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTransactClassType是一个涉外收支交易分类与代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTransactClassType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCapitalIOType是一个资金收付标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLCapitalIOType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLSiteType是一个交易地点类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLSiteType[10]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCapitalPurposeType是一个资金用途类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLCapitalPurposeType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLReportTypeType是一个报文类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLReportTypeType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLSerialNoType是一个编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLSerialNoType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLStatusType是一个状态类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLStatusType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLGenStatusType是一个Aml生成方式类型 +///////////////////////////////////////////////////////////////////////// +///程序生成 +#define THOST_FTDC_GEN_Program '0' +///人工生成 +#define THOST_FTDC_GEN_HandWork '1' + +typedef char TThostFtdcAMLGenStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLSeqCodeType是一个业务标识号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLSeqCodeType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLFileNameType是一个AML文件名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLFileNameType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLMoneyType是一个反洗钱资金类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcAMLMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLFileAmountType是一个反洗钱资金类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcAMLFileAmountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFMMCKeyType是一个密钥类型(保证金监管)类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCFMMCKeyType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFMMCTokenType是一个令牌类型(保证金监管)类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCFMMCTokenType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFMMCKeyKindType是一个动态密钥类别(保证金监管)类型 +///////////////////////////////////////////////////////////////////////// +///主动请求更新 +#define THOST_FTDC_CFMMCKK_REQUEST 'R' +///CFMMC自动更新 +#define THOST_FTDC_CFMMCKK_AUTO 'A' +///CFMMC手动更新 +#define THOST_FTDC_CFMMCKK_MANUAL 'M' + +typedef char TThostFtdcCFMMCKeyKindType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLReportNameType是一个报文名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLReportNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIndividualNameType是一个个人姓名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIndividualNameType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyIDType是一个币种代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencyIDType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCustNumberType是一个客户编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCustNumberType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganCodeType是一个机构编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganCodeType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganNameType是一个机构名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSuperOrganCodeType是一个上级机构编码,即期货公司总部、银行总行类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSuperOrganCodeType[12]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSubBranchIDType是一个分支机构类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSubBranchIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSubBranchNameType是一个分支机构名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSubBranchNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBranchNetCodeType是一个机构网点号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBranchNetCodeType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBranchNetNameType是一个机构网点名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBranchNetNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganFlagType是一个机构标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankCodingForFutureType是一个银行对期货公司的编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankCodingForFutureType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankReturnCodeType是一个银行对返回码的定义类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankReturnCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPlateReturnCodeType是一个银期转帐平台对返回码的定义类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPlateReturnCodeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankSubBranchIDType是一个银行分支机构编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankSubBranchIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureBranchIDType是一个期货分支机构编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureBranchIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnCodeType是一个返回代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcReturnCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperatorCodeType是一个操作员类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperatorCodeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearDepIDType是一个机构结算帐户机构号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearDepIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearBrchIDType是一个机构结算帐户联行号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearBrchIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearNameType是一个机构结算帐户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccountNameType是一个银行帐户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankAccountNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvDepIDType是一个机构投资人账号机构号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvDepIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvBrchIDType是一个机构投资人联行号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvBrchIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMessageFormatVersionType是一个信息格式版本类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMessageFormatVersionType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDigestType是一个摘要类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDigestType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthenticDataType是一个认证数据类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthenticDataType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPasswordKeyType是一个密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPasswordKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccountNameType是一个期货帐户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureAccountNameType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMobilePhoneType是一个手机类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMobilePhoneType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureMainKeyType是一个期货公司主密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureMainKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureWorkKeyType是一个期货公司工作密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureWorkKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureTransKeyType是一个期货公司传输密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureTransKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankMainKeyType是一个银行主密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankMainKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankWorkKeyType是一个银行工作密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankWorkKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankTransKeyType是一个银行传输密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankTransKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankServerDescriptionType是一个银行服务器描述信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankServerDescriptionType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAddInfoType是一个附加信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAddInfoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDescrInfoForReturnCodeType是一个返回码描述类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDescrInfoForReturnCodeType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCountryCodeType是一个国家代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCountryCodeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSerialType是一个流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPlateSerialType是一个平台流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcPlateSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankSerialType是一个银行流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankSerialType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCorrectSerialType是一个被冲正交易流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCorrectSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureSerialType是一个期货公司流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFutureSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplicationIDType是一个应用标识类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcApplicationIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankProxyIDType是一个银行代理标识类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcBankProxyIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTCoreIDType是一个银期转帐核心系统标识类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFBTCoreIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServerPortType是一个服务端口号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcServerPortType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRepealedTimesType是一个已经冲正次数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRepealedTimesType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRepealTimeIntervalType是一个冲正时间间隔类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRepealTimeIntervalType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTotalTimesType是一个每日累计转帐次数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTotalTimesType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTRequestIDType是一个请求ID类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFBTRequestIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTIDType是一个交易ID类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeAmountType是一个交易金额(元)类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcTradeAmountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCustFeeType是一个应收客户费用(元)类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCustFeeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureFeeType是一个应收期货公司费用(元)类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcFutureFeeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSingleMaxAmtType是一个单笔最高限额类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcSingleMaxAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSingleMinAmtType是一个单笔最低限额类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcSingleMinAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTotalAmtType是一个每日累计转帐额度类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcTotalAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCertificationTypeType是一个证件类型类型 +///////////////////////////////////////////////////////////////////////// +///身份证 +#define THOST_FTDC_CFT_IDCard '0' +///护照 +#define THOST_FTDC_CFT_Passport '1' +///军官证 +#define THOST_FTDC_CFT_OfficerIDCard '2' +///士兵证 +#define THOST_FTDC_CFT_SoldierIDCard '3' +///回乡证 +#define THOST_FTDC_CFT_HomeComingCard '4' +///户口簿 +#define THOST_FTDC_CFT_HouseholdRegister '5' +///营业执照号 +#define THOST_FTDC_CFT_LicenseNo '6' +///组织机构代码证 +#define THOST_FTDC_CFT_InstitutionCodeCard '7' +///临时营业执照号 +#define THOST_FTDC_CFT_TempLicenseNo '8' +///民办非企业登记证书 +#define THOST_FTDC_CFT_NoEnterpriseLicenseNo '9' +///其他证件 +#define THOST_FTDC_CFT_OtherCard 'x' +///主管部门批文 +#define THOST_FTDC_CFT_SuperDepAgree 'a' + +typedef char TThostFtdcCertificationTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileBusinessCodeType是一个文件业务功能类型 +///////////////////////////////////////////////////////////////////////// +///其他 +#define THOST_FTDC_FBC_Others '0' +///转账交易明细对账 +#define THOST_FTDC_FBC_TransferDetails '1' +///客户账户状态对账 +#define THOST_FTDC_FBC_CustAccStatus '2' +///账户类交易明细对账 +#define THOST_FTDC_FBC_AccountTradeDetails '3' +///期货账户信息变更明细对账 +#define THOST_FTDC_FBC_FutureAccountChangeInfoDetails '4' +///客户资金台账余额明细对账 +#define THOST_FTDC_FBC_CustMoneyDetail '5' +///客户销户结息明细对账 +#define THOST_FTDC_FBC_CustCancelAccountInfo '6' +///客户资金余额对账结果 +#define THOST_FTDC_FBC_CustMoneyResult '7' +///其它对账异常结果文件 +#define THOST_FTDC_FBC_OthersExceptionResult '8' +///客户结息净额明细 +#define THOST_FTDC_FBC_CustInterestNetMoneyDetails '9' +///客户资金交收明细 +#define THOST_FTDC_FBC_CustMoneySendAndReceiveDetails 'a' +///法人存管银行资金交收汇总 +#define THOST_FTDC_FBC_CorporationMoneyTotal 'b' +///主体间资金交收汇总 +#define THOST_FTDC_FBC_MainbodyMoneyTotal 'c' +///总分平衡监管数据 +#define THOST_FTDC_FBC_MainPartMonitorData 'd' +///存管银行备付金余额 +#define THOST_FTDC_FBC_PreparationMoney 'e' +///协办存管银行资金监管数据 +#define THOST_FTDC_FBC_BankMoneyMonitorData 'f' + +typedef char TThostFtdcFileBusinessCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCashExchangeCodeType是一个汇钞标志类型 +///////////////////////////////////////////////////////////////////////// +///汇 +#define THOST_FTDC_CEC_Exchange '1' +///钞 +#define THOST_FTDC_CEC_Cash '2' + +typedef char TThostFtdcCashExchangeCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcYesNoIndicatorType是一个是或否标识类型 +///////////////////////////////////////////////////////////////////////// +///是 +#define THOST_FTDC_YNI_Yes '0' +///否 +#define THOST_FTDC_YNI_No '1' + +typedef char TThostFtdcYesNoIndicatorType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBanlanceTypeType是一个余额类型类型 +///////////////////////////////////////////////////////////////////////// +///当前余额 +#define THOST_FTDC_BLT_CurrentMoney '0' +///可用余额 +#define THOST_FTDC_BLT_UsableMoney '1' +///可取余额 +#define THOST_FTDC_BLT_FetchableMoney '2' +///冻结余额 +#define THOST_FTDC_BLT_FreezeMoney '3' + +typedef char TThostFtdcBanlanceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcGenderType是一个性别类型 +///////////////////////////////////////////////////////////////////////// +///未知状态 +#define THOST_FTDC_GD_Unknown '0' +///男 +#define THOST_FTDC_GD_Male '1' +///女 +#define THOST_FTDC_GD_Female '2' + +typedef char TThostFtdcGenderType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFeePayFlagType是一个费用支付标志类型 +///////////////////////////////////////////////////////////////////////// +///由受益方支付费用 +#define THOST_FTDC_FPF_BEN '0' +///由发送方支付费用 +#define THOST_FTDC_FPF_OUR '1' +///由发送方支付发起的费用,受益方支付接受的费用 +#define THOST_FTDC_FPF_SHA '2' + +typedef char TThostFtdcFeePayFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPassWordKeyTypeType是一个密钥类型类型 +///////////////////////////////////////////////////////////////////////// +///交换密钥 +#define THOST_FTDC_PWKT_ExchangeKey '0' +///密码密钥 +#define THOST_FTDC_PWKT_PassWordKey '1' +///MAC密钥 +#define THOST_FTDC_PWKT_MACKey '2' +///报文密钥 +#define THOST_FTDC_PWKT_MessageKey '3' + +typedef char TThostFtdcPassWordKeyTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTPassWordTypeType是一个密码类型类型 +///////////////////////////////////////////////////////////////////////// +///查询 +#define THOST_FTDC_PWT_Query '0' +///取款 +#define THOST_FTDC_PWT_Fetch '1' +///转帐 +#define THOST_FTDC_PWT_Transfer '2' +///交易 +#define THOST_FTDC_PWT_Trade '3' + +typedef char TThostFtdcFBTPassWordTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTEncryModeType是一个加密方式类型 +///////////////////////////////////////////////////////////////////////// +///不加密 +#define THOST_FTDC_EM_NoEncry '0' +///DES +#define THOST_FTDC_EM_DES '1' +///3DES +#define THOST_FTDC_EM_3DES '2' + +typedef char TThostFtdcFBTEncryModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankRepealFlagType是一个银行冲正标志类型 +///////////////////////////////////////////////////////////////////////// +///银行无需自动冲正 +#define THOST_FTDC_BRF_BankNotNeedRepeal '0' +///银行待自动冲正 +#define THOST_FTDC_BRF_BankWaitingRepeal '1' +///银行已自动冲正 +#define THOST_FTDC_BRF_BankBeenRepealed '2' + +typedef char TThostFtdcBankRepealFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerRepealFlagType是一个期商冲正标志类型 +///////////////////////////////////////////////////////////////////////// +///期商无需自动冲正 +#define THOST_FTDC_BRORF_BrokerNotNeedRepeal '0' +///期商待自动冲正 +#define THOST_FTDC_BRORF_BrokerWaitingRepeal '1' +///期商已自动冲正 +#define THOST_FTDC_BRORF_BrokerBeenRepealed '2' + +typedef char TThostFtdcBrokerRepealFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstitutionTypeType是一个机构类别类型 +///////////////////////////////////////////////////////////////////////// +///银行 +#define THOST_FTDC_TS_Bank '0' +///期商 +#define THOST_FTDC_TS_Future '1' +///券商 +#define THOST_FTDC_TS_Store '2' + +typedef char TThostFtdcInstitutionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLastFragmentType是一个最后分片标志类型 +///////////////////////////////////////////////////////////////////////// +///是最后分片 +#define THOST_FTDC_LF_Yes '0' +///不是最后分片 +#define THOST_FTDC_LF_No '1' + +typedef char TThostFtdcLastFragmentType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccStatusType是一个银行账户状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_BAS_Normal '0' +///冻结 +#define THOST_FTDC_BAS_Freeze '1' +///挂失 +#define THOST_FTDC_BAS_ReportLoss '2' + +typedef char TThostFtdcBankAccStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMoneyAccountStatusType是一个资金账户状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_MAS_Normal '0' +///销户 +#define THOST_FTDC_MAS_Cancel '1' + +typedef char TThostFtdcMoneyAccountStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcManageStatusType是一个存管状态类型 +///////////////////////////////////////////////////////////////////////// +///指定存管 +#define THOST_FTDC_MSS_Point '0' +///预指定 +#define THOST_FTDC_MSS_PrePoint '1' +///撤销指定 +#define THOST_FTDC_MSS_CancelPoint '2' + +typedef char TThostFtdcManageStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemTypeType是一个应用系统类型类型 +///////////////////////////////////////////////////////////////////////// +///银期转帐 +#define THOST_FTDC_SYT_FutureBankTransfer '0' +///银证转帐 +#define THOST_FTDC_SYT_StockBankTransfer '1' +///第三方存管 +#define THOST_FTDC_SYT_TheThirdPartStore '2' + +typedef char TThostFtdcSystemTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTxnEndFlagType是一个银期转帐划转结果标志类型 +///////////////////////////////////////////////////////////////////////// +///正常处理中 +#define THOST_FTDC_TEF_NormalProcessing '0' +///成功结束 +#define THOST_FTDC_TEF_Success '1' +///失败结束 +#define THOST_FTDC_TEF_Failed '2' +///异常中 +#define THOST_FTDC_TEF_Abnormal '3' +///已人工异常处理 +#define THOST_FTDC_TEF_ManualProcessedForException '4' +///通讯异常 ,请人工处理 +#define THOST_FTDC_TEF_CommuFailedNeedManualProcess '5' +///系统出错,请人工处理 +#define THOST_FTDC_TEF_SysErrorNeedManualProcess '6' + +typedef char TThostFtdcTxnEndFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessStatusType是一个银期转帐服务处理状态类型 +///////////////////////////////////////////////////////////////////////// +///未处理 +#define THOST_FTDC_PSS_NotProcess '0' +///开始处理 +#define THOST_FTDC_PSS_StartProcess '1' +///处理完成 +#define THOST_FTDC_PSS_Finished '2' + +typedef char TThostFtdcProcessStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCustTypeType是一个客户类型类型 +///////////////////////////////////////////////////////////////////////// +///自然人 +#define THOST_FTDC_CUSTT_Person '0' +///机构户 +#define THOST_FTDC_CUSTT_Institution '1' + +typedef char TThostFtdcCustTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTTransferDirectionType是一个银期转帐方向类型 +///////////////////////////////////////////////////////////////////////// +///入金,银行转期货 +#define THOST_FTDC_FBTTD_FromBankToFuture '1' +///出金,期货转银行 +#define THOST_FTDC_FBTTD_FromFutureToBank '2' + +typedef char TThostFtdcFBTTransferDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenOrDestroyType是一个开销户类别类型 +///////////////////////////////////////////////////////////////////////// +///开户 +#define THOST_FTDC_OOD_Open '1' +///销户 +#define THOST_FTDC_OOD_Destroy '0' + +typedef char TThostFtdcOpenOrDestroyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAvailabilityFlagType是一个有效标志类型 +///////////////////////////////////////////////////////////////////////// +///未确认 +#define THOST_FTDC_AVAF_Invalid '0' +///有效 +#define THOST_FTDC_AVAF_Valid '1' +///冲正 +#define THOST_FTDC_AVAF_Repeal '2' + +typedef char TThostFtdcAvailabilityFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganTypeType是一个机构类型类型 +///////////////////////////////////////////////////////////////////////// +///银行代理 +#define THOST_FTDC_OT_Bank '1' +///交易前置 +#define THOST_FTDC_OT_Future '2' +///银期转帐平台管理 +#define THOST_FTDC_OT_PlateForm '9' + +typedef char TThostFtdcOrganTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganLevelType是一个机构级别类型 +///////////////////////////////////////////////////////////////////////// +///银行总行或期商总部 +#define THOST_FTDC_OL_HeadQuarters '1' +///银行分中心或期货公司营业部 +#define THOST_FTDC_OL_Branch '2' + +typedef char TThostFtdcOrganLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProtocalIDType是一个协议类型类型 +///////////////////////////////////////////////////////////////////////// +///期商协议 +#define THOST_FTDC_PID_FutureProtocal '0' +///工行协议 +#define THOST_FTDC_PID_ICBCProtocal '1' +///农行协议 +#define THOST_FTDC_PID_ABCProtocal '2' +///中国银行协议 +#define THOST_FTDC_PID_CBCProtocal '3' +///建行协议 +#define THOST_FTDC_PID_CCBProtocal '4' +///交行协议 +#define THOST_FTDC_PID_BOCOMProtocal '5' +///银期转帐平台协议 +#define THOST_FTDC_PID_FBTPlateFormProtocal 'X' + +typedef char TThostFtdcProtocalIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcConnectModeType是一个套接字连接方式类型 +///////////////////////////////////////////////////////////////////////// +///短连接 +#define THOST_FTDC_CM_ShortConnect '0' +///长连接 +#define THOST_FTDC_CM_LongConnect '1' + +typedef char TThostFtdcConnectModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncModeType是一个套接字通信方式类型 +///////////////////////////////////////////////////////////////////////// +///异步 +#define THOST_FTDC_SRM_ASync '0' +///同步 +#define THOST_FTDC_SRM_Sync '1' + +typedef char TThostFtdcSyncModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccTypeType是一个银行帐号类型类型 +///////////////////////////////////////////////////////////////////////// +///银行存折 +#define THOST_FTDC_BAT_BankBook '1' +///储蓄卡 +#define THOST_FTDC_BAT_SavingCard '2' +///信用卡 +#define THOST_FTDC_BAT_CreditCard '3' + +typedef char TThostFtdcBankAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccTypeType是一个期货公司帐号类型类型 +///////////////////////////////////////////////////////////////////////// +///银行存折 +#define THOST_FTDC_FAT_BankBook '1' +///储蓄卡 +#define THOST_FTDC_FAT_SavingCard '2' +///信用卡 +#define THOST_FTDC_FAT_CreditCard '3' + +typedef char TThostFtdcFutureAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganStatusType是一个接入机构状态类型 +///////////////////////////////////////////////////////////////////////// +///启用 +#define THOST_FTDC_OS_Ready '0' +///签到 +#define THOST_FTDC_OS_CheckIn '1' +///签退 +#define THOST_FTDC_OS_CheckOut '2' +///对帐文件到达 +#define THOST_FTDC_OS_CheckFileArrived '3' +///对帐 +#define THOST_FTDC_OS_CheckDetail '4' +///日终清理 +#define THOST_FTDC_OS_DayEndClean '5' +///注销 +#define THOST_FTDC_OS_Invalid '9' + +typedef char TThostFtdcOrganStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCCBFeeModeType是一个建行收费模式类型 +///////////////////////////////////////////////////////////////////////// +///按金额扣收 +#define THOST_FTDC_CCBFM_ByAmount '1' +///按月扣收 +#define THOST_FTDC_CCBFM_ByMonth '2' + +typedef char TThostFtdcCCBFeeModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommApiTypeType是一个通讯API类型类型 +///////////////////////////////////////////////////////////////////////// +///客户端 +#define THOST_FTDC_CAPIT_Client '1' +///服务端 +#define THOST_FTDC_CAPIT_Server '2' +///交易系统的UserApi +#define THOST_FTDC_CAPIT_UserApi '3' + +typedef char TThostFtdcCommApiTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServiceIDType是一个服务编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcServiceIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServiceLineNoType是一个服务线路编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcServiceLineNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServiceNameType是一个服务名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcServiceNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLinkStatusType是一个连接状态类型 +///////////////////////////////////////////////////////////////////////// +///已经连接 +#define THOST_FTDC_LS_Connected '1' +///没有连接 +#define THOST_FTDC_LS_Disconnected '2' + +typedef char TThostFtdcLinkStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommApiPointerType是一个通讯API指针类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCommApiPointerType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPwdFlagType是一个密码核对标志类型 +///////////////////////////////////////////////////////////////////////// +///不核对 +#define THOST_FTDC_BPWDF_NoCheck '0' +///明文核对 +#define THOST_FTDC_BPWDF_BlankCheck '1' +///密文核对 +#define THOST_FTDC_BPWDF_EncryptCheck '2' + +typedef char TThostFtdcPwdFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSecuAccTypeType是一个期货帐号类型类型 +///////////////////////////////////////////////////////////////////////// +///资金帐号 +#define THOST_FTDC_SAT_AccountID '1' +///资金卡号 +#define THOST_FTDC_SAT_CardID '2' +///上海股东帐号 +#define THOST_FTDC_SAT_SHStockholderID '3' +///深圳股东帐号 +#define THOST_FTDC_SAT_SZStockholderID '4' + +typedef char TThostFtdcSecuAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferStatusType是一个转账交易状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_TRFS_Normal '0' +///被冲正 +#define THOST_FTDC_TRFS_Repealed '1' + +typedef char TThostFtdcTransferStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSponsorTypeType是一个发起方类型 +///////////////////////////////////////////////////////////////////////// +///期商 +#define THOST_FTDC_SPTYPE_Broker '0' +///银行 +#define THOST_FTDC_SPTYPE_Bank '1' + +typedef char TThostFtdcSponsorTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReqRspTypeType是一个请求响应类别类型 +///////////////////////////////////////////////////////////////////////// +///请求 +#define THOST_FTDC_REQRSP_Request '0' +///响应 +#define THOST_FTDC_REQRSP_Response '1' + +typedef char TThostFtdcReqRspTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTUserEventTypeType是一个银期转帐用户事件类型类型 +///////////////////////////////////////////////////////////////////////// +///签到 +#define THOST_FTDC_FBTUET_SignIn '0' +///银行转期货 +#define THOST_FTDC_FBTUET_FromBankToFuture '1' +///期货转银行 +#define THOST_FTDC_FBTUET_FromFutureToBank '2' +///开户 +#define THOST_FTDC_FBTUET_OpenAccount '3' +///销户 +#define THOST_FTDC_FBTUET_CancelAccount '4' +///变更银行账户 +#define THOST_FTDC_FBTUET_ChangeAccount '5' +///冲正银行转期货 +#define THOST_FTDC_FBTUET_RepealFromBankToFuture '6' +///冲正期货转银行 +#define THOST_FTDC_FBTUET_RepealFromFutureToBank '7' +///查询银行账户 +#define THOST_FTDC_FBTUET_QueryBankAccount '8' +///查询期货账户 +#define THOST_FTDC_FBTUET_QueryFutureAccount '9' +///签退 +#define THOST_FTDC_FBTUET_SignOut 'A' +///密钥同步 +#define THOST_FTDC_FBTUET_SyncKey 'B' +///预约开户 +#define THOST_FTDC_FBTUET_ReserveOpenAccount 'C' +///撤销预约开户 +#define THOST_FTDC_FBTUET_CancelReserveOpenAccount 'D' +///预约开户确认 +#define THOST_FTDC_FBTUET_ReserveOpenAccountConfirm 'E' +///其他 +#define THOST_FTDC_FBTUET_Other 'Z' + +typedef char TThostFtdcFBTUserEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankIDByBankType是一个银行自己的编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankIDByBankType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankOperNoType是一个银行操作员号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankOperNoType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankCustNoType是一个银行客户号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankCustNoType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDBOPSeqNoType是一个递增的序列号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDBOPSeqNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTableNameType是一个FBT表名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTableNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPKNameType是一个FBT表操作主键名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPKNameType[201]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPKValueType是一个FBT表操作主键值类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPKValueType[501]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDBOperationType是一个记录操作类型类型 +///////////////////////////////////////////////////////////////////////// +///插入 +#define THOST_FTDC_DBOP_Insert '0' +///更新 +#define THOST_FTDC_DBOP_Update '1' +///删除 +#define THOST_FTDC_DBOP_Delete '2' + +typedef char TThostFtdcDBOperationType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncFlagType是一个同步标记类型 +///////////////////////////////////////////////////////////////////////// +///已同步 +#define THOST_FTDC_SYNF_Yes '0' +///未同步 +#define THOST_FTDC_SYNF_No '1' + +typedef char TThostFtdcSyncFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTargetIDType是一个同步目标编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTargetIDType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncTypeType是一个同步类型类型 +///////////////////////////////////////////////////////////////////////// +///一次同步 +#define THOST_FTDC_SYNT_OneOffSync '0' +///定时同步 +#define THOST_FTDC_SYNT_TimerSync '1' +///定时完全同步 +#define THOST_FTDC_SYNT_TimerFullSync '2' + +typedef char TThostFtdcSyncTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBETimeType是一个各种换汇时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBETimeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBankNoType是一个换汇银行行号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBankNoType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBECertNoType是一个换汇凭证号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBECertNoType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExDirectionType是一个换汇方向类型 +///////////////////////////////////////////////////////////////////////// +///结汇 +#define THOST_FTDC_FBEDIR_Settlement '0' +///售汇 +#define THOST_FTDC_FBEDIR_Sale '1' + +typedef char TThostFtdcExDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBankAccountType是一个换汇银行账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBankAccountType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBankAccountNameType是一个换汇银行账户名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBankAccountNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEAmtType是一个各种换汇金额类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcFBEAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBusinessTypeType是一个换汇业务类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBusinessTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEPostScriptType是一个换汇附言类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEPostScriptType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBERemarkType是一个换汇备注类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBERemarkType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExRateType是一个换汇汇率类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcExRateType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEResultFlagType是一个换汇成功标志类型 +///////////////////////////////////////////////////////////////////////// +///成功 +#define THOST_FTDC_FBERES_Success '0' +///账户余额不足 +#define THOST_FTDC_FBERES_InsufficientBalance '1' +///交易结果未知 +#define THOST_FTDC_FBERES_UnknownTrading '8' +///失败 +#define THOST_FTDC_FBERES_Fail 'x' + +typedef char TThostFtdcFBEResultFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBERtnMsgType是一个换汇返回信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBERtnMsgType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEExtendMsgType是一个换汇扩展信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEExtendMsgType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBusinessSerialType是一个换汇记账流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBusinessSerialType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBESystemSerialType是一个换汇流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBESystemSerialType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBETotalExCntType是一个换汇交易总笔数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFBETotalExCntType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEExchStatusType是一个换汇交易状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_FBEES_Normal '0' +///交易重发 +#define THOST_FTDC_FBEES_ReExchange '1' + +typedef char TThostFtdcFBEExchStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEFileFlagType是一个换汇文件标志类型 +///////////////////////////////////////////////////////////////////////// +///数据包 +#define THOST_FTDC_FBEFG_DataPackage '0' +///文件 +#define THOST_FTDC_FBEFG_File '1' + +typedef char TThostFtdcFBEFileFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEAlreadyTradeType是一个换汇已交易标志类型 +///////////////////////////////////////////////////////////////////////// +///未交易 +#define THOST_FTDC_FBEAT_NotTrade '0' +///已交易 +#define THOST_FTDC_FBEAT_Trade '1' + +typedef char TThostFtdcFBEAlreadyTradeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEOpenBankType是一个换汇账户开户行类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEOpenBankType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEUserEventTypeType是一个银期换汇用户事件类型类型 +///////////////////////////////////////////////////////////////////////// +///签到 +#define THOST_FTDC_FBEUET_SignIn '0' +///换汇 +#define THOST_FTDC_FBEUET_Exchange '1' +///换汇重发 +#define THOST_FTDC_FBEUET_ReExchange '2' +///银行账户查询 +#define THOST_FTDC_FBEUET_QueryBankAccount '3' +///换汇明细查询 +#define THOST_FTDC_FBEUET_QueryExchDetial '4' +///换汇汇总查询 +#define THOST_FTDC_FBEUET_QueryExchSummary '5' +///换汇汇率查询 +#define THOST_FTDC_FBEUET_QueryExchRate '6' +///对账文件通知 +#define THOST_FTDC_FBEUET_CheckBankAccount '7' +///签退 +#define THOST_FTDC_FBEUET_SignOut '8' +///其他 +#define THOST_FTDC_FBEUET_Other 'Z' + +typedef char TThostFtdcFBEUserEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEFileNameType是一个换汇相关文件名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEFileNameType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBatchSerialType是一个换汇批次号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBatchSerialType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEReqFlagType是一个换汇发送标志类型 +///////////////////////////////////////////////////////////////////////// +///未处理 +#define THOST_FTDC_FBERF_UnProcessed '0' +///等待发送 +#define THOST_FTDC_FBERF_WaitSend '1' +///发送成功 +#define THOST_FTDC_FBERF_SendSuccess '2' +///发送失败 +#define THOST_FTDC_FBERF_SendFailed '3' +///等待重发 +#define THOST_FTDC_FBERF_WaitReSend '4' + +typedef char TThostFtdcFBEReqFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNotifyClassType是一个风险通知类型类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_NC_NOERROR '0' +///警示 +#define THOST_FTDC_NC_Warn '1' +///追保 +#define THOST_FTDC_NC_Call '2' +///强平 +#define THOST_FTDC_NC_Force '3' +///穿仓 +#define THOST_FTDC_NC_CHUANCANG '4' +///异常 +#define THOST_FTDC_NC_Exception '5' + +typedef char TThostFtdcNotifyClassType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskNofityInfoType是一个客户风险通知消息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRiskNofityInfoType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForceCloseSceneIdType是一个强平场景编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcForceCloseSceneIdType[24]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForceCloseTypeType是一个强平单类型类型 +///////////////////////////////////////////////////////////////////////// +///手工强平 +#define THOST_FTDC_FCT_Manual '0' +///单一投资者辅助强平 +#define THOST_FTDC_FCT_Single '1' +///批量投资者辅助强平 +#define THOST_FTDC_FCT_Group '2' + +typedef char TThostFtdcForceCloseTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentIDsType是一个多个产品代码,用+分隔,如cu+zn类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentIDsType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskNotifyMethodType是一个风险通知途径类型 +///////////////////////////////////////////////////////////////////////// +///系统通知 +#define THOST_FTDC_RNM_System '0' +///短信通知 +#define THOST_FTDC_RNM_SMS '1' +///邮件通知 +#define THOST_FTDC_RNM_EMail '2' +///人工通知 +#define THOST_FTDC_RNM_Manual '3' + +typedef char TThostFtdcRiskNotifyMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskNotifyStatusType是一个风险通知状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成 +#define THOST_FTDC_RNS_NotGen '0' +///已生成未发送 +#define THOST_FTDC_RNS_Generated '1' +///发送失败 +#define THOST_FTDC_RNS_SendError '2' +///已发送未接收 +#define THOST_FTDC_RNS_SendOk '3' +///已接收未确认 +#define THOST_FTDC_RNS_Received '4' +///已确认 +#define THOST_FTDC_RNS_Confirmed '5' + +typedef char TThostFtdcRiskNotifyStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskUserEventType是一个风控用户操作事件类型 +///////////////////////////////////////////////////////////////////////// +///导出数据 +#define THOST_FTDC_RUE_ExportData '0' + +typedef char TThostFtdcRiskUserEventType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParamIDType是一个参数代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParamNameType是一个参数名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParamNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParamValueType是一个参数值类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParamValueType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcConditionalOrderSortTypeType是一个条件单索引条件类型 +///////////////////////////////////////////////////////////////////////// +///使用最新价升序 +#define THOST_FTDC_COST_LastPriceAsc '0' +///使用最新价降序 +#define THOST_FTDC_COST_LastPriceDesc '1' +///使用卖价升序 +#define THOST_FTDC_COST_AskPriceAsc '2' +///使用卖价降序 +#define THOST_FTDC_COST_AskPriceDesc '3' +///使用买价升序 +#define THOST_FTDC_COST_BidPriceAsc '4' +///使用买价降序 +#define THOST_FTDC_COST_BidPriceDesc '5' + +typedef char TThostFtdcConditionalOrderSortTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSendTypeType是一个报送状态类型 +///////////////////////////////////////////////////////////////////////// +///未发送 +#define THOST_FTDC_UOAST_NoSend '0' +///已发送 +#define THOST_FTDC_UOAST_Sended '1' +///已生成 +#define THOST_FTDC_UOAST_Generated '2' +///报送失败 +#define THOST_FTDC_UOAST_SendFail '3' +///接收成功 +#define THOST_FTDC_UOAST_Success '4' +///接收失败 +#define THOST_FTDC_UOAST_Fail '5' +///取消报送 +#define THOST_FTDC_UOAST_Cancel '6' + +typedef char TThostFtdcSendTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientIDStatusType是一个交易编码状态类型 +///////////////////////////////////////////////////////////////////////// +///未申请 +#define THOST_FTDC_UOACS_NoApply '1' +///已提交申请 +#define THOST_FTDC_UOACS_Submited '2' +///已发送申请 +#define THOST_FTDC_UOACS_Sended '3' +///完成 +#define THOST_FTDC_UOACS_Success '4' +///拒绝 +#define THOST_FTDC_UOACS_Refuse '5' +///已撤销编码 +#define THOST_FTDC_UOACS_Cancel '6' + +typedef char TThostFtdcClientIDStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIndustryIDType是一个行业编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIndustryIDType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQuestionIDType是一个特有信息编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcQuestionIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQuestionContentType是一个特有信息说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcQuestionContentType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionIDType是一个选项编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOptionIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionContentType是一个选项说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOptionContentType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQuestionTypeType是一个特有信息类型类型 +///////////////////////////////////////////////////////////////////////// +///单选 +#define THOST_FTDC_QT_Radio '1' +///多选 +#define THOST_FTDC_QT_Option '2' +///填空 +#define THOST_FTDC_QT_Blank '3' + +typedef char TThostFtdcQuestionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessIDType是一个业务流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProcessIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSeqNoType是一个流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSeqNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAProcessStatusType是一个流程状态类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAProcessStatusType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessTypeType是一个流程功能类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProcessTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessTypeType是一个业务类型类型 +///////////////////////////////////////////////////////////////////////// +///请求 +#define THOST_FTDC_BT_Request '1' +///应答 +#define THOST_FTDC_BT_Response '2' +///通知 +#define THOST_FTDC_BT_Notice '3' + +typedef char TThostFtdcBusinessTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCfmmcReturnCodeType是一个监控中心返回码类型 +///////////////////////////////////////////////////////////////////////// +///成功 +#define THOST_FTDC_CRC_Success '0' +///该客户已经有流程在处理中 +#define THOST_FTDC_CRC_Working '1' +///监控中客户资料检查失败 +#define THOST_FTDC_CRC_InfoFail '2' +///监控中实名制检查失败 +#define THOST_FTDC_CRC_IDCardFail '3' +///其他错误 +#define THOST_FTDC_CRC_OtherFail '4' + +typedef char TThostFtdcCfmmcReturnCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExReturnCodeType是一个交易所返回码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcExReturnCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientTypeType是一个客户类型类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_CfMMCCT_All '0' +///个人 +#define THOST_FTDC_CfMMCCT_Person '1' +///单位 +#define THOST_FTDC_CfMMCCT_Company '2' +///其他 +#define THOST_FTDC_CfMMCCT_Other '3' +///特殊法人 +#define THOST_FTDC_CfMMCCT_SpecialOrgan '4' +///资管户 +#define THOST_FTDC_CfMMCCT_Asset '5' + +typedef char TThostFtdcClientTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeIDTypeType是一个交易所编号类型 +///////////////////////////////////////////////////////////////////////// +///上海期货交易所 +#define THOST_FTDC_EIDT_SHFE 'S' +///郑州商品交易所 +#define THOST_FTDC_EIDT_CZCE 'Z' +///大连商品交易所 +#define THOST_FTDC_EIDT_DCE 'D' +///中国金融期货交易所 +#define THOST_FTDC_EIDT_CFFEX 'J' +///上海国际能源交易中心股份有限公司 +#define THOST_FTDC_EIDT_INE 'N' + +typedef char TThostFtdcExchangeIDTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExClientIDTypeType是一个交易编码类型类型 +///////////////////////////////////////////////////////////////////////// +///套保 +#define THOST_FTDC_ECIDT_Hedge '1' +///套利 +#define THOST_FTDC_ECIDT_Arbitrage '2' +///投机 +#define THOST_FTDC_ECIDT_Speculation '3' + +typedef char TThostFtdcExClientIDTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientClassifyType是一个客户分类码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientClassifyType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAOrganTypeType是一个单位性质类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAOrganTypeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOACountryCodeType是一个国家代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOACountryCodeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAreaCodeType是一个区号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAreaCodeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFuturesIDType是一个监控中心为客户分配的代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFuturesIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffmcDateType是一个日期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffmcDateType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffmcTimeType是一个时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffmcTimeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNocIDType是一个组织机构代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNocIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUpdateFlagType是一个更新状态类型 +///////////////////////////////////////////////////////////////////////// +///未更新 +#define THOST_FTDC_UF_NoUpdate '0' +///更新全部信息成功 +#define THOST_FTDC_UF_Success '1' +///更新全部信息失败 +#define THOST_FTDC_UF_Fail '2' +///更新交易编码成功 +#define THOST_FTDC_UF_TCSuccess '3' +///更新交易编码失败 +#define THOST_FTDC_UF_TCFail '4' +///已丢弃 +#define THOST_FTDC_UF_Cancel '5' + +typedef char TThostFtdcUpdateFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplyOperateIDType是一个申请动作类型 +///////////////////////////////////////////////////////////////////////// +///开户 +#define THOST_FTDC_AOID_OpenInvestor '1' +///修改身份信息 +#define THOST_FTDC_AOID_ModifyIDCard '2' +///修改一般信息 +#define THOST_FTDC_AOID_ModifyNoIDCard '3' +///申请交易编码 +#define THOST_FTDC_AOID_ApplyTradingCode '4' +///撤销交易编码 +#define THOST_FTDC_AOID_CancelTradingCode '5' +///销户 +#define THOST_FTDC_AOID_CancelInvestor '6' +///账户休眠 +#define THOST_FTDC_AOID_FreezeAccount '8' +///激活休眠账户 +#define THOST_FTDC_AOID_ActiveFreezeAccount '9' + +typedef char TThostFtdcApplyOperateIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplyStatusIDType是一个申请状态类型 +///////////////////////////////////////////////////////////////////////// +///未补全 +#define THOST_FTDC_ASID_NoComplete '1' +///已提交 +#define THOST_FTDC_ASID_Submited '2' +///已审核 +#define THOST_FTDC_ASID_Checked '3' +///已拒绝 +#define THOST_FTDC_ASID_Refused '4' +///已删除 +#define THOST_FTDC_ASID_Deleted '5' + +typedef char TThostFtdcApplyStatusIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSendMethodType是一个发送方式类型 +///////////////////////////////////////////////////////////////////////// +///文件发送 +#define THOST_FTDC_UOASM_ByAPI '1' +///电子发送 +#define THOST_FTDC_UOASM_ByFile '2' + +typedef char TThostFtdcSendMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEventTypeType是一个业务操作类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEventTypeType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEventModeType是一个操作方法类型 +///////////////////////////////////////////////////////////////////////// +///增加 +#define THOST_FTDC_EvM_ADD '1' +///修改 +#define THOST_FTDC_EvM_UPDATE '2' +///删除 +#define THOST_FTDC_EvM_DELETE '3' +///复核 +#define THOST_FTDC_EvM_CHECK '4' +///复制 +#define THOST_FTDC_EvM_COPY '5' +///注销 +#define THOST_FTDC_EvM_CANCEL '6' +///冲销 +#define THOST_FTDC_EvM_Reverse '7' + +typedef char TThostFtdcEventModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAAutoSendType是一个统一开户申请自动发送类型 +///////////////////////////////////////////////////////////////////////// +///自动发送并接收 +#define THOST_FTDC_UOAA_ASR '1' +///自动发送,不自动接收 +#define THOST_FTDC_UOAA_ASNR '2' +///不自动发送,自动接收 +#define THOST_FTDC_UOAA_NSAR '3' +///不自动发送,也不自动接收 +#define THOST_FTDC_UOAA_NSR '4' + +typedef char TThostFtdcUOAAutoSendType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryDepthType是一个查询深度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcQueryDepthType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataCenterIDType是一个数据中心代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDataCenterIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFlowIDType是一个流程ID类型 +///////////////////////////////////////////////////////////////////////// +///投资者对应投资者组设置 +#define THOST_FTDC_EvM_InvestorGroupFlow '1' +///投资者手续费率设置 +#define THOST_FTDC_EvM_InvestorRate '2' +///投资者手续费率模板关系设置 +#define THOST_FTDC_EvM_InvestorCommRateModel '3' + +typedef char TThostFtdcFlowIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckLevelType是一个复核级别类型 +///////////////////////////////////////////////////////////////////////// +///零级复核 +#define THOST_FTDC_CL_Zero '0' +///一级复核 +#define THOST_FTDC_CL_One '1' +///二级复核 +#define THOST_FTDC_CL_Two '2' + +typedef char TThostFtdcCheckLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckNoType是一个操作次数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCheckNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckStatusType是一个复核级别类型 +///////////////////////////////////////////////////////////////////////// +///未复核 +#define THOST_FTDC_CHS_Init '0' +///复核中 +#define THOST_FTDC_CHS_Checking '1' +///已复核 +#define THOST_FTDC_CHS_Checked '2' +///拒绝 +#define THOST_FTDC_CHS_Refuse '3' +///作废 +#define THOST_FTDC_CHS_Cancel '4' + +typedef char TThostFtdcCheckStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUsedStatusType是一个生效状态类型 +///////////////////////////////////////////////////////////////////////// +///未生效 +#define THOST_FTDC_CHU_Unused '0' +///已生效 +#define THOST_FTDC_CHU_Used '1' +///生效失败 +#define THOST_FTDC_CHU_Fail '2' + +typedef char TThostFtdcUsedStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateTemplateNameType是一个模型名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRateTemplateNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyStringType是一个用于查询的投资属性字段类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPropertyStringType[2049]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAcountOriginType是一个账户来源类型 +///////////////////////////////////////////////////////////////////////// +///手工录入 +#define THOST_FTDC_BAO_ByAccProperty '0' +///银期转账 +#define THOST_FTDC_BAO_ByFBTransfer '1' + +typedef char TThostFtdcBankAcountOriginType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMonthBillTradeSumType是一个结算单月报成交汇总方式类型 +///////////////////////////////////////////////////////////////////////// +///同日同合约 +#define THOST_FTDC_MBTS_ByInstrument '0' +///同日同合约同价格 +#define THOST_FTDC_MBTS_ByDayInsPrc '1' +///同合约 +#define THOST_FTDC_MBTS_ByDayIns '2' + +typedef char TThostFtdcMonthBillTradeSumType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTTradeCodeEnumType是一个银期交易代码枚举类型 +///////////////////////////////////////////////////////////////////////// +///银行发起银行转期货 +#define THOST_FTDC_FTC_BankLaunchBankToBroker '102001' +///期货发起银行转期货 +#define THOST_FTDC_FTC_BrokerLaunchBankToBroker '202001' +///银行发起期货转银行 +#define THOST_FTDC_FTC_BankLaunchBrokerToBank '102002' +///期货发起期货转银行 +#define THOST_FTDC_FTC_BrokerLaunchBrokerToBank '202002' + +typedef char TThostFtdcFBTTradeCodeEnumType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateTemplateIDType是一个模型代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRateTemplateIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskRateType是一个风险度类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRiskRateType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimestampType是一个时间戳类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTimestampType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorIDRuleNameType是一个号段规则名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorIDRuleNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorIDRuleExprType是一个号段规则表达式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorIDRuleExprType[513]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLastDriftType是一个上次OTP漂移值类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLastDriftType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLastSuccessType是一个上次OTP成功值类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLastSuccessType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthKeyType是一个令牌密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthKeyType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSerialNumberType是一个序列号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSerialNumberType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPTypeType是一个动态令牌类型类型 +///////////////////////////////////////////////////////////////////////// +///无动态令牌 +#define THOST_FTDC_OTP_NONE '0' +///时间令牌 +#define THOST_FTDC_OTP_TOTP '1' + +typedef char TThostFtdcOTPTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPVendorsIDType是一个动态令牌提供商类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTPVendorsIDType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPVendorsNameType是一个动态令牌提供商名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTPVendorsNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPStatusType是一个动态令牌状态类型 +///////////////////////////////////////////////////////////////////////// +///未使用 +#define THOST_FTDC_OTPS_Unused '0' +///已使用 +#define THOST_FTDC_OTPS_Used '1' +///注销 +#define THOST_FTDC_OTPS_Disuse '2' + +typedef char TThostFtdcOTPStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerUserTypeType是一个经济公司用户类型类型 +///////////////////////////////////////////////////////////////////////// +///投资者 +#define THOST_FTDC_BUT_Investor '1' +///操作员 +#define THOST_FTDC_BUT_BrokerUser '2' + +typedef char TThostFtdcBrokerUserTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureTypeType是一个期货类型类型 +///////////////////////////////////////////////////////////////////////// +///商品期货 +#define THOST_FTDC_FUTT_Commodity '1' +///金融期货 +#define THOST_FTDC_FUTT_Financial '2' + +typedef char TThostFtdcFutureTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundEventTypeType是一个资金管理操作类型类型 +///////////////////////////////////////////////////////////////////////// +///转账限额 +#define THOST_FTDC_FET_Restriction '0' +///当日转账限额 +#define THOST_FTDC_FET_TodayRestriction '1' +///期商流水 +#define THOST_FTDC_FET_Transfer '2' +///资金冻结 +#define THOST_FTDC_FET_Credit '3' +///投资者可提资金比例 +#define THOST_FTDC_FET_InvestorWithdrawAlm '4' +///单个银行帐户转账限额 +#define THOST_FTDC_FET_BankRestriction '5' +///银期签约账户 +#define THOST_FTDC_FET_Accountregister '6' +///交易所出入金 +#define THOST_FTDC_FET_ExchangeFundIO '7' +///投资者出入金 +#define THOST_FTDC_FET_InvestorFundIO '8' + +typedef char TThostFtdcFundEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAccountSourceTypeType是一个资金账户来源类型 +///////////////////////////////////////////////////////////////////////// +///银期同步 +#define THOST_FTDC_AST_FBTransfer '0' +///手工录入 +#define THOST_FTDC_AST_ManualEntry '1' + +typedef char TThostFtdcAccountSourceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCodeSourceTypeType是一个交易编码来源类型 +///////////////////////////////////////////////////////////////////////// +///统一开户(已规范) +#define THOST_FTDC_CST_UnifyAccount '0' +///手工录入(未规范) +#define THOST_FTDC_CST_ManualEntry '1' + +typedef char TThostFtdcCodeSourceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserRangeType是一个操作员范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_UR_All '0' +///单一操作员 +#define THOST_FTDC_UR_Single '1' + +typedef char TThostFtdcUserRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimeSpanType是一个时间跨度类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTimeSpanType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcImportSequenceIDType是一个动态令牌导入批次编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcImportSequenceIDType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcByGroupType是一个交易统计表按客户统计方式类型 +///////////////////////////////////////////////////////////////////////// +///按投资者统计 +#define THOST_FTDC_BG_Investor '2' +///按类统计 +#define THOST_FTDC_BG_Group '1' + +typedef char TThostFtdcByGroupType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSumStatModeType是一个交易统计表按范围统计方式类型 +///////////////////////////////////////////////////////////////////////// +///按合约统计 +#define THOST_FTDC_TSSM_Instrument '1' +///按产品统计 +#define THOST_FTDC_TSSM_Product '2' +///按交易所统计 +#define THOST_FTDC_TSSM_Exchange '3' + +typedef char TThostFtdcTradeSumStatModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcComTypeType是一个组合成交类型类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcComTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserProductIDType是一个产品标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserProductIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserProductNameType是一个产品名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserProductNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserProductMemoType是一个产品说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserProductMemoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCCancelFlagType是一个新增或变更标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCCancelFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCDateType是一个日期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCDateType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCInvestorNameType是一个客户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCInvestorNameType[201]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCOpenInvestorNameType是一个客户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCOpenInvestorNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCInvestorIDType是一个客户代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCInvestorIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCIdentifiedCardNoType是一个证件号码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCIdentifiedCardNoType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCClientIDType是一个交易编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCClientIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCBankFlagType是一个银行标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCBankFlagType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCBankAccountType是一个银行账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCBankAccountType[23]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCOpenNameType是一个开户人类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCOpenNameType[401]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMemoType是一个说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCMemoType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTimeType是一个时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTimeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTradeIDType是一个成交流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTradeIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCExchangeInstIDType是一个合约代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCExchangeInstIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMortgageNameType是一个质押品名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCMortgageNameType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCReasonType是一个事由类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCReasonType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIsSettlementType是一个是否为非结算会员类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIsSettlementType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMoneyType是一个资金类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCSRCMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCPriceType是一个价格类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCSRCPriceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCOptionsTypeType是一个期权类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCOptionsTypeType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCStrikePriceType是一个执行价类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCSRCStrikePriceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTargetProductIDType是一个标的品种类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTargetProductIDType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTargetInstrIDType是一个标的合约类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTargetInstrIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommModelNameType是一个手续费率模板名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommModelNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommModelMemoType是一个手续费率模板备注类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommModelMemoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExprSetModeType是一个日期表达式设置类型类型 +///////////////////////////////////////////////////////////////////////// +///相对已有规则设置 +#define THOST_FTDC_ESM_Relative '1' +///典型设置 +#define THOST_FTDC_ESM_Typical '2' + +typedef char TThostFtdcExprSetModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateInvestorRangeType是一个投资者范围类型 +///////////////////////////////////////////////////////////////////////// +///公司标准 +#define THOST_FTDC_RIR_All '1' +///模板 +#define THOST_FTDC_RIR_Model '2' +///单一投资者 +#define THOST_FTDC_RIR_Single '3' + +typedef char TThostFtdcRateInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentBrokerIDType是一个代理经纪公司代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentBrokerIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDRIdentityIDType是一个交易中心代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDRIdentityIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDRIdentityNameType是一个交易中心名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDRIdentityNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDBLinkIDType是一个DBLink标识号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDBLinkIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncDataStatusType是一个主次用系统数据同步状态类型 +///////////////////////////////////////////////////////////////////////// +///未同步 +#define THOST_FTDC_SDS_Initialize '0' +///同步中 +#define THOST_FTDC_SDS_Settlementing '1' +///已同步 +#define THOST_FTDC_SDS_Settlemented '2' + +typedef char TThostFtdcSyncDataStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSourceType是一个成交来源类型 +///////////////////////////////////////////////////////////////////////// +///来自交易所普通回报 +#define THOST_FTDC_TSRC_NORMAL '0' +///来自查询 +#define THOST_FTDC_TSRC_QUERY '1' + +typedef char TThostFtdcTradeSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFlexStatModeType是一个产品合约统计方式类型 +///////////////////////////////////////////////////////////////////////// +///产品统计 +#define THOST_FTDC_FSM_Product '1' +///交易所统计 +#define THOST_FTDC_FSM_Exchange '2' +///统计所有 +#define THOST_FTDC_FSM_All '3' + +typedef char TThostFtdcFlexStatModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcByInvestorRangeType是一个投资者范围统计方式类型 +///////////////////////////////////////////////////////////////////////// +///属性统计 +#define THOST_FTDC_BIR_Property '1' +///统计所有 +#define THOST_FTDC_BIR_All '2' + +typedef char TThostFtdcByInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSRiskRateType是一个风险度类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSRiskRateType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceNo12Type是一个序号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSequenceNo12Type; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyInvestorRangeType是一个投资者范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_PIR_All '1' +///投资者属性 +#define THOST_FTDC_PIR_Property '2' +///单一投资者 +#define THOST_FTDC_PIR_Single '3' + +typedef char TThostFtdcPropertyInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileStatusType是一个文件状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成 +#define THOST_FTDC_FIS_NoCreate '0' +///已生成 +#define THOST_FTDC_FIS_Created '1' +///生成失败 +#define THOST_FTDC_FIS_Failed '2' + +typedef char TThostFtdcFileStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileGenStyleType是一个文件生成方式类型 +///////////////////////////////////////////////////////////////////////// +///下发 +#define THOST_FTDC_FGS_FileTransmit '0' +///生成 +#define THOST_FTDC_FGS_FileGen '1' + +typedef char TThostFtdcFileGenStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysOperModeType是一个系统日志操作方法类型 +///////////////////////////////////////////////////////////////////////// +///增加 +#define THOST_FTDC_SoM_Add '1' +///修改 +#define THOST_FTDC_SoM_Update '2' +///删除 +#define THOST_FTDC_SoM_Delete '3' +///复制 +#define THOST_FTDC_SoM_Copy '4' +///激活 +#define THOST_FTDC_SoM_AcTive '5' +///注销 +#define THOST_FTDC_SoM_CanCel '6' +///重置 +#define THOST_FTDC_SoM_ReSet '7' + +typedef char TThostFtdcSysOperModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysOperTypeType是一个系统日志操作类型类型 +///////////////////////////////////////////////////////////////////////// +///修改操作员密码 +#define THOST_FTDC_SoT_UpdatePassword '0' +///操作员组织架构关系 +#define THOST_FTDC_SoT_UserDepartment '1' +///角色管理 +#define THOST_FTDC_SoT_RoleManager '2' +///角色功能设置 +#define THOST_FTDC_SoT_RoleFunction '3' +///基础参数设置 +#define THOST_FTDC_SoT_BaseParam '4' +///设置操作员 +#define THOST_FTDC_SoT_SetUserID '5' +///用户角色设置 +#define THOST_FTDC_SoT_SetUserRole '6' +///用户IP限制 +#define THOST_FTDC_SoT_UserIpRestriction '7' +///组织架构管理 +#define THOST_FTDC_SoT_DepartmentManager '8' +///组织架构向查询分类复制 +#define THOST_FTDC_SoT_DepartmentCopy '9' +///交易编码管理 +#define THOST_FTDC_SoT_Tradingcode 'A' +///投资者状态维护 +#define THOST_FTDC_SoT_InvestorStatus 'B' +///投资者权限管理 +#define THOST_FTDC_SoT_InvestorAuthority 'C' +///属性设置 +#define THOST_FTDC_SoT_PropertySet 'D' +///重置投资者密码 +#define THOST_FTDC_SoT_ReSetInvestorPasswd 'E' +///投资者个性信息维护 +#define THOST_FTDC_SoT_InvestorPersonalityInfo 'F' + +typedef char TThostFtdcSysOperTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCDataQueyTypeType是一个上报数据查询类型类型 +///////////////////////////////////////////////////////////////////////// +///查询当前交易日报送的数据 +#define THOST_FTDC_CSRCQ_Current '0' +///查询历史报送的代理经纪公司的数据 +#define THOST_FTDC_CSRCQ_History '1' + +typedef char TThostFtdcCSRCDataQueyTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFreezeStatusType是一个休眠状态类型 +///////////////////////////////////////////////////////////////////////// +///活跃 +#define THOST_FTDC_FRS_Normal '1' +///休眠 +#define THOST_FTDC_FRS_Freeze '0' + +typedef char TThostFtdcFreezeStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStandardStatusType是一个规范状态类型 +///////////////////////////////////////////////////////////////////////// +///已规范 +#define THOST_FTDC_STST_Standard '0' +///未规范 +#define THOST_FTDC_STST_NonStandard '1' + +typedef char TThostFtdcStandardStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCFreezeStatusType是一个休眠状态类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCFreezeStatusType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRightParamTypeType是一个配置类型类型 +///////////////////////////////////////////////////////////////////////// +///休眠户 +#define THOST_FTDC_RPT_Freeze '1' +///激活休眠户 +#define THOST_FTDC_RPT_FreezeActive '2' +///开仓权限限制 +#define THOST_FTDC_RPT_OpenLimit '3' +///解除开仓权限限制 +#define THOST_FTDC_RPT_RelieveOpenLimit '4' + +typedef char TThostFtdcRightParamTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRightTemplateIDType是一个模板代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRightTemplateIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRightTemplateNameType是一个模板名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRightTemplateNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataStatusType是一个反洗钱审核表数据状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_AMLDS_Normal '0' +///已删除 +#define THOST_FTDC_AMLDS_Deleted '1' + +typedef char TThostFtdcDataStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCheckStatusType是一个审核状态类型 +///////////////////////////////////////////////////////////////////////// +///未复核 +#define THOST_FTDC_AMLCHS_Init '0' +///复核中 +#define THOST_FTDC_AMLCHS_Checking '1' +///已复核 +#define THOST_FTDC_AMLCHS_Checked '2' +///拒绝上报 +#define THOST_FTDC_AMLCHS_RefuseReport '3' + +typedef char TThostFtdcAMLCheckStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmlDateTypeType是一个日期类型类型 +///////////////////////////////////////////////////////////////////////// +///检查日期 +#define THOST_FTDC_AMLDT_DrawDay '0' +///发生日期 +#define THOST_FTDC_AMLDT_TouchDay '1' + +typedef char TThostFtdcAmlDateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmlCheckLevelType是一个审核级别类型 +///////////////////////////////////////////////////////////////////////// +///零级审核 +#define THOST_FTDC_AMLCL_CheckLevel0 '0' +///一级审核 +#define THOST_FTDC_AMLCL_CheckLevel1 '1' +///二级审核 +#define THOST_FTDC_AMLCL_CheckLevel2 '2' +///三级审核 +#define THOST_FTDC_AMLCL_CheckLevel3 '3' + +typedef char TThostFtdcAmlCheckLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmlCheckFlowType是一个反洗钱数据抽取审核流程类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAmlCheckFlowType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataTypeType是一个数据类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDataTypeType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExportFileTypeType是一个导出文件类型类型 +///////////////////////////////////////////////////////////////////////// +///CSV +#define THOST_FTDC_EFT_CSV '0' +///Excel +#define THOST_FTDC_EFT_EXCEL '1' +///DBF +#define THOST_FTDC_EFT_DBF '2' + +typedef char TThostFtdcExportFileTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerTypeType是一个结算配置类型类型 +///////////////////////////////////////////////////////////////////////// +///结算前准备 +#define THOST_FTDC_SMT_Before '1' +///结算 +#define THOST_FTDC_SMT_Settlement '2' +///结算后核对 +#define THOST_FTDC_SMT_After '3' +///结算后处理 +#define THOST_FTDC_SMT_Settlemented '4' + +typedef char TThostFtdcSettleManagerTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerIDType是一个结算配置代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettleManagerIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerNameType是一个结算配置名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettleManagerNameType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerLevelType是一个结算配置等级类型 +///////////////////////////////////////////////////////////////////////// +///必要 +#define THOST_FTDC_SML_Must '1' +///警告 +#define THOST_FTDC_SML_Alarm '2' +///提示 +#define THOST_FTDC_SML_Prompt '3' +///不检查 +#define THOST_FTDC_SML_Ignore '4' + +typedef char TThostFtdcSettleManagerLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerGroupType是一个模块分组类型 +///////////////////////////////////////////////////////////////////////// +///交易所核对 +#define THOST_FTDC_SMG_Exhcange '1' +///内部核对 +#define THOST_FTDC_SMG_ASP '2' +///上报数据核对 +#define THOST_FTDC_SMG_CSRC '3' + +typedef char TThostFtdcSettleManagerGroupType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckResultMemoType是一个核对结果说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCheckResultMemoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionUrlType是一个功能链接类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionUrlType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthInfoType是一个客户端认证信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthInfoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthCodeType是一个客户端认证码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthCodeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLimitUseTypeType是一个保值额度使用类型类型 +///////////////////////////////////////////////////////////////////////// +///可重复使用 +#define THOST_FTDC_LUT_Repeatable '1' +///不可重复使用 +#define THOST_FTDC_LUT_Unrepeatable '2' + +typedef char TThostFtdcLimitUseTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataResourceType是一个数据来源类型 +///////////////////////////////////////////////////////////////////////// +///本系统 +#define THOST_FTDC_DAR_Settle '1' +///交易所 +#define THOST_FTDC_DAR_Exchange '2' +///报送数据 +#define THOST_FTDC_DAR_CSRC '3' + +typedef char TThostFtdcDataResourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarginTypeType是一个保证金类型类型 +///////////////////////////////////////////////////////////////////////// +///交易所保证金率 +#define THOST_FTDC_MGT_ExchMarginRate '0' +///投资者保证金率 +#define THOST_FTDC_MGT_InstrMarginRate '1' +///投资者交易保证金率 +#define THOST_FTDC_MGT_InstrMarginRateTrade '2' + +typedef char TThostFtdcMarginTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcActiveTypeType是一个生效类型类型 +///////////////////////////////////////////////////////////////////////// +///仅当日生效 +#define THOST_FTDC_ACT_Intraday '1' +///长期生效 +#define THOST_FTDC_ACT_Long '2' + +typedef char TThostFtdcActiveTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarginRateTypeType是一个冲突保证金率类型类型 +///////////////////////////////////////////////////////////////////////// +///交易所保证金率 +#define THOST_FTDC_MRT_Exchange '1' +///投资者保证金率 +#define THOST_FTDC_MRT_Investor '2' +///投资者交易保证金率 +#define THOST_FTDC_MRT_InvestorTrade '3' + +typedef char TThostFtdcMarginRateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBackUpStatusType是一个备份数据状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成备份数据 +#define THOST_FTDC_BUS_UnBak '0' +///备份数据生成中 +#define THOST_FTDC_BUS_BakUp '1' +///已生成备份数据 +#define THOST_FTDC_BUS_BakUped '2' +///备份数据失败 +#define THOST_FTDC_BUS_BakFail '3' + +typedef char TThostFtdcBackUpStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInitSettlementType是一个结算初始化状态类型 +///////////////////////////////////////////////////////////////////////// +///结算初始化未开始 +#define THOST_FTDC_SIS_UnInitialize '0' +///结算初始化中 +#define THOST_FTDC_SIS_Initialize '1' +///结算初始化完成 +#define THOST_FTDC_SIS_Initialized '2' + +typedef char TThostFtdcInitSettlementType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReportStatusType是一个报表数据生成状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成报表数据 +#define THOST_FTDC_SRS_NoCreate '0' +///报表数据生成中 +#define THOST_FTDC_SRS_Create '1' +///已生成报表数据 +#define THOST_FTDC_SRS_Created '2' +///生成报表数据失败 +#define THOST_FTDC_SRS_CreateFail '3' + +typedef char TThostFtdcReportStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSaveStatusType是一个数据归档状态类型 +///////////////////////////////////////////////////////////////////////// +///归档未完成 +#define THOST_FTDC_SSS_UnSaveData '0' +///归档完成 +#define THOST_FTDC_SSS_SaveDatad '1' + +typedef char TThostFtdcSaveStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettArchiveStatusType是一个结算确认数据归档状态类型 +///////////////////////////////////////////////////////////////////////// +///未归档数据 +#define THOST_FTDC_SAS_UnArchived '0' +///数据归档中 +#define THOST_FTDC_SAS_Archiving '1' +///已归档数据 +#define THOST_FTDC_SAS_Archived '2' +///归档数据失败 +#define THOST_FTDC_SAS_ArchiveFail '3' + +typedef char TThostFtdcSettArchiveStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCTPTypeType是一个CTP交易系统类型类型 +///////////////////////////////////////////////////////////////////////// +///未知类型 +#define THOST_FTDC_CTPT_Unkown '0' +///主中心 +#define THOST_FTDC_CTPT_MainCenter '1' +///备中心 +#define THOST_FTDC_CTPT_BackUp '2' + +typedef char TThostFtdcCTPTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcToolIDType是一个工具代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcToolIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcToolNameType是一个工具名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcToolNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCloseDealTypeType是一个平仓处理类型类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_CDT_Normal '0' +///投机平仓优先 +#define THOST_FTDC_CDT_SpecFirst '1' + +typedef char TThostFtdcCloseDealTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMortgageFundUseRangeType是一个货币质押资金可用范围类型 +///////////////////////////////////////////////////////////////////////// +///不能使用 +#define THOST_FTDC_MFUR_None '0' +///用于保证金 +#define THOST_FTDC_MFUR_Margin '1' +///用于手续费、盈亏、保证金 +#define THOST_FTDC_MFUR_All '2' +///人民币方案3 +#define THOST_FTDC_MFUR_CNY3 '3' + +typedef char TThostFtdcMortgageFundUseRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyUnitType是一个币种单位数量类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCurrencyUnitType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeRateType是一个汇率类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcExchangeRateType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSpecProductTypeType是一个特殊产品类型类型 +///////////////////////////////////////////////////////////////////////// +///郑商所套保产品 +#define THOST_FTDC_SPT_CzceHedge '1' +///货币质押产品 +#define THOST_FTDC_SPT_IneForeignCurrency '2' +///大连短线开平仓产品 +#define THOST_FTDC_SPT_DceOpenClose '3' + +typedef char TThostFtdcSpecProductTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundMortgageTypeType是一个货币质押类型类型 +///////////////////////////////////////////////////////////////////////// +///质押 +#define THOST_FTDC_FMT_Mortgage '1' +///解质 +#define THOST_FTDC_FMT_Redemption '2' + +typedef char TThostFtdcFundMortgageTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAccountSettlementParamIDType是一个投资者账户结算参数代码类型 +///////////////////////////////////////////////////////////////////////// +///基础保证金 +#define THOST_FTDC_ASPI_BaseMargin '1' +///最低权益标准 +#define THOST_FTDC_ASPI_LowestInterest '2' + +typedef char TThostFtdcAccountSettlementParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyNameType是一个币种名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencyNameType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencySignType是一个币种符号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencySignType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundMortDirectionType是一个货币质押方向类型 +///////////////////////////////////////////////////////////////////////// +///货币质入 +#define THOST_FTDC_FMD_In '1' +///货币质出 +#define THOST_FTDC_FMD_Out '2' + +typedef char TThostFtdcFundMortDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessClassType是一个换汇类别类型 +///////////////////////////////////////////////////////////////////////// +///盈利 +#define THOST_FTDC_BT_Profit '0' +///亏损 +#define THOST_FTDC_BT_Loss '1' +///其他 +#define THOST_FTDC_BT_Other 'Z' + +typedef char TThostFtdcBusinessClassType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSwapSourceTypeType是一个换汇数据来源类型 +///////////////////////////////////////////////////////////////////////// +///手工 +#define THOST_FTDC_SST_Manual '0' +///自动生成 +#define THOST_FTDC_SST_Automatic '1' + +typedef char TThostFtdcSwapSourceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrExDirectionType是一个换汇类型类型 +///////////////////////////////////////////////////////////////////////// +///结汇 +#define THOST_FTDC_CED_Settlement '0' +///售汇 +#define THOST_FTDC_CED_Sale '1' + +typedef char TThostFtdcCurrExDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencySwapStatusType是一个申请状态类型 +///////////////////////////////////////////////////////////////////////// +///已录入 +#define THOST_FTDC_CSS_Entry '1' +///已审核 +#define THOST_FTDC_CSS_Approve '2' +///已拒绝 +#define THOST_FTDC_CSS_Refuse '3' +///已撤销 +#define THOST_FTDC_CSS_Revoke '4' +///已发送 +#define THOST_FTDC_CSS_Send '5' +///换汇成功 +#define THOST_FTDC_CSS_Success '6' +///换汇失败 +#define THOST_FTDC_CSS_Failure '7' + +typedef char TThostFtdcCurrencySwapStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrExchCertNoType是一个凭证号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrExchCertNoType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBatchSerialNoType是一个批次号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBatchSerialNoType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReqFlagType是一个换汇发送标志类型 +///////////////////////////////////////////////////////////////////////// +///未发送 +#define THOST_FTDC_REQF_NoSend '0' +///发送成功 +#define THOST_FTDC_REQF_SendSuccess '1' +///发送失败 +#define THOST_FTDC_REQF_SendFailed '2' +///等待重发 +#define THOST_FTDC_REQF_WaitReSend '3' + +typedef char TThostFtdcReqFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcResFlagType是一个换汇返回成功标志类型 +///////////////////////////////////////////////////////////////////////// +///成功 +#define THOST_FTDC_RESF_Success '0' +///账户余额不足 +#define THOST_FTDC_RESF_InsuffiCient '1' +///交易结果未知 +#define THOST_FTDC_RESF_UnKnown '8' + +typedef char TThostFtdcResFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPageControlType是一个换汇页面控制类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPageControlType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRecordCountType是一个记录数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRecordCountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencySwapMemoType是一个换汇需确认信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencySwapMemoType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExStatusType是一个修改状态类型 +///////////////////////////////////////////////////////////////////////// +///修改前 +#define THOST_FTDC_EXS_Before '0' +///修改后 +#define THOST_FTDC_EXS_After '1' + +typedef char TThostFtdcExStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientRegionType是一个开户客户地域类型 +///////////////////////////////////////////////////////////////////////// +///国内客户 +#define THOST_FTDC_CR_Domestic '1' +///港澳台客户 +#define THOST_FTDC_CR_GMT '2' +///国外客户 +#define THOST_FTDC_CR_Foreign '3' + +typedef char TThostFtdcClientRegionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWorkPlaceType是一个工作单位类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWorkPlaceType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessPeriodType是一个经营期限类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBusinessPeriodType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWebSiteType是一个网址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWebSiteType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAIdCardTypeType是一个统一开户证件类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAIdCardTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientModeType是一个开户模式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientModeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorFullNameType是一个投资者全称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorFullNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOABrokerIDType是一个境外中介机构ID类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOABrokerIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAZipCodeType是一个邮政编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAZipCodeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAEMailType是一个电子邮箱类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAEMailType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOldCityType是一个城市类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOldCityType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCorporateIdentifiedCardNoType是一个法人代表证件号码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCorporateIdentifiedCardNoType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHasBoardType是一个是否有董事会类型 +///////////////////////////////////////////////////////////////////////// +///没有 +#define THOST_FTDC_HB_No '0' +///有 +#define THOST_FTDC_HB_Yes '1' + +typedef char TThostFtdcHasBoardType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStartModeType是一个启动模式类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_SM_Normal '1' +///应急 +#define THOST_FTDC_SM_Emerge '2' +///恢复 +#define THOST_FTDC_SM_Restore '3' + +typedef char TThostFtdcStartModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTemplateTypeType是一个模型类型类型 +///////////////////////////////////////////////////////////////////////// +///全量 +#define THOST_FTDC_TPT_Full '1' +///增量 +#define THOST_FTDC_TPT_Increment '2' +///备份 +#define THOST_FTDC_TPT_BackUp '3' + +typedef char TThostFtdcTemplateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLoginModeType是一个登录模式类型 +///////////////////////////////////////////////////////////////////////// +///交易 +#define THOST_FTDC_LM_Trade '0' +///转账 +#define THOST_FTDC_LM_Transfer '1' + +typedef char TThostFtdcLoginModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPromptTypeType是一个日历提示类型类型 +///////////////////////////////////////////////////////////////////////// +///合约上下市 +#define THOST_FTDC_CPT_Instrument '1' +///保证金分段生效 +#define THOST_FTDC_CPT_Margin '2' + +typedef char TThostFtdcPromptTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLedgerManageIDType是一个分户管理资产编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLedgerManageIDType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestVarietyType是一个投资品种类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestVarietyType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccountTypeType是一个账户类别类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankAccountTypeType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLedgerManageBankType是一个开户银行类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLedgerManageBankType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffexDepartmentNameType是一个开户营业部类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffexDepartmentNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffexDepartmentCodeType是一个营业部代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffexDepartmentCodeType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHasTrusteeType是一个是否有托管人类型 +///////////////////////////////////////////////////////////////////////// +///有 +#define THOST_FTDC_HT_Yes '1' +///没有 +#define THOST_FTDC_HT_No '0' + +typedef char TThostFtdcHasTrusteeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMemo1Type是一个说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCMemo1Type[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrCFullNameType是一个代理资产管理业务的期货公司全称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAssetmgrCFullNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrApprovalNOType是一个资产管理业务批文号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAssetmgrApprovalNOType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrMgrNameType是一个资产管理业务负责人姓名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAssetmgrMgrNameType[401]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmTypeType是一个机构类型类型 +///////////////////////////////////////////////////////////////////////// +///银行 +#define THOST_FTDC_AMT_Bank '1' +///证券公司 +#define THOST_FTDC_AMT_Securities '2' +///基金公司 +#define THOST_FTDC_AMT_Fund '3' +///保险公司 +#define THOST_FTDC_AMT_Insurance '4' +///信托公司 +#define THOST_FTDC_AMT_Trust '5' +///其他 +#define THOST_FTDC_AMT_Other '9' + +typedef char TThostFtdcAmTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCAmTypeType是一个机构类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCAmTypeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCFundIOTypeType是一个出入金类型类型 +///////////////////////////////////////////////////////////////////////// +///出入金 +#define THOST_FTDC_CFIOT_FundIO '0' +///银期换汇 +#define THOST_FTDC_CFIOT_SwapCurrency '1' + +typedef char TThostFtdcCSRCFundIOTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCusAccountTypeType是一个结算账户类型类型 +///////////////////////////////////////////////////////////////////////// +///期货结算账户 +#define THOST_FTDC_CAT_Futures '1' +///纯期货资管业务下的资管结算账户 +#define THOST_FTDC_CAT_AssetmgrFuture '2' +///综合类资管业务下的期货资管托管账户 +#define THOST_FTDC_CAT_AssetmgrTrustee '3' +///综合类资管业务下的资金中转账户 +#define THOST_FTDC_CAT_AssetmgrTransfer '4' + +typedef char TThostFtdcCusAccountTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCNationalType是一个国籍类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCNationalType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCSecAgentIDType是一个二级代理ID类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCSecAgentIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLanguageTypeType是一个通知语言类型类型 +///////////////////////////////////////////////////////////////////////// +///中文 +#define THOST_FTDC_LT_Chinese '1' +///英文 +#define THOST_FTDC_LT_English '2' + +typedef char TThostFtdcLanguageTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmAccountType是一个投资账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAmAccountType[23]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrClientTypeType是一个资产管理客户类型类型 +///////////////////////////////////////////////////////////////////////// +///个人资管客户 +#define THOST_FTDC_AMCT_Person '1' +///单位资管客户 +#define THOST_FTDC_AMCT_Organ '2' +///特殊单位资管客户 +#define THOST_FTDC_AMCT_SpecialOrgan '4' + +typedef char TThostFtdcAssetmgrClientTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrTypeType是一个投资类型类型 +///////////////////////////////////////////////////////////////////////// +///期货类 +#define THOST_FTDC_ASST_Futures '3' +///综合类 +#define THOST_FTDC_ASST_SpecialOrgan '4' + +typedef char TThostFtdcAssetmgrTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOMType是一个计量单位类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOMType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSHFEInstLifePhaseType是一个上期所合约生命周期状态类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSHFEInstLifePhaseType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSHFEProductClassType是一个产品类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSHFEProductClassType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriceDecimalType是一个价格小数位类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPriceDecimalType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInTheMoneyFlagType是一个平值期权标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInTheMoneyFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckInstrTypeType是一个合约比较类型类型 +///////////////////////////////////////////////////////////////////////// +///合约交易所不存在 +#define THOST_FTDC_CIT_HasExch '0' +///合约本系统不存在 +#define THOST_FTDC_CIT_HasATP '1' +///合约比较不一致 +#define THOST_FTDC_CIT_HasDiff '2' + +typedef char TThostFtdcCheckInstrTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDeliveryTypeType是一个交割类型类型 +///////////////////////////////////////////////////////////////////////// +///手工交割 +#define THOST_FTDC_DT_HandDeliv '1' +///到期交割 +#define THOST_FTDC_DT_PersonDeliv '2' + +typedef char TThostFtdcDeliveryTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBigMoneyType是一个资金类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcBigMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMaxMarginSideAlgorithmType是一个大额单边保证金算法类型 +///////////////////////////////////////////////////////////////////////// +///不使用大额单边保证金算法 +#define THOST_FTDC_MMSA_NO '0' +///使用大额单边保证金算法 +#define THOST_FTDC_MMSA_YES '1' + +typedef char TThostFtdcMaxMarginSideAlgorithmType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDAClientTypeType是一个资产管理客户类型类型 +///////////////////////////////////////////////////////////////////////// +///自然人 +#define THOST_FTDC_CACT_Person '0' +///法人 +#define THOST_FTDC_CACT_Company '1' +///其他 +#define THOST_FTDC_CACT_Other '2' + +typedef char TThostFtdcDAClientTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombinInstrIDType是一个套利合约代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombinInstrIDType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombinSettlePriceType是一个各腿结算价类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombinSettlePriceType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDCEPriorityType是一个优先级类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDCEPriorityType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeGroupIDType是一个成交组号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTradeGroupIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIsCheckPrepaType是一个是否校验开户可用资金类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcIsCheckPrepaType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAAssetmgrTypeType是一个投资类型类型 +///////////////////////////////////////////////////////////////////////// +///期货类 +#define THOST_FTDC_UOAAT_Futures '1' +///综合类 +#define THOST_FTDC_UOAAT_SpecialOrgan '2' + +typedef char TThostFtdcUOAAssetmgrTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDirectionEnType是一个买卖方向类型 +///////////////////////////////////////////////////////////////////////// +///Buy +#define THOST_FTDC_DEN_Buy '0' +///Sell +#define THOST_FTDC_DEN_Sell '1' + +typedef char TThostFtdcDirectionEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOffsetFlagEnType是一个开平标志类型 +///////////////////////////////////////////////////////////////////////// +///Position Opening +#define THOST_FTDC_OFEN_Open '0' +///Position Close +#define THOST_FTDC_OFEN_Close '1' +///Forced Liquidation +#define THOST_FTDC_OFEN_ForceClose '2' +///Close Today +#define THOST_FTDC_OFEN_CloseToday '3' +///Close Prev. +#define THOST_FTDC_OFEN_CloseYesterday '4' +///Forced Reduction +#define THOST_FTDC_OFEN_ForceOff '5' +///Local Forced Liquidation +#define THOST_FTDC_OFEN_LocalForceClose '6' + +typedef char TThostFtdcOffsetFlagEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHedgeFlagEnType是一个投机套保标志类型 +///////////////////////////////////////////////////////////////////////// +///Speculation +#define THOST_FTDC_HFEN_Speculation '1' +///Arbitrage +#define THOST_FTDC_HFEN_Arbitrage '2' +///Hedge +#define THOST_FTDC_HFEN_Hedge '3' + +typedef char TThostFtdcHedgeFlagEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundIOTypeEnType是一个出入金类型类型 +///////////////////////////////////////////////////////////////////////// +///Deposit/Withdrawal +#define THOST_FTDC_FIOTEN_FundIO '1' +///Bank-Futures Transfer +#define THOST_FTDC_FIOTEN_Transfer '2' +///Bank-Futures FX Exchange +#define THOST_FTDC_FIOTEN_SwapCurrency '3' + +typedef char TThostFtdcFundIOTypeEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundTypeEnType是一个资金类型类型 +///////////////////////////////////////////////////////////////////////// +///Bank Deposit +#define THOST_FTDC_FTEN_Deposite '1' +///Payment/Fee +#define THOST_FTDC_FTEN_ItemFund '2' +///Brokerage Adj +#define THOST_FTDC_FTEN_Company '3' +///Internal Transfer +#define THOST_FTDC_FTEN_InnerTransfer '4' + +typedef char TThostFtdcFundTypeEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundDirectionEnType是一个出入金方向类型 +///////////////////////////////////////////////////////////////////////// +///Deposit +#define THOST_FTDC_FDEN_In '1' +///Withdrawal +#define THOST_FTDC_FDEN_Out '2' + +typedef char TThostFtdcFundDirectionEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundMortDirectionEnType是一个货币质押方向类型 +///////////////////////////////////////////////////////////////////////// +///Pledge +#define THOST_FTDC_FMDEN_In '1' +///Redemption +#define THOST_FTDC_FMDEN_Out '2' + +typedef char TThostFtdcFundMortDirectionEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSwapBusinessTypeType是一个换汇业务种类类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSwapBusinessTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionsTypeType是一个期权类型类型 +///////////////////////////////////////////////////////////////////////// +///看涨 +#define THOST_FTDC_CP_CallOptions '1' +///看跌 +#define THOST_FTDC_CP_PutOptions '2' + +typedef char TThostFtdcOptionsTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeModeType是一个执行方式类型 +///////////////////////////////////////////////////////////////////////// +///欧式 +#define THOST_FTDC_STM_Continental '0' +///美式 +#define THOST_FTDC_STM_American '1' +///百慕大 +#define THOST_FTDC_STM_Bermuda '2' + +typedef char TThostFtdcStrikeModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeTypeType是一个执行类型类型 +///////////////////////////////////////////////////////////////////////// +///自身对冲 +#define THOST_FTDC_STT_Hedge '0' +///匹配执行 +#define THOST_FTDC_STT_Match '1' + +typedef char TThostFtdcStrikeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplyTypeType是一个中金所期权放弃执行申请类型类型 +///////////////////////////////////////////////////////////////////////// +///不执行数量 +#define THOST_FTDC_APPT_NotStrikeNum '4' + +typedef char TThostFtdcApplyTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcGiveUpDataSourceType是一个放弃执行申请数据来源类型 +///////////////////////////////////////////////////////////////////////// +///系统生成 +#define THOST_FTDC_GUDS_Gen '0' +///手工添加 +#define THOST_FTDC_GUDS_Hand '1' + +typedef char TThostFtdcGiveUpDataSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecOrderSysIDType是一个执行宣告系统编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExecOrderSysIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecResultType是一个执行结果类型 +///////////////////////////////////////////////////////////////////////// +///没有执行 +#define THOST_FTDC_OER_NoExec 'n' +///已经取消 +#define THOST_FTDC_OER_Canceled 'c' +///执行成功 +#define THOST_FTDC_OER_OK '0' +///期权持仓不够 +#define THOST_FTDC_OER_NoPosition '1' +///资金不够 +#define THOST_FTDC_OER_NoDeposit '2' +///会员不存在 +#define THOST_FTDC_OER_NoParticipant '3' +///客户不存在 +#define THOST_FTDC_OER_NoClient '4' +///合约不存在 +#define THOST_FTDC_OER_NoInstrument '6' +///没有执行权限 +#define THOST_FTDC_OER_NoRight '7' +///不合理的数量 +#define THOST_FTDC_OER_InvalidVolume '8' +///没有足够的历史成交 +#define THOST_FTDC_OER_NoEnoughHistoryTrade '9' +///未知 +#define THOST_FTDC_OER_Unknown 'a' + +typedef char TThostFtdcExecResultType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeSequenceType是一个执行序号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcStrikeSequenceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeTimeType是一个执行时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcStrikeTimeType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombinationTypeType是一个组合类型类型 +///////////////////////////////////////////////////////////////////////// +///期货组合 +#define THOST_FTDC_COMBT_Future '0' +///垂直价差BUL +#define THOST_FTDC_COMBT_BUL '1' +///垂直价差BER +#define THOST_FTDC_COMBT_BER '2' +///跨式组合 +#define THOST_FTDC_COMBT_STD '3' +///宽跨式组合 +#define THOST_FTDC_COMBT_STG '4' +///备兑组合 +#define THOST_FTDC_COMBT_PRT '5' +///时间价差组合 +#define THOST_FTDC_COMBT_CLD '6' + +typedef char TThostFtdcCombinationTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDceCombinationTypeType是一个组合类型类型 +///////////////////////////////////////////////////////////////////////// +///期货对锁组合 +#define THOST_FTDC_DCECOMBT_SPL '0' +///期权对锁组合 +#define THOST_FTDC_DCECOMBT_OPL '1' +///期货跨期组合 +#define THOST_FTDC_DCECOMBT_SP '2' +///期货跨品种组合 +#define THOST_FTDC_DCECOMBT_SPC '3' +///买入期权垂直价差组合 +#define THOST_FTDC_DCECOMBT_BLS '4' +///卖出期权垂直价差组合 +#define THOST_FTDC_DCECOMBT_BES '5' +///期权日历价差组合 +#define THOST_FTDC_DCECOMBT_CAS '6' +///期权跨式组合 +#define THOST_FTDC_DCECOMBT_STD '7' +///期权宽跨式组合 +#define THOST_FTDC_DCECOMBT_STG '8' +///买入期货期权组合 +#define THOST_FTDC_DCECOMBT_BFO '9' +///卖出期货期权组合 +#define THOST_FTDC_DCECOMBT_SFO 'a' + +typedef char TThostFtdcDceCombinationTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionRoyaltyPriceTypeType是一个期权权利金价格类型类型 +///////////////////////////////////////////////////////////////////////// +///昨结算价 +#define THOST_FTDC_ORPT_PreSettlementPrice '1' +///开仓价 +#define THOST_FTDC_ORPT_OpenPrice '4' +///最新价与昨结算价较大值 +#define THOST_FTDC_ORPT_MaxPreSettlementPrice '5' + +typedef char TThostFtdcOptionRoyaltyPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBalanceAlgorithmType是一个权益算法类型 +///////////////////////////////////////////////////////////////////////// +///不计算期权市值盈亏 +#define THOST_FTDC_BLAG_Default '1' +///计算期权市值亏损 +#define THOST_FTDC_BLAG_IncludeOptValLost '2' + +typedef char TThostFtdcBalanceAlgorithmType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcActionTypeType是一个执行类型类型 +///////////////////////////////////////////////////////////////////////// +///执行 +#define THOST_FTDC_ACTP_Exec '1' +///放弃 +#define THOST_FTDC_ACTP_Abandon '2' + +typedef char TThostFtdcActionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForQuoteStatusType是一个询价状态类型 +///////////////////////////////////////////////////////////////////////// +///已经提交 +#define THOST_FTDC_FQST_Submitted 'a' +///已经接受 +#define THOST_FTDC_FQST_Accepted 'b' +///已经被拒绝 +#define THOST_FTDC_FQST_Rejected 'c' + +typedef char TThostFtdcForQuoteStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcValueMethodType是一个取值方式类型 +///////////////////////////////////////////////////////////////////////// +///按绝对值 +#define THOST_FTDC_VM_Absolute '0' +///按比率 +#define THOST_FTDC_VM_Ratio '1' + +typedef char TThostFtdcValueMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecOrderPositionFlagType是一个期权行权后是否保留期货头寸的标记类型 +///////////////////////////////////////////////////////////////////////// +///保留 +#define THOST_FTDC_EOPF_Reserve '0' +///不保留 +#define THOST_FTDC_EOPF_UnReserve '1' + +typedef char TThostFtdcExecOrderPositionFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecOrderCloseFlagType是一个期权行权后生成的头寸是否自动平仓类型 +///////////////////////////////////////////////////////////////////////// +///自动平仓 +#define THOST_FTDC_EOCF_AutoClose '0' +///免于自动平仓 +#define THOST_FTDC_EOCF_NotToClose '1' + +typedef char TThostFtdcExecOrderCloseFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductTypeType是一个产品类型类型 +///////////////////////////////////////////////////////////////////////// +///期货 +#define THOST_FTDC_PTE_Futures '1' +///期权 +#define THOST_FTDC_PTE_Options '2' + +typedef char TThostFtdcProductTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCZCEUploadFileNameType是一个郑商所结算文件名类型 +///////////////////////////////////////////////////////////////////////// +///^\d{8}_zz_\d{4} +#define THOST_FTDC_CUFN_CUFN_O 'O' +///^\d{8}成交表 +#define THOST_FTDC_CUFN_CUFN_T 'T' +///^\d{8}单腿持仓表new +#define THOST_FTDC_CUFN_CUFN_P 'P' +///^\d{8}非平仓了结表 +#define THOST_FTDC_CUFN_CUFN_N 'N' +///^\d{8}平仓表 +#define THOST_FTDC_CUFN_CUFN_L 'L' +///^\d{8}资金表 +#define THOST_FTDC_CUFN_CUFN_F 'F' +///^\d{8}组合持仓表 +#define THOST_FTDC_CUFN_CUFN_C 'C' +///^\d{8}保证金参数表 +#define THOST_FTDC_CUFN_CUFN_M 'M' + +typedef char TThostFtdcCZCEUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDCEUploadFileNameType是一个大商所结算文件名类型 +///////////////////////////////////////////////////////////////////////// +///^\d{8}_dl_\d{3} +#define THOST_FTDC_DUFN_DUFN_O 'O' +///^\d{8}_成交表 +#define THOST_FTDC_DUFN_DUFN_T 'T' +///^\d{8}_持仓表 +#define THOST_FTDC_DUFN_DUFN_P 'P' +///^\d{8}_资金结算表 +#define THOST_FTDC_DUFN_DUFN_F 'F' +///^\d{8}_优惠组合持仓明细表 +#define THOST_FTDC_DUFN_DUFN_C 'C' +///^\d{8}_持仓明细表 +#define THOST_FTDC_DUFN_DUFN_D 'D' +///^\d{8}_保证金参数表 +#define THOST_FTDC_DUFN_DUFN_M 'M' +///^\d{8}_期权执行表 +#define THOST_FTDC_DUFN_DUFN_S 'S' + +typedef char TThostFtdcDCEUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSHFEUploadFileNameType是一个上期所结算文件名类型 +///////////////////////////////////////////////////////////////////////// +///^\d{4}_\d{8}_\d{8}_DailyFundChg +#define THOST_FTDC_SUFN_SUFN_O 'O' +///^\d{4}_\d{8}_\d{8}_Trade +#define THOST_FTDC_SUFN_SUFN_T 'T' +///^\d{4}_\d{8}_\d{8}_SettlementDetail +#define THOST_FTDC_SUFN_SUFN_P 'P' +///^\d{4}_\d{8}_\d{8}_Capital +#define THOST_FTDC_SUFN_SUFN_F 'F' + +typedef char TThostFtdcSHFEUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFFEXUploadFileNameType是一个中金所结算文件名类型 +///////////////////////////////////////////////////////////////////////// +///^\d{4}_SG\d{1}_\d{8}_\d{1}_Trade +#define THOST_FTDC_CFUFN_SUFN_T 'T' +///^\d{4}_SG\d{1}_\d{8}_\d{1}_SettlementDetail +#define THOST_FTDC_CFUFN_SUFN_P 'P' +///^\d{4}_SG\d{1}_\d{8}_\d{1}_Capital +#define THOST_FTDC_CFUFN_SUFN_F 'F' +///^\d{4}_SG\d{1}_\d{8}_\d{1}_OptionExec +#define THOST_FTDC_CFUFN_SUFN_S 'S' + +typedef char TThostFtdcCFFEXUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombDirectionType是一个组合指令方向类型 +///////////////////////////////////////////////////////////////////////// +///申请组合 +#define THOST_FTDC_CMDR_Comb '0' +///申请拆分 +#define THOST_FTDC_CMDR_UnComb '1' + +typedef char TThostFtdcCombDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeOffsetTypeType是一个行权偏移类型类型 +///////////////////////////////////////////////////////////////////////// +///实值额 +#define THOST_FTDC_STOV_RealValue '1' +///盈利额 +#define THOST_FTDC_STOV_ProfitValue '2' +///实值比例 +#define THOST_FTDC_STOV_RealRatio '3' +///盈利比例 +#define THOST_FTDC_STOV_ProfitRatio '4' + +typedef char TThostFtdcStrikeOffsetTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReserveOpenAccStasType是一个预约开户状态类型 +///////////////////////////////////////////////////////////////////////// +///等待处理中 +#define THOST_FTDC_ROAST_Processing '0' +///已撤销 +#define THOST_FTDC_ROAST_Cancelled '1' +///已开户 +#define THOST_FTDC_ROAST_Opened '2' +///无效请求 +#define THOST_FTDC_ROAST_Invalid '3' + +typedef char TThostFtdcReserveOpenAccStasType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLoginRemarkType是一个登录备注类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLoginRemarkType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestUnitIDType是一个投资单元代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestUnitIDType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBulletinIDType是一个公告编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcBulletinIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNewsTypeType是一个公告类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNewsTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNewsUrgencyType是一个紧急程度类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNewsUrgencyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAbstractType是一个消息摘要类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAbstractType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcComeFromType是一个消息来源类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcComeFromType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcURLLinkType是一个WEB地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcURLLinkType[201]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLongIndividualNameType是一个长个人姓名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongIndividualNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLongFBEBankAccountNameType是一个长换汇银行账户名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongFBEBankAccountNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateTimeType是一个日期时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateTimeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWeakPasswordSourceType是一个弱密码来源类型 +///////////////////////////////////////////////////////////////////////// +///弱密码库 +#define THOST_FTDC_WPSR_Lib '1' +///手工录入 +#define THOST_FTDC_WPSR_Manual '2' + +typedef char TThostFtdcWeakPasswordSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRandomStringType是一个随机串类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRandomStringType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptSelfCloseFlagType是一个期权行权的头寸是否自对冲类型 +///////////////////////////////////////////////////////////////////////// +///自对冲期权仓位 +#define THOST_FTDC_OSCF_CloseSelfOptionPosition '1' +///保留期权仓位 +#define THOST_FTDC_OSCF_ReserveOptionPosition '2' +///自对冲卖方履约后的期货仓位 +#define THOST_FTDC_OSCF_SellCloseSelfFuturePosition '3' +///保留卖方履约后的期货仓位 +#define THOST_FTDC_OSCF_ReserveFuturePosition '4' + +typedef char TThostFtdcOptSelfCloseFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBizTypeType是一个业务类型类型 +///////////////////////////////////////////////////////////////////////// +///期货 +#define THOST_FTDC_BZTP_Future '1' +///证券 +#define THOST_FTDC_BZTP_Stock '2' + +typedef char TThostFtdcBizTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAppTypeType是一个用户App类型类型 +///////////////////////////////////////////////////////////////////////// +///直连的投资者 +#define THOST_FTDC_APP_TYPE_Investor '1' +///为每个投资者都创建连接的中继 +#define THOST_FTDC_APP_TYPE_InvestorRelay '2' +///所有投资者共享一个操作员连接的中继 +#define THOST_FTDC_APP_TYPE_OperatorRelay '3' +///未知 +#define THOST_FTDC_APP_TYPE_UnKnown '4' + +typedef char TThostFtdcAppTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAppIDType是一个App代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAppIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemInfoLenType是一个系统信息长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSystemInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdditionalInfoLenType是一个补充信息长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcAdditionalInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientSystemInfoType是一个交易终端系统信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientSystemInfoType[273]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdditionalInfoType是一个系统外部信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAdditionalInfoType[261]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBase64ClientSystemInfoType是一个base64交易终端系统信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBase64ClientSystemInfoType[365]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBase64AdditionalInfoType是一个base64系统外部信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBase64AdditionalInfoType[349]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrentAuthMethodType是一个当前可用的认证模式,0代表无需认证模式 A从低位开始最后一位代表图片验证码,倒数第二位代表动态口令,倒数第三位代表短信验证码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCurrentAuthMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCaptchaInfoLenType是一个图片验证信息长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCaptchaInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCaptchaInfoType是一个图片验证信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCaptchaInfoType[2561]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserTextSeqType是一个用户短信验证码的编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcUserTextSeqType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandshakeDataType是一个握手数据内容类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcHandshakeDataType[301]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandshakeDataLenType是一个握手数据内容长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcHandshakeDataLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCryptoKeyVersionType是一个api与front通信密钥版本号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCryptoKeyVersionType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRsaKeyVersionType是一个公钥版本号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRsaKeyVersionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSoftwareProviderIDType是一个交易软件商ID类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSoftwareProviderIDType[22]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCollectTimeType是一个信息采集时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCollectTimeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryFreqType是一个查询频率类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcQueryFreqType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcResponseValueType是一个应答类型类型 +///////////////////////////////////////////////////////////////////////// +///检查成功 +#define THOST_FTDC_RV_Right '0' +///检查失败 +#define THOST_FTDC_RV_Refuse '1' + +typedef char TThostFtdcResponseValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTCTradeTypeType是一个OTC成交类型类型 +///////////////////////////////////////////////////////////////////////// +///大宗交易 +#define THOST_FTDC_OTC_TRDT_Block '0' +///期转现 +#define THOST_FTDC_OTC_TRDT_EFP '1' + +typedef char TThostFtdcOTCTradeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMatchTypeType是一个期现风险匹配方式类型 +///////////////////////////////////////////////////////////////////////// +///基点价值 +#define THOST_FTDC_OTC_MT_DV01 '1' +///面值 +#define THOST_FTDC_OTC_MT_ParValue '2' + +typedef char TThostFtdcMatchTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTCTraderIDType是一个OTC交易员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTCTraderIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskValueType是一个期货风险值类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcRiskValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIDBNameType是一个握手数据内容类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIDBNameType[100]; + +#endif diff --git a/v6.3.6_20160606_tradeapi_windows/ThostFtdcUserApiStruct.h b/v6.3.15_20190220_api_tradeapi_se_linux64/ThostFtdcUserApiStruct.h similarity index 88% rename from v6.3.6_20160606_tradeapi_windows/ThostFtdcUserApiStruct.h rename to v6.3.15_20190220_api_tradeapi_se_linux64/ThostFtdcUserApiStruct.h index 4a48be8..83b36e0 100644 --- a/v6.3.6_20160606_tradeapi_windows/ThostFtdcUserApiStruct.h +++ b/v6.3.15_20190220_api_tradeapi_se_linux64/ThostFtdcUserApiStruct.h @@ -1,8423 +1,9492 @@ -///////////////////////////////////////////////////////////////////////// -///@system 新一代交易所系统 -///@company 上海期货信息技术有限公司 -///@file ThostFtdcUserApiStruct.h -///@brief 定义了客户端接口使用的业务数据结构 -///@history -///20060106 赵鸿昊 创建该文件 -///////////////////////////////////////////////////////////////////////// - -#if !defined(THOST_FTDCSTRUCT_H) -#define THOST_FTDCSTRUCT_H - -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 - -#include "ThostFtdcUserApiDataType.h" - -///信息分发 -struct CThostFtdcDisseminationField -{ - ///序列系列号 - TThostFtdcSequenceSeriesType SequenceSeries; - ///序列号 - TThostFtdcSequenceNoType SequenceNo; -}; - -///用户登录请求 -struct CThostFtdcReqUserLoginField -{ - ///交易日 - TThostFtdcDateType TradingDay; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///密码 - TThostFtdcPasswordType Password; - ///用户端产品信息 - TThostFtdcProductInfoType UserProductInfo; - ///接口端产品信息 - TThostFtdcProductInfoType InterfaceProductInfo; - ///协议信息 - TThostFtdcProtocolInfoType ProtocolInfo; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; - ///动态密码 - TThostFtdcPasswordType OneTimePassword; - ///终端IP地址 - TThostFtdcIPAddressType ClientIPAddress; - ///登录备注 - TThostFtdcLoginRemarkType LoginRemark; -}; - -///用户登录应答 -struct CThostFtdcRspUserLoginField -{ - ///交易日 - TThostFtdcDateType TradingDay; - ///登录成功时间 - TThostFtdcTimeType LoginTime; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///交易系统名称 - TThostFtdcSystemNameType SystemName; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///最大报单引用 - TThostFtdcOrderRefType MaxOrderRef; - ///上期所时间 - TThostFtdcTimeType SHFETime; - ///大商所时间 - TThostFtdcTimeType DCETime; - ///郑商所时间 - TThostFtdcTimeType CZCETime; - ///中金所时间 - TThostFtdcTimeType FFEXTime; - ///能源中心时间 - TThostFtdcTimeType INETime; -}; - -///用户登出请求 -struct CThostFtdcUserLogoutField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; -}; - -///强制交易员退出 -struct CThostFtdcForceUserLogoutField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; -}; - -///客户端认证请求 -struct CThostFtdcReqAuthenticateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///用户端产品信息 - TThostFtdcProductInfoType UserProductInfo; - ///认证码 - TThostFtdcAuthCodeType AuthCode; -}; - -///客户端认证响应 -struct CThostFtdcRspAuthenticateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///用户端产品信息 - TThostFtdcProductInfoType UserProductInfo; -}; - -///客户端认证信息 -struct CThostFtdcAuthenticationInfoField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///用户端产品信息 - TThostFtdcProductInfoType UserProductInfo; - ///认证信息 - TThostFtdcAuthInfoType AuthInfo; - ///是否为认证结果 - TThostFtdcBoolType IsResult; -}; - -///银期转帐报文头 -struct CThostFtdcTransferHeaderField -{ - ///版本号,常量,1.0 - TThostFtdcVersionType Version; - ///交易代码,必填 - TThostFtdcTradeCodeType TradeCode; - ///交易日期,必填,格式:yyyymmdd - TThostFtdcTradeDateType TradeDate; - ///交易时间,必填,格式:hhmmss - TThostFtdcTradeTimeType TradeTime; - ///发起方流水号,N/A - TThostFtdcTradeSerialType TradeSerial; - ///期货公司代码,必填 - TThostFtdcFutureIDType FutureID; - ///银行代码,根据查询银行得到,必填 - TThostFtdcBankIDType BankID; - ///银行分中心代码,根据查询银行得到,必填 - TThostFtdcBankBrchIDType BankBrchID; - ///操作员,N/A - TThostFtdcOperNoType OperNo; - ///交易设备类型,N/A - TThostFtdcDeviceIDType DeviceID; - ///记录数,N/A - TThostFtdcRecordNumType RecordNum; - ///会话编号,N/A - TThostFtdcSessionIDType SessionID; - ///请求编号,N/A - TThostFtdcRequestIDType RequestID; -}; - -///银行资金转期货请求,TradeCode=202001 -struct CThostFtdcTransferBankToFutureReqField -{ - ///期货资金账户 - TThostFtdcAccountIDType FutureAccount; - ///密码标志 - TThostFtdcFuturePwdFlagType FuturePwdFlag; - ///密码 - TThostFtdcFutureAccPwdType FutureAccPwd; - ///转账金额 - TThostFtdcMoneyType TradeAmt; - ///客户手续费 - TThostFtdcMoneyType CustFee; - ///币种:RMB-人民币 USD-美圆 HKD-港元 - TThostFtdcCurrencyCodeType CurrencyCode; -}; - -///银行资金转期货请求响应 -struct CThostFtdcTransferBankToFutureRspField -{ - ///响应代码 - TThostFtdcRetCodeType RetCode; - ///响应信息 - TThostFtdcRetInfoType RetInfo; - ///资金账户 - TThostFtdcAccountIDType FutureAccount; - ///转帐金额 - TThostFtdcMoneyType TradeAmt; - ///应收客户手续费 - TThostFtdcMoneyType CustFee; - ///币种 - TThostFtdcCurrencyCodeType CurrencyCode; -}; - -///期货资金转银行请求,TradeCode=202002 -struct CThostFtdcTransferFutureToBankReqField -{ - ///期货资金账户 - TThostFtdcAccountIDType FutureAccount; - ///密码标志 - TThostFtdcFuturePwdFlagType FuturePwdFlag; - ///密码 - TThostFtdcFutureAccPwdType FutureAccPwd; - ///转账金额 - TThostFtdcMoneyType TradeAmt; - ///客户手续费 - TThostFtdcMoneyType CustFee; - ///币种:RMB-人民币 USD-美圆 HKD-港元 - TThostFtdcCurrencyCodeType CurrencyCode; -}; - -///期货资金转银行请求响应 -struct CThostFtdcTransferFutureToBankRspField -{ - ///响应代码 - TThostFtdcRetCodeType RetCode; - ///响应信息 - TThostFtdcRetInfoType RetInfo; - ///资金账户 - TThostFtdcAccountIDType FutureAccount; - ///转帐金额 - TThostFtdcMoneyType TradeAmt; - ///应收客户手续费 - TThostFtdcMoneyType CustFee; - ///币种 - TThostFtdcCurrencyCodeType CurrencyCode; -}; - -///查询银行资金请求,TradeCode=204002 -struct CThostFtdcTransferQryBankReqField -{ - ///期货资金账户 - TThostFtdcAccountIDType FutureAccount; - ///密码标志 - TThostFtdcFuturePwdFlagType FuturePwdFlag; - ///密码 - TThostFtdcFutureAccPwdType FutureAccPwd; - ///币种:RMB-人民币 USD-美圆 HKD-港元 - TThostFtdcCurrencyCodeType CurrencyCode; -}; - -///查询银行资金请求响应 -struct CThostFtdcTransferQryBankRspField -{ - ///响应代码 - TThostFtdcRetCodeType RetCode; - ///响应信息 - TThostFtdcRetInfoType RetInfo; - ///资金账户 - TThostFtdcAccountIDType FutureAccount; - ///银行余额 - TThostFtdcMoneyType TradeAmt; - ///银行可用余额 - TThostFtdcMoneyType UseAmt; - ///银行可取余额 - TThostFtdcMoneyType FetchAmt; - ///币种 - TThostFtdcCurrencyCodeType CurrencyCode; -}; - -///查询银行交易明细请求,TradeCode=204999 -struct CThostFtdcTransferQryDetailReqField -{ - ///期货资金账户 - TThostFtdcAccountIDType FutureAccount; -}; - -///查询银行交易明细请求响应 -struct CThostFtdcTransferQryDetailRspField -{ - ///交易日期 - TThostFtdcDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///交易代码 - TThostFtdcTradeCodeType TradeCode; - ///期货流水号 - TThostFtdcTradeSerialNoType FutureSerial; - ///期货公司代码 - TThostFtdcFutureIDType FutureID; - ///资金帐号 - TThostFtdcFutureAccountType FutureAccount; - ///银行流水号 - TThostFtdcTradeSerialNoType BankSerial; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分中心代码 - TThostFtdcBankBrchIDType BankBrchID; - ///银行账号 - TThostFtdcBankAccountType BankAccount; - ///证件号码 - TThostFtdcCertCodeType CertCode; - ///货币代码 - TThostFtdcCurrencyCodeType CurrencyCode; - ///发生金额 - TThostFtdcMoneyType TxAmount; - ///有效标志 - TThostFtdcTransferValidFlagType Flag; -}; - -///响应信息 -struct CThostFtdcRspInfoField -{ - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - -///交易所 -struct CThostFtdcExchangeField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易所名称 - TThostFtdcExchangeNameType ExchangeName; - ///交易所属性 - TThostFtdcExchangePropertyType ExchangeProperty; -}; - -///产品 -struct CThostFtdcProductField -{ - ///产品代码 - TThostFtdcInstrumentIDType ProductID; - ///产品名称 - TThostFtdcProductNameType ProductName; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///产品类型 - TThostFtdcProductClassType ProductClass; - ///合约数量乘数 - TThostFtdcVolumeMultipleType VolumeMultiple; - ///最小变动价位 - TThostFtdcPriceType PriceTick; - ///市价单最大下单量 - TThostFtdcVolumeType MaxMarketOrderVolume; - ///市价单最小下单量 - TThostFtdcVolumeType MinMarketOrderVolume; - ///限价单最大下单量 - TThostFtdcVolumeType MaxLimitOrderVolume; - ///限价单最小下单量 - TThostFtdcVolumeType MinLimitOrderVolume; - ///持仓类型 - TThostFtdcPositionTypeType PositionType; - ///持仓日期类型 - TThostFtdcPositionDateTypeType PositionDateType; - ///平仓处理类型 - TThostFtdcCloseDealTypeType CloseDealType; - ///交易币种类型 - TThostFtdcCurrencyIDType TradeCurrencyID; - ///质押资金可用范围 - TThostFtdcMortgageFundUseRangeType MortgageFundUseRange; - ///交易所产品代码 - TThostFtdcInstrumentIDType ExchangeProductID; - ///合约基础商品乘数 - TThostFtdcUnderlyingMultipleType UnderlyingMultiple; -}; - -///合约 -struct CThostFtdcInstrumentField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///合约名称 - TThostFtdcInstrumentNameType InstrumentName; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///产品代码 - TThostFtdcInstrumentIDType ProductID; - ///产品类型 - TThostFtdcProductClassType ProductClass; - ///交割年份 - TThostFtdcYearType DeliveryYear; - ///交割月 - TThostFtdcMonthType DeliveryMonth; - ///市价单最大下单量 - TThostFtdcVolumeType MaxMarketOrderVolume; - ///市价单最小下单量 - TThostFtdcVolumeType MinMarketOrderVolume; - ///限价单最大下单量 - TThostFtdcVolumeType MaxLimitOrderVolume; - ///限价单最小下单量 - TThostFtdcVolumeType MinLimitOrderVolume; - ///合约数量乘数 - TThostFtdcVolumeMultipleType VolumeMultiple; - ///最小变动价位 - TThostFtdcPriceType PriceTick; - ///创建日 - TThostFtdcDateType CreateDate; - ///上市日 - TThostFtdcDateType OpenDate; - ///到期日 - TThostFtdcDateType ExpireDate; - ///开始交割日 - TThostFtdcDateType StartDelivDate; - ///结束交割日 - TThostFtdcDateType EndDelivDate; - ///合约生命周期状态 - TThostFtdcInstLifePhaseType InstLifePhase; - ///当前是否交易 - TThostFtdcBoolType IsTrading; - ///持仓类型 - TThostFtdcPositionTypeType PositionType; - ///持仓日期类型 - TThostFtdcPositionDateTypeType PositionDateType; - ///多头保证金率 - TThostFtdcRatioType LongMarginRatio; - ///空头保证金率 - TThostFtdcRatioType ShortMarginRatio; - ///是否使用大额单边保证金算法 - TThostFtdcMaxMarginSideAlgorithmType MaxMarginSideAlgorithm; - ///基础商品代码 - TThostFtdcInstrumentIDType UnderlyingInstrID; - ///执行价 - TThostFtdcPriceType StrikePrice; - ///期权类型 - TThostFtdcOptionsTypeType OptionsType; - ///合约基础商品乘数 - TThostFtdcUnderlyingMultipleType UnderlyingMultiple; - ///组合类型 - TThostFtdcCombinationTypeType CombinationType; -}; - -///经纪公司 -struct CThostFtdcBrokerField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///经纪公司简称 - TThostFtdcBrokerAbbrType BrokerAbbr; - ///经纪公司名称 - TThostFtdcBrokerNameType BrokerName; - ///是否活跃 - TThostFtdcBoolType IsActive; -}; - -///交易所交易员 -struct CThostFtdcTraderField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///密码 - TThostFtdcPasswordType Password; - ///安装数量 - TThostFtdcInstallCountType InstallCount; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; -}; - -///投资者 -struct CThostFtdcInvestorField -{ - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者分组代码 - TThostFtdcInvestorIDType InvestorGroupID; - ///投资者名称 - TThostFtdcPartyNameType InvestorName; - ///证件类型 - TThostFtdcIdCardTypeType IdentifiedCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///是否活跃 - TThostFtdcBoolType IsActive; - ///联系电话 - TThostFtdcTelephoneType Telephone; - ///通讯地址 - TThostFtdcAddressType Address; - ///开户日期 - TThostFtdcDateType OpenDate; - ///手机 - TThostFtdcMobileType Mobile; - ///手续费率模板代码 - TThostFtdcInvestorIDType CommModelID; - ///保证金率模板代码 - TThostFtdcInvestorIDType MarginModelID; -}; - -///交易编码 -struct CThostFtdcTradingCodeField -{ - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///是否活跃 - TThostFtdcBoolType IsActive; - ///交易编码类型 - TThostFtdcClientIDTypeType ClientIDType; -}; - -///会员编码和经纪公司编码对照表 -struct CThostFtdcPartBrokerField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///是否活跃 - TThostFtdcBoolType IsActive; -}; - -///管理用户 -struct CThostFtdcSuperUserField -{ - ///用户代码 - TThostFtdcUserIDType UserID; - ///用户名称 - TThostFtdcUserNameType UserName; - ///密码 - TThostFtdcPasswordType Password; - ///是否活跃 - TThostFtdcBoolType IsActive; -}; - -///管理用户功能权限 -struct CThostFtdcSuperUserFunctionField -{ - ///用户代码 - TThostFtdcUserIDType UserID; - ///功能代码 - TThostFtdcFunctionCodeType FunctionCode; -}; - -///投资者组 -struct CThostFtdcInvestorGroupField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者分组代码 - TThostFtdcInvestorIDType InvestorGroupID; - ///投资者分组名称 - TThostFtdcInvestorGroupNameType InvestorGroupName; -}; - -///资金账户 -struct CThostFtdcTradingAccountField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///上次质押金额 - TThostFtdcMoneyType PreMortgage; - ///上次信用额度 - TThostFtdcMoneyType PreCredit; - ///上次存款额 - TThostFtdcMoneyType PreDeposit; - ///上次结算准备金 - TThostFtdcMoneyType PreBalance; - ///上次占用的保证金 - TThostFtdcMoneyType PreMargin; - ///利息基数 - TThostFtdcMoneyType InterestBase; - ///利息收入 - TThostFtdcMoneyType Interest; - ///入金金额 - TThostFtdcMoneyType Deposit; - ///出金金额 - TThostFtdcMoneyType Withdraw; - ///冻结的保证金 - TThostFtdcMoneyType FrozenMargin; - ///冻结的资金 - TThostFtdcMoneyType FrozenCash; - ///冻结的手续费 - TThostFtdcMoneyType FrozenCommission; - ///当前保证金总额 - TThostFtdcMoneyType CurrMargin; - ///资金差额 - TThostFtdcMoneyType CashIn; - ///手续费 - TThostFtdcMoneyType Commission; - ///平仓盈亏 - TThostFtdcMoneyType CloseProfit; - ///持仓盈亏 - TThostFtdcMoneyType PositionProfit; - ///期货结算准备金 - TThostFtdcMoneyType Balance; - ///可用资金 - TThostFtdcMoneyType Available; - ///可取资金 - TThostFtdcMoneyType WithdrawQuota; - ///基本准备金 - TThostFtdcMoneyType Reserve; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///信用额度 - TThostFtdcMoneyType Credit; - ///质押金额 - TThostFtdcMoneyType Mortgage; - ///交易所保证金 - TThostFtdcMoneyType ExchangeMargin; - ///投资者交割保证金 - TThostFtdcMoneyType DeliveryMargin; - ///交易所交割保证金 - TThostFtdcMoneyType ExchangeDeliveryMargin; - ///保底期货结算准备金 - TThostFtdcMoneyType ReserveBalance; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///上次货币质入金额 - TThostFtdcMoneyType PreFundMortgageIn; - ///上次货币质出金额 - TThostFtdcMoneyType PreFundMortgageOut; - ///货币质入金额 - TThostFtdcMoneyType FundMortgageIn; - ///货币质出金额 - TThostFtdcMoneyType FundMortgageOut; - ///货币质押余额 - TThostFtdcMoneyType FundMortgageAvailable; - ///可质押货币金额 - TThostFtdcMoneyType MortgageableFund; - ///特殊产品占用保证金 - TThostFtdcMoneyType SpecProductMargin; - ///特殊产品冻结保证金 - TThostFtdcMoneyType SpecProductFrozenMargin; - ///特殊产品手续费 - TThostFtdcMoneyType SpecProductCommission; - ///特殊产品冻结手续费 - TThostFtdcMoneyType SpecProductFrozenCommission; - ///特殊产品持仓盈亏 - TThostFtdcMoneyType SpecProductPositionProfit; - ///特殊产品平仓盈亏 - TThostFtdcMoneyType SpecProductCloseProfit; - ///根据持仓盈亏算法计算的特殊产品持仓盈亏 - TThostFtdcMoneyType SpecProductPositionProfitByAlg; - ///特殊产品交易所保证金 - TThostFtdcMoneyType SpecProductExchangeMargin; -}; - -///投资者持仓 -struct CThostFtdcInvestorPositionField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///持仓多空方向 - TThostFtdcPosiDirectionType PosiDirection; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///持仓日期 - TThostFtdcPositionDateType PositionDate; - ///上日持仓 - TThostFtdcVolumeType YdPosition; - ///今日持仓 - TThostFtdcVolumeType Position; - ///多头冻结 - TThostFtdcVolumeType LongFrozen; - ///空头冻结 - TThostFtdcVolumeType ShortFrozen; - ///开仓冻结金额 - TThostFtdcMoneyType LongFrozenAmount; - ///开仓冻结金额 - TThostFtdcMoneyType ShortFrozenAmount; - ///开仓量 - TThostFtdcVolumeType OpenVolume; - ///平仓量 - TThostFtdcVolumeType CloseVolume; - ///开仓金额 - TThostFtdcMoneyType OpenAmount; - ///平仓金额 - TThostFtdcMoneyType CloseAmount; - ///持仓成本 - TThostFtdcMoneyType PositionCost; - ///上次占用的保证金 - TThostFtdcMoneyType PreMargin; - ///占用的保证金 - TThostFtdcMoneyType UseMargin; - ///冻结的保证金 - TThostFtdcMoneyType FrozenMargin; - ///冻结的资金 - TThostFtdcMoneyType FrozenCash; - ///冻结的手续费 - TThostFtdcMoneyType FrozenCommission; - ///资金差额 - TThostFtdcMoneyType CashIn; - ///手续费 - TThostFtdcMoneyType Commission; - ///平仓盈亏 - TThostFtdcMoneyType CloseProfit; - ///持仓盈亏 - TThostFtdcMoneyType PositionProfit; - ///上次结算价 - TThostFtdcPriceType PreSettlementPrice; - ///本次结算价 - TThostFtdcPriceType SettlementPrice; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///开仓成本 - TThostFtdcMoneyType OpenCost; - ///交易所保证金 - TThostFtdcMoneyType ExchangeMargin; - ///组合成交形成的持仓 - TThostFtdcVolumeType CombPosition; - ///组合多头冻结 - TThostFtdcVolumeType CombLongFrozen; - ///组合空头冻结 - TThostFtdcVolumeType CombShortFrozen; - ///逐日盯市平仓盈亏 - TThostFtdcMoneyType CloseProfitByDate; - ///逐笔对冲平仓盈亏 - TThostFtdcMoneyType CloseProfitByTrade; - ///今日持仓 - TThostFtdcVolumeType TodayPosition; - ///保证金率 - TThostFtdcRatioType MarginRateByMoney; - ///保证金率(按手数) - TThostFtdcRatioType MarginRateByVolume; - ///执行冻结 - TThostFtdcVolumeType StrikeFrozen; - ///执行冻结金额 - TThostFtdcMoneyType StrikeFrozenAmount; - ///放弃执行冻结 - TThostFtdcVolumeType AbandonFrozen; -}; - -///合约保证金率 -struct CThostFtdcInstrumentMarginRateField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///多头保证金率 - TThostFtdcRatioType LongMarginRatioByMoney; - ///多头保证金费 - TThostFtdcMoneyType LongMarginRatioByVolume; - ///空头保证金率 - TThostFtdcRatioType ShortMarginRatioByMoney; - ///空头保证金费 - TThostFtdcMoneyType ShortMarginRatioByVolume; - ///是否相对交易所收取 - TThostFtdcBoolType IsRelative; -}; - -///合约手续费率 -struct CThostFtdcInstrumentCommissionRateField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///开仓手续费率 - TThostFtdcRatioType OpenRatioByMoney; - ///开仓手续费 - TThostFtdcRatioType OpenRatioByVolume; - ///平仓手续费率 - TThostFtdcRatioType CloseRatioByMoney; - ///平仓手续费 - TThostFtdcRatioType CloseRatioByVolume; - ///平今手续费率 - TThostFtdcRatioType CloseTodayRatioByMoney; - ///平今手续费 - TThostFtdcRatioType CloseTodayRatioByVolume; -}; - -///深度行情 -struct CThostFtdcDepthMarketDataField -{ - ///交易日 - TThostFtdcDateType TradingDay; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///最新价 - TThostFtdcPriceType LastPrice; - ///上次结算价 - TThostFtdcPriceType PreSettlementPrice; - ///昨收盘 - TThostFtdcPriceType PreClosePrice; - ///昨持仓量 - TThostFtdcLargeVolumeType PreOpenInterest; - ///今开盘 - TThostFtdcPriceType OpenPrice; - ///最高价 - TThostFtdcPriceType HighestPrice; - ///最低价 - TThostFtdcPriceType LowestPrice; - ///数量 - TThostFtdcVolumeType Volume; - ///成交金额 - TThostFtdcMoneyType Turnover; - ///持仓量 - TThostFtdcLargeVolumeType OpenInterest; - ///今收盘 - TThostFtdcPriceType ClosePrice; - ///本次结算价 - TThostFtdcPriceType SettlementPrice; - ///涨停板价 - TThostFtdcPriceType UpperLimitPrice; - ///跌停板价 - TThostFtdcPriceType LowerLimitPrice; - ///昨虚实度 - TThostFtdcRatioType PreDelta; - ///今虚实度 - TThostFtdcRatioType CurrDelta; - ///最后修改时间 - TThostFtdcTimeType UpdateTime; - ///最后修改毫秒 - TThostFtdcMillisecType UpdateMillisec; - ///申买价一 - TThostFtdcPriceType BidPrice1; - ///申买量一 - TThostFtdcVolumeType BidVolume1; - ///申卖价一 - TThostFtdcPriceType AskPrice1; - ///申卖量一 - TThostFtdcVolumeType AskVolume1; - ///申买价二 - TThostFtdcPriceType BidPrice2; - ///申买量二 - TThostFtdcVolumeType BidVolume2; - ///申卖价二 - TThostFtdcPriceType AskPrice2; - ///申卖量二 - TThostFtdcVolumeType AskVolume2; - ///申买价三 - TThostFtdcPriceType BidPrice3; - ///申买量三 - TThostFtdcVolumeType BidVolume3; - ///申卖价三 - TThostFtdcPriceType AskPrice3; - ///申卖量三 - TThostFtdcVolumeType AskVolume3; - ///申买价四 - TThostFtdcPriceType BidPrice4; - ///申买量四 - TThostFtdcVolumeType BidVolume4; - ///申卖价四 - TThostFtdcPriceType AskPrice4; - ///申卖量四 - TThostFtdcVolumeType AskVolume4; - ///申买价五 - TThostFtdcPriceType BidPrice5; - ///申买量五 - TThostFtdcVolumeType BidVolume5; - ///申卖价五 - TThostFtdcPriceType AskPrice5; - ///申卖量五 - TThostFtdcVolumeType AskVolume5; - ///当日均价 - TThostFtdcPriceType AveragePrice; - ///业务日期 - TThostFtdcDateType ActionDay; -}; - -///投资者合约交易权限 -struct CThostFtdcInstrumentTradingRightField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///交易权限 - TThostFtdcTradingRightType TradingRight; -}; - -///经纪公司用户 -struct CThostFtdcBrokerUserField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///用户名称 - TThostFtdcUserNameType UserName; - ///用户类型 - TThostFtdcUserTypeType UserType; - ///是否活跃 - TThostFtdcBoolType IsActive; - ///是否使用令牌 - TThostFtdcBoolType IsUsingOTP; -}; - -///经纪公司用户口令 -struct CThostFtdcBrokerUserPasswordField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///密码 - TThostFtdcPasswordType Password; -}; - -///经纪公司用户功能权限 -struct CThostFtdcBrokerUserFunctionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///经纪公司功能代码 - TThostFtdcBrokerFunctionCodeType BrokerFunctionCode; -}; - -///交易所交易员报盘机 -struct CThostFtdcTraderOfferField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///密码 - TThostFtdcPasswordType Password; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///本地报单编号 - TThostFtdcOrderLocalIDType OrderLocalID; - ///交易所交易员连接状态 - TThostFtdcTraderConnectStatusType TraderConnectStatus; - ///发出连接请求的日期 - TThostFtdcDateType ConnectRequestDate; - ///发出连接请求的时间 - TThostFtdcTimeType ConnectRequestTime; - ///上次报告日期 - TThostFtdcDateType LastReportDate; - ///上次报告时间 - TThostFtdcTimeType LastReportTime; - ///完成连接日期 - TThostFtdcDateType ConnectDate; - ///完成连接时间 - TThostFtdcTimeType ConnectTime; - ///启动日期 - TThostFtdcDateType StartDate; - ///启动时间 - TThostFtdcTimeType StartTime; - ///交易日 - TThostFtdcDateType TradingDay; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///本席位最大成交编号 - TThostFtdcTradeIDType MaxTradeID; - ///本席位最大报单备拷 - TThostFtdcReturnCodeType MaxOrderMessageReference; -}; - -///投资者结算结果 -struct CThostFtdcSettlementInfoField -{ - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///消息正文 - TThostFtdcContentType Content; -}; - -///合约保证金率调整 -struct CThostFtdcInstrumentMarginRateAdjustField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///多头保证金率 - TThostFtdcRatioType LongMarginRatioByMoney; - ///多头保证金费 - TThostFtdcMoneyType LongMarginRatioByVolume; - ///空头保证金率 - TThostFtdcRatioType ShortMarginRatioByMoney; - ///空头保证金费 - TThostFtdcMoneyType ShortMarginRatioByVolume; - ///是否相对交易所收取 - TThostFtdcBoolType IsRelative; -}; - -///交易所保证金率 -struct CThostFtdcExchangeMarginRateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///多头保证金率 - TThostFtdcRatioType LongMarginRatioByMoney; - ///多头保证金费 - TThostFtdcMoneyType LongMarginRatioByVolume; - ///空头保证金率 - TThostFtdcRatioType ShortMarginRatioByMoney; - ///空头保证金费 - TThostFtdcMoneyType ShortMarginRatioByVolume; -}; - -///交易所保证金率调整 -struct CThostFtdcExchangeMarginRateAdjustField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///跟随交易所投资者多头保证金率 - TThostFtdcRatioType LongMarginRatioByMoney; - ///跟随交易所投资者多头保证金费 - TThostFtdcMoneyType LongMarginRatioByVolume; - ///跟随交易所投资者空头保证金率 - TThostFtdcRatioType ShortMarginRatioByMoney; - ///跟随交易所投资者空头保证金费 - TThostFtdcMoneyType ShortMarginRatioByVolume; - ///交易所多头保证金率 - TThostFtdcRatioType ExchLongMarginRatioByMoney; - ///交易所多头保证金费 - TThostFtdcMoneyType ExchLongMarginRatioByVolume; - ///交易所空头保证金率 - TThostFtdcRatioType ExchShortMarginRatioByMoney; - ///交易所空头保证金费 - TThostFtdcMoneyType ExchShortMarginRatioByVolume; - ///不跟随交易所投资者多头保证金率 - TThostFtdcRatioType NoLongMarginRatioByMoney; - ///不跟随交易所投资者多头保证金费 - TThostFtdcMoneyType NoLongMarginRatioByVolume; - ///不跟随交易所投资者空头保证金率 - TThostFtdcRatioType NoShortMarginRatioByMoney; - ///不跟随交易所投资者空头保证金费 - TThostFtdcMoneyType NoShortMarginRatioByVolume; -}; - -///汇率 -struct CThostFtdcExchangeRateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///源币种 - TThostFtdcCurrencyIDType FromCurrencyID; - ///源币种单位数量 - TThostFtdcCurrencyUnitType FromCurrencyUnit; - ///目标币种 - TThostFtdcCurrencyIDType ToCurrencyID; - ///汇率 - TThostFtdcExchangeRateType ExchangeRate; -}; - -///结算引用 -struct CThostFtdcSettlementRefField -{ - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; -}; - -///当前时间 -struct CThostFtdcCurrentTimeField -{ - ///当前日期 - TThostFtdcDateType CurrDate; - ///当前时间 - TThostFtdcTimeType CurrTime; - ///当前时间(毫秒) - TThostFtdcMillisecType CurrMillisec; - ///业务日期 - TThostFtdcDateType ActionDay; -}; - -///通讯阶段 -struct CThostFtdcCommPhaseField -{ - ///交易日 - TThostFtdcDateType TradingDay; - ///通讯时段编号 - TThostFtdcCommPhaseNoType CommPhaseNo; - ///系统编号 - TThostFtdcSystemIDType SystemID; -}; - -///登录信息 -struct CThostFtdcLoginInfoField -{ - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///登录日期 - TThostFtdcDateType LoginDate; - ///登录时间 - TThostFtdcTimeType LoginTime; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///用户端产品信息 - TThostFtdcProductInfoType UserProductInfo; - ///接口端产品信息 - TThostFtdcProductInfoType InterfaceProductInfo; - ///协议信息 - TThostFtdcProtocolInfoType ProtocolInfo; - ///系统名称 - TThostFtdcSystemNameType SystemName; - ///密码 - TThostFtdcPasswordType Password; - ///最大报单引用 - TThostFtdcOrderRefType MaxOrderRef; - ///上期所时间 - TThostFtdcTimeType SHFETime; - ///大商所时间 - TThostFtdcTimeType DCETime; - ///郑商所时间 - TThostFtdcTimeType CZCETime; - ///中金所时间 - TThostFtdcTimeType FFEXTime; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; - ///动态密码 - TThostFtdcPasswordType OneTimePassword; - ///能源中心时间 - TThostFtdcTimeType INETime; - ///查询时是否需要流控 - TThostFtdcBoolType IsQryControl; - ///登录备注 - TThostFtdcLoginRemarkType LoginRemark; -}; - -///登录信息 -struct CThostFtdcLogoutAllField -{ - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///系统名称 - TThostFtdcSystemNameType SystemName; -}; - -///前置状态 -struct CThostFtdcFrontStatusField -{ - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///上次报告日期 - TThostFtdcDateType LastReportDate; - ///上次报告时间 - TThostFtdcTimeType LastReportTime; - ///是否活跃 - TThostFtdcBoolType IsActive; -}; - -///用户口令变更 -struct CThostFtdcUserPasswordUpdateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///原来的口令 - TThostFtdcPasswordType OldPassword; - ///新的口令 - TThostFtdcPasswordType NewPassword; -}; - -///输入报单 -struct CThostFtdcInputOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///报单引用 - TThostFtdcOrderRefType OrderRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///报单价格条件 - TThostFtdcOrderPriceTypeType OrderPriceType; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///组合开平标志 - TThostFtdcCombOffsetFlagType CombOffsetFlag; - ///组合投机套保标志 - TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///价格 - TThostFtdcPriceType LimitPrice; - ///数量 - TThostFtdcVolumeType VolumeTotalOriginal; - ///有效期类型 - TThostFtdcTimeConditionType TimeCondition; - ///GTD日期 - TThostFtdcDateType GTDDate; - ///成交量类型 - TThostFtdcVolumeConditionType VolumeCondition; - ///最小成交量 - TThostFtdcVolumeType MinVolume; - ///触发条件 - TThostFtdcContingentConditionType ContingentCondition; - ///止损价 - TThostFtdcPriceType StopPrice; - ///强平原因 - TThostFtdcForceCloseReasonType ForceCloseReason; - ///自动挂起标志 - TThostFtdcBoolType IsAutoSuspend; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///用户强评标志 - TThostFtdcBoolType UserForceClose; - ///互换单标志 - TThostFtdcBoolType IsSwapOrder; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 - TThostFtdcAccountIDType AccountID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///交易编码 - TThostFtdcClientIDType ClientID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///报单 -struct CThostFtdcOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///报单引用 - TThostFtdcOrderRefType OrderRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///报单价格条件 - TThostFtdcOrderPriceTypeType OrderPriceType; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///组合开平标志 - TThostFtdcCombOffsetFlagType CombOffsetFlag; - ///组合投机套保标志 - TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///价格 - TThostFtdcPriceType LimitPrice; - ///数量 - TThostFtdcVolumeType VolumeTotalOriginal; - ///有效期类型 - TThostFtdcTimeConditionType TimeCondition; - ///GTD日期 - TThostFtdcDateType GTDDate; - ///成交量类型 - TThostFtdcVolumeConditionType VolumeCondition; - ///最小成交量 - TThostFtdcVolumeType MinVolume; - ///触发条件 - TThostFtdcContingentConditionType ContingentCondition; - ///止损价 - TThostFtdcPriceType StopPrice; - ///强平原因 - TThostFtdcForceCloseReasonType ForceCloseReason; - ///自动挂起标志 - TThostFtdcBoolType IsAutoSuspend; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///本地报单编号 - TThostFtdcOrderLocalIDType OrderLocalID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///报单提交状态 - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///报单提示序号 - TThostFtdcSequenceNoType NotifySequence; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///报单来源 - TThostFtdcOrderSourceType OrderSource; - ///报单状态 - TThostFtdcOrderStatusType OrderStatus; - ///报单类型 - TThostFtdcOrderTypeType OrderType; - ///今成交数量 - TThostFtdcVolumeType VolumeTraded; - ///剩余数量 - TThostFtdcVolumeType VolumeTotal; - ///报单日期 - TThostFtdcDateType InsertDate; - ///委托时间 - TThostFtdcTimeType InsertTime; - ///激活时间 - TThostFtdcTimeType ActiveTime; - ///挂起时间 - TThostFtdcTimeType SuspendTime; - ///最后修改时间 - TThostFtdcTimeType UpdateTime; - ///撤销时间 - TThostFtdcTimeType CancelTime; - ///最后修改交易所交易员代码 - TThostFtdcTraderIDType ActiveTraderID; - ///结算会员编号 - TThostFtdcParticipantIDType ClearingPartID; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///用户端产品信息 - TThostFtdcProductInfoType UserProductInfo; - ///状态信息 - TThostFtdcErrorMsgType StatusMsg; - ///用户强评标志 - TThostFtdcBoolType UserForceClose; - ///操作用户代码 - TThostFtdcUserIDType ActiveUserID; - ///经纪公司报单编号 - TThostFtdcSequenceNoType BrokerOrderSeq; - ///相关报单 - TThostFtdcOrderSysIDType RelativeOrderSysID; - ///郑商所成交数量 - TThostFtdcVolumeType ZCETotalTradedVolume; - ///互换单标志 - TThostFtdcBoolType IsSwapOrder; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 - TThostFtdcAccountIDType AccountID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///交易所报单 -struct CThostFtdcExchangeOrderField -{ - ///报单价格条件 - TThostFtdcOrderPriceTypeType OrderPriceType; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///组合开平标志 - TThostFtdcCombOffsetFlagType CombOffsetFlag; - ///组合投机套保标志 - TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///价格 - TThostFtdcPriceType LimitPrice; - ///数量 - TThostFtdcVolumeType VolumeTotalOriginal; - ///有效期类型 - TThostFtdcTimeConditionType TimeCondition; - ///GTD日期 - TThostFtdcDateType GTDDate; - ///成交量类型 - TThostFtdcVolumeConditionType VolumeCondition; - ///最小成交量 - TThostFtdcVolumeType MinVolume; - ///触发条件 - TThostFtdcContingentConditionType ContingentCondition; - ///止损价 - TThostFtdcPriceType StopPrice; - ///强平原因 - TThostFtdcForceCloseReasonType ForceCloseReason; - ///自动挂起标志 - TThostFtdcBoolType IsAutoSuspend; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///本地报单编号 - TThostFtdcOrderLocalIDType OrderLocalID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///报单提交状态 - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///报单提示序号 - TThostFtdcSequenceNoType NotifySequence; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///报单来源 - TThostFtdcOrderSourceType OrderSource; - ///报单状态 - TThostFtdcOrderStatusType OrderStatus; - ///报单类型 - TThostFtdcOrderTypeType OrderType; - ///今成交数量 - TThostFtdcVolumeType VolumeTraded; - ///剩余数量 - TThostFtdcVolumeType VolumeTotal; - ///报单日期 - TThostFtdcDateType InsertDate; - ///委托时间 - TThostFtdcTimeType InsertTime; - ///激活时间 - TThostFtdcTimeType ActiveTime; - ///挂起时间 - TThostFtdcTimeType SuspendTime; - ///最后修改时间 - TThostFtdcTimeType UpdateTime; - ///撤销时间 - TThostFtdcTimeType CancelTime; - ///最后修改交易所交易员代码 - TThostFtdcTraderIDType ActiveTraderID; - ///结算会员编号 - TThostFtdcParticipantIDType ClearingPartID; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///交易所报单插入失败 -struct CThostFtdcExchangeOrderInsertErrorField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///本地报单编号 - TThostFtdcOrderLocalIDType OrderLocalID; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - -///输入报单操作 -struct CThostFtdcInputOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///报单操作引用 - TThostFtdcOrderActionRefType OrderActionRef; - ///报单引用 - TThostFtdcOrderRefType OrderRef; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///操作标志 - TThostFtdcActionFlagType ActionFlag; - ///价格 - TThostFtdcPriceType LimitPrice; - ///数量变化 - TThostFtdcVolumeType VolumeChange; - ///用户代码 - TThostFtdcUserIDType UserID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///报单操作 -struct CThostFtdcOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///报单操作引用 - TThostFtdcOrderActionRefType OrderActionRef; - ///报单引用 - TThostFtdcOrderRefType OrderRef; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///操作标志 - TThostFtdcActionFlagType ActionFlag; - ///价格 - TThostFtdcPriceType LimitPrice; - ///数量变化 - TThostFtdcVolumeType VolumeChange; - ///操作日期 - TThostFtdcDateType ActionDate; - ///操作时间 - TThostFtdcTimeType ActionTime; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///本地报单编号 - TThostFtdcOrderLocalIDType OrderLocalID; - ///操作本地编号 - TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 - TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 - TThostFtdcUserIDType UserID; - ///状态信息 - TThostFtdcErrorMsgType StatusMsg; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///交易所报单操作 -struct CThostFtdcExchangeOrderActionField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///操作标志 - TThostFtdcActionFlagType ActionFlag; - ///价格 - TThostFtdcPriceType LimitPrice; - ///数量变化 - TThostFtdcVolumeType VolumeChange; - ///操作日期 - TThostFtdcDateType ActionDate; - ///操作时间 - TThostFtdcTimeType ActionTime; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///本地报单编号 - TThostFtdcOrderLocalIDType OrderLocalID; - ///操作本地编号 - TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 - TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 - TThostFtdcUserIDType UserID; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///交易所报单操作失败 -struct CThostFtdcExchangeOrderActionErrorField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///本地报单编号 - TThostFtdcOrderLocalIDType OrderLocalID; - ///操作本地编号 - TThostFtdcOrderLocalIDType ActionLocalID; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - -///交易所成交 -struct CThostFtdcExchangeTradeField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///成交编号 - TThostFtdcTradeIDType TradeID; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///交易角色 - TThostFtdcTradingRoleType TradingRole; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///开平标志 - TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///价格 - TThostFtdcPriceType Price; - ///数量 - TThostFtdcVolumeType Volume; - ///成交时期 - TThostFtdcDateType TradeDate; - ///成交时间 - TThostFtdcTimeType TradeTime; - ///成交类型 - TThostFtdcTradeTypeType TradeType; - ///成交价来源 - TThostFtdcPriceSourceType PriceSource; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///本地报单编号 - TThostFtdcOrderLocalIDType OrderLocalID; - ///结算会员编号 - TThostFtdcParticipantIDType ClearingPartID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///成交来源 - TThostFtdcTradeSourceType TradeSource; -}; - -///成交 -struct CThostFtdcTradeField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///报单引用 - TThostFtdcOrderRefType OrderRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///成交编号 - TThostFtdcTradeIDType TradeID; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///交易角色 - TThostFtdcTradingRoleType TradingRole; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///开平标志 - TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///价格 - TThostFtdcPriceType Price; - ///数量 - TThostFtdcVolumeType Volume; - ///成交时期 - TThostFtdcDateType TradeDate; - ///成交时间 - TThostFtdcTimeType TradeTime; - ///成交类型 - TThostFtdcTradeTypeType TradeType; - ///成交价来源 - TThostFtdcPriceSourceType PriceSource; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///本地报单编号 - TThostFtdcOrderLocalIDType OrderLocalID; - ///结算会员编号 - TThostFtdcParticipantIDType ClearingPartID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///经纪公司报单编号 - TThostFtdcSequenceNoType BrokerOrderSeq; - ///成交来源 - TThostFtdcTradeSourceType TradeSource; -}; - -///用户会话 -struct CThostFtdcUserSessionField -{ - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///登录日期 - TThostFtdcDateType LoginDate; - ///登录时间 - TThostFtdcTimeType LoginTime; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///用户端产品信息 - TThostFtdcProductInfoType UserProductInfo; - ///接口端产品信息 - TThostFtdcProductInfoType InterfaceProductInfo; - ///协议信息 - TThostFtdcProtocolInfoType ProtocolInfo; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; - ///登录备注 - TThostFtdcLoginRemarkType LoginRemark; -}; - -///查询最大报单数量 -struct CThostFtdcQueryMaxOrderVolumeField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///开平标志 - TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///最大允许报单数量 - TThostFtdcVolumeType MaxVolume; -}; - -///投资者结算结果确认信息 -struct CThostFtdcSettlementInfoConfirmField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///确认日期 - TThostFtdcDateType ConfirmDate; - ///确认时间 - TThostFtdcTimeType ConfirmTime; -}; - -///出入金同步 -struct CThostFtdcSyncDepositField -{ - ///出入金流水号 - TThostFtdcDepositSeqNoType DepositSeqNo; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///入金金额 - TThostFtdcMoneyType Deposit; - ///是否强制进行 - TThostFtdcBoolType IsForce; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; -}; - -///货币质押同步 -struct CThostFtdcSyncFundMortgageField -{ - ///货币质押流水号 - TThostFtdcDepositSeqNoType MortgageSeqNo; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///源币种 - TThostFtdcCurrencyIDType FromCurrencyID; - ///质押金额 - TThostFtdcMoneyType MortgageAmount; - ///目标币种 - TThostFtdcCurrencyIDType ToCurrencyID; -}; - -///经纪公司同步 -struct CThostFtdcBrokerSyncField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; -}; - -///正在同步中的投资者 -struct CThostFtdcSyncingInvestorField -{ - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者分组代码 - TThostFtdcInvestorIDType InvestorGroupID; - ///投资者名称 - TThostFtdcPartyNameType InvestorName; - ///证件类型 - TThostFtdcIdCardTypeType IdentifiedCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///是否活跃 - TThostFtdcBoolType IsActive; - ///联系电话 - TThostFtdcTelephoneType Telephone; - ///通讯地址 - TThostFtdcAddressType Address; - ///开户日期 - TThostFtdcDateType OpenDate; - ///手机 - TThostFtdcMobileType Mobile; - ///手续费率模板代码 - TThostFtdcInvestorIDType CommModelID; - ///保证金率模板代码 - TThostFtdcInvestorIDType MarginModelID; -}; - -///正在同步中的交易代码 -struct CThostFtdcSyncingTradingCodeField -{ - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///是否活跃 - TThostFtdcBoolType IsActive; - ///交易编码类型 - TThostFtdcClientIDTypeType ClientIDType; -}; - -///正在同步中的投资者分组 -struct CThostFtdcSyncingInvestorGroupField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者分组代码 - TThostFtdcInvestorIDType InvestorGroupID; - ///投资者分组名称 - TThostFtdcInvestorGroupNameType InvestorGroupName; -}; - -///正在同步中的交易账号 -struct CThostFtdcSyncingTradingAccountField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///上次质押金额 - TThostFtdcMoneyType PreMortgage; - ///上次信用额度 - TThostFtdcMoneyType PreCredit; - ///上次存款额 - TThostFtdcMoneyType PreDeposit; - ///上次结算准备金 - TThostFtdcMoneyType PreBalance; - ///上次占用的保证金 - TThostFtdcMoneyType PreMargin; - ///利息基数 - TThostFtdcMoneyType InterestBase; - ///利息收入 - TThostFtdcMoneyType Interest; - ///入金金额 - TThostFtdcMoneyType Deposit; - ///出金金额 - TThostFtdcMoneyType Withdraw; - ///冻结的保证金 - TThostFtdcMoneyType FrozenMargin; - ///冻结的资金 - TThostFtdcMoneyType FrozenCash; - ///冻结的手续费 - TThostFtdcMoneyType FrozenCommission; - ///当前保证金总额 - TThostFtdcMoneyType CurrMargin; - ///资金差额 - TThostFtdcMoneyType CashIn; - ///手续费 - TThostFtdcMoneyType Commission; - ///平仓盈亏 - TThostFtdcMoneyType CloseProfit; - ///持仓盈亏 - TThostFtdcMoneyType PositionProfit; - ///期货结算准备金 - TThostFtdcMoneyType Balance; - ///可用资金 - TThostFtdcMoneyType Available; - ///可取资金 - TThostFtdcMoneyType WithdrawQuota; - ///基本准备金 - TThostFtdcMoneyType Reserve; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///信用额度 - TThostFtdcMoneyType Credit; - ///质押金额 - TThostFtdcMoneyType Mortgage; - ///交易所保证金 - TThostFtdcMoneyType ExchangeMargin; - ///投资者交割保证金 - TThostFtdcMoneyType DeliveryMargin; - ///交易所交割保证金 - TThostFtdcMoneyType ExchangeDeliveryMargin; - ///保底期货结算准备金 - TThostFtdcMoneyType ReserveBalance; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///上次货币质入金额 - TThostFtdcMoneyType PreFundMortgageIn; - ///上次货币质出金额 - TThostFtdcMoneyType PreFundMortgageOut; - ///货币质入金额 - TThostFtdcMoneyType FundMortgageIn; - ///货币质出金额 - TThostFtdcMoneyType FundMortgageOut; - ///货币质押余额 - TThostFtdcMoneyType FundMortgageAvailable; - ///可质押货币金额 - TThostFtdcMoneyType MortgageableFund; - ///特殊产品占用保证金 - TThostFtdcMoneyType SpecProductMargin; - ///特殊产品冻结保证金 - TThostFtdcMoneyType SpecProductFrozenMargin; - ///特殊产品手续费 - TThostFtdcMoneyType SpecProductCommission; - ///特殊产品冻结手续费 - TThostFtdcMoneyType SpecProductFrozenCommission; - ///特殊产品持仓盈亏 - TThostFtdcMoneyType SpecProductPositionProfit; - ///特殊产品平仓盈亏 - TThostFtdcMoneyType SpecProductCloseProfit; - ///根据持仓盈亏算法计算的特殊产品持仓盈亏 - TThostFtdcMoneyType SpecProductPositionProfitByAlg; - ///特殊产品交易所保证金 - TThostFtdcMoneyType SpecProductExchangeMargin; -}; - -///正在同步中的投资者持仓 -struct CThostFtdcSyncingInvestorPositionField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///持仓多空方向 - TThostFtdcPosiDirectionType PosiDirection; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///持仓日期 - TThostFtdcPositionDateType PositionDate; - ///上日持仓 - TThostFtdcVolumeType YdPosition; - ///今日持仓 - TThostFtdcVolumeType Position; - ///多头冻结 - TThostFtdcVolumeType LongFrozen; - ///空头冻结 - TThostFtdcVolumeType ShortFrozen; - ///开仓冻结金额 - TThostFtdcMoneyType LongFrozenAmount; - ///开仓冻结金额 - TThostFtdcMoneyType ShortFrozenAmount; - ///开仓量 - TThostFtdcVolumeType OpenVolume; - ///平仓量 - TThostFtdcVolumeType CloseVolume; - ///开仓金额 - TThostFtdcMoneyType OpenAmount; - ///平仓金额 - TThostFtdcMoneyType CloseAmount; - ///持仓成本 - TThostFtdcMoneyType PositionCost; - ///上次占用的保证金 - TThostFtdcMoneyType PreMargin; - ///占用的保证金 - TThostFtdcMoneyType UseMargin; - ///冻结的保证金 - TThostFtdcMoneyType FrozenMargin; - ///冻结的资金 - TThostFtdcMoneyType FrozenCash; - ///冻结的手续费 - TThostFtdcMoneyType FrozenCommission; - ///资金差额 - TThostFtdcMoneyType CashIn; - ///手续费 - TThostFtdcMoneyType Commission; - ///平仓盈亏 - TThostFtdcMoneyType CloseProfit; - ///持仓盈亏 - TThostFtdcMoneyType PositionProfit; - ///上次结算价 - TThostFtdcPriceType PreSettlementPrice; - ///本次结算价 - TThostFtdcPriceType SettlementPrice; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///开仓成本 - TThostFtdcMoneyType OpenCost; - ///交易所保证金 - TThostFtdcMoneyType ExchangeMargin; - ///组合成交形成的持仓 - TThostFtdcVolumeType CombPosition; - ///组合多头冻结 - TThostFtdcVolumeType CombLongFrozen; - ///组合空头冻结 - TThostFtdcVolumeType CombShortFrozen; - ///逐日盯市平仓盈亏 - TThostFtdcMoneyType CloseProfitByDate; - ///逐笔对冲平仓盈亏 - TThostFtdcMoneyType CloseProfitByTrade; - ///今日持仓 - TThostFtdcVolumeType TodayPosition; - ///保证金率 - TThostFtdcRatioType MarginRateByMoney; - ///保证金率(按手数) - TThostFtdcRatioType MarginRateByVolume; - ///执行冻结 - TThostFtdcVolumeType StrikeFrozen; - ///执行冻结金额 - TThostFtdcMoneyType StrikeFrozenAmount; - ///放弃执行冻结 - TThostFtdcVolumeType AbandonFrozen; -}; - -///正在同步中的合约保证金率 -struct CThostFtdcSyncingInstrumentMarginRateField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///多头保证金率 - TThostFtdcRatioType LongMarginRatioByMoney; - ///多头保证金费 - TThostFtdcMoneyType LongMarginRatioByVolume; - ///空头保证金率 - TThostFtdcRatioType ShortMarginRatioByMoney; - ///空头保证金费 - TThostFtdcMoneyType ShortMarginRatioByVolume; - ///是否相对交易所收取 - TThostFtdcBoolType IsRelative; -}; - -///正在同步中的合约手续费率 -struct CThostFtdcSyncingInstrumentCommissionRateField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///开仓手续费率 - TThostFtdcRatioType OpenRatioByMoney; - ///开仓手续费 - TThostFtdcRatioType OpenRatioByVolume; - ///平仓手续费率 - TThostFtdcRatioType CloseRatioByMoney; - ///平仓手续费 - TThostFtdcRatioType CloseRatioByVolume; - ///平今手续费率 - TThostFtdcRatioType CloseTodayRatioByMoney; - ///平今手续费 - TThostFtdcRatioType CloseTodayRatioByVolume; -}; - -///正在同步中的合约交易权限 -struct CThostFtdcSyncingInstrumentTradingRightField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///交易权限 - TThostFtdcTradingRightType TradingRight; -}; - -///查询报单 -struct CThostFtdcQryOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///开始时间 - TThostFtdcTimeType InsertTimeStart; - ///结束时间 - TThostFtdcTimeType InsertTimeEnd; -}; - -///查询成交 -struct CThostFtdcQryTradeField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///成交编号 - TThostFtdcTradeIDType TradeID; - ///开始时间 - TThostFtdcTimeType TradeTimeStart; - ///结束时间 - TThostFtdcTimeType TradeTimeEnd; -}; - -///查询投资者持仓 -struct CThostFtdcQryInvestorPositionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///查询资金账户 -struct CThostFtdcQryTradingAccountField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; -}; - -///查询投资者 -struct CThostFtdcQryInvestorField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; -}; - -///查询交易编码 -struct CThostFtdcQryTradingCodeField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///交易编码类型 - TThostFtdcClientIDTypeType ClientIDType; -}; - -///查询投资者组 -struct CThostFtdcQryInvestorGroupField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; -}; - -///查询合约保证金率 -struct CThostFtdcQryInstrumentMarginRateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; -}; - -///查询手续费率 -struct CThostFtdcQryInstrumentCommissionRateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///查询合约交易权限 -struct CThostFtdcQryInstrumentTradingRightField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///查询经纪公司 -struct CThostFtdcQryBrokerField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; -}; - -///查询交易员 -struct CThostFtdcQryTraderField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; -}; - -///查询管理用户功能权限 -struct CThostFtdcQrySuperUserFunctionField -{ - ///用户代码 - TThostFtdcUserIDType UserID; -}; - -///查询用户会话 -struct CThostFtdcQryUserSessionField -{ - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; -}; - -///查询经纪公司会员代码 -struct CThostFtdcQryPartBrokerField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; -}; - -///查询前置状态 -struct CThostFtdcQryFrontStatusField -{ - ///前置编号 - TThostFtdcFrontIDType FrontID; -}; - -///查询交易所报单 -struct CThostFtdcQryExchangeOrderField -{ - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; -}; - -///查询报单操作 -struct CThostFtdcQryOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///查询交易所报单操作 -struct CThostFtdcQryExchangeOrderActionField -{ - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; -}; - -///查询管理用户 -struct CThostFtdcQrySuperUserField -{ - ///用户代码 - TThostFtdcUserIDType UserID; -}; - -///查询交易所 -struct CThostFtdcQryExchangeField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///查询产品 -struct CThostFtdcQryProductField -{ - ///产品代码 - TThostFtdcInstrumentIDType ProductID; - ///产品类型 - TThostFtdcProductClassType ProductClass; -}; - -///查询合约 -struct CThostFtdcQryInstrumentField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///产品代码 - TThostFtdcInstrumentIDType ProductID; -}; - -///查询行情 -struct CThostFtdcQryDepthMarketDataField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///查询经纪公司用户 -struct CThostFtdcQryBrokerUserField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; -}; - -///查询经纪公司用户权限 -struct CThostFtdcQryBrokerUserFunctionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; -}; - -///查询交易员报盘机 -struct CThostFtdcQryTraderOfferField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; -}; - -///查询出入金流水 -struct CThostFtdcQrySyncDepositField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///出入金流水号 - TThostFtdcDepositSeqNoType DepositSeqNo; -}; - -///查询投资者结算结果 -struct CThostFtdcQrySettlementInfoField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///交易日 - TThostFtdcDateType TradingDay; -}; - -///查询交易所保证金率 -struct CThostFtdcQryExchangeMarginRateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; -}; - -///查询交易所调整保证金率 -struct CThostFtdcQryExchangeMarginRateAdjustField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; -}; - -///查询汇率 -struct CThostFtdcQryExchangeRateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///源币种 - TThostFtdcCurrencyIDType FromCurrencyID; - ///目标币种 - TThostFtdcCurrencyIDType ToCurrencyID; -}; - -///查询货币质押流水 -struct CThostFtdcQrySyncFundMortgageField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///货币质押流水号 - TThostFtdcDepositSeqNoType MortgageSeqNo; -}; - -///查询报单 -struct CThostFtdcQryHisOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///开始时间 - TThostFtdcTimeType InsertTimeStart; - ///结束时间 - TThostFtdcTimeType InsertTimeEnd; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; -}; - -///当前期权合约最小保证金 -struct CThostFtdcOptionInstrMiniMarginField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///单位(手)期权合约最小保证金 - TThostFtdcMoneyType MinMargin; - ///取值方式 - TThostFtdcValueMethodType ValueMethod; - ///是否跟随交易所收取 - TThostFtdcBoolType IsRelative; -}; - -///当前期权合约保证金调整系数 -struct CThostFtdcOptionInstrMarginAdjustField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///投机空头保证金调整系数 - TThostFtdcRatioType SShortMarginRatioByMoney; - ///投机空头保证金调整系数 - TThostFtdcMoneyType SShortMarginRatioByVolume; - ///保值空头保证金调整系数 - TThostFtdcRatioType HShortMarginRatioByMoney; - ///保值空头保证金调整系数 - TThostFtdcMoneyType HShortMarginRatioByVolume; - ///套利空头保证金调整系数 - TThostFtdcRatioType AShortMarginRatioByMoney; - ///套利空头保证金调整系数 - TThostFtdcMoneyType AShortMarginRatioByVolume; - ///是否跟随交易所收取 - TThostFtdcBoolType IsRelative; - ///做市商空头保证金调整系数 - TThostFtdcRatioType MShortMarginRatioByMoney; - ///做市商空头保证金调整系数 - TThostFtdcMoneyType MShortMarginRatioByVolume; -}; - -///当前期权合约手续费的详细内容 -struct CThostFtdcOptionInstrCommRateField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///开仓手续费率 - TThostFtdcRatioType OpenRatioByMoney; - ///开仓手续费 - TThostFtdcRatioType OpenRatioByVolume; - ///平仓手续费率 - TThostFtdcRatioType CloseRatioByMoney; - ///平仓手续费 - TThostFtdcRatioType CloseRatioByVolume; - ///平今手续费率 - TThostFtdcRatioType CloseTodayRatioByMoney; - ///平今手续费 - TThostFtdcRatioType CloseTodayRatioByVolume; - ///执行手续费率 - TThostFtdcRatioType StrikeRatioByMoney; - ///执行手续费 - TThostFtdcRatioType StrikeRatioByVolume; -}; - -///期权交易成本 -struct CThostFtdcOptionInstrTradeCostField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///期权合约保证金不变部分 - TThostFtdcMoneyType FixedMargin; - ///期权合约最小保证金 - TThostFtdcMoneyType MiniMargin; - ///期权合约权利金 - TThostFtdcMoneyType Royalty; - ///交易所期权合约保证金不变部分 - TThostFtdcMoneyType ExchFixedMargin; - ///交易所期权合约最小保证金 - TThostFtdcMoneyType ExchMiniMargin; -}; - -///期权交易成本查询 -struct CThostFtdcQryOptionInstrTradeCostField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///期权合约报价 - TThostFtdcPriceType InputPrice; - ///标的价格,填0则用昨结算价 - TThostFtdcPriceType UnderlyingPrice; -}; - -///期权手续费率查询 -struct CThostFtdcQryOptionInstrCommRateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///股指现货指数 -struct CThostFtdcIndexPriceField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///指数现货收盘价 - TThostFtdcPriceType ClosePrice; -}; - -///输入的执行宣告 -struct CThostFtdcInputExecOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///执行宣告引用 - TThostFtdcOrderRefType ExecOrderRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///数量 - TThostFtdcVolumeType Volume; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///开平标志 - TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///执行类型 - TThostFtdcActionTypeType ActionType; - ///保留头寸申请的持仓方向 - TThostFtdcPosiDirectionType PosiDirection; - ///期权行权后是否保留期货头寸的标记 - TThostFtdcExecOrderPositionFlagType ReservePositionFlag; - ///期权行权后生成的头寸是否自动平仓 - TThostFtdcExecOrderCloseFlagType CloseFlag; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 - TThostFtdcAccountIDType AccountID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///交易编码 - TThostFtdcClientIDType ClientID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///输入执行宣告操作 -struct CThostFtdcInputExecOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///执行宣告操作引用 - TThostFtdcOrderActionRefType ExecOrderActionRef; - ///执行宣告引用 - TThostFtdcOrderRefType ExecOrderRef; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///执行宣告操作编号 - TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///操作标志 - TThostFtdcActionFlagType ActionFlag; - ///用户代码 - TThostFtdcUserIDType UserID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///执行宣告 -struct CThostFtdcExecOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///执行宣告引用 - TThostFtdcOrderRefType ExecOrderRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///数量 - TThostFtdcVolumeType Volume; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///开平标志 - TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///执行类型 - TThostFtdcActionTypeType ActionType; - ///保留头寸申请的持仓方向 - TThostFtdcPosiDirectionType PosiDirection; - ///期权行权后是否保留期货头寸的标记 - TThostFtdcExecOrderPositionFlagType ReservePositionFlag; - ///期权行权后生成的头寸是否自动平仓 - TThostFtdcExecOrderCloseFlagType CloseFlag; - ///本地执行宣告编号 - TThostFtdcOrderLocalIDType ExecOrderLocalID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///执行宣告提交状态 - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///报单提示序号 - TThostFtdcSequenceNoType NotifySequence; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///执行宣告编号 - TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///报单日期 - TThostFtdcDateType InsertDate; - ///插入时间 - TThostFtdcTimeType InsertTime; - ///撤销时间 - TThostFtdcTimeType CancelTime; - ///执行结果 - TThostFtdcExecResultType ExecResult; - ///结算会员编号 - TThostFtdcParticipantIDType ClearingPartID; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///用户端产品信息 - TThostFtdcProductInfoType UserProductInfo; - ///状态信息 - TThostFtdcErrorMsgType StatusMsg; - ///操作用户代码 - TThostFtdcUserIDType ActiveUserID; - ///经纪公司报单编号 - TThostFtdcSequenceNoType BrokerExecOrderSeq; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 - TThostFtdcAccountIDType AccountID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///执行宣告操作 -struct CThostFtdcExecOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///执行宣告操作引用 - TThostFtdcOrderActionRefType ExecOrderActionRef; - ///执行宣告引用 - TThostFtdcOrderRefType ExecOrderRef; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///执行宣告操作编号 - TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///操作标志 - TThostFtdcActionFlagType ActionFlag; - ///操作日期 - TThostFtdcDateType ActionDate; - ///操作时间 - TThostFtdcTimeType ActionTime; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///本地执行宣告编号 - TThostFtdcOrderLocalIDType ExecOrderLocalID; - ///操作本地编号 - TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 - TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 - TThostFtdcUserIDType UserID; - ///执行类型 - TThostFtdcActionTypeType ActionType; - ///状态信息 - TThostFtdcErrorMsgType StatusMsg; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///执行宣告查询 -struct CThostFtdcQryExecOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///执行宣告编号 - TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///开始时间 - TThostFtdcTimeType InsertTimeStart; - ///结束时间 - TThostFtdcTimeType InsertTimeEnd; -}; - -///交易所执行宣告信息 -struct CThostFtdcExchangeExecOrderField -{ - ///数量 - TThostFtdcVolumeType Volume; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///开平标志 - TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///执行类型 - TThostFtdcActionTypeType ActionType; - ///保留头寸申请的持仓方向 - TThostFtdcPosiDirectionType PosiDirection; - ///期权行权后是否保留期货头寸的标记 - TThostFtdcExecOrderPositionFlagType ReservePositionFlag; - ///期权行权后生成的头寸是否自动平仓 - TThostFtdcExecOrderCloseFlagType CloseFlag; - ///本地执行宣告编号 - TThostFtdcOrderLocalIDType ExecOrderLocalID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///执行宣告提交状态 - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///报单提示序号 - TThostFtdcSequenceNoType NotifySequence; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///执行宣告编号 - TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///报单日期 - TThostFtdcDateType InsertDate; - ///插入时间 - TThostFtdcTimeType InsertTime; - ///撤销时间 - TThostFtdcTimeType CancelTime; - ///执行结果 - TThostFtdcExecResultType ExecResult; - ///结算会员编号 - TThostFtdcParticipantIDType ClearingPartID; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///交易所执行宣告查询 -struct CThostFtdcQryExchangeExecOrderField -{ - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; -}; - -///执行宣告操作查询 -struct CThostFtdcQryExecOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///交易所执行宣告操作 -struct CThostFtdcExchangeExecOrderActionField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///执行宣告操作编号 - TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///操作标志 - TThostFtdcActionFlagType ActionFlag; - ///操作日期 - TThostFtdcDateType ActionDate; - ///操作时间 - TThostFtdcTimeType ActionTime; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///本地执行宣告编号 - TThostFtdcOrderLocalIDType ExecOrderLocalID; - ///操作本地编号 - TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 - TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 - TThostFtdcUserIDType UserID; - ///执行类型 - TThostFtdcActionTypeType ActionType; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///交易所执行宣告操作查询 -struct CThostFtdcQryExchangeExecOrderActionField -{ - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; -}; - -///错误执行宣告 -struct CThostFtdcErrExecOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///执行宣告引用 - TThostFtdcOrderRefType ExecOrderRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///数量 - TThostFtdcVolumeType Volume; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///开平标志 - TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///执行类型 - TThostFtdcActionTypeType ActionType; - ///保留头寸申请的持仓方向 - TThostFtdcPosiDirectionType PosiDirection; - ///期权行权后是否保留期货头寸的标记 - TThostFtdcExecOrderPositionFlagType ReservePositionFlag; - ///期权行权后生成的头寸是否自动平仓 - TThostFtdcExecOrderCloseFlagType CloseFlag; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 - TThostFtdcAccountIDType AccountID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///交易编码 - TThostFtdcClientIDType ClientID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - -///查询错误执行宣告 -struct CThostFtdcQryErrExecOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; -}; - -///错误执行宣告操作 -struct CThostFtdcErrExecOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///执行宣告操作引用 - TThostFtdcOrderActionRefType ExecOrderActionRef; - ///执行宣告引用 - TThostFtdcOrderRefType ExecOrderRef; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///执行宣告操作编号 - TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///操作标志 - TThostFtdcActionFlagType ActionFlag; - ///用户代码 - TThostFtdcUserIDType UserID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - -///查询错误执行宣告操作 -struct CThostFtdcQryErrExecOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; -}; - -///投资者期权合约交易权限 -struct CThostFtdcOptionInstrTradingRightField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///交易权限 - TThostFtdcTradingRightType TradingRight; -}; - -///查询期权合约交易权限 -struct CThostFtdcQryOptionInstrTradingRightField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///买卖方向 - TThostFtdcDirectionType Direction; -}; - -///输入的询价 -struct CThostFtdcInputForQuoteField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///询价引用 - TThostFtdcOrderRefType ForQuoteRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///询价 -struct CThostFtdcForQuoteField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///询价引用 - TThostFtdcOrderRefType ForQuoteRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///本地询价编号 - TThostFtdcOrderLocalIDType ForQuoteLocalID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///报单日期 - TThostFtdcDateType InsertDate; - ///插入时间 - TThostFtdcTimeType InsertTime; - ///询价状态 - TThostFtdcForQuoteStatusType ForQuoteStatus; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///状态信息 - TThostFtdcErrorMsgType StatusMsg; - ///操作用户代码 - TThostFtdcUserIDType ActiveUserID; - ///经纪公司询价编号 - TThostFtdcSequenceNoType BrokerForQutoSeq; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///询价查询 -struct CThostFtdcQryForQuoteField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///开始时间 - TThostFtdcTimeType InsertTimeStart; - ///结束时间 - TThostFtdcTimeType InsertTimeEnd; -}; - -///交易所询价信息 -struct CThostFtdcExchangeForQuoteField -{ - ///本地询价编号 - TThostFtdcOrderLocalIDType ForQuoteLocalID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///报单日期 - TThostFtdcDateType InsertDate; - ///插入时间 - TThostFtdcTimeType InsertTime; - ///询价状态 - TThostFtdcForQuoteStatusType ForQuoteStatus; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///交易所询价查询 -struct CThostFtdcQryExchangeForQuoteField -{ - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; -}; - -///输入的报价 -struct CThostFtdcInputQuoteField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///报价引用 - TThostFtdcOrderRefType QuoteRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///卖价格 - TThostFtdcPriceType AskPrice; - ///买价格 - TThostFtdcPriceType BidPrice; - ///卖数量 - TThostFtdcVolumeType AskVolume; - ///买数量 - TThostFtdcVolumeType BidVolume; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///卖开平标志 - TThostFtdcOffsetFlagType AskOffsetFlag; - ///买开平标志 - TThostFtdcOffsetFlagType BidOffsetFlag; - ///卖投机套保标志 - TThostFtdcHedgeFlagType AskHedgeFlag; - ///买投机套保标志 - TThostFtdcHedgeFlagType BidHedgeFlag; - ///衍生卖报单引用 - TThostFtdcOrderRefType AskOrderRef; - ///衍生买报单引用 - TThostFtdcOrderRefType BidOrderRef; - ///应价编号 - TThostFtdcOrderSysIDType ForQuoteSysID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///交易编码 - TThostFtdcClientIDType ClientID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///输入报价操作 -struct CThostFtdcInputQuoteActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///报价操作引用 - TThostFtdcOrderActionRefType QuoteActionRef; - ///报价引用 - TThostFtdcOrderRefType QuoteRef; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///报价操作编号 - TThostFtdcOrderSysIDType QuoteSysID; - ///操作标志 - TThostFtdcActionFlagType ActionFlag; - ///用户代码 - TThostFtdcUserIDType UserID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///交易编码 - TThostFtdcClientIDType ClientID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///报价 -struct CThostFtdcQuoteField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///报价引用 - TThostFtdcOrderRefType QuoteRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///卖价格 - TThostFtdcPriceType AskPrice; - ///买价格 - TThostFtdcPriceType BidPrice; - ///卖数量 - TThostFtdcVolumeType AskVolume; - ///买数量 - TThostFtdcVolumeType BidVolume; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///卖开平标志 - TThostFtdcOffsetFlagType AskOffsetFlag; - ///买开平标志 - TThostFtdcOffsetFlagType BidOffsetFlag; - ///卖投机套保标志 - TThostFtdcHedgeFlagType AskHedgeFlag; - ///买投机套保标志 - TThostFtdcHedgeFlagType BidHedgeFlag; - ///本地报价编号 - TThostFtdcOrderLocalIDType QuoteLocalID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///报价提示序号 - TThostFtdcSequenceNoType NotifySequence; - ///报价提交状态 - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///报价编号 - TThostFtdcOrderSysIDType QuoteSysID; - ///报单日期 - TThostFtdcDateType InsertDate; - ///插入时间 - TThostFtdcTimeType InsertTime; - ///撤销时间 - TThostFtdcTimeType CancelTime; - ///报价状态 - TThostFtdcOrderStatusType QuoteStatus; - ///结算会员编号 - TThostFtdcParticipantIDType ClearingPartID; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///卖方报单编号 - TThostFtdcOrderSysIDType AskOrderSysID; - ///买方报单编号 - TThostFtdcOrderSysIDType BidOrderSysID; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///用户端产品信息 - TThostFtdcProductInfoType UserProductInfo; - ///状态信息 - TThostFtdcErrorMsgType StatusMsg; - ///操作用户代码 - TThostFtdcUserIDType ActiveUserID; - ///经纪公司报价编号 - TThostFtdcSequenceNoType BrokerQuoteSeq; - ///衍生卖报单引用 - TThostFtdcOrderRefType AskOrderRef; - ///衍生买报单引用 - TThostFtdcOrderRefType BidOrderRef; - ///应价编号 - TThostFtdcOrderSysIDType ForQuoteSysID; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 - TThostFtdcAccountIDType AccountID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///报价操作 -struct CThostFtdcQuoteActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///报价操作引用 - TThostFtdcOrderActionRefType QuoteActionRef; - ///报价引用 - TThostFtdcOrderRefType QuoteRef; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///报价操作编号 - TThostFtdcOrderSysIDType QuoteSysID; - ///操作标志 - TThostFtdcActionFlagType ActionFlag; - ///操作日期 - TThostFtdcDateType ActionDate; - ///操作时间 - TThostFtdcTimeType ActionTime; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///本地报价编号 - TThostFtdcOrderLocalIDType QuoteLocalID; - ///操作本地编号 - TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 - TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 - TThostFtdcUserIDType UserID; - ///状态信息 - TThostFtdcErrorMsgType StatusMsg; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///报价查询 -struct CThostFtdcQryQuoteField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///报价编号 - TThostFtdcOrderSysIDType QuoteSysID; - ///开始时间 - TThostFtdcTimeType InsertTimeStart; - ///结束时间 - TThostFtdcTimeType InsertTimeEnd; -}; - -///交易所报价信息 -struct CThostFtdcExchangeQuoteField -{ - ///卖价格 - TThostFtdcPriceType AskPrice; - ///买价格 - TThostFtdcPriceType BidPrice; - ///卖数量 - TThostFtdcVolumeType AskVolume; - ///买数量 - TThostFtdcVolumeType BidVolume; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///卖开平标志 - TThostFtdcOffsetFlagType AskOffsetFlag; - ///买开平标志 - TThostFtdcOffsetFlagType BidOffsetFlag; - ///卖投机套保标志 - TThostFtdcHedgeFlagType AskHedgeFlag; - ///买投机套保标志 - TThostFtdcHedgeFlagType BidHedgeFlag; - ///本地报价编号 - TThostFtdcOrderLocalIDType QuoteLocalID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///报价提示序号 - TThostFtdcSequenceNoType NotifySequence; - ///报价提交状态 - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///报价编号 - TThostFtdcOrderSysIDType QuoteSysID; - ///报单日期 - TThostFtdcDateType InsertDate; - ///插入时间 - TThostFtdcTimeType InsertTime; - ///撤销时间 - TThostFtdcTimeType CancelTime; - ///报价状态 - TThostFtdcOrderStatusType QuoteStatus; - ///结算会员编号 - TThostFtdcParticipantIDType ClearingPartID; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///卖方报单编号 - TThostFtdcOrderSysIDType AskOrderSysID; - ///买方报单编号 - TThostFtdcOrderSysIDType BidOrderSysID; - ///应价编号 - TThostFtdcOrderSysIDType ForQuoteSysID; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///交易所报价查询 -struct CThostFtdcQryExchangeQuoteField -{ - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; -}; - -///报价操作查询 -struct CThostFtdcQryQuoteActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///交易所报价操作 -struct CThostFtdcExchangeQuoteActionField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///报价操作编号 - TThostFtdcOrderSysIDType QuoteSysID; - ///操作标志 - TThostFtdcActionFlagType ActionFlag; - ///操作日期 - TThostFtdcDateType ActionDate; - ///操作时间 - TThostFtdcTimeType ActionTime; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///本地报价编号 - TThostFtdcOrderLocalIDType QuoteLocalID; - ///操作本地编号 - TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 - TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 - TThostFtdcUserIDType UserID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///交易所报价操作查询 -struct CThostFtdcQryExchangeQuoteActionField -{ - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; -}; - -///期权合约delta值 -struct CThostFtdcOptionInstrDeltaField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///Delta值 - TThostFtdcRatioType Delta; -}; - -///发给做市商的询价请求 -struct CThostFtdcForQuoteRspField -{ - ///交易日 - TThostFtdcDateType TradingDay; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///询价编号 - TThostFtdcOrderSysIDType ForQuoteSysID; - ///询价时间 - TThostFtdcTimeType ForQuoteTime; - ///业务日期 - TThostFtdcDateType ActionDay; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///当前期权合约执行偏移值的详细内容 -struct CThostFtdcStrikeOffsetField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///执行偏移值 - TThostFtdcMoneyType Offset; - ///执行偏移类型 - TThostFtdcStrikeOffsetTypeType OffsetType; -}; - -///期权执行偏移值查询 -struct CThostFtdcQryStrikeOffsetField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///输入批量报单操作 -struct CThostFtdcInputBatchOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///报单操作引用 - TThostFtdcOrderActionRefType OrderActionRef; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///批量报单操作 -struct CThostFtdcBatchOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///报单操作引用 - TThostFtdcOrderActionRefType OrderActionRef; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///操作日期 - TThostFtdcDateType ActionDate; - ///操作时间 - TThostFtdcTimeType ActionTime; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///操作本地编号 - TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 - TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 - TThostFtdcUserIDType UserID; - ///状态信息 - TThostFtdcErrorMsgType StatusMsg; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///交易所批量报单操作 -struct CThostFtdcExchangeBatchOrderActionField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///操作日期 - TThostFtdcDateType ActionDate; - ///操作时间 - TThostFtdcTimeType ActionTime; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///操作本地编号 - TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 - TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 - TThostFtdcUserIDType UserID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///查询批量报单操作 -struct CThostFtdcQryBatchOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///组合合约安全系数 -struct CThostFtdcCombInstrumentGuardField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - /// - TThostFtdcRatioType GuarantRatio; -}; - -///组合合约安全系数查询 -struct CThostFtdcQryCombInstrumentGuardField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///输入的申请组合 -struct CThostFtdcInputCombActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///组合引用 - TThostFtdcOrderRefType CombActionRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///数量 - TThostFtdcVolumeType Volume; - ///组合指令方向 - TThostFtdcCombDirectionType CombDirection; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///申请组合 -struct CThostFtdcCombActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///组合引用 - TThostFtdcOrderRefType CombActionRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///数量 - TThostFtdcVolumeType Volume; - ///组合指令方向 - TThostFtdcCombDirectionType CombDirection; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///本地申请组合编号 - TThostFtdcOrderLocalIDType ActionLocalID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///组合状态 - TThostFtdcOrderActionStatusType ActionStatus; - ///报单提示序号 - TThostFtdcSequenceNoType NotifySequence; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///用户端产品信息 - TThostFtdcProductInfoType UserProductInfo; - ///状态信息 - TThostFtdcErrorMsgType StatusMsg; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///申请组合查询 -struct CThostFtdcQryCombActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///交易所申请组合信息 -struct CThostFtdcExchangeCombActionField -{ - ///买卖方向 - TThostFtdcDirectionType Direction; - ///数量 - TThostFtdcVolumeType Volume; - ///组合指令方向 - TThostFtdcCombDirectionType CombDirection; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///本地申请组合编号 - TThostFtdcOrderLocalIDType ActionLocalID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///组合状态 - TThostFtdcOrderActionStatusType ActionStatus; - ///报单提示序号 - TThostFtdcSequenceNoType NotifySequence; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///交易所申请组合查询 -struct CThostFtdcQryExchangeCombActionField -{ - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; -}; - -///产品报价汇率 -struct CThostFtdcProductExchRateField -{ - ///产品代码 - TThostFtdcInstrumentIDType ProductID; - ///报价币种类型 - TThostFtdcCurrencyIDType QuoteCurrencyID; - ///汇率 - TThostFtdcExchangeRateType ExchangeRate; -}; - -///产品报价汇率查询 -struct CThostFtdcQryProductExchRateField -{ - ///产品代码 - TThostFtdcInstrumentIDType ProductID; -}; - -///查询询价价差参数 -struct CThostFtdcQryForQuoteParamField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///询价价差参数 -struct CThostFtdcForQuoteParamField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///最新价 - TThostFtdcPriceType LastPrice; - ///价差 - TThostFtdcPriceType PriceInterval; -}; - -///当前做市商期权合约手续费的详细内容 -struct CThostFtdcMMOptionInstrCommRateField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///开仓手续费率 - TThostFtdcRatioType OpenRatioByMoney; - ///开仓手续费 - TThostFtdcRatioType OpenRatioByVolume; - ///平仓手续费率 - TThostFtdcRatioType CloseRatioByMoney; - ///平仓手续费 - TThostFtdcRatioType CloseRatioByVolume; - ///平今手续费率 - TThostFtdcRatioType CloseTodayRatioByMoney; - ///平今手续费 - TThostFtdcRatioType CloseTodayRatioByVolume; - ///执行手续费率 - TThostFtdcRatioType StrikeRatioByMoney; - ///执行手续费 - TThostFtdcRatioType StrikeRatioByVolume; -}; - -///做市商期权手续费率查询 -struct CThostFtdcQryMMOptionInstrCommRateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///做市商合约手续费率 -struct CThostFtdcMMInstrumentCommissionRateField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///开仓手续费率 - TThostFtdcRatioType OpenRatioByMoney; - ///开仓手续费 - TThostFtdcRatioType OpenRatioByVolume; - ///平仓手续费率 - TThostFtdcRatioType CloseRatioByMoney; - ///平仓手续费 - TThostFtdcRatioType CloseRatioByVolume; - ///平今手续费率 - TThostFtdcRatioType CloseTodayRatioByMoney; - ///平今手续费 - TThostFtdcRatioType CloseTodayRatioByVolume; -}; - -///查询做市商合约手续费率 -struct CThostFtdcQryMMInstrumentCommissionRateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///当前报单手续费的详细内容 -struct CThostFtdcInstrumentOrderCommRateField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///报单手续费 - TThostFtdcRatioType OrderCommByVolume; - ///撤单手续费 - TThostFtdcRatioType OrderActionCommByVolume; -}; - -///报单手续费率查询 -struct CThostFtdcQryInstrumentOrderCommRateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///市场行情 -struct CThostFtdcMarketDataField -{ - ///交易日 - TThostFtdcDateType TradingDay; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///最新价 - TThostFtdcPriceType LastPrice; - ///上次结算价 - TThostFtdcPriceType PreSettlementPrice; - ///昨收盘 - TThostFtdcPriceType PreClosePrice; - ///昨持仓量 - TThostFtdcLargeVolumeType PreOpenInterest; - ///今开盘 - TThostFtdcPriceType OpenPrice; - ///最高价 - TThostFtdcPriceType HighestPrice; - ///最低价 - TThostFtdcPriceType LowestPrice; - ///数量 - TThostFtdcVolumeType Volume; - ///成交金额 - TThostFtdcMoneyType Turnover; - ///持仓量 - TThostFtdcLargeVolumeType OpenInterest; - ///今收盘 - TThostFtdcPriceType ClosePrice; - ///本次结算价 - TThostFtdcPriceType SettlementPrice; - ///涨停板价 - TThostFtdcPriceType UpperLimitPrice; - ///跌停板价 - TThostFtdcPriceType LowerLimitPrice; - ///昨虚实度 - TThostFtdcRatioType PreDelta; - ///今虚实度 - TThostFtdcRatioType CurrDelta; - ///最后修改时间 - TThostFtdcTimeType UpdateTime; - ///最后修改毫秒 - TThostFtdcMillisecType UpdateMillisec; - ///业务日期 - TThostFtdcDateType ActionDay; -}; - -///行情基础属性 -struct CThostFtdcMarketDataBaseField -{ - ///交易日 - TThostFtdcDateType TradingDay; - ///上次结算价 - TThostFtdcPriceType PreSettlementPrice; - ///昨收盘 - TThostFtdcPriceType PreClosePrice; - ///昨持仓量 - TThostFtdcLargeVolumeType PreOpenInterest; - ///昨虚实度 - TThostFtdcRatioType PreDelta; -}; - -///行情静态属性 -struct CThostFtdcMarketDataStaticField -{ - ///今开盘 - TThostFtdcPriceType OpenPrice; - ///最高价 - TThostFtdcPriceType HighestPrice; - ///最低价 - TThostFtdcPriceType LowestPrice; - ///今收盘 - TThostFtdcPriceType ClosePrice; - ///涨停板价 - TThostFtdcPriceType UpperLimitPrice; - ///跌停板价 - TThostFtdcPriceType LowerLimitPrice; - ///本次结算价 - TThostFtdcPriceType SettlementPrice; - ///今虚实度 - TThostFtdcRatioType CurrDelta; -}; - -///行情最新成交属性 -struct CThostFtdcMarketDataLastMatchField -{ - ///最新价 - TThostFtdcPriceType LastPrice; - ///数量 - TThostFtdcVolumeType Volume; - ///成交金额 - TThostFtdcMoneyType Turnover; - ///持仓量 - TThostFtdcLargeVolumeType OpenInterest; -}; - -///行情最优价属性 -struct CThostFtdcMarketDataBestPriceField -{ - ///申买价一 - TThostFtdcPriceType BidPrice1; - ///申买量一 - TThostFtdcVolumeType BidVolume1; - ///申卖价一 - TThostFtdcPriceType AskPrice1; - ///申卖量一 - TThostFtdcVolumeType AskVolume1; -}; - -///行情申买二、三属性 -struct CThostFtdcMarketDataBid23Field -{ - ///申买价二 - TThostFtdcPriceType BidPrice2; - ///申买量二 - TThostFtdcVolumeType BidVolume2; - ///申买价三 - TThostFtdcPriceType BidPrice3; - ///申买量三 - TThostFtdcVolumeType BidVolume3; -}; - -///行情申卖二、三属性 -struct CThostFtdcMarketDataAsk23Field -{ - ///申卖价二 - TThostFtdcPriceType AskPrice2; - ///申卖量二 - TThostFtdcVolumeType AskVolume2; - ///申卖价三 - TThostFtdcPriceType AskPrice3; - ///申卖量三 - TThostFtdcVolumeType AskVolume3; -}; - -///行情申买四、五属性 -struct CThostFtdcMarketDataBid45Field -{ - ///申买价四 - TThostFtdcPriceType BidPrice4; - ///申买量四 - TThostFtdcVolumeType BidVolume4; - ///申买价五 - TThostFtdcPriceType BidPrice5; - ///申买量五 - TThostFtdcVolumeType BidVolume5; -}; - -///行情申卖四、五属性 -struct CThostFtdcMarketDataAsk45Field -{ - ///申卖价四 - TThostFtdcPriceType AskPrice4; - ///申卖量四 - TThostFtdcVolumeType AskVolume4; - ///申卖价五 - TThostFtdcPriceType AskPrice5; - ///申卖量五 - TThostFtdcVolumeType AskVolume5; -}; - -///行情更新时间属性 -struct CThostFtdcMarketDataUpdateTimeField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///最后修改时间 - TThostFtdcTimeType UpdateTime; - ///最后修改毫秒 - TThostFtdcMillisecType UpdateMillisec; - ///业务日期 - TThostFtdcDateType ActionDay; -}; - -///行情交易所代码属性 -struct CThostFtdcMarketDataExchangeField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///指定的合约 -struct CThostFtdcSpecificInstrumentField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///合约状态 -struct CThostFtdcInstrumentStatusField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///结算组代码 - TThostFtdcSettlementGroupIDType SettlementGroupID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///合约交易状态 - TThostFtdcInstrumentStatusType InstrumentStatus; - ///交易阶段编号 - TThostFtdcTradingSegmentSNType TradingSegmentSN; - ///进入本状态时间 - TThostFtdcTimeType EnterTime; - ///进入本状态原因 - TThostFtdcInstStatusEnterReasonType EnterReason; -}; - -///查询合约状态 -struct CThostFtdcQryInstrumentStatusField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; -}; - -///投资者账户 -struct CThostFtdcInvestorAccountField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; -}; - -///浮动盈亏算法 -struct CThostFtdcPositionProfitAlgorithmField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///盈亏算法 - TThostFtdcAlgorithmType Algorithm; - ///备注 - TThostFtdcMemoType Memo; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; -}; - -///会员资金折扣 -struct CThostFtdcDiscountField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///资金折扣比例 - TThostFtdcRatioType Discount; -}; - -///查询转帐银行 -struct CThostFtdcQryTransferBankField -{ - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分中心代码 - TThostFtdcBankBrchIDType BankBrchID; -}; - -///转帐银行 -struct CThostFtdcTransferBankField -{ - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分中心代码 - TThostFtdcBankBrchIDType BankBrchID; - ///银行名称 - TThostFtdcBankNameType BankName; - ///是否活跃 - TThostFtdcBoolType IsActive; -}; - -///查询投资者持仓明细 -struct CThostFtdcQryInvestorPositionDetailField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///投资者持仓明细 -struct CThostFtdcInvestorPositionDetailField -{ - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///买卖 - TThostFtdcDirectionType Direction; - ///开仓日期 - TThostFtdcDateType OpenDate; - ///成交编号 - TThostFtdcTradeIDType TradeID; - ///数量 - TThostFtdcVolumeType Volume; - ///开仓价 - TThostFtdcPriceType OpenPrice; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///成交类型 - TThostFtdcTradeTypeType TradeType; - ///组合合约代码 - TThostFtdcInstrumentIDType CombInstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///逐日盯市平仓盈亏 - TThostFtdcMoneyType CloseProfitByDate; - ///逐笔对冲平仓盈亏 - TThostFtdcMoneyType CloseProfitByTrade; - ///逐日盯市持仓盈亏 - TThostFtdcMoneyType PositionProfitByDate; - ///逐笔对冲持仓盈亏 - TThostFtdcMoneyType PositionProfitByTrade; - ///投资者保证金 - TThostFtdcMoneyType Margin; - ///交易所保证金 - TThostFtdcMoneyType ExchMargin; - ///保证金率 - TThostFtdcRatioType MarginRateByMoney; - ///保证金率(按手数) - TThostFtdcRatioType MarginRateByVolume; - ///昨结算价 - TThostFtdcPriceType LastSettlementPrice; - ///结算价 - TThostFtdcPriceType SettlementPrice; - ///平仓量 - TThostFtdcVolumeType CloseVolume; - ///平仓金额 - TThostFtdcMoneyType CloseAmount; -}; - -///资金账户口令域 -struct CThostFtdcTradingAccountPasswordField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///密码 - TThostFtdcPasswordType Password; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; -}; - -///交易所行情报盘机 -struct CThostFtdcMDTraderOfferField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///密码 - TThostFtdcPasswordType Password; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///本地报单编号 - TThostFtdcOrderLocalIDType OrderLocalID; - ///交易所交易员连接状态 - TThostFtdcTraderConnectStatusType TraderConnectStatus; - ///发出连接请求的日期 - TThostFtdcDateType ConnectRequestDate; - ///发出连接请求的时间 - TThostFtdcTimeType ConnectRequestTime; - ///上次报告日期 - TThostFtdcDateType LastReportDate; - ///上次报告时间 - TThostFtdcTimeType LastReportTime; - ///完成连接日期 - TThostFtdcDateType ConnectDate; - ///完成连接时间 - TThostFtdcTimeType ConnectTime; - ///启动日期 - TThostFtdcDateType StartDate; - ///启动时间 - TThostFtdcTimeType StartTime; - ///交易日 - TThostFtdcDateType TradingDay; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///本席位最大成交编号 - TThostFtdcTradeIDType MaxTradeID; - ///本席位最大报单备拷 - TThostFtdcReturnCodeType MaxOrderMessageReference; -}; - -///查询行情报盘机 -struct CThostFtdcQryMDTraderOfferField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; -}; - -///查询客户通知 -struct CThostFtdcQryNoticeField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; -}; - -///客户通知 -struct CThostFtdcNoticeField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///消息正文 - TThostFtdcContentType Content; - ///经纪公司通知内容序列号 - TThostFtdcSequenceLabelType SequenceLabel; -}; - -///用户权限 -struct CThostFtdcUserRightField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///客户权限类型 - TThostFtdcUserRightTypeType UserRightType; - ///是否禁止 - TThostFtdcBoolType IsForbidden; -}; - -///查询结算信息确认域 -struct CThostFtdcQrySettlementInfoConfirmField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; -}; - -///装载结算信息 -struct CThostFtdcLoadSettlementInfoField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; -}; - -///经纪公司可提资金算法表 -struct CThostFtdcBrokerWithdrawAlgorithmField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///可提资金算法 - TThostFtdcAlgorithmType WithdrawAlgorithm; - ///资金使用率 - TThostFtdcRatioType UsingRatio; - ///可提是否包含平仓盈利 - TThostFtdcIncludeCloseProfitType IncludeCloseProfit; - ///本日无仓且无成交客户是否受可提比例限制 - TThostFtdcAllWithoutTradeType AllWithoutTrade; - ///可用是否包含平仓盈利 - TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit; - ///是否启用用户事件 - TThostFtdcBoolType IsBrokerUserEvent; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///货币质押比率 - TThostFtdcRatioType FundMortgageRatio; - ///权益算法 - TThostFtdcBalanceAlgorithmType BalanceAlgorithm; -}; - -///资金账户口令变更域 -struct CThostFtdcTradingAccountPasswordUpdateV1Field -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///原来的口令 - TThostFtdcPasswordType OldPassword; - ///新的口令 - TThostFtdcPasswordType NewPassword; -}; - -///资金账户口令变更域 -struct CThostFtdcTradingAccountPasswordUpdateField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///原来的口令 - TThostFtdcPasswordType OldPassword; - ///新的口令 - TThostFtdcPasswordType NewPassword; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; -}; - -///查询组合合约分腿 -struct CThostFtdcQryCombinationLegField -{ - ///组合合约代码 - TThostFtdcInstrumentIDType CombInstrumentID; - ///单腿编号 - TThostFtdcLegIDType LegID; - ///单腿合约代码 - TThostFtdcInstrumentIDType LegInstrumentID; -}; - -///查询组合合约分腿 -struct CThostFtdcQrySyncStatusField -{ - ///交易日 - TThostFtdcDateType TradingDay; -}; - -///组合交易合约的单腿 -struct CThostFtdcCombinationLegField -{ - ///组合合约代码 - TThostFtdcInstrumentIDType CombInstrumentID; - ///单腿编号 - TThostFtdcLegIDType LegID; - ///单腿合约代码 - TThostFtdcInstrumentIDType LegInstrumentID; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///单腿乘数 - TThostFtdcLegMultipleType LegMultiple; - ///派生层数 - TThostFtdcImplyLevelType ImplyLevel; -}; - -///数据同步状态 -struct CThostFtdcSyncStatusField -{ - ///交易日 - TThostFtdcDateType TradingDay; - ///数据同步状态 - TThostFtdcDataSyncStatusType DataSyncStatus; -}; - -///查询联系人 -struct CThostFtdcQryLinkManField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; -}; - -///联系人 -struct CThostFtdcLinkManField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///联系人类型 - TThostFtdcPersonTypeType PersonType; - ///证件类型 - TThostFtdcIdCardTypeType IdentifiedCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///名称 - TThostFtdcPartyNameType PersonName; - ///联系电话 - TThostFtdcTelephoneType Telephone; - ///通讯地址 - TThostFtdcAddressType Address; - ///邮政编码 - TThostFtdcZipCodeType ZipCode; - ///优先级 - TThostFtdcPriorityType Priority; - ///开户邮政编码 - TThostFtdcUOAZipCodeType UOAZipCode; - ///全称 - TThostFtdcInvestorFullNameType PersonFullName; -}; - -///查询经纪公司用户事件 -struct CThostFtdcQryBrokerUserEventField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///用户事件类型 - TThostFtdcUserEventTypeType UserEventType; -}; - -///查询经纪公司用户事件 -struct CThostFtdcBrokerUserEventField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///用户事件类型 - TThostFtdcUserEventTypeType UserEventType; - ///用户事件序号 - TThostFtdcSequenceNoType EventSequenceNo; - ///事件发生日期 - TThostFtdcDateType EventDate; - ///事件发生时间 - TThostFtdcTimeType EventTime; - ///用户事件信息 - TThostFtdcUserEventInfoType UserEventInfo; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///查询签约银行请求 -struct CThostFtdcQryContractBankField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分中心代码 - TThostFtdcBankBrchIDType BankBrchID; -}; - -///查询签约银行响应 -struct CThostFtdcContractBankField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分中心代码 - TThostFtdcBankBrchIDType BankBrchID; - ///银行名称 - TThostFtdcBankNameType BankName; -}; - -///投资者组合持仓明细 -struct CThostFtdcInvestorPositionCombineDetailField -{ - ///交易日 - TThostFtdcDateType TradingDay; - ///开仓日期 - TThostFtdcDateType OpenDate; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///组合编号 - TThostFtdcTradeIDType ComTradeID; - ///撮合编号 - TThostFtdcTradeIDType TradeID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///买卖 - TThostFtdcDirectionType Direction; - ///持仓量 - TThostFtdcVolumeType TotalAmt; - ///投资者保证金 - TThostFtdcMoneyType Margin; - ///交易所保证金 - TThostFtdcMoneyType ExchMargin; - ///保证金率 - TThostFtdcRatioType MarginRateByMoney; - ///保证金率(按手数) - TThostFtdcRatioType MarginRateByVolume; - ///单腿编号 - TThostFtdcLegIDType LegID; - ///单腿乘数 - TThostFtdcLegMultipleType LegMultiple; - ///组合持仓合约编码 - TThostFtdcInstrumentIDType CombInstrumentID; - ///成交组号 - TThostFtdcTradeGroupIDType TradeGroupID; -}; - -///预埋单 -struct CThostFtdcParkedOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///报单引用 - TThostFtdcOrderRefType OrderRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///报单价格条件 - TThostFtdcOrderPriceTypeType OrderPriceType; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///组合开平标志 - TThostFtdcCombOffsetFlagType CombOffsetFlag; - ///组合投机套保标志 - TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///价格 - TThostFtdcPriceType LimitPrice; - ///数量 - TThostFtdcVolumeType VolumeTotalOriginal; - ///有效期类型 - TThostFtdcTimeConditionType TimeCondition; - ///GTD日期 - TThostFtdcDateType GTDDate; - ///成交量类型 - TThostFtdcVolumeConditionType VolumeCondition; - ///最小成交量 - TThostFtdcVolumeType MinVolume; - ///触发条件 - TThostFtdcContingentConditionType ContingentCondition; - ///止损价 - TThostFtdcPriceType StopPrice; - ///强平原因 - TThostFtdcForceCloseReasonType ForceCloseReason; - ///自动挂起标志 - TThostFtdcBoolType IsAutoSuspend; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///用户强评标志 - TThostFtdcBoolType UserForceClose; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///预埋报单编号 - TThostFtdcParkedOrderIDType ParkedOrderID; - ///用户类型 - TThostFtdcUserTypeType UserType; - ///预埋单状态 - TThostFtdcParkedOrderStatusType Status; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///互换单标志 - TThostFtdcBoolType IsSwapOrder; - ///资金账号 - TThostFtdcAccountIDType AccountID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///交易编码 - TThostFtdcClientIDType ClientID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///输入预埋单操作 -struct CThostFtdcParkedOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///报单操作引用 - TThostFtdcOrderActionRefType OrderActionRef; - ///报单引用 - TThostFtdcOrderRefType OrderRef; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///操作标志 - TThostFtdcActionFlagType ActionFlag; - ///价格 - TThostFtdcPriceType LimitPrice; - ///数量变化 - TThostFtdcVolumeType VolumeChange; - ///用户代码 - TThostFtdcUserIDType UserID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///预埋撤单单编号 - TThostFtdcParkedOrderActionIDType ParkedOrderActionID; - ///用户类型 - TThostFtdcUserTypeType UserType; - ///预埋撤单状态 - TThostFtdcParkedOrderStatusType Status; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///查询预埋单 -struct CThostFtdcQryParkedOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///查询预埋撤单 -struct CThostFtdcQryParkedOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///删除预埋单 -struct CThostFtdcRemoveParkedOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///预埋报单编号 - TThostFtdcParkedOrderIDType ParkedOrderID; -}; - -///删除预埋撤单 -struct CThostFtdcRemoveParkedOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///预埋撤单编号 - TThostFtdcParkedOrderActionIDType ParkedOrderActionID; -}; - -///经纪公司可提资金算法表 -struct CThostFtdcInvestorWithdrawAlgorithmField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///可提资金比例 - TThostFtdcRatioType UsingRatio; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///货币质押比率 - TThostFtdcRatioType FundMortgageRatio; -}; - -///查询组合持仓明细 -struct CThostFtdcQryInvestorPositionCombineDetailField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///组合持仓合约编码 - TThostFtdcInstrumentIDType CombInstrumentID; -}; - -///成交均价 -struct CThostFtdcMarketDataAveragePriceField -{ - ///当日均价 - TThostFtdcPriceType AveragePrice; -}; - -///校验投资者密码 -struct CThostFtdcVerifyInvestorPasswordField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///密码 - TThostFtdcPasswordType Password; -}; - -///用户IP -struct CThostFtdcUserIPField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///IP地址掩码 - TThostFtdcIPAddressType IPMask; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///用户事件通知信息 -struct CThostFtdcTradingNoticeInfoField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///发送时间 - TThostFtdcTimeType SendTime; - ///消息正文 - TThostFtdcContentType FieldContent; - ///序列系列号 - TThostFtdcSequenceSeriesType SequenceSeries; - ///序列号 - TThostFtdcSequenceNoType SequenceNo; -}; - -///用户事件通知 -struct CThostFtdcTradingNoticeField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者范围 - TThostFtdcInvestorRangeType InvestorRange; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///序列系列号 - TThostFtdcSequenceSeriesType SequenceSeries; - ///用户代码 - TThostFtdcUserIDType UserID; - ///发送时间 - TThostFtdcTimeType SendTime; - ///序列号 - TThostFtdcSequenceNoType SequenceNo; - ///消息正文 - TThostFtdcContentType FieldContent; -}; - -///查询交易事件通知 -struct CThostFtdcQryTradingNoticeField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; -}; - -///查询错误报单 -struct CThostFtdcQryErrOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; -}; - -///错误报单 -struct CThostFtdcErrOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///报单引用 - TThostFtdcOrderRefType OrderRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///报单价格条件 - TThostFtdcOrderPriceTypeType OrderPriceType; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///组合开平标志 - TThostFtdcCombOffsetFlagType CombOffsetFlag; - ///组合投机套保标志 - TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///价格 - TThostFtdcPriceType LimitPrice; - ///数量 - TThostFtdcVolumeType VolumeTotalOriginal; - ///有效期类型 - TThostFtdcTimeConditionType TimeCondition; - ///GTD日期 - TThostFtdcDateType GTDDate; - ///成交量类型 - TThostFtdcVolumeConditionType VolumeCondition; - ///最小成交量 - TThostFtdcVolumeType MinVolume; - ///触发条件 - TThostFtdcContingentConditionType ContingentCondition; - ///止损价 - TThostFtdcPriceType StopPrice; - ///强平原因 - TThostFtdcForceCloseReasonType ForceCloseReason; - ///自动挂起标志 - TThostFtdcBoolType IsAutoSuspend; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///用户强评标志 - TThostFtdcBoolType UserForceClose; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///互换单标志 - TThostFtdcBoolType IsSwapOrder; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 - TThostFtdcAccountIDType AccountID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///交易编码 - TThostFtdcClientIDType ClientID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///查询错误报单操作 -struct CThostFtdcErrorConditionalOrderField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///报单引用 - TThostFtdcOrderRefType OrderRef; - ///用户代码 - TThostFtdcUserIDType UserID; - ///报单价格条件 - TThostFtdcOrderPriceTypeType OrderPriceType; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///组合开平标志 - TThostFtdcCombOffsetFlagType CombOffsetFlag; - ///组合投机套保标志 - TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///价格 - TThostFtdcPriceType LimitPrice; - ///数量 - TThostFtdcVolumeType VolumeTotalOriginal; - ///有效期类型 - TThostFtdcTimeConditionType TimeCondition; - ///GTD日期 - TThostFtdcDateType GTDDate; - ///成交量类型 - TThostFtdcVolumeConditionType VolumeCondition; - ///最小成交量 - TThostFtdcVolumeType MinVolume; - ///触发条件 - TThostFtdcContingentConditionType ContingentCondition; - ///止损价 - TThostFtdcPriceType StopPrice; - ///强平原因 - TThostFtdcForceCloseReasonType ForceCloseReason; - ///自动挂起标志 - TThostFtdcBoolType IsAutoSuspend; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///本地报单编号 - TThostFtdcOrderLocalIDType OrderLocalID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 - TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///报单提交状态 - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///报单提示序号 - TThostFtdcSequenceNoType NotifySequence; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///报单来源 - TThostFtdcOrderSourceType OrderSource; - ///报单状态 - TThostFtdcOrderStatusType OrderStatus; - ///报单类型 - TThostFtdcOrderTypeType OrderType; - ///今成交数量 - TThostFtdcVolumeType VolumeTraded; - ///剩余数量 - TThostFtdcVolumeType VolumeTotal; - ///报单日期 - TThostFtdcDateType InsertDate; - ///委托时间 - TThostFtdcTimeType InsertTime; - ///激活时间 - TThostFtdcTimeType ActiveTime; - ///挂起时间 - TThostFtdcTimeType SuspendTime; - ///最后修改时间 - TThostFtdcTimeType UpdateTime; - ///撤销时间 - TThostFtdcTimeType CancelTime; - ///最后修改交易所交易员代码 - TThostFtdcTraderIDType ActiveTraderID; - ///结算会员编号 - TThostFtdcParticipantIDType ClearingPartID; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///用户端产品信息 - TThostFtdcProductInfoType UserProductInfo; - ///状态信息 - TThostFtdcErrorMsgType StatusMsg; - ///用户强评标志 - TThostFtdcBoolType UserForceClose; - ///操作用户代码 - TThostFtdcUserIDType ActiveUserID; - ///经纪公司报单编号 - TThostFtdcSequenceNoType BrokerOrderSeq; - ///相关报单 - TThostFtdcOrderSysIDType RelativeOrderSysID; - ///郑商所成交数量 - TThostFtdcVolumeType ZCETotalTradedVolume; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///互换单标志 - TThostFtdcBoolType IsSwapOrder; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 - TThostFtdcAccountIDType AccountID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; -}; - -///查询错误报单操作 -struct CThostFtdcQryErrOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; -}; - -///错误报单操作 -struct CThostFtdcErrOrderActionField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///报单操作引用 - TThostFtdcOrderActionRefType OrderActionRef; - ///报单引用 - TThostFtdcOrderRefType OrderRef; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///前置编号 - TThostFtdcFrontIDType FrontID; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///报单编号 - TThostFtdcOrderSysIDType OrderSysID; - ///操作标志 - TThostFtdcActionFlagType ActionFlag; - ///价格 - TThostFtdcPriceType LimitPrice; - ///数量变化 - TThostFtdcVolumeType VolumeChange; - ///操作日期 - TThostFtdcDateType ActionDate; - ///操作时间 - TThostFtdcTimeType ActionTime; - ///交易所交易员代码 - TThostFtdcTraderIDType TraderID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///本地报单编号 - TThostFtdcOrderLocalIDType OrderLocalID; - ///操作本地编号 - TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///客户代码 - TThostFtdcClientIDType ClientID; - ///业务单元 - TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 - TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 - TThostFtdcUserIDType UserID; - ///状态信息 - TThostFtdcErrorMsgType StatusMsg; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///营业部编号 - TThostFtdcBranchIDType BranchID; - ///投资单元代码 - TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; - ///Mac地址 - TThostFtdcMacAddressType MacAddress; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - -///查询交易所状态 -struct CThostFtdcQryExchangeSequenceField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///交易所状态 -struct CThostFtdcExchangeSequenceField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///序号 - TThostFtdcSequenceNoType SequenceNo; - ///合约交易状态 - TThostFtdcInstrumentStatusType MarketStatus; -}; - -///根据价格查询最大报单数量 -struct CThostFtdcQueryMaxOrderVolumeWithPriceField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///开平标志 - TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///最大允许报单数量 - TThostFtdcVolumeType MaxVolume; - ///报单价格 - TThostFtdcPriceType Price; -}; - -///查询经纪公司交易参数 -struct CThostFtdcQryBrokerTradingParamsField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; -}; - -///经纪公司交易参数 -struct CThostFtdcBrokerTradingParamsField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///保证金价格类型 - TThostFtdcMarginPriceTypeType MarginPriceType; - ///盈亏算法 - TThostFtdcAlgorithmType Algorithm; - ///可用是否包含平仓盈利 - TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///期权权利金价格类型 - TThostFtdcOptionRoyaltyPriceTypeType OptionRoyaltyPriceType; -}; - -///查询经纪公司交易算法 -struct CThostFtdcQryBrokerTradingAlgosField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///经纪公司交易算法 -struct CThostFtdcBrokerTradingAlgosField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///持仓处理算法编号 - TThostFtdcHandlePositionAlgoIDType HandlePositionAlgoID; - ///寻找保证金率算法编号 - TThostFtdcFindMarginRateAlgoIDType FindMarginRateAlgoID; - ///资金处理算法编号 - TThostFtdcHandleTradingAccountAlgoIDType HandleTradingAccountAlgoID; -}; - -///查询经纪公司资金 -struct CThostFtdcQueryBrokerDepositField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///经纪公司资金 -struct CThostFtdcBrokerDepositField -{ - ///交易日期 - TThostFtdcTradeDateType TradingDay; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///会员代码 - TThostFtdcParticipantIDType ParticipantID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///上次结算准备金 - TThostFtdcMoneyType PreBalance; - ///当前保证金总额 - TThostFtdcMoneyType CurrMargin; - ///平仓盈亏 - TThostFtdcMoneyType CloseProfit; - ///期货结算准备金 - TThostFtdcMoneyType Balance; - ///入金金额 - TThostFtdcMoneyType Deposit; - ///出金金额 - TThostFtdcMoneyType Withdraw; - ///可提资金 - TThostFtdcMoneyType Available; - ///基本准备金 - TThostFtdcMoneyType Reserve; - ///冻结的保证金 - TThostFtdcMoneyType FrozenMargin; -}; - -///查询保证金监管系统经纪公司密钥 -struct CThostFtdcQryCFMMCBrokerKeyField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; -}; - -///保证金监管系统经纪公司密钥 -struct CThostFtdcCFMMCBrokerKeyField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///经纪公司统一编码 - TThostFtdcParticipantIDType ParticipantID; - ///密钥生成日期 - TThostFtdcDateType CreateDate; - ///密钥生成时间 - TThostFtdcTimeType CreateTime; - ///密钥编号 - TThostFtdcSequenceNoType KeyID; - ///动态密钥 - TThostFtdcCFMMCKeyType CurrentKey; - ///动态密钥类型 - TThostFtdcCFMMCKeyKindType KeyKind; -}; - -///保证金监管系统经纪公司资金账户密钥 -struct CThostFtdcCFMMCTradingAccountKeyField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///经纪公司统一编码 - TThostFtdcParticipantIDType ParticipantID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///密钥编号 - TThostFtdcSequenceNoType KeyID; - ///动态密钥 - TThostFtdcCFMMCKeyType CurrentKey; -}; - -///请求查询保证金监管系统经纪公司资金账户密钥 -struct CThostFtdcQryCFMMCTradingAccountKeyField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; -}; - -///用户动态令牌参数 -struct CThostFtdcBrokerUserOTPParamField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///动态令牌提供商 - TThostFtdcOTPVendorsIDType OTPVendorsID; - ///动态令牌序列号 - TThostFtdcSerialNumberType SerialNumber; - ///令牌密钥 - TThostFtdcAuthKeyType AuthKey; - ///漂移值 - TThostFtdcLastDriftType LastDrift; - ///成功值 - TThostFtdcLastSuccessType LastSuccess; - ///动态令牌类型 - TThostFtdcOTPTypeType OTPType; -}; - -///手工同步用户动态令牌 -struct CThostFtdcManualSyncBrokerUserOTPField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///动态令牌类型 - TThostFtdcOTPTypeType OTPType; - ///第一个动态密码 - TThostFtdcPasswordType FirstOTP; - ///第二个动态密码 - TThostFtdcPasswordType SecondOTP; -}; - -///投资者手续费率模板 -struct CThostFtdcCommRateModelField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///手续费率模板代码 - TThostFtdcInvestorIDType CommModelID; - ///模板名称 - TThostFtdcCommModelNameType CommModelName; -}; - -///请求查询投资者手续费率模板 -struct CThostFtdcQryCommRateModelField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///手续费率模板代码 - TThostFtdcInvestorIDType CommModelID; -}; - -///投资者保证金率模板 -struct CThostFtdcMarginModelField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///保证金率模板代码 - TThostFtdcInvestorIDType MarginModelID; - ///模板名称 - TThostFtdcCommModelNameType MarginModelName; -}; - -///请求查询投资者保证金率模板 -struct CThostFtdcQryMarginModelField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///保证金率模板代码 - TThostFtdcInvestorIDType MarginModelID; -}; - -///仓单折抵信息 -struct CThostFtdcEWarrantOffsetField -{ - ///交易日期 - TThostFtdcTradeDateType TradingDay; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; - ///买卖方向 - TThostFtdcDirectionType Direction; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; - ///数量 - TThostFtdcVolumeType Volume; -}; - -///查询仓单折抵信息 -struct CThostFtdcQryEWarrantOffsetField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///合约代码 - TThostFtdcInstrumentIDType InstrumentID; -}; - -///查询投资者品种/跨品种保证金 -struct CThostFtdcQryInvestorProductGroupMarginField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///品种/跨品种标示 - TThostFtdcInstrumentIDType ProductGroupID; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; -}; - -///投资者品种/跨品种保证金 -struct CThostFtdcInvestorProductGroupMarginField -{ - ///品种/跨品种标示 - TThostFtdcInstrumentIDType ProductGroupID; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///交易日 - TThostFtdcDateType TradingDay; - ///结算编号 - TThostFtdcSettlementIDType SettlementID; - ///冻结的保证金 - TThostFtdcMoneyType FrozenMargin; - ///多头冻结的保证金 - TThostFtdcMoneyType LongFrozenMargin; - ///空头冻结的保证金 - TThostFtdcMoneyType ShortFrozenMargin; - ///占用的保证金 - TThostFtdcMoneyType UseMargin; - ///多头保证金 - TThostFtdcMoneyType LongUseMargin; - ///空头保证金 - TThostFtdcMoneyType ShortUseMargin; - ///交易所保证金 - TThostFtdcMoneyType ExchMargin; - ///交易所多头保证金 - TThostFtdcMoneyType LongExchMargin; - ///交易所空头保证金 - TThostFtdcMoneyType ShortExchMargin; - ///平仓盈亏 - TThostFtdcMoneyType CloseProfit; - ///冻结的手续费 - TThostFtdcMoneyType FrozenCommission; - ///手续费 - TThostFtdcMoneyType Commission; - ///冻结的资金 - TThostFtdcMoneyType FrozenCash; - ///资金差额 - TThostFtdcMoneyType CashIn; - ///持仓盈亏 - TThostFtdcMoneyType PositionProfit; - ///折抵总金额 - TThostFtdcMoneyType OffsetAmount; - ///多头折抵总金额 - TThostFtdcMoneyType LongOffsetAmount; - ///空头折抵总金额 - TThostFtdcMoneyType ShortOffsetAmount; - ///交易所折抵总金额 - TThostFtdcMoneyType ExchOffsetAmount; - ///交易所多头折抵总金额 - TThostFtdcMoneyType LongExchOffsetAmount; - ///交易所空头折抵总金额 - TThostFtdcMoneyType ShortExchOffsetAmount; - ///投机套保标志 - TThostFtdcHedgeFlagType HedgeFlag; -}; - -///查询监控中心用户令牌 -struct CThostFtdcQueryCFMMCTradingAccountTokenField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; -}; - -///监控中心用户令牌 -struct CThostFtdcCFMMCTradingAccountTokenField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///经纪公司统一编码 - TThostFtdcParticipantIDType ParticipantID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///密钥编号 - TThostFtdcSequenceNoType KeyID; - ///动态令牌 - TThostFtdcCFMMCTokenType Token; -}; - -///查询产品组 -struct CThostFtdcQryProductGroupField -{ - ///产品代码 - TThostFtdcInstrumentIDType ProductID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; -}; - -///投资者品种/跨品种保证金产品组 -struct CThostFtdcProductGroupField -{ - ///产品代码 - TThostFtdcInstrumentIDType ProductID; - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///产品组代码 - TThostFtdcInstrumentIDType ProductGroupID; -}; - -///交易所公告 -struct CThostFtdcBulletinField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///交易日 - TThostFtdcDateType TradingDay; - ///公告编号 - TThostFtdcBulletinIDType BulletinID; - ///序列号 - TThostFtdcSequenceNoType SequenceNo; - ///公告类型 - TThostFtdcNewsTypeType NewsType; - ///紧急程度 - TThostFtdcNewsUrgencyType NewsUrgency; - ///发送时间 - TThostFtdcTimeType SendTime; - ///消息摘要 - TThostFtdcAbstractType Abstract; - ///消息来源 - TThostFtdcComeFromType ComeFrom; - ///消息正文 - TThostFtdcContentType Content; - ///WEB地址 - TThostFtdcURLLinkType URLLink; - ///市场代码 - TThostFtdcMarketIDType MarketID; -}; - -///查询交易所公告 -struct CThostFtdcQryBulletinField -{ - ///交易所代码 - TThostFtdcExchangeIDType ExchangeID; - ///公告编号 - TThostFtdcBulletinIDType BulletinID; - ///序列号 - TThostFtdcSequenceNoType SequenceNo; - ///公告类型 - TThostFtdcNewsTypeType NewsType; - ///紧急程度 - TThostFtdcNewsUrgencyType NewsUrgency; -}; - -///转帐开户请求 -struct CThostFtdcReqOpenAccountField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 - TThostFtdcGenderType Gender; - ///国家代码 - TThostFtdcCountryCodeType CountryCode; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///地址 - TThostFtdcAddressType Address; - ///邮编 - TThostFtdcZipCodeType ZipCode; - ///电话号码 - TThostFtdcTelephoneType Telephone; - ///手机 - TThostFtdcMobilePhoneType MobilePhone; - ///传真 - TThostFtdcFaxType Fax; - ///电子邮件 - TThostFtdcEMailType EMail; - ///资金账户状态 - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///汇钞标志 - TThostFtdcCashExchangeCodeType CashExchangeCode; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 - TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 - TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///交易ID - TThostFtdcTIDType TID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///转帐销户请求 -struct CThostFtdcReqCancelAccountField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 - TThostFtdcGenderType Gender; - ///国家代码 - TThostFtdcCountryCodeType CountryCode; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///地址 - TThostFtdcAddressType Address; - ///邮编 - TThostFtdcZipCodeType ZipCode; - ///电话号码 - TThostFtdcTelephoneType Telephone; - ///手机 - TThostFtdcMobilePhoneType MobilePhone; - ///传真 - TThostFtdcFaxType Fax; - ///电子邮件 - TThostFtdcEMailType EMail; - ///资金账户状态 - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///汇钞标志 - TThostFtdcCashExchangeCodeType CashExchangeCode; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 - TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 - TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///交易ID - TThostFtdcTIDType TID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///变更银行账户请求 -struct CThostFtdcReqChangeAccountField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 - TThostFtdcGenderType Gender; - ///国家代码 - TThostFtdcCountryCodeType CountryCode; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///地址 - TThostFtdcAddressType Address; - ///邮编 - TThostFtdcZipCodeType ZipCode; - ///电话号码 - TThostFtdcTelephoneType Telephone; - ///手机 - TThostFtdcMobilePhoneType MobilePhone; - ///传真 - TThostFtdcFaxType Fax; - ///电子邮件 - TThostFtdcEMailType EMail; - ///资金账户状态 - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///新银行帐号 - TThostFtdcBankAccountType NewBankAccount; - ///新银行密码 - TThostFtdcPasswordType NewBankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易ID - TThostFtdcTIDType TID; - ///摘要 - TThostFtdcDigestType Digest; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///转账请求 -struct CThostFtdcReqTransferField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///期货公司流水号 - TThostFtdcFutureSerialType FutureSerial; - ///用户标识 - TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///转帐金额 - TThostFtdcTradeAmountType TradeAmount; - ///期货可取金额 - TThostFtdcTradeAmountType FutureFetchAmount; - ///费用支付标志 - TThostFtdcFeePayFlagType FeePayFlag; - ///应收客户费用 - TThostFtdcCustFeeType CustFee; - ///应收期货公司费用 - TThostFtdcFutureFeeType BrokerFee; - ///发送方给接收方的消息 - TThostFtdcAddInfoType Message; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 - TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 - TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///转账交易状态 - TThostFtdcTransferStatusType TransferStatus; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///银行发起银行资金转期货响应 -struct CThostFtdcRspTransferField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///期货公司流水号 - TThostFtdcFutureSerialType FutureSerial; - ///用户标识 - TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///转帐金额 - TThostFtdcTradeAmountType TradeAmount; - ///期货可取金额 - TThostFtdcTradeAmountType FutureFetchAmount; - ///费用支付标志 - TThostFtdcFeePayFlagType FeePayFlag; - ///应收客户费用 - TThostFtdcCustFeeType CustFee; - ///应收期货公司费用 - TThostFtdcFutureFeeType BrokerFee; - ///发送方给接收方的消息 - TThostFtdcAddInfoType Message; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 - TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 - TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///转账交易状态 - TThostFtdcTransferStatusType TransferStatus; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///冲正请求 -struct CThostFtdcReqRepealField -{ - ///冲正时间间隔 - TThostFtdcRepealTimeIntervalType RepealTimeInterval; - ///已经冲正次数 - TThostFtdcRepealedTimesType RepealedTimes; - ///银行冲正标志 - TThostFtdcBankRepealFlagType BankRepealFlag; - ///期商冲正标志 - TThostFtdcBrokerRepealFlagType BrokerRepealFlag; - ///被冲正平台流水号 - TThostFtdcPlateSerialType PlateRepealSerial; - ///被冲正银行流水号 - TThostFtdcBankSerialType BankRepealSerial; - ///被冲正期货流水号 - TThostFtdcFutureSerialType FutureRepealSerial; - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///期货公司流水号 - TThostFtdcFutureSerialType FutureSerial; - ///用户标识 - TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///转帐金额 - TThostFtdcTradeAmountType TradeAmount; - ///期货可取金额 - TThostFtdcTradeAmountType FutureFetchAmount; - ///费用支付标志 - TThostFtdcFeePayFlagType FeePayFlag; - ///应收客户费用 - TThostFtdcCustFeeType CustFee; - ///应收期货公司费用 - TThostFtdcFutureFeeType BrokerFee; - ///发送方给接收方的消息 - TThostFtdcAddInfoType Message; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 - TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 - TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///转账交易状态 - TThostFtdcTransferStatusType TransferStatus; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///冲正响应 -struct CThostFtdcRspRepealField -{ - ///冲正时间间隔 - TThostFtdcRepealTimeIntervalType RepealTimeInterval; - ///已经冲正次数 - TThostFtdcRepealedTimesType RepealedTimes; - ///银行冲正标志 - TThostFtdcBankRepealFlagType BankRepealFlag; - ///期商冲正标志 - TThostFtdcBrokerRepealFlagType BrokerRepealFlag; - ///被冲正平台流水号 - TThostFtdcPlateSerialType PlateRepealSerial; - ///被冲正银行流水号 - TThostFtdcBankSerialType BankRepealSerial; - ///被冲正期货流水号 - TThostFtdcFutureSerialType FutureRepealSerial; - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///期货公司流水号 - TThostFtdcFutureSerialType FutureSerial; - ///用户标识 - TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///转帐金额 - TThostFtdcTradeAmountType TradeAmount; - ///期货可取金额 - TThostFtdcTradeAmountType FutureFetchAmount; - ///费用支付标志 - TThostFtdcFeePayFlagType FeePayFlag; - ///应收客户费用 - TThostFtdcCustFeeType CustFee; - ///应收期货公司费用 - TThostFtdcFutureFeeType BrokerFee; - ///发送方给接收方的消息 - TThostFtdcAddInfoType Message; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 - TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 - TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///转账交易状态 - TThostFtdcTransferStatusType TransferStatus; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///查询账户信息请求 -struct CThostFtdcReqQueryAccountField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///期货公司流水号 - TThostFtdcFutureSerialType FutureSerial; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 - TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 - TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///查询账户信息响应 -struct CThostFtdcRspQueryAccountField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///期货公司流水号 - TThostFtdcFutureSerialType FutureSerial; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 - TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 - TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///银行可用金额 - TThostFtdcTradeAmountType BankUseAmount; - ///银行可取金额 - TThostFtdcTradeAmountType BankFetchAmount; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///期商签到签退 -struct CThostFtdcFutureSignIOField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///摘要 - TThostFtdcDigestType Digest; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; -}; - -///期商签到响应 -struct CThostFtdcRspFutureSignInField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///摘要 - TThostFtdcDigestType Digest; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///PIN密钥 - TThostFtdcPasswordKeyType PinKey; - ///MAC密钥 - TThostFtdcPasswordKeyType MacKey; -}; - -///期商签退请求 -struct CThostFtdcReqFutureSignOutField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///摘要 - TThostFtdcDigestType Digest; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; -}; - -///期商签退响应 -struct CThostFtdcRspFutureSignOutField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///摘要 - TThostFtdcDigestType Digest; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - -///查询指定流水号的交易结果请求 -struct CThostFtdcReqQueryTradeResultBySerialField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///流水号 - TThostFtdcSerialType Reference; - ///本流水号发布者的机构类型 - TThostFtdcInstitutionTypeType RefrenceIssureType; - ///本流水号发布者机构编码 - TThostFtdcOrganCodeType RefrenceIssure; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///转帐金额 - TThostFtdcTradeAmountType TradeAmount; - ///摘要 - TThostFtdcDigestType Digest; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///查询指定流水号的交易结果响应 -struct CThostFtdcRspQueryTradeResultBySerialField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///流水号 - TThostFtdcSerialType Reference; - ///本流水号发布者的机构类型 - TThostFtdcInstitutionTypeType RefrenceIssureType; - ///本流水号发布者机构编码 - TThostFtdcOrganCodeType RefrenceIssure; - ///原始返回代码 - TThostFtdcReturnCodeType OriginReturnCode; - ///原始返回码描述 - TThostFtdcDescrInfoForReturnCodeType OriginDescrInfoForReturnCode; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///转帐金额 - TThostFtdcTradeAmountType TradeAmount; - ///摘要 - TThostFtdcDigestType Digest; -}; - -///日终文件就绪请求 -struct CThostFtdcReqDayEndFileReadyField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///文件业务功能 - TThostFtdcFileBusinessCodeType FileBusinessCode; - ///摘要 - TThostFtdcDigestType Digest; -}; - -///返回结果 -struct CThostFtdcReturnResultField -{ - ///返回代码 - TThostFtdcReturnCodeType ReturnCode; - ///返回码描述 - TThostFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode; -}; - -///验证期货资金密码 -struct CThostFtdcVerifyFuturePasswordField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///交易ID - TThostFtdcTIDType TID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; -}; - -///验证客户信息 -struct CThostFtdcVerifyCustInfoField -{ - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///验证期货资金密码和客户信息 -struct CThostFtdcVerifyFuturePasswordAndCustInfoField -{ - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///验证期货资金密码和客户信息 -struct CThostFtdcDepositResultInformField -{ - ///出入金流水号,该流水号为银期报盘返回的流水号 - TThostFtdcDepositSeqNoType DepositSeqNo; - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///入金金额 - TThostFtdcMoneyType Deposit; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///返回代码 - TThostFtdcReturnCodeType ReturnCode; - ///返回码描述 - TThostFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode; -}; - -///交易核心向银期报盘发出密钥同步请求 -struct CThostFtdcReqSyncKeyField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///交易核心给银期报盘的消息 - TThostFtdcAddInfoType Message; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; -}; - -///交易核心向银期报盘发出密钥同步响应 -struct CThostFtdcRspSyncKeyField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///交易核心给银期报盘的消息 - TThostFtdcAddInfoType Message; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - -///查询账户信息通知 -struct CThostFtdcNotifyQueryAccountField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///期货公司流水号 - TThostFtdcFutureSerialType FutureSerial; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 - TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 - TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///银行可用金额 - TThostFtdcTradeAmountType BankUseAmount; - ///银行可取金额 - TThostFtdcTradeAmountType BankFetchAmount; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///银期转账交易流水表 -struct CThostFtdcTransferSerialField -{ - ///平台流水号 - TThostFtdcPlateSerialType PlateSerial; - ///交易发起方日期 - TThostFtdcTradeDateType TradeDate; - ///交易日期 - TThostFtdcDateType TradingDay; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///交易代码 - TThostFtdcTradeCodeType TradeCode; - ///会话编号 - TThostFtdcSessionIDType SessionID; - ///银行编码 - TThostFtdcBankIDType BankID; - ///银行分支机构编码 - TThostFtdcBankBrchIDType BankBranchID; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///期货公司编码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///期货公司帐号类型 - TThostFtdcFutureAccTypeType FutureAccType; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///投资者代码 - TThostFtdcInvestorIDType InvestorID; - ///期货公司流水号 - TThostFtdcFutureSerialType FutureSerial; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///交易金额 - TThostFtdcTradeAmountType TradeAmount; - ///应收客户费用 - TThostFtdcCustFeeType CustFee; - ///应收期货公司费用 - TThostFtdcFutureFeeType BrokerFee; - ///有效标志 - TThostFtdcAvailabilityFlagType AvailabilityFlag; - ///操作员 - TThostFtdcOperatorCodeType OperatorCode; - ///新银行帐号 - TThostFtdcBankAccountType BankNewAccount; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - -///请求查询转帐流水 -struct CThostFtdcQryTransferSerialField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///银行编码 - TThostFtdcBankIDType BankID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; -}; - -///期商签到通知 -struct CThostFtdcNotifyFutureSignInField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///摘要 - TThostFtdcDigestType Digest; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///PIN密钥 - TThostFtdcPasswordKeyType PinKey; - ///MAC密钥 - TThostFtdcPasswordKeyType MacKey; -}; - -///期商签退通知 -struct CThostFtdcNotifyFutureSignOutField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///摘要 - TThostFtdcDigestType Digest; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - -///交易核心向银期报盘发出密钥同步处理结果的通知 -struct CThostFtdcNotifySyncKeyField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///交易核心给银期报盘的消息 - TThostFtdcAddInfoType Message; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///请求编号 - TThostFtdcRequestIDType RequestID; - ///交易ID - TThostFtdcTIDType TID; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - -///请求查询银期签约关系 -struct CThostFtdcQryAccountregisterField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///银行编码 - TThostFtdcBankIDType BankID; - ///银行分支机构编码 - TThostFtdcBankBrchIDType BankBranchID; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; -}; - -///客户开销户信息表 -struct CThostFtdcAccountregisterField -{ - ///交易日期 - TThostFtdcTradeDateType TradeDay; - ///银行编码 - TThostFtdcBankIDType BankID; - ///银行分支机构编码 - TThostFtdcBankBrchIDType BankBranchID; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///期货公司编码 - TThostFtdcBrokerIDType BrokerID; - ///期货公司分支机构编码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///开销户类别 - TThostFtdcOpenOrDestroyType OpenOrDestroy; - ///签约日期 - TThostFtdcTradeDateType RegDate; - ///解约日期 - TThostFtdcTradeDateType OutDate; - ///交易ID - TThostFtdcTIDType TID; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///银期开户信息 -struct CThostFtdcOpenAccountField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 - TThostFtdcGenderType Gender; - ///国家代码 - TThostFtdcCountryCodeType CountryCode; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///地址 - TThostFtdcAddressType Address; - ///邮编 - TThostFtdcZipCodeType ZipCode; - ///电话号码 - TThostFtdcTelephoneType Telephone; - ///手机 - TThostFtdcMobilePhoneType MobilePhone; - ///传真 - TThostFtdcFaxType Fax; - ///电子邮件 - TThostFtdcEMailType EMail; - ///资金账户状态 - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///汇钞标志 - TThostFtdcCashExchangeCodeType CashExchangeCode; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 - TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 - TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///交易ID - TThostFtdcTIDType TID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///银期销户信息 -struct CThostFtdcCancelAccountField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 - TThostFtdcGenderType Gender; - ///国家代码 - TThostFtdcCountryCodeType CountryCode; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///地址 - TThostFtdcAddressType Address; - ///邮编 - TThostFtdcZipCodeType ZipCode; - ///电话号码 - TThostFtdcTelephoneType Telephone; - ///手机 - TThostFtdcMobilePhoneType MobilePhone; - ///传真 - TThostFtdcFaxType Fax; - ///电子邮件 - TThostFtdcEMailType EMail; - ///资金账户状态 - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///汇钞标志 - TThostFtdcCashExchangeCodeType CashExchangeCode; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 - TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 - TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 - TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 - TThostFtdcOperNoType OperNo; - ///交易ID - TThostFtdcTIDType TID; - ///用户标识 - TThostFtdcUserIDType UserID; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///银期变更银行账号信息 -struct CThostFtdcChangeAccountField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 - TThostFtdcGenderType Gender; - ///国家代码 - TThostFtdcCountryCodeType CountryCode; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///地址 - TThostFtdcAddressType Address; - ///邮编 - TThostFtdcZipCodeType ZipCode; - ///电话号码 - TThostFtdcTelephoneType Telephone; - ///手机 - TThostFtdcMobilePhoneType MobilePhone; - ///传真 - TThostFtdcFaxType Fax; - ///电子邮件 - TThostFtdcEMailType EMail; - ///资金账户状态 - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///新银行帐号 - TThostFtdcBankAccountType NewBankAccount; - ///新银行密码 - TThostFtdcPasswordType NewBankPassWord; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///银行密码标志 - TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 - TThostFtdcPwdFlagType SecuPwdFlag; - ///交易ID - TThostFtdcTIDType TID; - ///摘要 - TThostFtdcDigestType Digest; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; - ///长客户姓名 - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -///二级代理操作员银期权限 -struct CThostFtdcSecAgentACIDMapField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///资金账户 - TThostFtdcAccountIDType AccountID; - ///币种 - TThostFtdcCurrencyIDType CurrencyID; - ///境外中介机构资金帐号 - TThostFtdcAccountIDType BrokerSecAgentID; -}; - -///二级代理操作员银期权限查询 -struct CThostFtdcQrySecAgentACIDMapField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///资金账户 - TThostFtdcAccountIDType AccountID; - ///币种 - TThostFtdcCurrencyIDType CurrencyID; -}; - -///灾备中心交易权限 -struct CThostFtdcUserRightsAssignField -{ - ///应用单元代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///交易中心代码 - TThostFtdcDRIdentityIDType DRIdentityID; -}; - -///经济公司是否有在本标示的交易权限 -struct CThostFtdcBrokerUserRightAssignField -{ - ///应用单元代码 - TThostFtdcBrokerIDType BrokerID; - ///交易中心代码 - TThostFtdcDRIdentityIDType DRIdentityID; - ///能否交易 - TThostFtdcBoolType Tradeable; -}; - -///灾备交易转换报文 -struct CThostFtdcDRTransferField -{ - ///原交易中心代码 - TThostFtdcDRIdentityIDType OrigDRIdentityID; - ///目标交易中心代码 - TThostFtdcDRIdentityIDType DestDRIdentityID; - ///原应用单元代码 - TThostFtdcBrokerIDType OrigBrokerID; - ///目标易用单元代码 - TThostFtdcBrokerIDType DestBrokerID; -}; - -///Fens用户信息 -struct CThostFtdcFensUserInfoField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///登录模式 - TThostFtdcLoginModeType LoginMode; -}; - -///当前银期所属交易中心 -struct CThostFtdcCurrTransferIdentityField -{ - ///交易中心代码 - TThostFtdcDRIdentityIDType IdentityID; -}; - -///禁止登录用户 -struct CThostFtdcLoginForbiddenUserField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; - ///IP地址 - TThostFtdcIPAddressType IPAddress; -}; - -///查询禁止登录用户 -struct CThostFtdcQryLoginForbiddenUserField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///用户代码 - TThostFtdcUserIDType UserID; -}; - -///UDP组播组信息 -struct CThostFtdcMulticastGroupInfoField -{ - ///组播组IP地址 - TThostFtdcIPAddressType GroupIP; - ///组播组IP端口 - TThostFtdcIPPortType GroupPort; - ///源地址 - TThostFtdcIPAddressType SourceIP; -}; - -///资金账户基本准备金 -struct CThostFtdcTradingAccountReserveField -{ - ///经纪公司代码 - TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///基本准备金 - TThostFtdcMoneyType Reserve; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; -}; - -///银期预约开户确认请求 -struct CThostFtdcReserveOpenAccountConfirmField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcLongIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 - TThostFtdcGenderType Gender; - ///国家代码 - TThostFtdcCountryCodeType CountryCode; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///地址 - TThostFtdcAddressType Address; - ///邮编 - TThostFtdcZipCodeType ZipCode; - ///电话号码 - TThostFtdcTelephoneType Telephone; - ///手机 - TThostFtdcMobilePhoneType MobilePhone; - ///传真 - TThostFtdcFaxType Fax; - ///电子邮件 - TThostFtdcEMailType EMail; - ///资金账户状态 - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易ID - TThostFtdcTIDType TID; - ///投资者帐号 - TThostFtdcAccountIDType AccountID; - ///期货密码 - TThostFtdcPasswordType Password; - ///预约开户银行流水号 - TThostFtdcBankSerialType BankReserveOpenSeq; - ///预约开户日期 - TThostFtdcTradeDateType BookDate; - ///预约开户验证密码 - TThostFtdcPasswordType BookPsw; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - -///银期预约开户 -struct CThostFtdcReserveOpenAccountField -{ - ///业务功能码 - TThostFtdcTradeCodeType TradeCode; - ///银行代码 - TThostFtdcBankIDType BankID; - ///银行分支机构代码 - TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 - TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 - TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 - TThostFtdcTradeDateType TradeDate; - ///交易时间 - TThostFtdcTradeTimeType TradeTime; - ///银行流水号 - TThostFtdcBankSerialType BankSerial; - ///交易系统日期 - TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 - TThostFtdcSerialType PlateSerial; - ///最后分片标志 - TThostFtdcLastFragmentType LastFragment; - ///会话号 - TThostFtdcSessionIDType SessionID; - ///客户姓名 - TThostFtdcLongIndividualNameType CustomerName; - ///证件类型 - TThostFtdcIdCardTypeType IdCardType; - ///证件号码 - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 - TThostFtdcGenderType Gender; - ///国家代码 - TThostFtdcCountryCodeType CountryCode; - ///客户类型 - TThostFtdcCustTypeType CustType; - ///地址 - TThostFtdcAddressType Address; - ///邮编 - TThostFtdcZipCodeType ZipCode; - ///电话号码 - TThostFtdcTelephoneType Telephone; - ///手机 - TThostFtdcMobilePhoneType MobilePhone; - ///传真 - TThostFtdcFaxType Fax; - ///电子邮件 - TThostFtdcEMailType EMail; - ///资金账户状态 - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 - TThostFtdcBankAccountType BankAccount; - ///银行密码 - TThostFtdcPasswordType BankPassWord; - ///安装编号 - TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 - TThostFtdcCurrencyIDType CurrencyID; - ///摘要 - TThostFtdcDigestType Digest; - ///银行帐号类型 - TThostFtdcBankAccTypeType BankAccType; - ///期货公司银行编码 - TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易ID - TThostFtdcTIDType TID; - ///预约开户状态 - TThostFtdcReserveOpenAccStasType ReserveOpenAccStas; - ///错误代码 - TThostFtdcErrorIDType ErrorID; - ///错误信息 - TThostFtdcErrorMsgType ErrorMsg; -}; - - - -#endif +///////////////////////////////////////////////////////////////////////// +///@system 新一代交易所系统 +///@company 上海期货信息技术有限公司 +///@file ThostFtdcUserApiStruct.h +///@brief 定义了客户端接口使用的业务数据结构 +///@history +///20060106 赵鸿昊 创建该文件 +///////////////////////////////////////////////////////////////////////// + +#if !defined(THOST_FTDCSTRUCT_H) +#define THOST_FTDCSTRUCT_H + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#include "ThostFtdcUserApiDataType.h" + +///信息分发 +struct CThostFtdcDisseminationField +{ + ///序列系列号 + TThostFtdcSequenceSeriesType SequenceSeries; + ///序列号 + TThostFtdcSequenceNoType SequenceNo; +}; + +///用户登录请求 +struct CThostFtdcReqUserLoginField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///密码 + TThostFtdcPasswordType Password; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///接口端产品信息 + TThostFtdcProductInfoType InterfaceProductInfo; + ///协议信息 + TThostFtdcProtocolInfoType ProtocolInfo; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///动态密码 + TThostFtdcPasswordType OneTimePassword; + ///终端IP地址 + TThostFtdcIPAddressType ClientIPAddress; + ///登录备注 + TThostFtdcLoginRemarkType LoginRemark; + ///终端IP端口 + TThostFtdcIPPortType ClientIPPort; +}; + +///用户登录应答 +struct CThostFtdcRspUserLoginField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///登录成功时间 + TThostFtdcTimeType LoginTime; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///交易系统名称 + TThostFtdcSystemNameType SystemName; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///最大报单引用 + TThostFtdcOrderRefType MaxOrderRef; + ///上期所时间 + TThostFtdcTimeType SHFETime; + ///大商所时间 + TThostFtdcTimeType DCETime; + ///郑商所时间 + TThostFtdcTimeType CZCETime; + ///中金所时间 + TThostFtdcTimeType FFEXTime; + ///能源中心时间 + TThostFtdcTimeType INETime; +}; + +///用户登出请求 +struct CThostFtdcUserLogoutField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; +}; + +///强制交易员退出 +struct CThostFtdcForceUserLogoutField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; +}; + +///客户端认证请求 +struct CThostFtdcReqAuthenticateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///认证码 + TThostFtdcAuthCodeType AuthCode; + ///App代码 + TThostFtdcAppIDType AppID; +}; + +///客户端认证响应 +struct CThostFtdcRspAuthenticateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///App代码 + TThostFtdcAppIDType AppID; + ///App类型 + TThostFtdcAppTypeType AppType; +}; + +///客户端认证信息 +struct CThostFtdcAuthenticationInfoField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///认证信息 + TThostFtdcAuthInfoType AuthInfo; + ///是否为认证结果 + TThostFtdcBoolType IsResult; + ///App代码 + TThostFtdcAppIDType AppID; + ///App类型 + TThostFtdcAppTypeType AppType; +}; + +///用户登录应答2 +struct CThostFtdcRspUserLogin2Field +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///登录成功时间 + TThostFtdcTimeType LoginTime; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///交易系统名称 + TThostFtdcSystemNameType SystemName; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///最大报单引用 + TThostFtdcOrderRefType MaxOrderRef; + ///上期所时间 + TThostFtdcTimeType SHFETime; + ///大商所时间 + TThostFtdcTimeType DCETime; + ///郑商所时间 + TThostFtdcTimeType CZCETime; + ///中金所时间 + TThostFtdcTimeType FFEXTime; + ///能源中心时间 + TThostFtdcTimeType INETime; + ///随机串 + TThostFtdcRandomStringType RandomString; +}; + +///银期转帐报文头 +struct CThostFtdcTransferHeaderField +{ + ///版本号,常量,1.0 + TThostFtdcVersionType Version; + ///交易代码,必填 + TThostFtdcTradeCodeType TradeCode; + ///交易日期,必填,格式:yyyymmdd + TThostFtdcTradeDateType TradeDate; + ///交易时间,必填,格式:hhmmss + TThostFtdcTradeTimeType TradeTime; + ///发起方流水号,N/A + TThostFtdcTradeSerialType TradeSerial; + ///期货公司代码,必填 + TThostFtdcFutureIDType FutureID; + ///银行代码,根据查询银行得到,必填 + TThostFtdcBankIDType BankID; + ///银行分中心代码,根据查询银行得到,必填 + TThostFtdcBankBrchIDType BankBrchID; + ///操作员,N/A + TThostFtdcOperNoType OperNo; + ///交易设备类型,N/A + TThostFtdcDeviceIDType DeviceID; + ///记录数,N/A + TThostFtdcRecordNumType RecordNum; + ///会话编号,N/A + TThostFtdcSessionIDType SessionID; + ///请求编号,N/A + TThostFtdcRequestIDType RequestID; +}; + +///银行资金转期货请求,TradeCode=202001 +struct CThostFtdcTransferBankToFutureReqField +{ + ///期货资金账户 + TThostFtdcAccountIDType FutureAccount; + ///密码标志 + TThostFtdcFuturePwdFlagType FuturePwdFlag; + ///密码 + TThostFtdcFutureAccPwdType FutureAccPwd; + ///转账金额 + TThostFtdcMoneyType TradeAmt; + ///客户手续费 + TThostFtdcMoneyType CustFee; + ///币种:RMB-人民币 USD-美圆 HKD-港元 + TThostFtdcCurrencyCodeType CurrencyCode; +}; + +///银行资金转期货请求响应 +struct CThostFtdcTransferBankToFutureRspField +{ + ///响应代码 + TThostFtdcRetCodeType RetCode; + ///响应信息 + TThostFtdcRetInfoType RetInfo; + ///资金账户 + TThostFtdcAccountIDType FutureAccount; + ///转帐金额 + TThostFtdcMoneyType TradeAmt; + ///应收客户手续费 + TThostFtdcMoneyType CustFee; + ///币种 + TThostFtdcCurrencyCodeType CurrencyCode; +}; + +///期货资金转银行请求,TradeCode=202002 +struct CThostFtdcTransferFutureToBankReqField +{ + ///期货资金账户 + TThostFtdcAccountIDType FutureAccount; + ///密码标志 + TThostFtdcFuturePwdFlagType FuturePwdFlag; + ///密码 + TThostFtdcFutureAccPwdType FutureAccPwd; + ///转账金额 + TThostFtdcMoneyType TradeAmt; + ///客户手续费 + TThostFtdcMoneyType CustFee; + ///币种:RMB-人民币 USD-美圆 HKD-港元 + TThostFtdcCurrencyCodeType CurrencyCode; +}; + +///期货资金转银行请求响应 +struct CThostFtdcTransferFutureToBankRspField +{ + ///响应代码 + TThostFtdcRetCodeType RetCode; + ///响应信息 + TThostFtdcRetInfoType RetInfo; + ///资金账户 + TThostFtdcAccountIDType FutureAccount; + ///转帐金额 + TThostFtdcMoneyType TradeAmt; + ///应收客户手续费 + TThostFtdcMoneyType CustFee; + ///币种 + TThostFtdcCurrencyCodeType CurrencyCode; +}; + +///查询银行资金请求,TradeCode=204002 +struct CThostFtdcTransferQryBankReqField +{ + ///期货资金账户 + TThostFtdcAccountIDType FutureAccount; + ///密码标志 + TThostFtdcFuturePwdFlagType FuturePwdFlag; + ///密码 + TThostFtdcFutureAccPwdType FutureAccPwd; + ///币种:RMB-人民币 USD-美圆 HKD-港元 + TThostFtdcCurrencyCodeType CurrencyCode; +}; + +///查询银行资金请求响应 +struct CThostFtdcTransferQryBankRspField +{ + ///响应代码 + TThostFtdcRetCodeType RetCode; + ///响应信息 + TThostFtdcRetInfoType RetInfo; + ///资金账户 + TThostFtdcAccountIDType FutureAccount; + ///银行余额 + TThostFtdcMoneyType TradeAmt; + ///银行可用余额 + TThostFtdcMoneyType UseAmt; + ///银行可取余额 + TThostFtdcMoneyType FetchAmt; + ///币种 + TThostFtdcCurrencyCodeType CurrencyCode; +}; + +///查询银行交易明细请求,TradeCode=204999 +struct CThostFtdcTransferQryDetailReqField +{ + ///期货资金账户 + TThostFtdcAccountIDType FutureAccount; +}; + +///查询银行交易明细请求响应 +struct CThostFtdcTransferQryDetailRspField +{ + ///交易日期 + TThostFtdcDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///交易代码 + TThostFtdcTradeCodeType TradeCode; + ///期货流水号 + TThostFtdcTradeSerialNoType FutureSerial; + ///期货公司代码 + TThostFtdcFutureIDType FutureID; + ///资金帐号 + TThostFtdcFutureAccountType FutureAccount; + ///银行流水号 + TThostFtdcTradeSerialNoType BankSerial; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分中心代码 + TThostFtdcBankBrchIDType BankBrchID; + ///银行账号 + TThostFtdcBankAccountType BankAccount; + ///证件号码 + TThostFtdcCertCodeType CertCode; + ///货币代码 + TThostFtdcCurrencyCodeType CurrencyCode; + ///发生金额 + TThostFtdcMoneyType TxAmount; + ///有效标志 + TThostFtdcTransferValidFlagType Flag; +}; + +///响应信息 +struct CThostFtdcRspInfoField +{ + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///交易所 +struct CThostFtdcExchangeField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易所名称 + TThostFtdcExchangeNameType ExchangeName; + ///交易所属性 + TThostFtdcExchangePropertyType ExchangeProperty; +}; + +///产品 +struct CThostFtdcProductField +{ + ///产品代码 + TThostFtdcInstrumentIDType ProductID; + ///产品名称 + TThostFtdcProductNameType ProductName; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///产品类型 + TThostFtdcProductClassType ProductClass; + ///合约数量乘数 + TThostFtdcVolumeMultipleType VolumeMultiple; + ///最小变动价位 + TThostFtdcPriceType PriceTick; + ///市价单最大下单量 + TThostFtdcVolumeType MaxMarketOrderVolume; + ///市价单最小下单量 + TThostFtdcVolumeType MinMarketOrderVolume; + ///限价单最大下单量 + TThostFtdcVolumeType MaxLimitOrderVolume; + ///限价单最小下单量 + TThostFtdcVolumeType MinLimitOrderVolume; + ///持仓类型 + TThostFtdcPositionTypeType PositionType; + ///持仓日期类型 + TThostFtdcPositionDateTypeType PositionDateType; + ///平仓处理类型 + TThostFtdcCloseDealTypeType CloseDealType; + ///交易币种类型 + TThostFtdcCurrencyIDType TradeCurrencyID; + ///质押资金可用范围 + TThostFtdcMortgageFundUseRangeType MortgageFundUseRange; + ///交易所产品代码 + TThostFtdcInstrumentIDType ExchangeProductID; + ///合约基础商品乘数 + TThostFtdcUnderlyingMultipleType UnderlyingMultiple; +}; + +///合约 +struct CThostFtdcInstrumentField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///合约名称 + TThostFtdcInstrumentNameType InstrumentName; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///产品代码 + TThostFtdcInstrumentIDType ProductID; + ///产品类型 + TThostFtdcProductClassType ProductClass; + ///交割年份 + TThostFtdcYearType DeliveryYear; + ///交割月 + TThostFtdcMonthType DeliveryMonth; + ///市价单最大下单量 + TThostFtdcVolumeType MaxMarketOrderVolume; + ///市价单最小下单量 + TThostFtdcVolumeType MinMarketOrderVolume; + ///限价单最大下单量 + TThostFtdcVolumeType MaxLimitOrderVolume; + ///限价单最小下单量 + TThostFtdcVolumeType MinLimitOrderVolume; + ///合约数量乘数 + TThostFtdcVolumeMultipleType VolumeMultiple; + ///最小变动价位 + TThostFtdcPriceType PriceTick; + ///创建日 + TThostFtdcDateType CreateDate; + ///上市日 + TThostFtdcDateType OpenDate; + ///到期日 + TThostFtdcDateType ExpireDate; + ///开始交割日 + TThostFtdcDateType StartDelivDate; + ///结束交割日 + TThostFtdcDateType EndDelivDate; + ///合约生命周期状态 + TThostFtdcInstLifePhaseType InstLifePhase; + ///当前是否交易 + TThostFtdcBoolType IsTrading; + ///持仓类型 + TThostFtdcPositionTypeType PositionType; + ///持仓日期类型 + TThostFtdcPositionDateTypeType PositionDateType; + ///多头保证金率 + TThostFtdcRatioType LongMarginRatio; + ///空头保证金率 + TThostFtdcRatioType ShortMarginRatio; + ///是否使用大额单边保证金算法 + TThostFtdcMaxMarginSideAlgorithmType MaxMarginSideAlgorithm; + ///基础商品代码 + TThostFtdcInstrumentIDType UnderlyingInstrID; + ///执行价 + TThostFtdcPriceType StrikePrice; + ///期权类型 + TThostFtdcOptionsTypeType OptionsType; + ///合约基础商品乘数 + TThostFtdcUnderlyingMultipleType UnderlyingMultiple; + ///组合类型 + TThostFtdcCombinationTypeType CombinationType; +}; + +///经纪公司 +struct CThostFtdcBrokerField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///经纪公司简称 + TThostFtdcBrokerAbbrType BrokerAbbr; + ///经纪公司名称 + TThostFtdcBrokerNameType BrokerName; + ///是否活跃 + TThostFtdcBoolType IsActive; +}; + +///交易所交易员 +struct CThostFtdcTraderField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///密码 + TThostFtdcPasswordType Password; + ///安装数量 + TThostFtdcInstallCountType InstallCount; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; +}; + +///投资者 +struct CThostFtdcInvestorField +{ + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者分组代码 + TThostFtdcInvestorIDType InvestorGroupID; + ///投资者名称 + TThostFtdcPartyNameType InvestorName; + ///证件类型 + TThostFtdcIdCardTypeType IdentifiedCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///是否活跃 + TThostFtdcBoolType IsActive; + ///联系电话 + TThostFtdcTelephoneType Telephone; + ///通讯地址 + TThostFtdcAddressType Address; + ///开户日期 + TThostFtdcDateType OpenDate; + ///手机 + TThostFtdcMobileType Mobile; + ///手续费率模板代码 + TThostFtdcInvestorIDType CommModelID; + ///保证金率模板代码 + TThostFtdcInvestorIDType MarginModelID; +}; + +///交易编码 +struct CThostFtdcTradingCodeField +{ + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///是否活跃 + TThostFtdcBoolType IsActive; + ///交易编码类型 + TThostFtdcClientIDTypeType ClientIDType; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///业务类型 + TThostFtdcBizTypeType BizType; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///会员编码和经纪公司编码对照表 +struct CThostFtdcPartBrokerField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///是否活跃 + TThostFtdcBoolType IsActive; +}; + +///管理用户 +struct CThostFtdcSuperUserField +{ + ///用户代码 + TThostFtdcUserIDType UserID; + ///用户名称 + TThostFtdcUserNameType UserName; + ///密码 + TThostFtdcPasswordType Password; + ///是否活跃 + TThostFtdcBoolType IsActive; +}; + +///管理用户功能权限 +struct CThostFtdcSuperUserFunctionField +{ + ///用户代码 + TThostFtdcUserIDType UserID; + ///功能代码 + TThostFtdcFunctionCodeType FunctionCode; +}; + +///投资者组 +struct CThostFtdcInvestorGroupField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者分组代码 + TThostFtdcInvestorIDType InvestorGroupID; + ///投资者分组名称 + TThostFtdcInvestorGroupNameType InvestorGroupName; +}; + +///资金账户 +struct CThostFtdcTradingAccountField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///上次质押金额 + TThostFtdcMoneyType PreMortgage; + ///上次信用额度 + TThostFtdcMoneyType PreCredit; + ///上次存款额 + TThostFtdcMoneyType PreDeposit; + ///上次结算准备金 + TThostFtdcMoneyType PreBalance; + ///上次占用的保证金 + TThostFtdcMoneyType PreMargin; + ///利息基数 + TThostFtdcMoneyType InterestBase; + ///利息收入 + TThostFtdcMoneyType Interest; + ///入金金额 + TThostFtdcMoneyType Deposit; + ///出金金额 + TThostFtdcMoneyType Withdraw; + ///冻结的保证金 + TThostFtdcMoneyType FrozenMargin; + ///冻结的资金 + TThostFtdcMoneyType FrozenCash; + ///冻结的手续费 + TThostFtdcMoneyType FrozenCommission; + ///当前保证金总额 + TThostFtdcMoneyType CurrMargin; + ///资金差额 + TThostFtdcMoneyType CashIn; + ///手续费 + TThostFtdcMoneyType Commission; + ///平仓盈亏 + TThostFtdcMoneyType CloseProfit; + ///持仓盈亏 + TThostFtdcMoneyType PositionProfit; + ///期货结算准备金 + TThostFtdcMoneyType Balance; + ///可用资金 + TThostFtdcMoneyType Available; + ///可取资金 + TThostFtdcMoneyType WithdrawQuota; + ///基本准备金 + TThostFtdcMoneyType Reserve; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///信用额度 + TThostFtdcMoneyType Credit; + ///质押金额 + TThostFtdcMoneyType Mortgage; + ///交易所保证金 + TThostFtdcMoneyType ExchangeMargin; + ///投资者交割保证金 + TThostFtdcMoneyType DeliveryMargin; + ///交易所交割保证金 + TThostFtdcMoneyType ExchangeDeliveryMargin; + ///保底期货结算准备金 + TThostFtdcMoneyType ReserveBalance; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///上次货币质入金额 + TThostFtdcMoneyType PreFundMortgageIn; + ///上次货币质出金额 + TThostFtdcMoneyType PreFundMortgageOut; + ///货币质入金额 + TThostFtdcMoneyType FundMortgageIn; + ///货币质出金额 + TThostFtdcMoneyType FundMortgageOut; + ///货币质押余额 + TThostFtdcMoneyType FundMortgageAvailable; + ///可质押货币金额 + TThostFtdcMoneyType MortgageableFund; + ///特殊产品占用保证金 + TThostFtdcMoneyType SpecProductMargin; + ///特殊产品冻结保证金 + TThostFtdcMoneyType SpecProductFrozenMargin; + ///特殊产品手续费 + TThostFtdcMoneyType SpecProductCommission; + ///特殊产品冻结手续费 + TThostFtdcMoneyType SpecProductFrozenCommission; + ///特殊产品持仓盈亏 + TThostFtdcMoneyType SpecProductPositionProfit; + ///特殊产品平仓盈亏 + TThostFtdcMoneyType SpecProductCloseProfit; + ///根据持仓盈亏算法计算的特殊产品持仓盈亏 + TThostFtdcMoneyType SpecProductPositionProfitByAlg; + ///特殊产品交易所保证金 + TThostFtdcMoneyType SpecProductExchangeMargin; + ///业务类型 + TThostFtdcBizTypeType BizType; + ///延时换汇冻结金额 + TThostFtdcMoneyType FrozenSwap; + ///剩余换汇额度 + TThostFtdcMoneyType RemainSwap; +}; + +///投资者持仓 +struct CThostFtdcInvestorPositionField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///持仓多空方向 + TThostFtdcPosiDirectionType PosiDirection; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///持仓日期 + TThostFtdcPositionDateType PositionDate; + ///上日持仓 + TThostFtdcVolumeType YdPosition; + ///今日持仓 + TThostFtdcVolumeType Position; + ///多头冻结 + TThostFtdcVolumeType LongFrozen; + ///空头冻结 + TThostFtdcVolumeType ShortFrozen; + ///开仓冻结金额 + TThostFtdcMoneyType LongFrozenAmount; + ///开仓冻结金额 + TThostFtdcMoneyType ShortFrozenAmount; + ///开仓量 + TThostFtdcVolumeType OpenVolume; + ///平仓量 + TThostFtdcVolumeType CloseVolume; + ///开仓金额 + TThostFtdcMoneyType OpenAmount; + ///平仓金额 + TThostFtdcMoneyType CloseAmount; + ///持仓成本 + TThostFtdcMoneyType PositionCost; + ///上次占用的保证金 + TThostFtdcMoneyType PreMargin; + ///占用的保证金 + TThostFtdcMoneyType UseMargin; + ///冻结的保证金 + TThostFtdcMoneyType FrozenMargin; + ///冻结的资金 + TThostFtdcMoneyType FrozenCash; + ///冻结的手续费 + TThostFtdcMoneyType FrozenCommission; + ///资金差额 + TThostFtdcMoneyType CashIn; + ///手续费 + TThostFtdcMoneyType Commission; + ///平仓盈亏 + TThostFtdcMoneyType CloseProfit; + ///持仓盈亏 + TThostFtdcMoneyType PositionProfit; + ///上次结算价 + TThostFtdcPriceType PreSettlementPrice; + ///本次结算价 + TThostFtdcPriceType SettlementPrice; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///开仓成本 + TThostFtdcMoneyType OpenCost; + ///交易所保证金 + TThostFtdcMoneyType ExchangeMargin; + ///组合成交形成的持仓 + TThostFtdcVolumeType CombPosition; + ///组合多头冻结 + TThostFtdcVolumeType CombLongFrozen; + ///组合空头冻结 + TThostFtdcVolumeType CombShortFrozen; + ///逐日盯市平仓盈亏 + TThostFtdcMoneyType CloseProfitByDate; + ///逐笔对冲平仓盈亏 + TThostFtdcMoneyType CloseProfitByTrade; + ///今日持仓 + TThostFtdcVolumeType TodayPosition; + ///保证金率 + TThostFtdcRatioType MarginRateByMoney; + ///保证金率(按手数) + TThostFtdcRatioType MarginRateByVolume; + ///执行冻结 + TThostFtdcVolumeType StrikeFrozen; + ///执行冻结金额 + TThostFtdcMoneyType StrikeFrozenAmount; + ///放弃执行冻结 + TThostFtdcVolumeType AbandonFrozen; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///执行冻结的昨仓 + TThostFtdcVolumeType YdStrikeFrozen; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///大商所持仓成本差值,只有大商所使用 + TThostFtdcMoneyType PositionCostOffset; +}; + +///合约保证金率 +struct CThostFtdcInstrumentMarginRateField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + ///多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + ///空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + ///空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + ///是否相对交易所收取 + TThostFtdcBoolType IsRelative; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///合约手续费率 +struct CThostFtdcInstrumentCommissionRateField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///开仓手续费率 + TThostFtdcRatioType OpenRatioByMoney; + ///开仓手续费 + TThostFtdcRatioType OpenRatioByVolume; + ///平仓手续费率 + TThostFtdcRatioType CloseRatioByMoney; + ///平仓手续费 + TThostFtdcRatioType CloseRatioByVolume; + ///平今手续费率 + TThostFtdcRatioType CloseTodayRatioByMoney; + ///平今手续费 + TThostFtdcRatioType CloseTodayRatioByVolume; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///业务类型 + TThostFtdcBizTypeType BizType; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///深度行情 +struct CThostFtdcDepthMarketDataField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///最新价 + TThostFtdcPriceType LastPrice; + ///上次结算价 + TThostFtdcPriceType PreSettlementPrice; + ///昨收盘 + TThostFtdcPriceType PreClosePrice; + ///昨持仓量 + TThostFtdcLargeVolumeType PreOpenInterest; + ///今开盘 + TThostFtdcPriceType OpenPrice; + ///最高价 + TThostFtdcPriceType HighestPrice; + ///最低价 + TThostFtdcPriceType LowestPrice; + ///数量 + TThostFtdcVolumeType Volume; + ///成交金额 + TThostFtdcMoneyType Turnover; + ///持仓量 + TThostFtdcLargeVolumeType OpenInterest; + ///今收盘 + TThostFtdcPriceType ClosePrice; + ///本次结算价 + TThostFtdcPriceType SettlementPrice; + ///涨停板价 + TThostFtdcPriceType UpperLimitPrice; + ///跌停板价 + TThostFtdcPriceType LowerLimitPrice; + ///昨虚实度 + TThostFtdcRatioType PreDelta; + ///今虚实度 + TThostFtdcRatioType CurrDelta; + ///最后修改时间 + TThostFtdcTimeType UpdateTime; + ///最后修改毫秒 + TThostFtdcMillisecType UpdateMillisec; + ///申买价一 + TThostFtdcPriceType BidPrice1; + ///申买量一 + TThostFtdcVolumeType BidVolume1; + ///申卖价一 + TThostFtdcPriceType AskPrice1; + ///申卖量一 + TThostFtdcVolumeType AskVolume1; + ///申买价二 + TThostFtdcPriceType BidPrice2; + ///申买量二 + TThostFtdcVolumeType BidVolume2; + ///申卖价二 + TThostFtdcPriceType AskPrice2; + ///申卖量二 + TThostFtdcVolumeType AskVolume2; + ///申买价三 + TThostFtdcPriceType BidPrice3; + ///申买量三 + TThostFtdcVolumeType BidVolume3; + ///申卖价三 + TThostFtdcPriceType AskPrice3; + ///申卖量三 + TThostFtdcVolumeType AskVolume3; + ///申买价四 + TThostFtdcPriceType BidPrice4; + ///申买量四 + TThostFtdcVolumeType BidVolume4; + ///申卖价四 + TThostFtdcPriceType AskPrice4; + ///申卖量四 + TThostFtdcVolumeType AskVolume4; + ///申买价五 + TThostFtdcPriceType BidPrice5; + ///申买量五 + TThostFtdcVolumeType BidVolume5; + ///申卖价五 + TThostFtdcPriceType AskPrice5; + ///申卖量五 + TThostFtdcVolumeType AskVolume5; + ///当日均价 + TThostFtdcPriceType AveragePrice; + ///业务日期 + TThostFtdcDateType ActionDay; +}; + +///投资者合约交易权限 +struct CThostFtdcInstrumentTradingRightField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///交易权限 + TThostFtdcTradingRightType TradingRight; +}; + +///经纪公司用户 +struct CThostFtdcBrokerUserField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///用户名称 + TThostFtdcUserNameType UserName; + ///用户类型 + TThostFtdcUserTypeType UserType; + ///是否活跃 + TThostFtdcBoolType IsActive; + ///是否使用令牌 + TThostFtdcBoolType IsUsingOTP; + ///是否强制终端认证 + TThostFtdcBoolType IsAuthForce; +}; + +///经纪公司用户口令 +struct CThostFtdcBrokerUserPasswordField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///密码 + TThostFtdcPasswordType Password; + ///上次修改时间 + TThostFtdcDateTimeType LastUpdateTime; + ///上次登陆时间 + TThostFtdcDateTimeType LastLoginTime; + ///密码过期时间 + TThostFtdcDateType ExpireDate; + ///弱密码过期时间 + TThostFtdcDateType WeakExpireDate; +}; + +///经纪公司用户功能权限 +struct CThostFtdcBrokerUserFunctionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///经纪公司功能代码 + TThostFtdcBrokerFunctionCodeType BrokerFunctionCode; +}; + +///交易所交易员报盘机 +struct CThostFtdcTraderOfferField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///密码 + TThostFtdcPasswordType Password; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地报单编号 + TThostFtdcOrderLocalIDType OrderLocalID; + ///交易所交易员连接状态 + TThostFtdcTraderConnectStatusType TraderConnectStatus; + ///发出连接请求的日期 + TThostFtdcDateType ConnectRequestDate; + ///发出连接请求的时间 + TThostFtdcTimeType ConnectRequestTime; + ///上次报告日期 + TThostFtdcDateType LastReportDate; + ///上次报告时间 + TThostFtdcTimeType LastReportTime; + ///完成连接日期 + TThostFtdcDateType ConnectDate; + ///完成连接时间 + TThostFtdcTimeType ConnectTime; + ///启动日期 + TThostFtdcDateType StartDate; + ///启动时间 + TThostFtdcTimeType StartTime; + ///交易日 + TThostFtdcDateType TradingDay; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///本席位最大成交编号 + TThostFtdcTradeIDType MaxTradeID; + ///本席位最大报单备拷 + TThostFtdcReturnCodeType MaxOrderMessageReference; +}; + +///投资者结算结果 +struct CThostFtdcSettlementInfoField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///消息正文 + TThostFtdcContentType Content; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///合约保证金率调整 +struct CThostFtdcInstrumentMarginRateAdjustField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + ///多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + ///空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + ///空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + ///是否相对交易所收取 + TThostFtdcBoolType IsRelative; +}; + +///交易所保证金率 +struct CThostFtdcExchangeMarginRateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + ///多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + ///空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + ///空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///交易所保证金率调整 +struct CThostFtdcExchangeMarginRateAdjustField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///跟随交易所投资者多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + ///跟随交易所投资者多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + ///跟随交易所投资者空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + ///跟随交易所投资者空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + ///交易所多头保证金率 + TThostFtdcRatioType ExchLongMarginRatioByMoney; + ///交易所多头保证金费 + TThostFtdcMoneyType ExchLongMarginRatioByVolume; + ///交易所空头保证金率 + TThostFtdcRatioType ExchShortMarginRatioByMoney; + ///交易所空头保证金费 + TThostFtdcMoneyType ExchShortMarginRatioByVolume; + ///不跟随交易所投资者多头保证金率 + TThostFtdcRatioType NoLongMarginRatioByMoney; + ///不跟随交易所投资者多头保证金费 + TThostFtdcMoneyType NoLongMarginRatioByVolume; + ///不跟随交易所投资者空头保证金率 + TThostFtdcRatioType NoShortMarginRatioByMoney; + ///不跟随交易所投资者空头保证金费 + TThostFtdcMoneyType NoShortMarginRatioByVolume; +}; + +///汇率 +struct CThostFtdcExchangeRateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///源币种 + TThostFtdcCurrencyIDType FromCurrencyID; + ///源币种单位数量 + TThostFtdcCurrencyUnitType FromCurrencyUnit; + ///目标币种 + TThostFtdcCurrencyIDType ToCurrencyID; + ///汇率 + TThostFtdcExchangeRateType ExchangeRate; +}; + +///结算引用 +struct CThostFtdcSettlementRefField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; +}; + +///当前时间 +struct CThostFtdcCurrentTimeField +{ + ///当前日期 + TThostFtdcDateType CurrDate; + ///当前时间 + TThostFtdcTimeType CurrTime; + ///当前时间(毫秒) + TThostFtdcMillisecType CurrMillisec; + ///业务日期 + TThostFtdcDateType ActionDay; +}; + +///通讯阶段 +struct CThostFtdcCommPhaseField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///通讯时段编号 + TThostFtdcCommPhaseNoType CommPhaseNo; + ///系统编号 + TThostFtdcSystemIDType SystemID; +}; + +///登录信息 +struct CThostFtdcLoginInfoField +{ + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///登录日期 + TThostFtdcDateType LoginDate; + ///登录时间 + TThostFtdcTimeType LoginTime; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///接口端产品信息 + TThostFtdcProductInfoType InterfaceProductInfo; + ///协议信息 + TThostFtdcProtocolInfoType ProtocolInfo; + ///系统名称 + TThostFtdcSystemNameType SystemName; + ///密码,已弃用 + TThostFtdcPasswordType PasswordDeprecated; + ///最大报单引用 + TThostFtdcOrderRefType MaxOrderRef; + ///上期所时间 + TThostFtdcTimeType SHFETime; + ///大商所时间 + TThostFtdcTimeType DCETime; + ///郑商所时间 + TThostFtdcTimeType CZCETime; + ///中金所时间 + TThostFtdcTimeType FFEXTime; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///动态密码 + TThostFtdcPasswordType OneTimePassword; + ///能源中心时间 + TThostFtdcTimeType INETime; + ///查询时是否需要流控 + TThostFtdcBoolType IsQryControl; + ///登录备注 + TThostFtdcLoginRemarkType LoginRemark; + ///密码 + TThostFtdcPasswordType Password; +}; + +///登录信息 +struct CThostFtdcLogoutAllField +{ + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///系统名称 + TThostFtdcSystemNameType SystemName; +}; + +///前置状态 +struct CThostFtdcFrontStatusField +{ + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///上次报告日期 + TThostFtdcDateType LastReportDate; + ///上次报告时间 + TThostFtdcTimeType LastReportTime; + ///是否活跃 + TThostFtdcBoolType IsActive; +}; + +///用户口令变更 +struct CThostFtdcUserPasswordUpdateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///原来的口令 + TThostFtdcPasswordType OldPassword; + ///新的口令 + TThostFtdcPasswordType NewPassword; +}; + +///输入报单 +struct CThostFtdcInputOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///报单引用 + TThostFtdcOrderRefType OrderRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///报单价格条件 + TThostFtdcOrderPriceTypeType OrderPriceType; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///组合开平标志 + TThostFtdcCombOffsetFlagType CombOffsetFlag; + ///组合投机套保标志 + TThostFtdcCombHedgeFlagType CombHedgeFlag; + ///价格 + TThostFtdcPriceType LimitPrice; + ///数量 + TThostFtdcVolumeType VolumeTotalOriginal; + ///有效期类型 + TThostFtdcTimeConditionType TimeCondition; + ///GTD日期 + TThostFtdcDateType GTDDate; + ///成交量类型 + TThostFtdcVolumeConditionType VolumeCondition; + ///最小成交量 + TThostFtdcVolumeType MinVolume; + ///触发条件 + TThostFtdcContingentConditionType ContingentCondition; + ///止损价 + TThostFtdcPriceType StopPrice; + ///强平原因 + TThostFtdcForceCloseReasonType ForceCloseReason; + ///自动挂起标志 + TThostFtdcBoolType IsAutoSuspend; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///用户强评标志 + TThostFtdcBoolType UserForceClose; + ///互换单标志 + TThostFtdcBoolType IsSwapOrder; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///资金账号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///交易编码 + TThostFtdcClientIDType ClientID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///报单 +struct CThostFtdcOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///报单引用 + TThostFtdcOrderRefType OrderRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///报单价格条件 + TThostFtdcOrderPriceTypeType OrderPriceType; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///组合开平标志 + TThostFtdcCombOffsetFlagType CombOffsetFlag; + ///组合投机套保标志 + TThostFtdcCombHedgeFlagType CombHedgeFlag; + ///价格 + TThostFtdcPriceType LimitPrice; + ///数量 + TThostFtdcVolumeType VolumeTotalOriginal; + ///有效期类型 + TThostFtdcTimeConditionType TimeCondition; + ///GTD日期 + TThostFtdcDateType GTDDate; + ///成交量类型 + TThostFtdcVolumeConditionType VolumeCondition; + ///最小成交量 + TThostFtdcVolumeType MinVolume; + ///触发条件 + TThostFtdcContingentConditionType ContingentCondition; + ///止损价 + TThostFtdcPriceType StopPrice; + ///强平原因 + TThostFtdcForceCloseReasonType ForceCloseReason; + ///自动挂起标志 + TThostFtdcBoolType IsAutoSuspend; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///本地报单编号 + TThostFtdcOrderLocalIDType OrderLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///报单提交状态 + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///报单提示序号 + TThostFtdcSequenceNoType NotifySequence; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///报单来源 + TThostFtdcOrderSourceType OrderSource; + ///报单状态 + TThostFtdcOrderStatusType OrderStatus; + ///报单类型 + TThostFtdcOrderTypeType OrderType; + ///今成交数量 + TThostFtdcVolumeType VolumeTraded; + ///剩余数量 + TThostFtdcVolumeType VolumeTotal; + ///报单日期 + TThostFtdcDateType InsertDate; + ///委托时间 + TThostFtdcTimeType InsertTime; + ///激活时间 + TThostFtdcTimeType ActiveTime; + ///挂起时间 + TThostFtdcTimeType SuspendTime; + ///最后修改时间 + TThostFtdcTimeType UpdateTime; + ///撤销时间 + TThostFtdcTimeType CancelTime; + ///最后修改交易所交易员代码 + TThostFtdcTraderIDType ActiveTraderID; + ///结算会员编号 + TThostFtdcParticipantIDType ClearingPartID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///用户强评标志 + TThostFtdcBoolType UserForceClose; + ///操作用户代码 + TThostFtdcUserIDType ActiveUserID; + ///经纪公司报单编号 + TThostFtdcSequenceNoType BrokerOrderSeq; + ///相关报单 + TThostFtdcOrderSysIDType RelativeOrderSysID; + ///郑商所成交数量 + TThostFtdcVolumeType ZCETotalTradedVolume; + ///互换单标志 + TThostFtdcBoolType IsSwapOrder; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///资金账号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///交易所报单 +struct CThostFtdcExchangeOrderField +{ + ///报单价格条件 + TThostFtdcOrderPriceTypeType OrderPriceType; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///组合开平标志 + TThostFtdcCombOffsetFlagType CombOffsetFlag; + ///组合投机套保标志 + TThostFtdcCombHedgeFlagType CombHedgeFlag; + ///价格 + TThostFtdcPriceType LimitPrice; + ///数量 + TThostFtdcVolumeType VolumeTotalOriginal; + ///有效期类型 + TThostFtdcTimeConditionType TimeCondition; + ///GTD日期 + TThostFtdcDateType GTDDate; + ///成交量类型 + TThostFtdcVolumeConditionType VolumeCondition; + ///最小成交量 + TThostFtdcVolumeType MinVolume; + ///触发条件 + TThostFtdcContingentConditionType ContingentCondition; + ///止损价 + TThostFtdcPriceType StopPrice; + ///强平原因 + TThostFtdcForceCloseReasonType ForceCloseReason; + ///自动挂起标志 + TThostFtdcBoolType IsAutoSuspend; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///本地报单编号 + TThostFtdcOrderLocalIDType OrderLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///报单提交状态 + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///报单提示序号 + TThostFtdcSequenceNoType NotifySequence; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///报单来源 + TThostFtdcOrderSourceType OrderSource; + ///报单状态 + TThostFtdcOrderStatusType OrderStatus; + ///报单类型 + TThostFtdcOrderTypeType OrderType; + ///今成交数量 + TThostFtdcVolumeType VolumeTraded; + ///剩余数量 + TThostFtdcVolumeType VolumeTotal; + ///报单日期 + TThostFtdcDateType InsertDate; + ///委托时间 + TThostFtdcTimeType InsertTime; + ///激活时间 + TThostFtdcTimeType ActiveTime; + ///挂起时间 + TThostFtdcTimeType SuspendTime; + ///最后修改时间 + TThostFtdcTimeType UpdateTime; + ///撤销时间 + TThostFtdcTimeType CancelTime; + ///最后修改交易所交易员代码 + TThostFtdcTraderIDType ActiveTraderID; + ///结算会员编号 + TThostFtdcParticipantIDType ClearingPartID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///交易所报单插入失败 +struct CThostFtdcExchangeOrderInsertErrorField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地报单编号 + TThostFtdcOrderLocalIDType OrderLocalID; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///输入报单操作 +struct CThostFtdcInputOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///报单操作引用 + TThostFtdcOrderActionRefType OrderActionRef; + ///报单引用 + TThostFtdcOrderRefType OrderRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///价格 + TThostFtdcPriceType LimitPrice; + ///数量变化 + TThostFtdcVolumeType VolumeChange; + ///用户代码 + TThostFtdcUserIDType UserID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///报单操作 +struct CThostFtdcOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///报单操作引用 + TThostFtdcOrderActionRefType OrderActionRef; + ///报单引用 + TThostFtdcOrderRefType OrderRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///价格 + TThostFtdcPriceType LimitPrice; + ///数量变化 + TThostFtdcVolumeType VolumeChange; + ///操作日期 + TThostFtdcDateType ActionDate; + ///操作时间 + TThostFtdcTimeType ActionTime; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地报单编号 + TThostFtdcOrderLocalIDType OrderLocalID; + ///操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///报单操作状态 + TThostFtdcOrderActionStatusType OrderActionStatus; + ///用户代码 + TThostFtdcUserIDType UserID; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///交易所报单操作 +struct CThostFtdcExchangeOrderActionField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///价格 + TThostFtdcPriceType LimitPrice; + ///数量变化 + TThostFtdcVolumeType VolumeChange; + ///操作日期 + TThostFtdcDateType ActionDate; + ///操作时间 + TThostFtdcTimeType ActionTime; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地报单编号 + TThostFtdcOrderLocalIDType OrderLocalID; + ///操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///报单操作状态 + TThostFtdcOrderActionStatusType OrderActionStatus; + ///用户代码 + TThostFtdcUserIDType UserID; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///交易所报单操作失败 +struct CThostFtdcExchangeOrderActionErrorField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地报单编号 + TThostFtdcOrderLocalIDType OrderLocalID; + ///操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///交易所成交 +struct CThostFtdcExchangeTradeField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///成交编号 + TThostFtdcTradeIDType TradeID; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///交易角色 + TThostFtdcTradingRoleType TradingRole; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///开平标志 + TThostFtdcOffsetFlagType OffsetFlag; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///价格 + TThostFtdcPriceType Price; + ///数量 + TThostFtdcVolumeType Volume; + ///成交时期 + TThostFtdcDateType TradeDate; + ///成交时间 + TThostFtdcTimeType TradeTime; + ///成交类型 + TThostFtdcTradeTypeType TradeType; + ///成交价来源 + TThostFtdcPriceSourceType PriceSource; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///本地报单编号 + TThostFtdcOrderLocalIDType OrderLocalID; + ///结算会员编号 + TThostFtdcParticipantIDType ClearingPartID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///成交来源 + TThostFtdcTradeSourceType TradeSource; +}; + +///成交 +struct CThostFtdcTradeField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///报单引用 + TThostFtdcOrderRefType OrderRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///成交编号 + TThostFtdcTradeIDType TradeID; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///交易角色 + TThostFtdcTradingRoleType TradingRole; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///开平标志 + TThostFtdcOffsetFlagType OffsetFlag; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///价格 + TThostFtdcPriceType Price; + ///数量 + TThostFtdcVolumeType Volume; + ///成交时期 + TThostFtdcDateType TradeDate; + ///成交时间 + TThostFtdcTimeType TradeTime; + ///成交类型 + TThostFtdcTradeTypeType TradeType; + ///成交价来源 + TThostFtdcPriceSourceType PriceSource; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///本地报单编号 + TThostFtdcOrderLocalIDType OrderLocalID; + ///结算会员编号 + TThostFtdcParticipantIDType ClearingPartID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///经纪公司报单编号 + TThostFtdcSequenceNoType BrokerOrderSeq; + ///成交来源 + TThostFtdcTradeSourceType TradeSource; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///用户会话 +struct CThostFtdcUserSessionField +{ + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///登录日期 + TThostFtdcDateType LoginDate; + ///登录时间 + TThostFtdcTimeType LoginTime; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///接口端产品信息 + TThostFtdcProductInfoType InterfaceProductInfo; + ///协议信息 + TThostFtdcProtocolInfoType ProtocolInfo; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///登录备注 + TThostFtdcLoginRemarkType LoginRemark; +}; + +///查询最大报单数量 +struct CThostFtdcQueryMaxOrderVolumeField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///开平标志 + TThostFtdcOffsetFlagType OffsetFlag; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///最大允许报单数量 + TThostFtdcVolumeType MaxVolume; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///投资者结算结果确认信息 +struct CThostFtdcSettlementInfoConfirmField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///确认日期 + TThostFtdcDateType ConfirmDate; + ///确认时间 + TThostFtdcTimeType ConfirmTime; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///出入金同步 +struct CThostFtdcSyncDepositField +{ + ///出入金流水号 + TThostFtdcDepositSeqNoType DepositSeqNo; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///入金金额 + TThostFtdcMoneyType Deposit; + ///是否强制进行 + TThostFtdcBoolType IsForce; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///货币质押同步 +struct CThostFtdcSyncFundMortgageField +{ + ///货币质押流水号 + TThostFtdcDepositSeqNoType MortgageSeqNo; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///源币种 + TThostFtdcCurrencyIDType FromCurrencyID; + ///质押金额 + TThostFtdcMoneyType MortgageAmount; + ///目标币种 + TThostFtdcCurrencyIDType ToCurrencyID; +}; + +///经纪公司同步 +struct CThostFtdcBrokerSyncField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; +}; + +///正在同步中的投资者 +struct CThostFtdcSyncingInvestorField +{ + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者分组代码 + TThostFtdcInvestorIDType InvestorGroupID; + ///投资者名称 + TThostFtdcPartyNameType InvestorName; + ///证件类型 + TThostFtdcIdCardTypeType IdentifiedCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///是否活跃 + TThostFtdcBoolType IsActive; + ///联系电话 + TThostFtdcTelephoneType Telephone; + ///通讯地址 + TThostFtdcAddressType Address; + ///开户日期 + TThostFtdcDateType OpenDate; + ///手机 + TThostFtdcMobileType Mobile; + ///手续费率模板代码 + TThostFtdcInvestorIDType CommModelID; + ///保证金率模板代码 + TThostFtdcInvestorIDType MarginModelID; +}; + +///正在同步中的交易代码 +struct CThostFtdcSyncingTradingCodeField +{ + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///是否活跃 + TThostFtdcBoolType IsActive; + ///交易编码类型 + TThostFtdcClientIDTypeType ClientIDType; +}; + +///正在同步中的投资者分组 +struct CThostFtdcSyncingInvestorGroupField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者分组代码 + TThostFtdcInvestorIDType InvestorGroupID; + ///投资者分组名称 + TThostFtdcInvestorGroupNameType InvestorGroupName; +}; + +///正在同步中的交易账号 +struct CThostFtdcSyncingTradingAccountField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///上次质押金额 + TThostFtdcMoneyType PreMortgage; + ///上次信用额度 + TThostFtdcMoneyType PreCredit; + ///上次存款额 + TThostFtdcMoneyType PreDeposit; + ///上次结算准备金 + TThostFtdcMoneyType PreBalance; + ///上次占用的保证金 + TThostFtdcMoneyType PreMargin; + ///利息基数 + TThostFtdcMoneyType InterestBase; + ///利息收入 + TThostFtdcMoneyType Interest; + ///入金金额 + TThostFtdcMoneyType Deposit; + ///出金金额 + TThostFtdcMoneyType Withdraw; + ///冻结的保证金 + TThostFtdcMoneyType FrozenMargin; + ///冻结的资金 + TThostFtdcMoneyType FrozenCash; + ///冻结的手续费 + TThostFtdcMoneyType FrozenCommission; + ///当前保证金总额 + TThostFtdcMoneyType CurrMargin; + ///资金差额 + TThostFtdcMoneyType CashIn; + ///手续费 + TThostFtdcMoneyType Commission; + ///平仓盈亏 + TThostFtdcMoneyType CloseProfit; + ///持仓盈亏 + TThostFtdcMoneyType PositionProfit; + ///期货结算准备金 + TThostFtdcMoneyType Balance; + ///可用资金 + TThostFtdcMoneyType Available; + ///可取资金 + TThostFtdcMoneyType WithdrawQuota; + ///基本准备金 + TThostFtdcMoneyType Reserve; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///信用额度 + TThostFtdcMoneyType Credit; + ///质押金额 + TThostFtdcMoneyType Mortgage; + ///交易所保证金 + TThostFtdcMoneyType ExchangeMargin; + ///投资者交割保证金 + TThostFtdcMoneyType DeliveryMargin; + ///交易所交割保证金 + TThostFtdcMoneyType ExchangeDeliveryMargin; + ///保底期货结算准备金 + TThostFtdcMoneyType ReserveBalance; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///上次货币质入金额 + TThostFtdcMoneyType PreFundMortgageIn; + ///上次货币质出金额 + TThostFtdcMoneyType PreFundMortgageOut; + ///货币质入金额 + TThostFtdcMoneyType FundMortgageIn; + ///货币质出金额 + TThostFtdcMoneyType FundMortgageOut; + ///货币质押余额 + TThostFtdcMoneyType FundMortgageAvailable; + ///可质押货币金额 + TThostFtdcMoneyType MortgageableFund; + ///特殊产品占用保证金 + TThostFtdcMoneyType SpecProductMargin; + ///特殊产品冻结保证金 + TThostFtdcMoneyType SpecProductFrozenMargin; + ///特殊产品手续费 + TThostFtdcMoneyType SpecProductCommission; + ///特殊产品冻结手续费 + TThostFtdcMoneyType SpecProductFrozenCommission; + ///特殊产品持仓盈亏 + TThostFtdcMoneyType SpecProductPositionProfit; + ///特殊产品平仓盈亏 + TThostFtdcMoneyType SpecProductCloseProfit; + ///根据持仓盈亏算法计算的特殊产品持仓盈亏 + TThostFtdcMoneyType SpecProductPositionProfitByAlg; + ///特殊产品交易所保证金 + TThostFtdcMoneyType SpecProductExchangeMargin; + ///延时换汇冻结金额 + TThostFtdcMoneyType FrozenSwap; + ///剩余换汇额度 + TThostFtdcMoneyType RemainSwap; +}; + +///正在同步中的投资者持仓 +struct CThostFtdcSyncingInvestorPositionField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///持仓多空方向 + TThostFtdcPosiDirectionType PosiDirection; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///持仓日期 + TThostFtdcPositionDateType PositionDate; + ///上日持仓 + TThostFtdcVolumeType YdPosition; + ///今日持仓 + TThostFtdcVolumeType Position; + ///多头冻结 + TThostFtdcVolumeType LongFrozen; + ///空头冻结 + TThostFtdcVolumeType ShortFrozen; + ///开仓冻结金额 + TThostFtdcMoneyType LongFrozenAmount; + ///开仓冻结金额 + TThostFtdcMoneyType ShortFrozenAmount; + ///开仓量 + TThostFtdcVolumeType OpenVolume; + ///平仓量 + TThostFtdcVolumeType CloseVolume; + ///开仓金额 + TThostFtdcMoneyType OpenAmount; + ///平仓金额 + TThostFtdcMoneyType CloseAmount; + ///持仓成本 + TThostFtdcMoneyType PositionCost; + ///上次占用的保证金 + TThostFtdcMoneyType PreMargin; + ///占用的保证金 + TThostFtdcMoneyType UseMargin; + ///冻结的保证金 + TThostFtdcMoneyType FrozenMargin; + ///冻结的资金 + TThostFtdcMoneyType FrozenCash; + ///冻结的手续费 + TThostFtdcMoneyType FrozenCommission; + ///资金差额 + TThostFtdcMoneyType CashIn; + ///手续费 + TThostFtdcMoneyType Commission; + ///平仓盈亏 + TThostFtdcMoneyType CloseProfit; + ///持仓盈亏 + TThostFtdcMoneyType PositionProfit; + ///上次结算价 + TThostFtdcPriceType PreSettlementPrice; + ///本次结算价 + TThostFtdcPriceType SettlementPrice; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///开仓成本 + TThostFtdcMoneyType OpenCost; + ///交易所保证金 + TThostFtdcMoneyType ExchangeMargin; + ///组合成交形成的持仓 + TThostFtdcVolumeType CombPosition; + ///组合多头冻结 + TThostFtdcVolumeType CombLongFrozen; + ///组合空头冻结 + TThostFtdcVolumeType CombShortFrozen; + ///逐日盯市平仓盈亏 + TThostFtdcMoneyType CloseProfitByDate; + ///逐笔对冲平仓盈亏 + TThostFtdcMoneyType CloseProfitByTrade; + ///今日持仓 + TThostFtdcVolumeType TodayPosition; + ///保证金率 + TThostFtdcRatioType MarginRateByMoney; + ///保证金率(按手数) + TThostFtdcRatioType MarginRateByVolume; + ///执行冻结 + TThostFtdcVolumeType StrikeFrozen; + ///执行冻结金额 + TThostFtdcMoneyType StrikeFrozenAmount; + ///放弃执行冻结 + TThostFtdcVolumeType AbandonFrozen; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///执行冻结的昨仓 + TThostFtdcVolumeType YdStrikeFrozen; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///大商所持仓成本差值,只有大商所使用 + TThostFtdcMoneyType PositionCostOffset; +}; + +///正在同步中的合约保证金率 +struct CThostFtdcSyncingInstrumentMarginRateField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + ///多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + ///空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + ///空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + ///是否相对交易所收取 + TThostFtdcBoolType IsRelative; +}; + +///正在同步中的合约手续费率 +struct CThostFtdcSyncingInstrumentCommissionRateField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///开仓手续费率 + TThostFtdcRatioType OpenRatioByMoney; + ///开仓手续费 + TThostFtdcRatioType OpenRatioByVolume; + ///平仓手续费率 + TThostFtdcRatioType CloseRatioByMoney; + ///平仓手续费 + TThostFtdcRatioType CloseRatioByVolume; + ///平今手续费率 + TThostFtdcRatioType CloseTodayRatioByMoney; + ///平今手续费 + TThostFtdcRatioType CloseTodayRatioByVolume; +}; + +///正在同步中的合约交易权限 +struct CThostFtdcSyncingInstrumentTradingRightField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///交易权限 + TThostFtdcTradingRightType TradingRight; +}; + +///查询报单 +struct CThostFtdcQryOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///开始时间 + TThostFtdcTimeType InsertTimeStart; + ///结束时间 + TThostFtdcTimeType InsertTimeEnd; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询成交 +struct CThostFtdcQryTradeField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///成交编号 + TThostFtdcTradeIDType TradeID; + ///开始时间 + TThostFtdcTimeType TradeTimeStart; + ///结束时间 + TThostFtdcTimeType TradeTimeEnd; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询投资者持仓 +struct CThostFtdcQryInvestorPositionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询资金账户 +struct CThostFtdcQryTradingAccountField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///业务类型 + TThostFtdcBizTypeType BizType; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; +}; + +///查询投资者 +struct CThostFtdcQryInvestorField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; +}; + +///查询交易编码 +struct CThostFtdcQryTradingCodeField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///交易编码类型 + TThostFtdcClientIDTypeType ClientIDType; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询投资者组 +struct CThostFtdcQryInvestorGroupField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; +}; + +///查询合约保证金率 +struct CThostFtdcQryInstrumentMarginRateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询手续费率 +struct CThostFtdcQryInstrumentCommissionRateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询合约交易权限 +struct CThostFtdcQryInstrumentTradingRightField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +///查询经纪公司 +struct CThostFtdcQryBrokerField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; +}; + +///查询交易员 +struct CThostFtdcQryTraderField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +///查询管理用户功能权限 +struct CThostFtdcQrySuperUserFunctionField +{ + ///用户代码 + TThostFtdcUserIDType UserID; +}; + +///查询用户会话 +struct CThostFtdcQryUserSessionField +{ + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; +}; + +///查询经纪公司会员代码 +struct CThostFtdcQryPartBrokerField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; +}; + +///查询前置状态 +struct CThostFtdcQryFrontStatusField +{ + ///前置编号 + TThostFtdcFrontIDType FrontID; +}; + +///查询交易所报单 +struct CThostFtdcQryExchangeOrderField +{ + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +///查询报单操作 +struct CThostFtdcQryOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///查询交易所报单操作 +struct CThostFtdcQryExchangeOrderActionField +{ + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +///查询管理用户 +struct CThostFtdcQrySuperUserField +{ + ///用户代码 + TThostFtdcUserIDType UserID; +}; + +///查询交易所 +struct CThostFtdcQryExchangeField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///查询产品 +struct CThostFtdcQryProductField +{ + ///产品代码 + TThostFtdcInstrumentIDType ProductID; + ///产品类型 + TThostFtdcProductClassType ProductClass; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///查询合约 +struct CThostFtdcQryInstrumentField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///产品代码 + TThostFtdcInstrumentIDType ProductID; +}; + +///查询行情 +struct CThostFtdcQryDepthMarketDataField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///查询经纪公司用户 +struct CThostFtdcQryBrokerUserField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; +}; + +///查询经纪公司用户权限 +struct CThostFtdcQryBrokerUserFunctionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; +}; + +///查询交易员报盘机 +struct CThostFtdcQryTraderOfferField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +///查询出入金流水 +struct CThostFtdcQrySyncDepositField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///出入金流水号 + TThostFtdcDepositSeqNoType DepositSeqNo; +}; + +///查询投资者结算结果 +struct CThostFtdcQrySettlementInfoField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///交易日 + TThostFtdcDateType TradingDay; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///查询交易所保证金率 +struct CThostFtdcQryExchangeMarginRateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///查询交易所调整保证金率 +struct CThostFtdcQryExchangeMarginRateAdjustField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; +}; + +///查询汇率 +struct CThostFtdcQryExchangeRateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///源币种 + TThostFtdcCurrencyIDType FromCurrencyID; + ///目标币种 + TThostFtdcCurrencyIDType ToCurrencyID; +}; + +///查询货币质押流水 +struct CThostFtdcQrySyncFundMortgageField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///货币质押流水号 + TThostFtdcDepositSeqNoType MortgageSeqNo; +}; + +///查询报单 +struct CThostFtdcQryHisOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///开始时间 + TThostFtdcTimeType InsertTimeStart; + ///结束时间 + TThostFtdcTimeType InsertTimeEnd; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; +}; + +///当前期权合约最小保证金 +struct CThostFtdcOptionInstrMiniMarginField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///单位(手)期权合约最小保证金 + TThostFtdcMoneyType MinMargin; + ///取值方式 + TThostFtdcValueMethodType ValueMethod; + ///是否跟随交易所收取 + TThostFtdcBoolType IsRelative; +}; + +///当前期权合约保证金调整系数 +struct CThostFtdcOptionInstrMarginAdjustField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投机空头保证金调整系数 + TThostFtdcRatioType SShortMarginRatioByMoney; + ///投机空头保证金调整系数 + TThostFtdcMoneyType SShortMarginRatioByVolume; + ///保值空头保证金调整系数 + TThostFtdcRatioType HShortMarginRatioByMoney; + ///保值空头保证金调整系数 + TThostFtdcMoneyType HShortMarginRatioByVolume; + ///套利空头保证金调整系数 + TThostFtdcRatioType AShortMarginRatioByMoney; + ///套利空头保证金调整系数 + TThostFtdcMoneyType AShortMarginRatioByVolume; + ///是否跟随交易所收取 + TThostFtdcBoolType IsRelative; + ///做市商空头保证金调整系数 + TThostFtdcRatioType MShortMarginRatioByMoney; + ///做市商空头保证金调整系数 + TThostFtdcMoneyType MShortMarginRatioByVolume; +}; + +///当前期权合约手续费的详细内容 +struct CThostFtdcOptionInstrCommRateField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///开仓手续费率 + TThostFtdcRatioType OpenRatioByMoney; + ///开仓手续费 + TThostFtdcRatioType OpenRatioByVolume; + ///平仓手续费率 + TThostFtdcRatioType CloseRatioByMoney; + ///平仓手续费 + TThostFtdcRatioType CloseRatioByVolume; + ///平今手续费率 + TThostFtdcRatioType CloseTodayRatioByMoney; + ///平今手续费 + TThostFtdcRatioType CloseTodayRatioByVolume; + ///执行手续费率 + TThostFtdcRatioType StrikeRatioByMoney; + ///执行手续费 + TThostFtdcRatioType StrikeRatioByVolume; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///期权交易成本 +struct CThostFtdcOptionInstrTradeCostField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///期权合约保证金不变部分 + TThostFtdcMoneyType FixedMargin; + ///期权合约最小保证金 + TThostFtdcMoneyType MiniMargin; + ///期权合约权利金 + TThostFtdcMoneyType Royalty; + ///交易所期权合约保证金不变部分 + TThostFtdcMoneyType ExchFixedMargin; + ///交易所期权合约最小保证金 + TThostFtdcMoneyType ExchMiniMargin; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///期权交易成本查询 +struct CThostFtdcQryOptionInstrTradeCostField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///期权合约报价 + TThostFtdcPriceType InputPrice; + ///标的价格,填0则用昨结算价 + TThostFtdcPriceType UnderlyingPrice; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///期权手续费率查询 +struct CThostFtdcQryOptionInstrCommRateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///股指现货指数 +struct CThostFtdcIndexPriceField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///指数现货收盘价 + TThostFtdcPriceType ClosePrice; +}; + +///输入的执行宣告 +struct CThostFtdcInputExecOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///执行宣告引用 + TThostFtdcOrderRefType ExecOrderRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///数量 + TThostFtdcVolumeType Volume; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///开平标志 + TThostFtdcOffsetFlagType OffsetFlag; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///执行类型 + TThostFtdcActionTypeType ActionType; + ///保留头寸申请的持仓方向 + TThostFtdcPosiDirectionType PosiDirection; + ///期权行权后是否保留期货头寸的标记,该字段已废弃 + TThostFtdcExecOrderPositionFlagType ReservePositionFlag; + ///期权行权后生成的头寸是否自动平仓 + TThostFtdcExecOrderCloseFlagType CloseFlag; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///资金账号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///交易编码 + TThostFtdcClientIDType ClientID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///输入执行宣告操作 +struct CThostFtdcInputExecOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///执行宣告操作引用 + TThostFtdcOrderActionRefType ExecOrderActionRef; + ///执行宣告引用 + TThostFtdcOrderRefType ExecOrderRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///执行宣告操作编号 + TThostFtdcExecOrderSysIDType ExecOrderSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///用户代码 + TThostFtdcUserIDType UserID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///执行宣告 +struct CThostFtdcExecOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///执行宣告引用 + TThostFtdcOrderRefType ExecOrderRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///数量 + TThostFtdcVolumeType Volume; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///开平标志 + TThostFtdcOffsetFlagType OffsetFlag; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///执行类型 + TThostFtdcActionTypeType ActionType; + ///保留头寸申请的持仓方向 + TThostFtdcPosiDirectionType PosiDirection; + ///期权行权后是否保留期货头寸的标记,该字段已废弃 + TThostFtdcExecOrderPositionFlagType ReservePositionFlag; + ///期权行权后生成的头寸是否自动平仓 + TThostFtdcExecOrderCloseFlagType CloseFlag; + ///本地执行宣告编号 + TThostFtdcOrderLocalIDType ExecOrderLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///执行宣告提交状态 + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///报单提示序号 + TThostFtdcSequenceNoType NotifySequence; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///执行宣告编号 + TThostFtdcExecOrderSysIDType ExecOrderSysID; + ///报单日期 + TThostFtdcDateType InsertDate; + ///插入时间 + TThostFtdcTimeType InsertTime; + ///撤销时间 + TThostFtdcTimeType CancelTime; + ///执行结果 + TThostFtdcExecResultType ExecResult; + ///结算会员编号 + TThostFtdcParticipantIDType ClearingPartID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///操作用户代码 + TThostFtdcUserIDType ActiveUserID; + ///经纪公司报单编号 + TThostFtdcSequenceNoType BrokerExecOrderSeq; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///资金账号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///执行宣告操作 +struct CThostFtdcExecOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///执行宣告操作引用 + TThostFtdcOrderActionRefType ExecOrderActionRef; + ///执行宣告引用 + TThostFtdcOrderRefType ExecOrderRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///执行宣告操作编号 + TThostFtdcExecOrderSysIDType ExecOrderSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///操作日期 + TThostFtdcDateType ActionDate; + ///操作时间 + TThostFtdcTimeType ActionTime; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地执行宣告编号 + TThostFtdcOrderLocalIDType ExecOrderLocalID; + ///操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///报单操作状态 + TThostFtdcOrderActionStatusType OrderActionStatus; + ///用户代码 + TThostFtdcUserIDType UserID; + ///执行类型 + TThostFtdcActionTypeType ActionType; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///执行宣告查询 +struct CThostFtdcQryExecOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///执行宣告编号 + TThostFtdcExecOrderSysIDType ExecOrderSysID; + ///开始时间 + TThostFtdcTimeType InsertTimeStart; + ///结束时间 + TThostFtdcTimeType InsertTimeEnd; +}; + +///交易所执行宣告信息 +struct CThostFtdcExchangeExecOrderField +{ + ///数量 + TThostFtdcVolumeType Volume; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///开平标志 + TThostFtdcOffsetFlagType OffsetFlag; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///执行类型 + TThostFtdcActionTypeType ActionType; + ///保留头寸申请的持仓方向 + TThostFtdcPosiDirectionType PosiDirection; + ///期权行权后是否保留期货头寸的标记,该字段已废弃 + TThostFtdcExecOrderPositionFlagType ReservePositionFlag; + ///期权行权后生成的头寸是否自动平仓 + TThostFtdcExecOrderCloseFlagType CloseFlag; + ///本地执行宣告编号 + TThostFtdcOrderLocalIDType ExecOrderLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///执行宣告提交状态 + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///报单提示序号 + TThostFtdcSequenceNoType NotifySequence; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///执行宣告编号 + TThostFtdcExecOrderSysIDType ExecOrderSysID; + ///报单日期 + TThostFtdcDateType InsertDate; + ///插入时间 + TThostFtdcTimeType InsertTime; + ///撤销时间 + TThostFtdcTimeType CancelTime; + ///执行结果 + TThostFtdcExecResultType ExecResult; + ///结算会员编号 + TThostFtdcParticipantIDType ClearingPartID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///交易所执行宣告查询 +struct CThostFtdcQryExchangeExecOrderField +{ + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +///执行宣告操作查询 +struct CThostFtdcQryExecOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///交易所执行宣告操作 +struct CThostFtdcExchangeExecOrderActionField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///执行宣告操作编号 + TThostFtdcExecOrderSysIDType ExecOrderSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///操作日期 + TThostFtdcDateType ActionDate; + ///操作时间 + TThostFtdcTimeType ActionTime; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地执行宣告编号 + TThostFtdcOrderLocalIDType ExecOrderLocalID; + ///操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///报单操作状态 + TThostFtdcOrderActionStatusType OrderActionStatus; + ///用户代码 + TThostFtdcUserIDType UserID; + ///执行类型 + TThostFtdcActionTypeType ActionType; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///数量 + TThostFtdcVolumeType Volume; +}; + +///交易所执行宣告操作查询 +struct CThostFtdcQryExchangeExecOrderActionField +{ + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +///错误执行宣告 +struct CThostFtdcErrExecOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///执行宣告引用 + TThostFtdcOrderRefType ExecOrderRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///数量 + TThostFtdcVolumeType Volume; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///开平标志 + TThostFtdcOffsetFlagType OffsetFlag; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///执行类型 + TThostFtdcActionTypeType ActionType; + ///保留头寸申请的持仓方向 + TThostFtdcPosiDirectionType PosiDirection; + ///期权行权后是否保留期货头寸的标记,该字段已废弃 + TThostFtdcExecOrderPositionFlagType ReservePositionFlag; + ///期权行权后生成的头寸是否自动平仓 + TThostFtdcExecOrderCloseFlagType CloseFlag; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///资金账号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///交易编码 + TThostFtdcClientIDType ClientID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///查询错误执行宣告 +struct CThostFtdcQryErrExecOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; +}; + +///错误执行宣告操作 +struct CThostFtdcErrExecOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///执行宣告操作引用 + TThostFtdcOrderActionRefType ExecOrderActionRef; + ///执行宣告引用 + TThostFtdcOrderRefType ExecOrderRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///执行宣告操作编号 + TThostFtdcExecOrderSysIDType ExecOrderSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///用户代码 + TThostFtdcUserIDType UserID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///查询错误执行宣告操作 +struct CThostFtdcQryErrExecOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; +}; + +///投资者期权合约交易权限 +struct CThostFtdcOptionInstrTradingRightField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///交易权限 + TThostFtdcTradingRightType TradingRight; +}; + +///查询期权合约交易权限 +struct CThostFtdcQryOptionInstrTradingRightField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///买卖方向 + TThostFtdcDirectionType Direction; +}; + +///输入的询价 +struct CThostFtdcInputForQuoteField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///询价引用 + TThostFtdcOrderRefType ForQuoteRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///询价 +struct CThostFtdcForQuoteField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///询价引用 + TThostFtdcOrderRefType ForQuoteRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///本地询价编号 + TThostFtdcOrderLocalIDType ForQuoteLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///报单日期 + TThostFtdcDateType InsertDate; + ///插入时间 + TThostFtdcTimeType InsertTime; + ///询价状态 + TThostFtdcForQuoteStatusType ForQuoteStatus; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///操作用户代码 + TThostFtdcUserIDType ActiveUserID; + ///经纪公司询价编号 + TThostFtdcSequenceNoType BrokerForQutoSeq; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///询价查询 +struct CThostFtdcQryForQuoteField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///开始时间 + TThostFtdcTimeType InsertTimeStart; + ///结束时间 + TThostFtdcTimeType InsertTimeEnd; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///交易所询价信息 +struct CThostFtdcExchangeForQuoteField +{ + ///本地询价编号 + TThostFtdcOrderLocalIDType ForQuoteLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///报单日期 + TThostFtdcDateType InsertDate; + ///插入时间 + TThostFtdcTimeType InsertTime; + ///询价状态 + TThostFtdcForQuoteStatusType ForQuoteStatus; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///交易所询价查询 +struct CThostFtdcQryExchangeForQuoteField +{ + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +///输入的报价 +struct CThostFtdcInputQuoteField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///报价引用 + TThostFtdcOrderRefType QuoteRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///卖价格 + TThostFtdcPriceType AskPrice; + ///买价格 + TThostFtdcPriceType BidPrice; + ///卖数量 + TThostFtdcVolumeType AskVolume; + ///买数量 + TThostFtdcVolumeType BidVolume; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///卖开平标志 + TThostFtdcOffsetFlagType AskOffsetFlag; + ///买开平标志 + TThostFtdcOffsetFlagType BidOffsetFlag; + ///卖投机套保标志 + TThostFtdcHedgeFlagType AskHedgeFlag; + ///买投机套保标志 + TThostFtdcHedgeFlagType BidHedgeFlag; + ///衍生卖报单引用 + TThostFtdcOrderRefType AskOrderRef; + ///衍生买报单引用 + TThostFtdcOrderRefType BidOrderRef; + ///应价编号 + TThostFtdcOrderSysIDType ForQuoteSysID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///交易编码 + TThostFtdcClientIDType ClientID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///输入报价操作 +struct CThostFtdcInputQuoteActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///报价操作引用 + TThostFtdcOrderActionRefType QuoteActionRef; + ///报价引用 + TThostFtdcOrderRefType QuoteRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///报价操作编号 + TThostFtdcOrderSysIDType QuoteSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///用户代码 + TThostFtdcUserIDType UserID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///交易编码 + TThostFtdcClientIDType ClientID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///报价 +struct CThostFtdcQuoteField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///报价引用 + TThostFtdcOrderRefType QuoteRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///卖价格 + TThostFtdcPriceType AskPrice; + ///买价格 + TThostFtdcPriceType BidPrice; + ///卖数量 + TThostFtdcVolumeType AskVolume; + ///买数量 + TThostFtdcVolumeType BidVolume; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///卖开平标志 + TThostFtdcOffsetFlagType AskOffsetFlag; + ///买开平标志 + TThostFtdcOffsetFlagType BidOffsetFlag; + ///卖投机套保标志 + TThostFtdcHedgeFlagType AskHedgeFlag; + ///买投机套保标志 + TThostFtdcHedgeFlagType BidHedgeFlag; + ///本地报价编号 + TThostFtdcOrderLocalIDType QuoteLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///报价提示序号 + TThostFtdcSequenceNoType NotifySequence; + ///报价提交状态 + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///报价编号 + TThostFtdcOrderSysIDType QuoteSysID; + ///报单日期 + TThostFtdcDateType InsertDate; + ///插入时间 + TThostFtdcTimeType InsertTime; + ///撤销时间 + TThostFtdcTimeType CancelTime; + ///报价状态 + TThostFtdcOrderStatusType QuoteStatus; + ///结算会员编号 + TThostFtdcParticipantIDType ClearingPartID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///卖方报单编号 + TThostFtdcOrderSysIDType AskOrderSysID; + ///买方报单编号 + TThostFtdcOrderSysIDType BidOrderSysID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///操作用户代码 + TThostFtdcUserIDType ActiveUserID; + ///经纪公司报价编号 + TThostFtdcSequenceNoType BrokerQuoteSeq; + ///衍生卖报单引用 + TThostFtdcOrderRefType AskOrderRef; + ///衍生买报单引用 + TThostFtdcOrderRefType BidOrderRef; + ///应价编号 + TThostFtdcOrderSysIDType ForQuoteSysID; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///资金账号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///报价操作 +struct CThostFtdcQuoteActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///报价操作引用 + TThostFtdcOrderActionRefType QuoteActionRef; + ///报价引用 + TThostFtdcOrderRefType QuoteRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///报价操作编号 + TThostFtdcOrderSysIDType QuoteSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///操作日期 + TThostFtdcDateType ActionDate; + ///操作时间 + TThostFtdcTimeType ActionTime; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地报价编号 + TThostFtdcOrderLocalIDType QuoteLocalID; + ///操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///报单操作状态 + TThostFtdcOrderActionStatusType OrderActionStatus; + ///用户代码 + TThostFtdcUserIDType UserID; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///报价查询 +struct CThostFtdcQryQuoteField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///报价编号 + TThostFtdcOrderSysIDType QuoteSysID; + ///开始时间 + TThostFtdcTimeType InsertTimeStart; + ///结束时间 + TThostFtdcTimeType InsertTimeEnd; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///交易所报价信息 +struct CThostFtdcExchangeQuoteField +{ + ///卖价格 + TThostFtdcPriceType AskPrice; + ///买价格 + TThostFtdcPriceType BidPrice; + ///卖数量 + TThostFtdcVolumeType AskVolume; + ///买数量 + TThostFtdcVolumeType BidVolume; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///卖开平标志 + TThostFtdcOffsetFlagType AskOffsetFlag; + ///买开平标志 + TThostFtdcOffsetFlagType BidOffsetFlag; + ///卖投机套保标志 + TThostFtdcHedgeFlagType AskHedgeFlag; + ///买投机套保标志 + TThostFtdcHedgeFlagType BidHedgeFlag; + ///本地报价编号 + TThostFtdcOrderLocalIDType QuoteLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///报价提示序号 + TThostFtdcSequenceNoType NotifySequence; + ///报价提交状态 + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///报价编号 + TThostFtdcOrderSysIDType QuoteSysID; + ///报单日期 + TThostFtdcDateType InsertDate; + ///插入时间 + TThostFtdcTimeType InsertTime; + ///撤销时间 + TThostFtdcTimeType CancelTime; + ///报价状态 + TThostFtdcOrderStatusType QuoteStatus; + ///结算会员编号 + TThostFtdcParticipantIDType ClearingPartID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///卖方报单编号 + TThostFtdcOrderSysIDType AskOrderSysID; + ///买方报单编号 + TThostFtdcOrderSysIDType BidOrderSysID; + ///应价编号 + TThostFtdcOrderSysIDType ForQuoteSysID; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///交易所报价查询 +struct CThostFtdcQryExchangeQuoteField +{ + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +///报价操作查询 +struct CThostFtdcQryQuoteActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///交易所报价操作 +struct CThostFtdcExchangeQuoteActionField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///报价操作编号 + TThostFtdcOrderSysIDType QuoteSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///操作日期 + TThostFtdcDateType ActionDate; + ///操作时间 + TThostFtdcTimeType ActionTime; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地报价编号 + TThostFtdcOrderLocalIDType QuoteLocalID; + ///操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///报单操作状态 + TThostFtdcOrderActionStatusType OrderActionStatus; + ///用户代码 + TThostFtdcUserIDType UserID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///交易所报价操作查询 +struct CThostFtdcQryExchangeQuoteActionField +{ + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +///期权合约delta值 +struct CThostFtdcOptionInstrDeltaField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///Delta值 + TThostFtdcRatioType Delta; +}; + +///发给做市商的询价请求 +struct CThostFtdcForQuoteRspField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///询价编号 + TThostFtdcOrderSysIDType ForQuoteSysID; + ///询价时间 + TThostFtdcTimeType ForQuoteTime; + ///业务日期 + TThostFtdcDateType ActionDay; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///当前期权合约执行偏移值的详细内容 +struct CThostFtdcStrikeOffsetField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///执行偏移值 + TThostFtdcMoneyType Offset; + ///执行偏移类型 + TThostFtdcStrikeOffsetTypeType OffsetType; +}; + +///期权执行偏移值查询 +struct CThostFtdcQryStrikeOffsetField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +///输入批量报单操作 +struct CThostFtdcInputBatchOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///报单操作引用 + TThostFtdcOrderActionRefType OrderActionRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///批量报单操作 +struct CThostFtdcBatchOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///报单操作引用 + TThostFtdcOrderActionRefType OrderActionRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///操作日期 + TThostFtdcDateType ActionDate; + ///操作时间 + TThostFtdcTimeType ActionTime; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///报单操作状态 + TThostFtdcOrderActionStatusType OrderActionStatus; + ///用户代码 + TThostFtdcUserIDType UserID; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///交易所批量报单操作 +struct CThostFtdcExchangeBatchOrderActionField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///操作日期 + TThostFtdcDateType ActionDate; + ///操作时间 + TThostFtdcTimeType ActionTime; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///报单操作状态 + TThostFtdcOrderActionStatusType OrderActionStatus; + ///用户代码 + TThostFtdcUserIDType UserID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///查询批量报单操作 +struct CThostFtdcQryBatchOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///组合合约安全系数 +struct CThostFtdcCombInstrumentGuardField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcRatioType GuarantRatio; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///组合合约安全系数查询 +struct CThostFtdcQryCombInstrumentGuardField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///输入的申请组合 +struct CThostFtdcInputCombActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///组合引用 + TThostFtdcOrderRefType CombActionRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///数量 + TThostFtdcVolumeType Volume; + ///组合指令方向 + TThostFtdcCombDirectionType CombDirection; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///申请组合 +struct CThostFtdcCombActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///组合引用 + TThostFtdcOrderRefType CombActionRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///数量 + TThostFtdcVolumeType Volume; + ///组合指令方向 + TThostFtdcCombDirectionType CombDirection; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///本地申请组合编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///组合状态 + TThostFtdcOrderActionStatusType ActionStatus; + ///报单提示序号 + TThostFtdcSequenceNoType NotifySequence; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///组合编号 + TThostFtdcTradeIDType ComTradeID; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///申请组合查询 +struct CThostFtdcQryCombActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///交易所申请组合信息 +struct CThostFtdcExchangeCombActionField +{ + ///买卖方向 + TThostFtdcDirectionType Direction; + ///数量 + TThostFtdcVolumeType Volume; + ///组合指令方向 + TThostFtdcCombDirectionType CombDirection; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///本地申请组合编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///组合状态 + TThostFtdcOrderActionStatusType ActionStatus; + ///报单提示序号 + TThostFtdcSequenceNoType NotifySequence; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///组合编号 + TThostFtdcTradeIDType ComTradeID; + ///营业部编号 + TThostFtdcBranchIDType BranchID; +}; + +///交易所申请组合查询 +struct CThostFtdcQryExchangeCombActionField +{ + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +///产品报价汇率 +struct CThostFtdcProductExchRateField +{ + ///产品代码 + TThostFtdcInstrumentIDType ProductID; + ///报价币种类型 + TThostFtdcCurrencyIDType QuoteCurrencyID; + ///汇率 + TThostFtdcExchangeRateType ExchangeRate; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///产品报价汇率查询 +struct CThostFtdcQryProductExchRateField +{ + ///产品代码 + TThostFtdcInstrumentIDType ProductID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///查询询价价差参数 +struct CThostFtdcQryForQuoteParamField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///询价价差参数 +struct CThostFtdcForQuoteParamField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///最新价 + TThostFtdcPriceType LastPrice; + ///价差 + TThostFtdcPriceType PriceInterval; +}; + +///当前做市商期权合约手续费的详细内容 +struct CThostFtdcMMOptionInstrCommRateField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///开仓手续费率 + TThostFtdcRatioType OpenRatioByMoney; + ///开仓手续费 + TThostFtdcRatioType OpenRatioByVolume; + ///平仓手续费率 + TThostFtdcRatioType CloseRatioByMoney; + ///平仓手续费 + TThostFtdcRatioType CloseRatioByVolume; + ///平今手续费率 + TThostFtdcRatioType CloseTodayRatioByMoney; + ///平今手续费 + TThostFtdcRatioType CloseTodayRatioByVolume; + ///执行手续费率 + TThostFtdcRatioType StrikeRatioByMoney; + ///执行手续费 + TThostFtdcRatioType StrikeRatioByVolume; +}; + +///做市商期权手续费率查询 +struct CThostFtdcQryMMOptionInstrCommRateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +///做市商合约手续费率 +struct CThostFtdcMMInstrumentCommissionRateField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///开仓手续费率 + TThostFtdcRatioType OpenRatioByMoney; + ///开仓手续费 + TThostFtdcRatioType OpenRatioByVolume; + ///平仓手续费率 + TThostFtdcRatioType CloseRatioByMoney; + ///平仓手续费 + TThostFtdcRatioType CloseRatioByVolume; + ///平今手续费率 + TThostFtdcRatioType CloseTodayRatioByMoney; + ///平今手续费 + TThostFtdcRatioType CloseTodayRatioByVolume; +}; + +///查询做市商合约手续费率 +struct CThostFtdcQryMMInstrumentCommissionRateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +///当前报单手续费的详细内容 +struct CThostFtdcInstrumentOrderCommRateField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///报单手续费 + TThostFtdcRatioType OrderCommByVolume; + ///撤单手续费 + TThostFtdcRatioType OrderActionCommByVolume; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///报单手续费率查询 +struct CThostFtdcQryInstrumentOrderCommRateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +///交易参数 +struct CThostFtdcTradeParamField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///参数代码 + TThostFtdcTradeParamIDType TradeParamID; + ///参数代码值 + TThostFtdcSettlementParamValueType TradeParamValue; + ///备注 + TThostFtdcMemoType Memo; +}; + +///合约保证金率调整 +struct CThostFtdcInstrumentMarginRateULField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + ///多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + ///空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + ///空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; +}; + +///期货持仓限制参数 +struct CThostFtdcFutureLimitPosiParamField +{ + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///产品代码 + TThostFtdcInstrumentIDType ProductID; + ///当日投机开仓数量限制 + TThostFtdcVolumeType SpecOpenVolume; + ///当日套利开仓数量限制 + TThostFtdcVolumeType ArbiOpenVolume; + ///当日投机+套利开仓数量限制 + TThostFtdcVolumeType OpenVolume; +}; + +///禁止登录IP +struct CThostFtdcLoginForbiddenIPField +{ + ///IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +///IP列表 +struct CThostFtdcIPListField +{ + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///是否白名单 + TThostFtdcBoolType IsWhite; +}; + +///输入的期权自对冲 +struct CThostFtdcInputOptionSelfCloseField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///期权自对冲引用 + TThostFtdcOrderRefType OptionSelfCloseRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///数量 + TThostFtdcVolumeType Volume; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///期权行权的头寸是否自对冲 + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///资金账号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///交易编码 + TThostFtdcClientIDType ClientID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///输入期权自对冲操作 +struct CThostFtdcInputOptionSelfCloseActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///期权自对冲操作引用 + TThostFtdcOrderActionRefType OptionSelfCloseActionRef; + ///期权自对冲引用 + TThostFtdcOrderRefType OptionSelfCloseRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///期权自对冲操作编号 + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///用户代码 + TThostFtdcUserIDType UserID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///期权自对冲 +struct CThostFtdcOptionSelfCloseField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///期权自对冲引用 + TThostFtdcOrderRefType OptionSelfCloseRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///数量 + TThostFtdcVolumeType Volume; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///期权行权的头寸是否自对冲 + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + ///本地期权自对冲编号 + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///期权自对冲提交状态 + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///报单提示序号 + TThostFtdcSequenceNoType NotifySequence; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///期权自对冲编号 + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///报单日期 + TThostFtdcDateType InsertDate; + ///插入时间 + TThostFtdcTimeType InsertTime; + ///撤销时间 + TThostFtdcTimeType CancelTime; + ///自对冲结果 + TThostFtdcExecResultType ExecResult; + ///结算会员编号 + TThostFtdcParticipantIDType ClearingPartID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///操作用户代码 + TThostFtdcUserIDType ActiveUserID; + ///经纪公司报单编号 + TThostFtdcSequenceNoType BrokerOptionSelfCloseSeq; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///资金账号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///期权自对冲操作 +struct CThostFtdcOptionSelfCloseActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///期权自对冲操作引用 + TThostFtdcOrderActionRefType OptionSelfCloseActionRef; + ///期权自对冲引用 + TThostFtdcOrderRefType OptionSelfCloseRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///期权自对冲操作编号 + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///操作日期 + TThostFtdcDateType ActionDate; + ///操作时间 + TThostFtdcTimeType ActionTime; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地期权自对冲编号 + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + ///操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///报单操作状态 + TThostFtdcOrderActionStatusType OrderActionStatus; + ///用户代码 + TThostFtdcUserIDType UserID; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///期权自对冲查询 +struct CThostFtdcQryOptionSelfCloseField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///期权自对冲编号 + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///开始时间 + TThostFtdcTimeType InsertTimeStart; + ///结束时间 + TThostFtdcTimeType InsertTimeEnd; +}; + +///交易所期权自对冲信息 +struct CThostFtdcExchangeOptionSelfCloseField +{ + ///数量 + TThostFtdcVolumeType Volume; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///期权行权的头寸是否自对冲 + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + ///本地期权自对冲编号 + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///期权自对冲提交状态 + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///报单提示序号 + TThostFtdcSequenceNoType NotifySequence; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///期权自对冲编号 + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///报单日期 + TThostFtdcDateType InsertDate; + ///插入时间 + TThostFtdcTimeType InsertTime; + ///撤销时间 + TThostFtdcTimeType CancelTime; + ///自对冲结果 + TThostFtdcExecResultType ExecResult; + ///结算会员编号 + TThostFtdcParticipantIDType ClearingPartID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///期权自对冲操作查询 +struct CThostFtdcQryOptionSelfCloseActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///交易所期权自对冲操作 +struct CThostFtdcExchangeOptionSelfCloseActionField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///期权自对冲操作编号 + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///操作日期 + TThostFtdcDateType ActionDate; + ///操作时间 + TThostFtdcTimeType ActionTime; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地期权自对冲编号 + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + ///操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///报单操作状态 + TThostFtdcOrderActionStatusType OrderActionStatus; + ///用户代码 + TThostFtdcUserIDType UserID; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///期权行权的头寸是否自对冲 + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; +}; + +///延时换汇同步 +struct CThostFtdcSyncDelaySwapField +{ + ///换汇流水号 + TThostFtdcDepositSeqNoType DelaySwapSeqNo; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///源币种 + TThostFtdcCurrencyIDType FromCurrencyID; + ///源金额 + TThostFtdcMoneyType FromAmount; + ///源换汇冻结金额(可用冻结) + TThostFtdcMoneyType FromFrozenSwap; + ///源剩余换汇额度(可提冻结) + TThostFtdcMoneyType FromRemainSwap; + ///目标币种 + TThostFtdcCurrencyIDType ToCurrencyID; + ///目标金额 + TThostFtdcMoneyType ToAmount; +}; + +///查询延时换汇同步 +struct CThostFtdcQrySyncDelaySwapField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///延时换汇流水号 + TThostFtdcDepositSeqNoType DelaySwapSeqNo; +}; + +///投资单元 +struct CThostFtdcInvestUnitField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///投资者单元名称 + TThostFtdcPartyNameType InvestorUnitName; + ///投资者分组代码 + TThostFtdcInvestorIDType InvestorGroupID; + ///手续费率模板代码 + TThostFtdcInvestorIDType CommModelID; + ///保证金率模板代码 + TThostFtdcInvestorIDType MarginModelID; + ///资金账号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///查询投资单元 +struct CThostFtdcQryInvestUnitField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///二级代理商资金校验模式 +struct CThostFtdcSecAgentCheckModeField +{ + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///币种 + TThostFtdcCurrencyIDType CurrencyID; + ///境外中介机构资金帐号 + TThostFtdcAccountIDType BrokerSecAgentID; + ///是否需要校验自己的资金账户 + TThostFtdcBoolType CheckSelfAccount; +}; + +///二级代理商信息 +struct CThostFtdcSecAgentTradeInfoField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///境外中介机构资金帐号 + TThostFtdcAccountIDType BrokerSecAgentID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///二级代理商姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///市场行情 +struct CThostFtdcMarketDataField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///最新价 + TThostFtdcPriceType LastPrice; + ///上次结算价 + TThostFtdcPriceType PreSettlementPrice; + ///昨收盘 + TThostFtdcPriceType PreClosePrice; + ///昨持仓量 + TThostFtdcLargeVolumeType PreOpenInterest; + ///今开盘 + TThostFtdcPriceType OpenPrice; + ///最高价 + TThostFtdcPriceType HighestPrice; + ///最低价 + TThostFtdcPriceType LowestPrice; + ///数量 + TThostFtdcVolumeType Volume; + ///成交金额 + TThostFtdcMoneyType Turnover; + ///持仓量 + TThostFtdcLargeVolumeType OpenInterest; + ///今收盘 + TThostFtdcPriceType ClosePrice; + ///本次结算价 + TThostFtdcPriceType SettlementPrice; + ///涨停板价 + TThostFtdcPriceType UpperLimitPrice; + ///跌停板价 + TThostFtdcPriceType LowerLimitPrice; + ///昨虚实度 + TThostFtdcRatioType PreDelta; + ///今虚实度 + TThostFtdcRatioType CurrDelta; + ///最后修改时间 + TThostFtdcTimeType UpdateTime; + ///最后修改毫秒 + TThostFtdcMillisecType UpdateMillisec; + ///业务日期 + TThostFtdcDateType ActionDay; +}; + +///行情基础属性 +struct CThostFtdcMarketDataBaseField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///上次结算价 + TThostFtdcPriceType PreSettlementPrice; + ///昨收盘 + TThostFtdcPriceType PreClosePrice; + ///昨持仓量 + TThostFtdcLargeVolumeType PreOpenInterest; + ///昨虚实度 + TThostFtdcRatioType PreDelta; +}; + +///行情静态属性 +struct CThostFtdcMarketDataStaticField +{ + ///今开盘 + TThostFtdcPriceType OpenPrice; + ///最高价 + TThostFtdcPriceType HighestPrice; + ///最低价 + TThostFtdcPriceType LowestPrice; + ///今收盘 + TThostFtdcPriceType ClosePrice; + ///涨停板价 + TThostFtdcPriceType UpperLimitPrice; + ///跌停板价 + TThostFtdcPriceType LowerLimitPrice; + ///本次结算价 + TThostFtdcPriceType SettlementPrice; + ///今虚实度 + TThostFtdcRatioType CurrDelta; +}; + +///行情最新成交属性 +struct CThostFtdcMarketDataLastMatchField +{ + ///最新价 + TThostFtdcPriceType LastPrice; + ///数量 + TThostFtdcVolumeType Volume; + ///成交金额 + TThostFtdcMoneyType Turnover; + ///持仓量 + TThostFtdcLargeVolumeType OpenInterest; +}; + +///行情最优价属性 +struct CThostFtdcMarketDataBestPriceField +{ + ///申买价一 + TThostFtdcPriceType BidPrice1; + ///申买量一 + TThostFtdcVolumeType BidVolume1; + ///申卖价一 + TThostFtdcPriceType AskPrice1; + ///申卖量一 + TThostFtdcVolumeType AskVolume1; +}; + +///行情申买二、三属性 +struct CThostFtdcMarketDataBid23Field +{ + ///申买价二 + TThostFtdcPriceType BidPrice2; + ///申买量二 + TThostFtdcVolumeType BidVolume2; + ///申买价三 + TThostFtdcPriceType BidPrice3; + ///申买量三 + TThostFtdcVolumeType BidVolume3; +}; + +///行情申卖二、三属性 +struct CThostFtdcMarketDataAsk23Field +{ + ///申卖价二 + TThostFtdcPriceType AskPrice2; + ///申卖量二 + TThostFtdcVolumeType AskVolume2; + ///申卖价三 + TThostFtdcPriceType AskPrice3; + ///申卖量三 + TThostFtdcVolumeType AskVolume3; +}; + +///行情申买四、五属性 +struct CThostFtdcMarketDataBid45Field +{ + ///申买价四 + TThostFtdcPriceType BidPrice4; + ///申买量四 + TThostFtdcVolumeType BidVolume4; + ///申买价五 + TThostFtdcPriceType BidPrice5; + ///申买量五 + TThostFtdcVolumeType BidVolume5; +}; + +///行情申卖四、五属性 +struct CThostFtdcMarketDataAsk45Field +{ + ///申卖价四 + TThostFtdcPriceType AskPrice4; + ///申卖量四 + TThostFtdcVolumeType AskVolume4; + ///申卖价五 + TThostFtdcPriceType AskPrice5; + ///申卖量五 + TThostFtdcVolumeType AskVolume5; +}; + +///行情更新时间属性 +struct CThostFtdcMarketDataUpdateTimeField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///最后修改时间 + TThostFtdcTimeType UpdateTime; + ///最后修改毫秒 + TThostFtdcMillisecType UpdateMillisec; + ///业务日期 + TThostFtdcDateType ActionDay; +}; + +///行情交易所代码属性 +struct CThostFtdcMarketDataExchangeField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///指定的合约 +struct CThostFtdcSpecificInstrumentField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +///合约状态 +struct CThostFtdcInstrumentStatusField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///结算组代码 + TThostFtdcSettlementGroupIDType SettlementGroupID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///合约交易状态 + TThostFtdcInstrumentStatusType InstrumentStatus; + ///交易阶段编号 + TThostFtdcTradingSegmentSNType TradingSegmentSN; + ///进入本状态时间 + TThostFtdcTimeType EnterTime; + ///进入本状态原因 + TThostFtdcInstStatusEnterReasonType EnterReason; +}; + +///查询合约状态 +struct CThostFtdcQryInstrumentStatusField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; +}; + +///投资者账户 +struct CThostFtdcInvestorAccountField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///浮动盈亏算法 +struct CThostFtdcPositionProfitAlgorithmField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///盈亏算法 + TThostFtdcAlgorithmType Algorithm; + ///备注 + TThostFtdcMemoType Memo; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///会员资金折扣 +struct CThostFtdcDiscountField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///资金折扣比例 + TThostFtdcRatioType Discount; +}; + +///查询转帐银行 +struct CThostFtdcQryTransferBankField +{ + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分中心代码 + TThostFtdcBankBrchIDType BankBrchID; +}; + +///转帐银行 +struct CThostFtdcTransferBankField +{ + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分中心代码 + TThostFtdcBankBrchIDType BankBrchID; + ///银行名称 + TThostFtdcBankNameType BankName; + ///是否活跃 + TThostFtdcBoolType IsActive; +}; + +///查询投资者持仓明细 +struct CThostFtdcQryInvestorPositionDetailField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///投资者持仓明细 +struct CThostFtdcInvestorPositionDetailField +{ + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///买卖 + TThostFtdcDirectionType Direction; + ///开仓日期 + TThostFtdcDateType OpenDate; + ///成交编号 + TThostFtdcTradeIDType TradeID; + ///数量 + TThostFtdcVolumeType Volume; + ///开仓价 + TThostFtdcPriceType OpenPrice; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///成交类型 + TThostFtdcTradeTypeType TradeType; + ///组合合约代码 + TThostFtdcInstrumentIDType CombInstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///逐日盯市平仓盈亏 + TThostFtdcMoneyType CloseProfitByDate; + ///逐笔对冲平仓盈亏 + TThostFtdcMoneyType CloseProfitByTrade; + ///逐日盯市持仓盈亏 + TThostFtdcMoneyType PositionProfitByDate; + ///逐笔对冲持仓盈亏 + TThostFtdcMoneyType PositionProfitByTrade; + ///投资者保证金 + TThostFtdcMoneyType Margin; + ///交易所保证金 + TThostFtdcMoneyType ExchMargin; + ///保证金率 + TThostFtdcRatioType MarginRateByMoney; + ///保证金率(按手数) + TThostFtdcRatioType MarginRateByVolume; + ///昨结算价 + TThostFtdcPriceType LastSettlementPrice; + ///结算价 + TThostFtdcPriceType SettlementPrice; + ///平仓量 + TThostFtdcVolumeType CloseVolume; + ///平仓金额 + TThostFtdcMoneyType CloseAmount; + ///按照时间顺序平仓的笔数,大商所专用 + TThostFtdcVolumeType TimeFirstVolume; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///资金账户口令域 +struct CThostFtdcTradingAccountPasswordField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///密码 + TThostFtdcPasswordType Password; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///交易所行情报盘机 +struct CThostFtdcMDTraderOfferField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///密码 + TThostFtdcPasswordType Password; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地报单编号 + TThostFtdcOrderLocalIDType OrderLocalID; + ///交易所交易员连接状态 + TThostFtdcTraderConnectStatusType TraderConnectStatus; + ///发出连接请求的日期 + TThostFtdcDateType ConnectRequestDate; + ///发出连接请求的时间 + TThostFtdcTimeType ConnectRequestTime; + ///上次报告日期 + TThostFtdcDateType LastReportDate; + ///上次报告时间 + TThostFtdcTimeType LastReportTime; + ///完成连接日期 + TThostFtdcDateType ConnectDate; + ///完成连接时间 + TThostFtdcTimeType ConnectTime; + ///启动日期 + TThostFtdcDateType StartDate; + ///启动时间 + TThostFtdcTimeType StartTime; + ///交易日 + TThostFtdcDateType TradingDay; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///本席位最大成交编号 + TThostFtdcTradeIDType MaxTradeID; + ///本席位最大报单备拷 + TThostFtdcReturnCodeType MaxOrderMessageReference; +}; + +///查询行情报盘机 +struct CThostFtdcQryMDTraderOfferField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +///查询客户通知 +struct CThostFtdcQryNoticeField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; +}; + +///客户通知 +struct CThostFtdcNoticeField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///消息正文 + TThostFtdcContentType Content; + ///经纪公司通知内容序列号 + TThostFtdcSequenceLabelType SequenceLabel; +}; + +///用户权限 +struct CThostFtdcUserRightField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///客户权限类型 + TThostFtdcUserRightTypeType UserRightType; + ///是否禁止 + TThostFtdcBoolType IsForbidden; +}; + +///查询结算信息确认域 +struct CThostFtdcQrySettlementInfoConfirmField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///装载结算信息 +struct CThostFtdcLoadSettlementInfoField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; +}; + +///经纪公司可提资金算法表 +struct CThostFtdcBrokerWithdrawAlgorithmField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///可提资金算法 + TThostFtdcAlgorithmType WithdrawAlgorithm; + ///资金使用率 + TThostFtdcRatioType UsingRatio; + ///可提是否包含平仓盈利 + TThostFtdcIncludeCloseProfitType IncludeCloseProfit; + ///本日无仓且无成交客户是否受可提比例限制 + TThostFtdcAllWithoutTradeType AllWithoutTrade; + ///可用是否包含平仓盈利 + TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit; + ///是否启用用户事件 + TThostFtdcBoolType IsBrokerUserEvent; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///货币质押比率 + TThostFtdcRatioType FundMortgageRatio; + ///权益算法 + TThostFtdcBalanceAlgorithmType BalanceAlgorithm; +}; + +///资金账户口令变更域 +struct CThostFtdcTradingAccountPasswordUpdateV1Field +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///原来的口令 + TThostFtdcPasswordType OldPassword; + ///新的口令 + TThostFtdcPasswordType NewPassword; +}; + +///资金账户口令变更域 +struct CThostFtdcTradingAccountPasswordUpdateField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///原来的口令 + TThostFtdcPasswordType OldPassword; + ///新的口令 + TThostFtdcPasswordType NewPassword; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///查询组合合约分腿 +struct CThostFtdcQryCombinationLegField +{ + ///组合合约代码 + TThostFtdcInstrumentIDType CombInstrumentID; + ///单腿编号 + TThostFtdcLegIDType LegID; + ///单腿合约代码 + TThostFtdcInstrumentIDType LegInstrumentID; +}; + +///查询组合合约分腿 +struct CThostFtdcQrySyncStatusField +{ + ///交易日 + TThostFtdcDateType TradingDay; +}; + +///组合交易合约的单腿 +struct CThostFtdcCombinationLegField +{ + ///组合合约代码 + TThostFtdcInstrumentIDType CombInstrumentID; + ///单腿编号 + TThostFtdcLegIDType LegID; + ///单腿合约代码 + TThostFtdcInstrumentIDType LegInstrumentID; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///单腿乘数 + TThostFtdcLegMultipleType LegMultiple; + ///派生层数 + TThostFtdcImplyLevelType ImplyLevel; +}; + +///数据同步状态 +struct CThostFtdcSyncStatusField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///数据同步状态 + TThostFtdcDataSyncStatusType DataSyncStatus; +}; + +///查询联系人 +struct CThostFtdcQryLinkManField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; +}; + +///联系人 +struct CThostFtdcLinkManField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///联系人类型 + TThostFtdcPersonTypeType PersonType; + ///证件类型 + TThostFtdcIdCardTypeType IdentifiedCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///名称 + TThostFtdcPartyNameType PersonName; + ///联系电话 + TThostFtdcTelephoneType Telephone; + ///通讯地址 + TThostFtdcAddressType Address; + ///邮政编码 + TThostFtdcZipCodeType ZipCode; + ///优先级 + TThostFtdcPriorityType Priority; + ///开户邮政编码 + TThostFtdcUOAZipCodeType UOAZipCode; + ///全称 + TThostFtdcInvestorFullNameType PersonFullName; +}; + +///查询经纪公司用户事件 +struct CThostFtdcQryBrokerUserEventField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///用户事件类型 + TThostFtdcUserEventTypeType UserEventType; +}; + +///查询经纪公司用户事件 +struct CThostFtdcBrokerUserEventField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///用户事件类型 + TThostFtdcUserEventTypeType UserEventType; + ///用户事件序号 + TThostFtdcSequenceNoType EventSequenceNo; + ///事件发生日期 + TThostFtdcDateType EventDate; + ///事件发生时间 + TThostFtdcTimeType EventTime; + ///用户事件信息 + TThostFtdcUserEventInfoType UserEventInfo; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +///查询签约银行请求 +struct CThostFtdcQryContractBankField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分中心代码 + TThostFtdcBankBrchIDType BankBrchID; +}; + +///查询签约银行响应 +struct CThostFtdcContractBankField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分中心代码 + TThostFtdcBankBrchIDType BankBrchID; + ///银行名称 + TThostFtdcBankNameType BankName; +}; + +///投资者组合持仓明细 +struct CThostFtdcInvestorPositionCombineDetailField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///开仓日期 + TThostFtdcDateType OpenDate; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///组合编号 + TThostFtdcTradeIDType ComTradeID; + ///撮合编号 + TThostFtdcTradeIDType TradeID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///买卖 + TThostFtdcDirectionType Direction; + ///持仓量 + TThostFtdcVolumeType TotalAmt; + ///投资者保证金 + TThostFtdcMoneyType Margin; + ///交易所保证金 + TThostFtdcMoneyType ExchMargin; + ///保证金率 + TThostFtdcRatioType MarginRateByMoney; + ///保证金率(按手数) + TThostFtdcRatioType MarginRateByVolume; + ///单腿编号 + TThostFtdcLegIDType LegID; + ///单腿乘数 + TThostFtdcLegMultipleType LegMultiple; + ///组合持仓合约编码 + TThostFtdcInstrumentIDType CombInstrumentID; + ///成交组号 + TThostFtdcTradeGroupIDType TradeGroupID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///预埋单 +struct CThostFtdcParkedOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///报单引用 + TThostFtdcOrderRefType OrderRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///报单价格条件 + TThostFtdcOrderPriceTypeType OrderPriceType; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///组合开平标志 + TThostFtdcCombOffsetFlagType CombOffsetFlag; + ///组合投机套保标志 + TThostFtdcCombHedgeFlagType CombHedgeFlag; + ///价格 + TThostFtdcPriceType LimitPrice; + ///数量 + TThostFtdcVolumeType VolumeTotalOriginal; + ///有效期类型 + TThostFtdcTimeConditionType TimeCondition; + ///GTD日期 + TThostFtdcDateType GTDDate; + ///成交量类型 + TThostFtdcVolumeConditionType VolumeCondition; + ///最小成交量 + TThostFtdcVolumeType MinVolume; + ///触发条件 + TThostFtdcContingentConditionType ContingentCondition; + ///止损价 + TThostFtdcPriceType StopPrice; + ///强平原因 + TThostFtdcForceCloseReasonType ForceCloseReason; + ///自动挂起标志 + TThostFtdcBoolType IsAutoSuspend; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///用户强评标志 + TThostFtdcBoolType UserForceClose; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///预埋报单编号 + TThostFtdcParkedOrderIDType ParkedOrderID; + ///用户类型 + TThostFtdcUserTypeType UserType; + ///预埋单状态 + TThostFtdcParkedOrderStatusType Status; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///互换单标志 + TThostFtdcBoolType IsSwapOrder; + ///资金账号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///交易编码 + TThostFtdcClientIDType ClientID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///输入预埋单操作 +struct CThostFtdcParkedOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///报单操作引用 + TThostFtdcOrderActionRefType OrderActionRef; + ///报单引用 + TThostFtdcOrderRefType OrderRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///价格 + TThostFtdcPriceType LimitPrice; + ///数量变化 + TThostFtdcVolumeType VolumeChange; + ///用户代码 + TThostFtdcUserIDType UserID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///预埋撤单单编号 + TThostFtdcParkedOrderActionIDType ParkedOrderActionID; + ///用户类型 + TThostFtdcUserTypeType UserType; + ///预埋撤单状态 + TThostFtdcParkedOrderStatusType Status; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///查询预埋单 +struct CThostFtdcQryParkedOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询预埋撤单 +struct CThostFtdcQryParkedOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///删除预埋单 +struct CThostFtdcRemoveParkedOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///预埋报单编号 + TThostFtdcParkedOrderIDType ParkedOrderID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///删除预埋撤单 +struct CThostFtdcRemoveParkedOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///预埋撤单编号 + TThostFtdcParkedOrderActionIDType ParkedOrderActionID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///经纪公司可提资金算法表 +struct CThostFtdcInvestorWithdrawAlgorithmField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///可提资金比例 + TThostFtdcRatioType UsingRatio; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///货币质押比率 + TThostFtdcRatioType FundMortgageRatio; +}; + +///查询组合持仓明细 +struct CThostFtdcQryInvestorPositionCombineDetailField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///组合持仓合约编码 + TThostFtdcInstrumentIDType CombInstrumentID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///成交均价 +struct CThostFtdcMarketDataAveragePriceField +{ + ///当日均价 + TThostFtdcPriceType AveragePrice; +}; + +///校验投资者密码 +struct CThostFtdcVerifyInvestorPasswordField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///密码 + TThostFtdcPasswordType Password; +}; + +///用户IP +struct CThostFtdcUserIPField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///IP地址掩码 + TThostFtdcIPAddressType IPMask; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///用户事件通知信息 +struct CThostFtdcTradingNoticeInfoField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///发送时间 + TThostFtdcTimeType SendTime; + ///消息正文 + TThostFtdcContentType FieldContent; + ///序列系列号 + TThostFtdcSequenceSeriesType SequenceSeries; + ///序列号 + TThostFtdcSequenceNoType SequenceNo; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///用户事件通知 +struct CThostFtdcTradingNoticeField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///序列系列号 + TThostFtdcSequenceSeriesType SequenceSeries; + ///用户代码 + TThostFtdcUserIDType UserID; + ///发送时间 + TThostFtdcTimeType SendTime; + ///序列号 + TThostFtdcSequenceNoType SequenceNo; + ///消息正文 + TThostFtdcContentType FieldContent; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询交易事件通知 +struct CThostFtdcQryTradingNoticeField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询错误报单 +struct CThostFtdcQryErrOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; +}; + +///错误报单 +struct CThostFtdcErrOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///报单引用 + TThostFtdcOrderRefType OrderRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///报单价格条件 + TThostFtdcOrderPriceTypeType OrderPriceType; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///组合开平标志 + TThostFtdcCombOffsetFlagType CombOffsetFlag; + ///组合投机套保标志 + TThostFtdcCombHedgeFlagType CombHedgeFlag; + ///价格 + TThostFtdcPriceType LimitPrice; + ///数量 + TThostFtdcVolumeType VolumeTotalOriginal; + ///有效期类型 + TThostFtdcTimeConditionType TimeCondition; + ///GTD日期 + TThostFtdcDateType GTDDate; + ///成交量类型 + TThostFtdcVolumeConditionType VolumeCondition; + ///最小成交量 + TThostFtdcVolumeType MinVolume; + ///触发条件 + TThostFtdcContingentConditionType ContingentCondition; + ///止损价 + TThostFtdcPriceType StopPrice; + ///强平原因 + TThostFtdcForceCloseReasonType ForceCloseReason; + ///自动挂起标志 + TThostFtdcBoolType IsAutoSuspend; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///用户强评标志 + TThostFtdcBoolType UserForceClose; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///互换单标志 + TThostFtdcBoolType IsSwapOrder; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///资金账号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///交易编码 + TThostFtdcClientIDType ClientID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///查询错误报单操作 +struct CThostFtdcErrorConditionalOrderField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///报单引用 + TThostFtdcOrderRefType OrderRef; + ///用户代码 + TThostFtdcUserIDType UserID; + ///报单价格条件 + TThostFtdcOrderPriceTypeType OrderPriceType; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///组合开平标志 + TThostFtdcCombOffsetFlagType CombOffsetFlag; + ///组合投机套保标志 + TThostFtdcCombHedgeFlagType CombHedgeFlag; + ///价格 + TThostFtdcPriceType LimitPrice; + ///数量 + TThostFtdcVolumeType VolumeTotalOriginal; + ///有效期类型 + TThostFtdcTimeConditionType TimeCondition; + ///GTD日期 + TThostFtdcDateType GTDDate; + ///成交量类型 + TThostFtdcVolumeConditionType VolumeCondition; + ///最小成交量 + TThostFtdcVolumeType MinVolume; + ///触发条件 + TThostFtdcContingentConditionType ContingentCondition; + ///止损价 + TThostFtdcPriceType StopPrice; + ///强平原因 + TThostFtdcForceCloseReasonType ForceCloseReason; + ///自动挂起标志 + TThostFtdcBoolType IsAutoSuspend; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///本地报单编号 + TThostFtdcOrderLocalIDType OrderLocalID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///报单提交状态 + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///报单提示序号 + TThostFtdcSequenceNoType NotifySequence; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///报单来源 + TThostFtdcOrderSourceType OrderSource; + ///报单状态 + TThostFtdcOrderStatusType OrderStatus; + ///报单类型 + TThostFtdcOrderTypeType OrderType; + ///今成交数量 + TThostFtdcVolumeType VolumeTraded; + ///剩余数量 + TThostFtdcVolumeType VolumeTotal; + ///报单日期 + TThostFtdcDateType InsertDate; + ///委托时间 + TThostFtdcTimeType InsertTime; + ///激活时间 + TThostFtdcTimeType ActiveTime; + ///挂起时间 + TThostFtdcTimeType SuspendTime; + ///最后修改时间 + TThostFtdcTimeType UpdateTime; + ///撤销时间 + TThostFtdcTimeType CancelTime; + ///最后修改交易所交易员代码 + TThostFtdcTraderIDType ActiveTraderID; + ///结算会员编号 + TThostFtdcParticipantIDType ClearingPartID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///用户强评标志 + TThostFtdcBoolType UserForceClose; + ///操作用户代码 + TThostFtdcUserIDType ActiveUserID; + ///经纪公司报单编号 + TThostFtdcSequenceNoType BrokerOrderSeq; + ///相关报单 + TThostFtdcOrderSysIDType RelativeOrderSysID; + ///郑商所成交数量 + TThostFtdcVolumeType ZCETotalTradedVolume; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///互换单标志 + TThostFtdcBoolType IsSwapOrder; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///资金账号 + TThostFtdcAccountIDType AccountID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; +}; + +///查询错误报单操作 +struct CThostFtdcQryErrOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; +}; + +///错误报单操作 +struct CThostFtdcErrOrderActionField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///报单操作引用 + TThostFtdcOrderActionRefType OrderActionRef; + ///报单引用 + TThostFtdcOrderRefType OrderRef; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///前置编号 + TThostFtdcFrontIDType FrontID; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///报单编号 + TThostFtdcOrderSysIDType OrderSysID; + ///操作标志 + TThostFtdcActionFlagType ActionFlag; + ///价格 + TThostFtdcPriceType LimitPrice; + ///数量变化 + TThostFtdcVolumeType VolumeChange; + ///操作日期 + TThostFtdcDateType ActionDate; + ///操作时间 + TThostFtdcTimeType ActionTime; + ///交易所交易员代码 + TThostFtdcTraderIDType TraderID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///本地报单编号 + TThostFtdcOrderLocalIDType OrderLocalID; + ///操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///客户代码 + TThostFtdcClientIDType ClientID; + ///业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + ///报单操作状态 + TThostFtdcOrderActionStatusType OrderActionStatus; + ///用户代码 + TThostFtdcUserIDType UserID; + ///状态信息 + TThostFtdcErrorMsgType StatusMsg; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///营业部编号 + TThostFtdcBranchIDType BranchID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///查询交易所状态 +struct CThostFtdcQryExchangeSequenceField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///交易所状态 +struct CThostFtdcExchangeSequenceField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///序号 + TThostFtdcSequenceNoType SequenceNo; + ///合约交易状态 + TThostFtdcInstrumentStatusType MarketStatus; +}; + +///根据价格查询最大报单数量 +struct CThostFtdcQueryMaxOrderVolumeWithPriceField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///开平标志 + TThostFtdcOffsetFlagType OffsetFlag; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///最大允许报单数量 + TThostFtdcVolumeType MaxVolume; + ///报单价格 + TThostFtdcPriceType Price; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询经纪公司交易参数 +struct CThostFtdcQryBrokerTradingParamsField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; +}; + +///经纪公司交易参数 +struct CThostFtdcBrokerTradingParamsField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///保证金价格类型 + TThostFtdcMarginPriceTypeType MarginPriceType; + ///盈亏算法 + TThostFtdcAlgorithmType Algorithm; + ///可用是否包含平仓盈利 + TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///期权权利金价格类型 + TThostFtdcOptionRoyaltyPriceTypeType OptionRoyaltyPriceType; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; +}; + +///查询经纪公司交易算法 +struct CThostFtdcQryBrokerTradingAlgosField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +///经纪公司交易算法 +struct CThostFtdcBrokerTradingAlgosField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///持仓处理算法编号 + TThostFtdcHandlePositionAlgoIDType HandlePositionAlgoID; + ///寻找保证金率算法编号 + TThostFtdcFindMarginRateAlgoIDType FindMarginRateAlgoID; + ///资金处理算法编号 + TThostFtdcHandleTradingAccountAlgoIDType HandleTradingAccountAlgoID; +}; + +///查询经纪公司资金 +struct CThostFtdcQueryBrokerDepositField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///经纪公司资金 +struct CThostFtdcBrokerDepositField +{ + ///交易日期 + TThostFtdcTradeDateType TradingDay; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///会员代码 + TThostFtdcParticipantIDType ParticipantID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///上次结算准备金 + TThostFtdcMoneyType PreBalance; + ///当前保证金总额 + TThostFtdcMoneyType CurrMargin; + ///平仓盈亏 + TThostFtdcMoneyType CloseProfit; + ///期货结算准备金 + TThostFtdcMoneyType Balance; + ///入金金额 + TThostFtdcMoneyType Deposit; + ///出金金额 + TThostFtdcMoneyType Withdraw; + ///可提资金 + TThostFtdcMoneyType Available; + ///基本准备金 + TThostFtdcMoneyType Reserve; + ///冻结的保证金 + TThostFtdcMoneyType FrozenMargin; +}; + +///查询保证金监管系统经纪公司密钥 +struct CThostFtdcQryCFMMCBrokerKeyField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; +}; + +///保证金监管系统经纪公司密钥 +struct CThostFtdcCFMMCBrokerKeyField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///经纪公司统一编码 + TThostFtdcParticipantIDType ParticipantID; + ///密钥生成日期 + TThostFtdcDateType CreateDate; + ///密钥生成时间 + TThostFtdcTimeType CreateTime; + ///密钥编号 + TThostFtdcSequenceNoType KeyID; + ///动态密钥 + TThostFtdcCFMMCKeyType CurrentKey; + ///动态密钥类型 + TThostFtdcCFMMCKeyKindType KeyKind; +}; + +///保证金监管系统经纪公司资金账户密钥 +struct CThostFtdcCFMMCTradingAccountKeyField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///经纪公司统一编码 + TThostFtdcParticipantIDType ParticipantID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///密钥编号 + TThostFtdcSequenceNoType KeyID; + ///动态密钥 + TThostFtdcCFMMCKeyType CurrentKey; +}; + +///请求查询保证金监管系统经纪公司资金账户密钥 +struct CThostFtdcQryCFMMCTradingAccountKeyField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; +}; + +///用户动态令牌参数 +struct CThostFtdcBrokerUserOTPParamField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///动态令牌提供商 + TThostFtdcOTPVendorsIDType OTPVendorsID; + ///动态令牌序列号 + TThostFtdcSerialNumberType SerialNumber; + ///令牌密钥 + TThostFtdcAuthKeyType AuthKey; + ///漂移值 + TThostFtdcLastDriftType LastDrift; + ///成功值 + TThostFtdcLastSuccessType LastSuccess; + ///动态令牌类型 + TThostFtdcOTPTypeType OTPType; +}; + +///手工同步用户动态令牌 +struct CThostFtdcManualSyncBrokerUserOTPField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///动态令牌类型 + TThostFtdcOTPTypeType OTPType; + ///第一个动态密码 + TThostFtdcPasswordType FirstOTP; + ///第二个动态密码 + TThostFtdcPasswordType SecondOTP; +}; + +///投资者手续费率模板 +struct CThostFtdcCommRateModelField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///手续费率模板代码 + TThostFtdcInvestorIDType CommModelID; + ///模板名称 + TThostFtdcCommModelNameType CommModelName; +}; + +///请求查询投资者手续费率模板 +struct CThostFtdcQryCommRateModelField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///手续费率模板代码 + TThostFtdcInvestorIDType CommModelID; +}; + +///投资者保证金率模板 +struct CThostFtdcMarginModelField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///保证金率模板代码 + TThostFtdcInvestorIDType MarginModelID; + ///模板名称 + TThostFtdcCommModelNameType MarginModelName; +}; + +///请求查询投资者保证金率模板 +struct CThostFtdcQryMarginModelField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///保证金率模板代码 + TThostFtdcInvestorIDType MarginModelID; +}; + +///仓单折抵信息 +struct CThostFtdcEWarrantOffsetField +{ + ///交易日期 + TThostFtdcTradeDateType TradingDay; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///买卖方向 + TThostFtdcDirectionType Direction; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///数量 + TThostFtdcVolumeType Volume; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询仓单折抵信息 +struct CThostFtdcQryEWarrantOffsetField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///合约代码 + TThostFtdcInstrumentIDType InstrumentID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询投资者品种/跨品种保证金 +struct CThostFtdcQryInvestorProductGroupMarginField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///品种/跨品种标示 + TThostFtdcInstrumentIDType ProductGroupID; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///投资者品种/跨品种保证金 +struct CThostFtdcInvestorProductGroupMarginField +{ + ///品种/跨品种标示 + TThostFtdcInstrumentIDType ProductGroupID; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///交易日 + TThostFtdcDateType TradingDay; + ///结算编号 + TThostFtdcSettlementIDType SettlementID; + ///冻结的保证金 + TThostFtdcMoneyType FrozenMargin; + ///多头冻结的保证金 + TThostFtdcMoneyType LongFrozenMargin; + ///空头冻结的保证金 + TThostFtdcMoneyType ShortFrozenMargin; + ///占用的保证金 + TThostFtdcMoneyType UseMargin; + ///多头保证金 + TThostFtdcMoneyType LongUseMargin; + ///空头保证金 + TThostFtdcMoneyType ShortUseMargin; + ///交易所保证金 + TThostFtdcMoneyType ExchMargin; + ///交易所多头保证金 + TThostFtdcMoneyType LongExchMargin; + ///交易所空头保证金 + TThostFtdcMoneyType ShortExchMargin; + ///平仓盈亏 + TThostFtdcMoneyType CloseProfit; + ///冻结的手续费 + TThostFtdcMoneyType FrozenCommission; + ///手续费 + TThostFtdcMoneyType Commission; + ///冻结的资金 + TThostFtdcMoneyType FrozenCash; + ///资金差额 + TThostFtdcMoneyType CashIn; + ///持仓盈亏 + TThostFtdcMoneyType PositionProfit; + ///折抵总金额 + TThostFtdcMoneyType OffsetAmount; + ///多头折抵总金额 + TThostFtdcMoneyType LongOffsetAmount; + ///空头折抵总金额 + TThostFtdcMoneyType ShortOffsetAmount; + ///交易所折抵总金额 + TThostFtdcMoneyType ExchOffsetAmount; + ///交易所多头折抵总金额 + TThostFtdcMoneyType LongExchOffsetAmount; + ///交易所空头折抵总金额 + TThostFtdcMoneyType ShortExchOffsetAmount; + ///投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///查询监控中心用户令牌 +struct CThostFtdcQueryCFMMCTradingAccountTokenField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///监控中心用户令牌 +struct CThostFtdcCFMMCTradingAccountTokenField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///经纪公司统一编码 + TThostFtdcParticipantIDType ParticipantID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///密钥编号 + TThostFtdcSequenceNoType KeyID; + ///动态令牌 + TThostFtdcCFMMCTokenType Token; +}; + +///查询产品组 +struct CThostFtdcQryProductGroupField +{ + ///产品代码 + TThostFtdcInstrumentIDType ProductID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +///投资者品种/跨品种保证金产品组 +struct CThostFtdcProductGroupField +{ + ///产品代码 + TThostFtdcInstrumentIDType ProductID; + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///产品组代码 + TThostFtdcInstrumentIDType ProductGroupID; +}; + +///交易所公告 +struct CThostFtdcBulletinField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///交易日 + TThostFtdcDateType TradingDay; + ///公告编号 + TThostFtdcBulletinIDType BulletinID; + ///序列号 + TThostFtdcSequenceNoType SequenceNo; + ///公告类型 + TThostFtdcNewsTypeType NewsType; + ///紧急程度 + TThostFtdcNewsUrgencyType NewsUrgency; + ///发送时间 + TThostFtdcTimeType SendTime; + ///消息摘要 + TThostFtdcAbstractType Abstract; + ///消息来源 + TThostFtdcComeFromType ComeFrom; + ///消息正文 + TThostFtdcContentType Content; + ///WEB地址 + TThostFtdcURLLinkType URLLink; + ///市场代码 + TThostFtdcMarketIDType MarketID; +}; + +///查询交易所公告 +struct CThostFtdcQryBulletinField +{ + ///交易所代码 + TThostFtdcExchangeIDType ExchangeID; + ///公告编号 + TThostFtdcBulletinIDType BulletinID; + ///序列号 + TThostFtdcSequenceNoType SequenceNo; + ///公告类型 + TThostFtdcNewsTypeType NewsType; + ///紧急程度 + TThostFtdcNewsUrgencyType NewsUrgency; +}; + +///转帐开户请求 +struct CThostFtdcReqOpenAccountField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///性别 + TThostFtdcGenderType Gender; + ///国家代码 + TThostFtdcCountryCodeType CountryCode; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///地址 + TThostFtdcAddressType Address; + ///邮编 + TThostFtdcZipCodeType ZipCode; + ///电话号码 + TThostFtdcTelephoneType Telephone; + ///手机 + TThostFtdcMobilePhoneType MobilePhone; + ///传真 + TThostFtdcFaxType Fax; + ///电子邮件 + TThostFtdcEMailType EMail; + ///资金账户状态 + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///汇钞标志 + TThostFtdcCashExchangeCodeType CashExchangeCode; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货单位帐号类型 + TThostFtdcBankAccTypeType BankSecuAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///期货单位帐号 + TThostFtdcBankAccountType BankSecuAcc; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///交易ID + TThostFtdcTIDType TID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///转帐销户请求 +struct CThostFtdcReqCancelAccountField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///性别 + TThostFtdcGenderType Gender; + ///国家代码 + TThostFtdcCountryCodeType CountryCode; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///地址 + TThostFtdcAddressType Address; + ///邮编 + TThostFtdcZipCodeType ZipCode; + ///电话号码 + TThostFtdcTelephoneType Telephone; + ///手机 + TThostFtdcMobilePhoneType MobilePhone; + ///传真 + TThostFtdcFaxType Fax; + ///电子邮件 + TThostFtdcEMailType EMail; + ///资金账户状态 + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///汇钞标志 + TThostFtdcCashExchangeCodeType CashExchangeCode; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货单位帐号类型 + TThostFtdcBankAccTypeType BankSecuAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///期货单位帐号 + TThostFtdcBankAccountType BankSecuAcc; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///交易ID + TThostFtdcTIDType TID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///变更银行账户请求 +struct CThostFtdcReqChangeAccountField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///性别 + TThostFtdcGenderType Gender; + ///国家代码 + TThostFtdcCountryCodeType CountryCode; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///地址 + TThostFtdcAddressType Address; + ///邮编 + TThostFtdcZipCodeType ZipCode; + ///电话号码 + TThostFtdcTelephoneType Telephone; + ///手机 + TThostFtdcMobilePhoneType MobilePhone; + ///传真 + TThostFtdcFaxType Fax; + ///电子邮件 + TThostFtdcEMailType EMail; + ///资金账户状态 + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///新银行帐号 + TThostFtdcBankAccountType NewBankAccount; + ///新银行密码 + TThostFtdcPasswordType NewBankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易ID + TThostFtdcTIDType TID; + ///摘要 + TThostFtdcDigestType Digest; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///转账请求 +struct CThostFtdcReqTransferField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///期货公司流水号 + TThostFtdcFutureSerialType FutureSerial; + ///用户标识 + TThostFtdcUserIDType UserID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///转帐金额 + TThostFtdcTradeAmountType TradeAmount; + ///期货可取金额 + TThostFtdcTradeAmountType FutureFetchAmount; + ///费用支付标志 + TThostFtdcFeePayFlagType FeePayFlag; + ///应收客户费用 + TThostFtdcCustFeeType CustFee; + ///应收期货公司费用 + TThostFtdcFutureFeeType BrokerFee; + ///发送方给接收方的消息 + TThostFtdcAddInfoType Message; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货单位帐号类型 + TThostFtdcBankAccTypeType BankSecuAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///期货单位帐号 + TThostFtdcBankAccountType BankSecuAcc; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///转账交易状态 + TThostFtdcTransferStatusType TransferStatus; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///银行发起银行资金转期货响应 +struct CThostFtdcRspTransferField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///期货公司流水号 + TThostFtdcFutureSerialType FutureSerial; + ///用户标识 + TThostFtdcUserIDType UserID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///转帐金额 + TThostFtdcTradeAmountType TradeAmount; + ///期货可取金额 + TThostFtdcTradeAmountType FutureFetchAmount; + ///费用支付标志 + TThostFtdcFeePayFlagType FeePayFlag; + ///应收客户费用 + TThostFtdcCustFeeType CustFee; + ///应收期货公司费用 + TThostFtdcFutureFeeType BrokerFee; + ///发送方给接收方的消息 + TThostFtdcAddInfoType Message; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货单位帐号类型 + TThostFtdcBankAccTypeType BankSecuAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///期货单位帐号 + TThostFtdcBankAccountType BankSecuAcc; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///转账交易状态 + TThostFtdcTransferStatusType TransferStatus; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///冲正请求 +struct CThostFtdcReqRepealField +{ + ///冲正时间间隔 + TThostFtdcRepealTimeIntervalType RepealTimeInterval; + ///已经冲正次数 + TThostFtdcRepealedTimesType RepealedTimes; + ///银行冲正标志 + TThostFtdcBankRepealFlagType BankRepealFlag; + ///期商冲正标志 + TThostFtdcBrokerRepealFlagType BrokerRepealFlag; + ///被冲正平台流水号 + TThostFtdcPlateSerialType PlateRepealSerial; + ///被冲正银行流水号 + TThostFtdcBankSerialType BankRepealSerial; + ///被冲正期货流水号 + TThostFtdcFutureSerialType FutureRepealSerial; + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///期货公司流水号 + TThostFtdcFutureSerialType FutureSerial; + ///用户标识 + TThostFtdcUserIDType UserID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///转帐金额 + TThostFtdcTradeAmountType TradeAmount; + ///期货可取金额 + TThostFtdcTradeAmountType FutureFetchAmount; + ///费用支付标志 + TThostFtdcFeePayFlagType FeePayFlag; + ///应收客户费用 + TThostFtdcCustFeeType CustFee; + ///应收期货公司费用 + TThostFtdcFutureFeeType BrokerFee; + ///发送方给接收方的消息 + TThostFtdcAddInfoType Message; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货单位帐号类型 + TThostFtdcBankAccTypeType BankSecuAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///期货单位帐号 + TThostFtdcBankAccountType BankSecuAcc; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///转账交易状态 + TThostFtdcTransferStatusType TransferStatus; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///冲正响应 +struct CThostFtdcRspRepealField +{ + ///冲正时间间隔 + TThostFtdcRepealTimeIntervalType RepealTimeInterval; + ///已经冲正次数 + TThostFtdcRepealedTimesType RepealedTimes; + ///银行冲正标志 + TThostFtdcBankRepealFlagType BankRepealFlag; + ///期商冲正标志 + TThostFtdcBrokerRepealFlagType BrokerRepealFlag; + ///被冲正平台流水号 + TThostFtdcPlateSerialType PlateRepealSerial; + ///被冲正银行流水号 + TThostFtdcBankSerialType BankRepealSerial; + ///被冲正期货流水号 + TThostFtdcFutureSerialType FutureRepealSerial; + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///期货公司流水号 + TThostFtdcFutureSerialType FutureSerial; + ///用户标识 + TThostFtdcUserIDType UserID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///转帐金额 + TThostFtdcTradeAmountType TradeAmount; + ///期货可取金额 + TThostFtdcTradeAmountType FutureFetchAmount; + ///费用支付标志 + TThostFtdcFeePayFlagType FeePayFlag; + ///应收客户费用 + TThostFtdcCustFeeType CustFee; + ///应收期货公司费用 + TThostFtdcFutureFeeType BrokerFee; + ///发送方给接收方的消息 + TThostFtdcAddInfoType Message; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货单位帐号类型 + TThostFtdcBankAccTypeType BankSecuAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///期货单位帐号 + TThostFtdcBankAccountType BankSecuAcc; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///转账交易状态 + TThostFtdcTransferStatusType TransferStatus; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///查询账户信息请求 +struct CThostFtdcReqQueryAccountField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///期货公司流水号 + TThostFtdcFutureSerialType FutureSerial; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货单位帐号类型 + TThostFtdcBankAccTypeType BankSecuAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///期货单位帐号 + TThostFtdcBankAccountType BankSecuAcc; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///查询账户信息响应 +struct CThostFtdcRspQueryAccountField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///期货公司流水号 + TThostFtdcFutureSerialType FutureSerial; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货单位帐号类型 + TThostFtdcBankAccTypeType BankSecuAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///期货单位帐号 + TThostFtdcBankAccountType BankSecuAcc; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///银行可用金额 + TThostFtdcTradeAmountType BankUseAmount; + ///银行可取金额 + TThostFtdcTradeAmountType BankFetchAmount; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///期商签到签退 +struct CThostFtdcFutureSignIOField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///摘要 + TThostFtdcDigestType Digest; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; +}; + +///期商签到响应 +struct CThostFtdcRspFutureSignInField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///摘要 + TThostFtdcDigestType Digest; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///PIN密钥 + TThostFtdcPasswordKeyType PinKey; + ///MAC密钥 + TThostFtdcPasswordKeyType MacKey; +}; + +///期商签退请求 +struct CThostFtdcReqFutureSignOutField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///摘要 + TThostFtdcDigestType Digest; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; +}; + +///期商签退响应 +struct CThostFtdcRspFutureSignOutField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///摘要 + TThostFtdcDigestType Digest; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///查询指定流水号的交易结果请求 +struct CThostFtdcReqQueryTradeResultBySerialField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///流水号 + TThostFtdcSerialType Reference; + ///本流水号发布者的机构类型 + TThostFtdcInstitutionTypeType RefrenceIssureType; + ///本流水号发布者机构编码 + TThostFtdcOrganCodeType RefrenceIssure; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///转帐金额 + TThostFtdcTradeAmountType TradeAmount; + ///摘要 + TThostFtdcDigestType Digest; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///查询指定流水号的交易结果响应 +struct CThostFtdcRspQueryTradeResultBySerialField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///流水号 + TThostFtdcSerialType Reference; + ///本流水号发布者的机构类型 + TThostFtdcInstitutionTypeType RefrenceIssureType; + ///本流水号发布者机构编码 + TThostFtdcOrganCodeType RefrenceIssure; + ///原始返回代码 + TThostFtdcReturnCodeType OriginReturnCode; + ///原始返回码描述 + TThostFtdcDescrInfoForReturnCodeType OriginDescrInfoForReturnCode; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///转帐金额 + TThostFtdcTradeAmountType TradeAmount; + ///摘要 + TThostFtdcDigestType Digest; +}; + +///日终文件就绪请求 +struct CThostFtdcReqDayEndFileReadyField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///文件业务功能 + TThostFtdcFileBusinessCodeType FileBusinessCode; + ///摘要 + TThostFtdcDigestType Digest; +}; + +///返回结果 +struct CThostFtdcReturnResultField +{ + ///返回代码 + TThostFtdcReturnCodeType ReturnCode; + ///返回码描述 + TThostFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode; +}; + +///验证期货资金密码 +struct CThostFtdcVerifyFuturePasswordField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///交易ID + TThostFtdcTIDType TID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///验证客户信息 +struct CThostFtdcVerifyCustInfoField +{ + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///验证期货资金密码和客户信息 +struct CThostFtdcVerifyFuturePasswordAndCustInfoField +{ + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///验证期货资金密码和客户信息 +struct CThostFtdcDepositResultInformField +{ + ///出入金流水号,该流水号为银期报盘返回的流水号 + TThostFtdcDepositSeqNoType DepositSeqNo; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///入金金额 + TThostFtdcMoneyType Deposit; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///返回代码 + TThostFtdcReturnCodeType ReturnCode; + ///返回码描述 + TThostFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode; +}; + +///交易核心向银期报盘发出密钥同步请求 +struct CThostFtdcReqSyncKeyField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///交易核心给银期报盘的消息 + TThostFtdcAddInfoType Message; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; +}; + +///交易核心向银期报盘发出密钥同步响应 +struct CThostFtdcRspSyncKeyField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///交易核心给银期报盘的消息 + TThostFtdcAddInfoType Message; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///查询账户信息通知 +struct CThostFtdcNotifyQueryAccountField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///期货公司流水号 + TThostFtdcFutureSerialType FutureSerial; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货单位帐号类型 + TThostFtdcBankAccTypeType BankSecuAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///期货单位帐号 + TThostFtdcBankAccountType BankSecuAcc; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///银行可用金额 + TThostFtdcTradeAmountType BankUseAmount; + ///银行可取金额 + TThostFtdcTradeAmountType BankFetchAmount; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///银期转账交易流水表 +struct CThostFtdcTransferSerialField +{ + ///平台流水号 + TThostFtdcPlateSerialType PlateSerial; + ///交易发起方日期 + TThostFtdcTradeDateType TradeDate; + ///交易日期 + TThostFtdcDateType TradingDay; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///交易代码 + TThostFtdcTradeCodeType TradeCode; + ///会话编号 + TThostFtdcSessionIDType SessionID; + ///银行编码 + TThostFtdcBankIDType BankID; + ///银行分支机构编码 + TThostFtdcBankBrchIDType BankBranchID; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///期货公司编码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///期货公司帐号类型 + TThostFtdcFutureAccTypeType FutureAccType; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; + ///期货公司流水号 + TThostFtdcFutureSerialType FutureSerial; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///交易金额 + TThostFtdcTradeAmountType TradeAmount; + ///应收客户费用 + TThostFtdcCustFeeType CustFee; + ///应收期货公司费用 + TThostFtdcFutureFeeType BrokerFee; + ///有效标志 + TThostFtdcAvailabilityFlagType AvailabilityFlag; + ///操作员 + TThostFtdcOperatorCodeType OperatorCode; + ///新银行帐号 + TThostFtdcBankAccountType BankNewAccount; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///请求查询转帐流水 +struct CThostFtdcQryTransferSerialField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///银行编码 + TThostFtdcBankIDType BankID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///期商签到通知 +struct CThostFtdcNotifyFutureSignInField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///摘要 + TThostFtdcDigestType Digest; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///PIN密钥 + TThostFtdcPasswordKeyType PinKey; + ///MAC密钥 + TThostFtdcPasswordKeyType MacKey; +}; + +///期商签退通知 +struct CThostFtdcNotifyFutureSignOutField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///摘要 + TThostFtdcDigestType Digest; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///交易核心向银期报盘发出密钥同步处理结果的通知 +struct CThostFtdcNotifySyncKeyField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///交易核心给银期报盘的消息 + TThostFtdcAddInfoType Message; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///请求编号 + TThostFtdcRequestIDType RequestID; + ///交易ID + TThostFtdcTIDType TID; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///请求查询银期签约关系 +struct CThostFtdcQryAccountregisterField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///银行编码 + TThostFtdcBankIDType BankID; + ///银行分支机构编码 + TThostFtdcBankBrchIDType BankBranchID; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///客户开销户信息表 +struct CThostFtdcAccountregisterField +{ + ///交易日期 + TThostFtdcTradeDateType TradeDay; + ///银行编码 + TThostFtdcBankIDType BankID; + ///银行分支机构编码 + TThostFtdcBankBrchIDType BankBranchID; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///期货公司编码 + TThostFtdcBrokerIDType BrokerID; + ///期货公司分支机构编码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///开销户类别 + TThostFtdcOpenOrDestroyType OpenOrDestroy; + ///签约日期 + TThostFtdcTradeDateType RegDate; + ///解约日期 + TThostFtdcTradeDateType OutDate; + ///交易ID + TThostFtdcTIDType TID; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///银期开户信息 +struct CThostFtdcOpenAccountField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///性别 + TThostFtdcGenderType Gender; + ///国家代码 + TThostFtdcCountryCodeType CountryCode; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///地址 + TThostFtdcAddressType Address; + ///邮编 + TThostFtdcZipCodeType ZipCode; + ///电话号码 + TThostFtdcTelephoneType Telephone; + ///手机 + TThostFtdcMobilePhoneType MobilePhone; + ///传真 + TThostFtdcFaxType Fax; + ///电子邮件 + TThostFtdcEMailType EMail; + ///资金账户状态 + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///汇钞标志 + TThostFtdcCashExchangeCodeType CashExchangeCode; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货单位帐号类型 + TThostFtdcBankAccTypeType BankSecuAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///期货单位帐号 + TThostFtdcBankAccountType BankSecuAcc; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///交易ID + TThostFtdcTIDType TID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///银期销户信息 +struct CThostFtdcCancelAccountField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///性别 + TThostFtdcGenderType Gender; + ///国家代码 + TThostFtdcCountryCodeType CountryCode; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///地址 + TThostFtdcAddressType Address; + ///邮编 + TThostFtdcZipCodeType ZipCode; + ///电话号码 + TThostFtdcTelephoneType Telephone; + ///手机 + TThostFtdcMobilePhoneType MobilePhone; + ///传真 + TThostFtdcFaxType Fax; + ///电子邮件 + TThostFtdcEMailType EMail; + ///资金账户状态 + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///汇钞标志 + TThostFtdcCashExchangeCodeType CashExchangeCode; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///渠道标志 + TThostFtdcDeviceIDType DeviceID; + ///期货单位帐号类型 + TThostFtdcBankAccTypeType BankSecuAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///期货单位帐号 + TThostFtdcBankAccountType BankSecuAcc; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易柜员 + TThostFtdcOperNoType OperNo; + ///交易ID + TThostFtdcTIDType TID; + ///用户标识 + TThostFtdcUserIDType UserID; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///银期变更银行账号信息 +struct CThostFtdcChangeAccountField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///性别 + TThostFtdcGenderType Gender; + ///国家代码 + TThostFtdcCountryCodeType CountryCode; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///地址 + TThostFtdcAddressType Address; + ///邮编 + TThostFtdcZipCodeType ZipCode; + ///电话号码 + TThostFtdcTelephoneType Telephone; + ///手机 + TThostFtdcMobilePhoneType MobilePhone; + ///传真 + TThostFtdcFaxType Fax; + ///电子邮件 + TThostFtdcEMailType EMail; + ///资金账户状态 + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///新银行帐号 + TThostFtdcBankAccountType NewBankAccount; + ///新银行密码 + TThostFtdcPasswordType NewBankPassWord; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///银行密码标志 + TThostFtdcPwdFlagType BankPwdFlag; + ///期货资金密码核对标志 + TThostFtdcPwdFlagType SecuPwdFlag; + ///交易ID + TThostFtdcTIDType TID; + ///摘要 + TThostFtdcDigestType Digest; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; + ///长客户姓名 + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///二级代理操作员银期权限 +struct CThostFtdcSecAgentACIDMapField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///资金账户 + TThostFtdcAccountIDType AccountID; + ///币种 + TThostFtdcCurrencyIDType CurrencyID; + ///境外中介机构资金帐号 + TThostFtdcAccountIDType BrokerSecAgentID; +}; + +///二级代理操作员银期权限查询 +struct CThostFtdcQrySecAgentACIDMapField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///资金账户 + TThostFtdcAccountIDType AccountID; + ///币种 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///灾备中心交易权限 +struct CThostFtdcUserRightsAssignField +{ + ///应用单元代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///交易中心代码 + TThostFtdcDRIdentityIDType DRIdentityID; +}; + +///经济公司是否有在本标示的交易权限 +struct CThostFtdcBrokerUserRightAssignField +{ + ///应用单元代码 + TThostFtdcBrokerIDType BrokerID; + ///交易中心代码 + TThostFtdcDRIdentityIDType DRIdentityID; + ///能否交易 + TThostFtdcBoolType Tradeable; +}; + +///灾备交易转换报文 +struct CThostFtdcDRTransferField +{ + ///原交易中心代码 + TThostFtdcDRIdentityIDType OrigDRIdentityID; + ///目标交易中心代码 + TThostFtdcDRIdentityIDType DestDRIdentityID; + ///原应用单元代码 + TThostFtdcBrokerIDType OrigBrokerID; + ///目标易用单元代码 + TThostFtdcBrokerIDType DestBrokerID; +}; + +///Fens用户信息 +struct CThostFtdcFensUserInfoField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///登录模式 + TThostFtdcLoginModeType LoginMode; +}; + +///当前银期所属交易中心 +struct CThostFtdcCurrTransferIdentityField +{ + ///交易中心代码 + TThostFtdcDRIdentityIDType IdentityID; +}; + +///禁止登录用户 +struct CThostFtdcLoginForbiddenUserField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +///查询禁止登录用户 +struct CThostFtdcQryLoginForbiddenUserField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; +}; + +///UDP组播组信息 +struct CThostFtdcMulticastGroupInfoField +{ + ///组播组IP地址 + TThostFtdcIPAddressType GroupIP; + ///组播组IP端口 + TThostFtdcIPPortType GroupPort; + ///源地址 + TThostFtdcIPAddressType SourceIP; +}; + +///资金账户基本准备金 +struct CThostFtdcTradingAccountReserveField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///基本准备金 + TThostFtdcMoneyType Reserve; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///查询禁止登录IP +struct CThostFtdcQryLoginForbiddenIPField +{ + ///IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +///查询IP列表 +struct CThostFtdcQryIPListField +{ + ///IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +///查询用户下单权限分配表 +struct CThostFtdcQryUserRightsAssignField +{ + ///应用单元代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; +}; + +///银期预约开户确认请求 +struct CThostFtdcReserveOpenAccountConfirmField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcLongIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///性别 + TThostFtdcGenderType Gender; + ///国家代码 + TThostFtdcCountryCodeType CountryCode; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///地址 + TThostFtdcAddressType Address; + ///邮编 + TThostFtdcZipCodeType ZipCode; + ///电话号码 + TThostFtdcTelephoneType Telephone; + ///手机 + TThostFtdcMobilePhoneType MobilePhone; + ///传真 + TThostFtdcFaxType Fax; + ///电子邮件 + TThostFtdcEMailType EMail; + ///资金账户状态 + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///交易ID + TThostFtdcTIDType TID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///期货密码 + TThostFtdcPasswordType Password; + ///预约开户银行流水号 + TThostFtdcBankSerialType BankReserveOpenSeq; + ///预约开户日期 + TThostFtdcTradeDateType BookDate; + ///预约开户验证密码 + TThostFtdcPasswordType BookPsw; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///银期预约开户 +struct CThostFtdcReserveOpenAccountField +{ + ///业务功能码 + TThostFtdcTradeCodeType TradeCode; + ///银行代码 + TThostFtdcBankIDType BankID; + ///银行分支机构代码 + TThostFtdcBankBrchIDType BankBranchID; + ///期商代码 + TThostFtdcBrokerIDType BrokerID; + ///期商分支机构代码 + TThostFtdcFutureBranchIDType BrokerBranchID; + ///交易日期 + TThostFtdcTradeDateType TradeDate; + ///交易时间 + TThostFtdcTradeTimeType TradeTime; + ///银行流水号 + TThostFtdcBankSerialType BankSerial; + ///交易系统日期 + TThostFtdcTradeDateType TradingDay; + ///银期平台消息流水号 + TThostFtdcSerialType PlateSerial; + ///最后分片标志 + TThostFtdcLastFragmentType LastFragment; + ///会话号 + TThostFtdcSessionIDType SessionID; + ///客户姓名 + TThostFtdcLongIndividualNameType CustomerName; + ///证件类型 + TThostFtdcIdCardTypeType IdCardType; + ///证件号码 + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///性别 + TThostFtdcGenderType Gender; + ///国家代码 + TThostFtdcCountryCodeType CountryCode; + ///客户类型 + TThostFtdcCustTypeType CustType; + ///地址 + TThostFtdcAddressType Address; + ///邮编 + TThostFtdcZipCodeType ZipCode; + ///电话号码 + TThostFtdcTelephoneType Telephone; + ///手机 + TThostFtdcMobilePhoneType MobilePhone; + ///传真 + TThostFtdcFaxType Fax; + ///电子邮件 + TThostFtdcEMailType EMail; + ///资金账户状态 + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///银行帐号 + TThostFtdcBankAccountType BankAccount; + ///银行密码 + TThostFtdcPasswordType BankPassWord; + ///安装编号 + TThostFtdcInstallIDType InstallID; + ///验证客户证件号码标志 + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; + ///摘要 + TThostFtdcDigestType Digest; + ///银行帐号类型 + TThostFtdcBankAccTypeType BankAccType; + ///期货公司银行编码 + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///交易ID + TThostFtdcTIDType TID; + ///预约开户状态 + TThostFtdcReserveOpenAccStasType ReserveOpenAccStas; + ///错误代码 + TThostFtdcErrorIDType ErrorID; + ///错误信息 + TThostFtdcErrorMsgType ErrorMsg; +}; + +///银行账户属性 +struct CThostFtdcAccountPropertyField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者帐号 + TThostFtdcAccountIDType AccountID; + ///银行统一标识类型 + TThostFtdcBankIDType BankID; + ///银行账户 + TThostFtdcBankAccountType BankAccount; + ///银行账户的开户人名称 + TThostFtdcInvestorFullNameType OpenName; + ///银行账户的开户行 + TThostFtdcOpenBankType OpenBank; + ///是否活跃 + TThostFtdcBoolType IsActive; + ///账户来源 + TThostFtdcAccountSourceTypeType AccountSourceType; + ///开户日期 + TThostFtdcDateType OpenDate; + ///注销日期 + TThostFtdcDateType CancelDate; + ///录入员代码 + TThostFtdcOperatorIDType OperatorID; + ///录入日期 + TThostFtdcDateType OperateDate; + ///录入时间 + TThostFtdcTimeType OperateTime; + ///币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +///查询当前交易中心 +struct CThostFtdcQryCurrDRIdentityField +{ + ///交易中心代码 + TThostFtdcDRIdentityIDType DRIdentityID; +}; + +///当前交易中心 +struct CThostFtdcCurrDRIdentityField +{ + ///交易中心代码 + TThostFtdcDRIdentityIDType DRIdentityID; +}; + +///查询二级代理商资金校验模式 +struct CThostFtdcQrySecAgentCheckModeField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; +}; + +///查询二级代理商信息 +struct CThostFtdcQrySecAgentTradeInfoField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///境外中介机构资金帐号 + TThostFtdcAccountIDType BrokerSecAgentID; +}; + +///用户系统信息 +struct CThostFtdcUserSystemInfoField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///用户端系统内部信息长度 + TThostFtdcSystemInfoLenType ClientSystemInfoLen; + ///用户端系统内部信息 + TThostFtdcClientSystemInfoType ClientSystemInfo; + ///用户公网IP + TThostFtdcIPAddressType ClientPublicIP; + ///终端IP端口 + TThostFtdcIPPortType ClientIPPort; + ///登录成功时间 + TThostFtdcTimeType ClientLoginTime; + ///App代码 + TThostFtdcAppIDType ClientAppID; +}; + +///用户发出获取安全安全登陆方法请求 +struct CThostFtdcReqUserAuthMethodField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; +}; + +///用户发出获取安全安全登陆方法回复 +struct CThostFtdcRspUserAuthMethodField +{ + ///当前可以用的认证模式 + TThostFtdcCurrentAuthMethodType UsableAuthMethod; +}; + +///用户发出获取安全安全登陆方法请求 +struct CThostFtdcReqGenUserCaptchaField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; +}; + +///生成的图片验证码信息 +struct CThostFtdcRspGenUserCaptchaField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///图片信息长度 + TThostFtdcCaptchaInfoLenType CaptchaInfoLen; + ///图片信息 + TThostFtdcCaptchaInfoType CaptchaInfo; +}; + +///用户发出获取安全安全登陆方法请求 +struct CThostFtdcReqGenUserTextField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; +}; + +///短信验证码生成的回复 +struct CThostFtdcRspGenUserTextField +{ + ///短信验证码序号 + TThostFtdcUserTextSeqType UserTextSeq; +}; + +///用户发出带图形验证码的登录请求请求 +struct CThostFtdcReqUserLoginWithCaptchaField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///密码 + TThostFtdcPasswordType Password; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///接口端产品信息 + TThostFtdcProductInfoType InterfaceProductInfo; + ///协议信息 + TThostFtdcProtocolInfoType ProtocolInfo; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///终端IP地址 + TThostFtdcIPAddressType ClientIPAddress; + ///登录备注 + TThostFtdcLoginRemarkType LoginRemark; + ///图形验证码的文字内容 + TThostFtdcPasswordType Captcha; + ///终端IP端口 + TThostFtdcIPPortType ClientIPPort; +}; + +///用户发出带短信验证码的登录请求请求 +struct CThostFtdcReqUserLoginWithTextField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///密码 + TThostFtdcPasswordType Password; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///接口端产品信息 + TThostFtdcProductInfoType InterfaceProductInfo; + ///协议信息 + TThostFtdcProtocolInfoType ProtocolInfo; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///终端IP地址 + TThostFtdcIPAddressType ClientIPAddress; + ///登录备注 + TThostFtdcLoginRemarkType LoginRemark; + ///短信验证码文字内容 + TThostFtdcPasswordType Text; + ///终端IP端口 + TThostFtdcIPPortType ClientIPPort; +}; + +///用户发出带动态验证码的登录请求请求 +struct CThostFtdcReqUserLoginWithOTPField +{ + ///交易日 + TThostFtdcDateType TradingDay; + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///密码 + TThostFtdcPasswordType Password; + ///用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + ///接口端产品信息 + TThostFtdcProductInfoType InterfaceProductInfo; + ///协议信息 + TThostFtdcProtocolInfoType ProtocolInfo; + ///Mac地址 + TThostFtdcMacAddressType MacAddress; + ///终端IP地址 + TThostFtdcIPAddressType ClientIPAddress; + ///登录备注 + TThostFtdcLoginRemarkType LoginRemark; + ///OTP密码 + TThostFtdcPasswordType OTPPassword; + ///终端IP端口 + TThostFtdcIPPortType ClientIPPort; +}; + +///api握手请求 +struct CThostFtdcReqApiHandshakeField +{ + ///api与front通信密钥版本号 + TThostFtdcCryptoKeyVersionType CryptoKeyVersion; +}; + +///front发给api的握手回复 +struct CThostFtdcRspApiHandshakeField +{ + ///握手回复数据长度 + TThostFtdcHandshakeDataLenType FrontHandshakeDataLen; + ///握手回复数据 + TThostFtdcHandshakeDataType FrontHandshakeData; + ///API认证是否开启 + TThostFtdcBoolType IsApiAuthEnabled; +}; + +///api给front的验证key的请求 +struct CThostFtdcReqVerifyApiKeyField +{ + ///握手回复数据长度 + TThostFtdcHandshakeDataLenType ApiHandshakeDataLen; + ///握手回复数据 + TThostFtdcHandshakeDataType ApiHandshakeData; +}; + +///操作员组织架构关系 +struct CThostFtdcDepartmentUserField +{ + ///经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + ///用户代码 + TThostFtdcUserIDType UserID; + ///投资者范围 + TThostFtdcDepartmentRangeType InvestorRange; + ///投资者代码 + TThostFtdcInvestorIDType InvestorID; +}; + +///查询频率,每秒查询比数 +struct CThostFtdcQueryFreqField +{ + ///查询频率 + TThostFtdcQueryFreqType QueryFreq; +}; + + + +#endif diff --git a/v6.3.6_20160606_api_tradeapi_linux64/error.dtd b/v6.3.15_20190220_api_tradeapi_se_linux64/error.dtd similarity index 100% rename from v6.3.6_20160606_api_tradeapi_linux64/error.dtd rename to v6.3.15_20190220_api_tradeapi_se_linux64/error.dtd diff --git a/v6.3.6_20160606_api_tradeapi_linux64/error.xml b/v6.3.15_20190220_api_tradeapi_se_linux64/error.xml similarity index 97% rename from v6.3.6_20160606_api_tradeapi_linux64/error.xml rename to v6.3.15_20190220_api_tradeapi_se_linux64/error.xml index 2af1657..9944a87 100644 --- a/v6.3.6_20160606_api_tradeapi_linux64/error.xml +++ b/v6.3.15_20190220_api_tradeapi_se_linux64/error.xml @@ -96,7 +96,7 @@ - + @@ -157,6 +157,7 @@ + @@ -210,5 +211,6 @@ + diff --git a/v6.3.6_20160606_api_tradeapi_linux64/libthostmduserapi.so b/v6.3.15_20190220_api_tradeapi_se_linux64/libthostmduserapi_se.so similarity index 69% rename from v6.3.6_20160606_api_tradeapi_linux64/libthostmduserapi.so rename to v6.3.15_20190220_api_tradeapi_se_linux64/libthostmduserapi_se.so index 7d48609..8c5f665 100644 Binary files a/v6.3.6_20160606_api_tradeapi_linux64/libthostmduserapi.so and b/v6.3.15_20190220_api_tradeapi_se_linux64/libthostmduserapi_se.so differ diff --git a/v6.3.6_20160606_api_tradeapi_linux64/libthosttraderapi.so b/v6.3.15_20190220_api_tradeapi_se_linux64/libthosttraderapi_se.so similarity index 69% rename from v6.3.6_20160606_api_tradeapi_linux64/libthosttraderapi.so rename to v6.3.15_20190220_api_tradeapi_se_linux64/libthosttraderapi_se.so index 92538c0..087d6ef 100644 Binary files a/v6.3.6_20160606_api_tradeapi_linux64/libthosttraderapi.so and b/v6.3.15_20190220_api_tradeapi_se_linux64/libthosttraderapi_se.so differ diff --git a/v6.3.15_20190220_clientdll64_windows/DataCollect.h b/v6.3.15_20190220_clientdll64_windows/DataCollect.h new file mode 100644 index 0000000..d088722 --- /dev/null +++ b/v6.3.15_20190220_clientdll64_windows/DataCollect.h @@ -0,0 +1,24 @@ +#ifndef DATA_COLLECT_H +#define DATA_COLLECT_H + +#define DLL_EXPORT __declspec(dllexport) + +#if defined(IS_WINCOLLECT_LIB) && defined(WIN32) +#ifdef LIB_DATA_COLLECT_API_EXPORT +#define DATA_COLLECT_API_EXPORT __declspec(dllexport) +#else +#define DATA_COLLECT_API_EXPORT __declspec(dllimport) +#endif +#else +#define DATA_COLLECT_API_EXPORT +#endif + + +///获取AES加密和RSA加密的终端信息 +///@pSystemInfo 出参 空间需要调用者自己分配 至少270个字节 +///@nLen 出参 获取到的采集信息的长度 +///采集信息内可能含有‘\0’ 建议调用者使用内存复制 +DATA_COLLECT_API_EXPORT int CTP_GetSystemInfo(char* pSystemInfo, int& nLen); + + +#endif \ No newline at end of file diff --git a/v6.3.15_20190220_clientdll64_windows/WinDataCollect.dll b/v6.3.15_20190220_clientdll64_windows/WinDataCollect.dll new file mode 100644 index 0000000..ecfdaac Binary files /dev/null and b/v6.3.15_20190220_clientdll64_windows/WinDataCollect.dll differ diff --git a/v6.3.15_20190220_clientdll64_windows/WinDataCollect.lib b/v6.3.15_20190220_clientdll64_windows/WinDataCollect.lib new file mode 100644 index 0000000..9f554b1 Binary files /dev/null and b/v6.3.15_20190220_clientdll64_windows/WinDataCollect.lib differ diff --git a/v6.3.15_20190220_clientdll_windows/DataCollect.h b/v6.3.15_20190220_clientdll_windows/DataCollect.h new file mode 100644 index 0000000..d088722 --- /dev/null +++ b/v6.3.15_20190220_clientdll_windows/DataCollect.h @@ -0,0 +1,24 @@ +#ifndef DATA_COLLECT_H +#define DATA_COLLECT_H + +#define DLL_EXPORT __declspec(dllexport) + +#if defined(IS_WINCOLLECT_LIB) && defined(WIN32) +#ifdef LIB_DATA_COLLECT_API_EXPORT +#define DATA_COLLECT_API_EXPORT __declspec(dllexport) +#else +#define DATA_COLLECT_API_EXPORT __declspec(dllimport) +#endif +#else +#define DATA_COLLECT_API_EXPORT +#endif + + +///获取AES加密和RSA加密的终端信息 +///@pSystemInfo 出参 空间需要调用者自己分配 至少270个字节 +///@nLen 出参 获取到的采集信息的长度 +///采集信息内可能含有‘\0’ 建议调用者使用内存复制 +DATA_COLLECT_API_EXPORT int CTP_GetSystemInfo(char* pSystemInfo, int& nLen); + + +#endif \ No newline at end of file diff --git a/v6.3.15_20190220_clientdll_windows/WinDataCollect.dll b/v6.3.15_20190220_clientdll_windows/WinDataCollect.dll new file mode 100644 index 0000000..6840277 Binary files /dev/null and b/v6.3.15_20190220_clientdll_windows/WinDataCollect.dll differ diff --git a/v6.3.15_20190220_clientdll_windows/WinDataCollect.lib b/v6.3.15_20190220_clientdll_windows/WinDataCollect.lib new file mode 100644 index 0000000..d01e784 Binary files /dev/null and b/v6.3.15_20190220_clientdll_windows/WinDataCollect.lib differ diff --git a/v6.3.6_20160606_api_tradeapi_linux64/ThostFtdcMdApi.h b/v6.3.15_20190220_tradeapi64_se_windows/ThostFtdcMdApi.h similarity index 51% rename from v6.3.6_20160606_api_tradeapi_linux64/ThostFtdcMdApi.h rename to v6.3.15_20190220_tradeapi64_se_windows/ThostFtdcMdApi.h index 133636c..507029b 100644 --- a/v6.3.6_20160606_api_tradeapi_linux64/ThostFtdcMdApi.h +++ b/v6.3.15_20190220_tradeapi64_se_windows/ThostFtdcMdApi.h @@ -1,89 +1,162 @@ - -#if !defined(THOST_FTDCMDAPI_H) -#define THOST_FTDCMDAPI_H - -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 - -#include "ThostFtdcUserApiStruct.h" - -#if defined(ISLIB) && defined(WIN32) -#ifdef LIB_MD_API_EXPORT -#define MD_API_EXPORT __declspec(dllexport) -#else -#define MD_API_EXPORT __declspec(dllimport) -#endif -#else -#define MD_API_EXPORT -#endif - -class CThostFtdcMdSpi -{ -public: - virtual void OnFrontConnected(){}; - - virtual void OnFrontDisconnected(int nReason){}; - - virtual void OnHeartBeatWarning(int nTimeLapse){}; - - - virtual void OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspSubForQuoteRsp(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspUnSubForQuoteRsp(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData) {}; - - virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) {}; -}; - -class MD_API_EXPORT CThostFtdcMdApi -{ -public: - static CThostFtdcMdApi *CreateFtdcMdApi(const char *pszFlowPath = "", const bool bIsUsingUdp=false, const bool bIsMulticast=false); - - static const char *GetApiVersion(); - - virtual void Release() = 0; - - virtual void Init() = 0; - - virtual int Join() = 0; - - virtual const char *GetTradingDay() = 0; - - virtual void RegisterFront(char *pszFrontAddress) = 0; - - virtual void RegisterNameServer(char *pszNsAddress) = 0; - - virtual void RegisterFensUserInfo(CThostFtdcFensUserInfoField * pFensUserInfo) = 0; - - virtual void RegisterSpi(CThostFtdcMdSpi *pSpi) = 0; - - virtual int SubscribeMarketData(char *ppInstrumentID[], int nCount) = 0; - - virtual int UnSubscribeMarketData(char *ppInstrumentID[], int nCount) = 0; - - virtual int SubscribeForQuoteRsp(char *ppInstrumentID[], int nCount) = 0; - - virtual int UnSubscribeForQuoteRsp(char *ppInstrumentID[], int nCount) = 0; - - virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0; - - - virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0; -protected: - ~CThostFtdcMdApi(){}; -}; - -#endif +///////////////////////////////////////////////////////////////////////// +///@system һϵͳ +///@company ϺڻϢ޹˾ +///@file ThostFtdcMdApi.h +///@brief ˿ͻ˽ӿ +///@history +///20060106 Ժ ļ +///////////////////////////////////////////////////////////////////////// + +#if !defined(THOST_FTDCMDAPI_H) +#define THOST_FTDCMDAPI_H + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#include "ThostFtdcUserApiStruct.h" + +#if defined(ISLIB) && defined(WIN32) +#ifdef LIB_MD_API_EXPORT +#define MD_API_EXPORT __declspec(dllexport) +#else +#define MD_API_EXPORT __declspec(dllimport) +#endif +#else +#define MD_API_EXPORT +#endif + +class CThostFtdcMdSpi +{ +public: + ///ͻ뽻׺̨ͨʱδ¼ǰ÷á + virtual void OnFrontConnected(){}; + + ///ͻ뽻׺̨ͨӶϿʱ÷áAPIԶӣͻ˿ɲ + ///@param nReason ԭ + /// 0x1001 ʧ + /// 0x1002 дʧ + /// 0x2001 ʱ + /// 0x2002 ʧ + /// 0x2003 յ + virtual void OnFrontDisconnected(int nReason){}; + + ///ʱ档ʱδյʱ÷á + ///@param nTimeLapse ϴνձĵʱ + virtual void OnHeartBeatWarning(int nTimeLapse){}; + + + ///¼Ӧ + virtual void OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///dzӦ + virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///Ӧ + virtual void OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///Ӧ + virtual void OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ȡӦ + virtual void OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯӦ + virtual void OnRspSubForQuoteRsp(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ȡѯӦ + virtual void OnRspUnSubForQuoteRsp(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///֪ͨ + virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData) {}; + + ///ѯ֪ͨ + virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) {}; +}; + +class MD_API_EXPORT CThostFtdcMdApi +{ +public: + ///MdApi + ///@param pszFlowPath ϢļĿ¼ĬΪǰĿ¼ + ///@return UserApi + ///modify for udp marketdata + static CThostFtdcMdApi *CreateFtdcMdApi(const char *pszFlowPath = "", const bool bIsUsingUdp=false, const bool bIsMulticast=false); + + ///ȡAPIİ汾Ϣ + ///@retrun ȡİ汾 + static const char *GetApiVersion(); + + ///ɾӿڶ + ///@remark ʹñӿڶʱ,øúɾӿڶ + virtual void Release() = 0; + + ///ʼ + ///@remark ʼл,ֻеú,ӿڲſʼ + virtual void Init() = 0; + + ///ȴӿ߳̽ + ///@return ߳˳ + virtual int Join() = 0; + + ///ȡǰ + ///@retrun ȡĽ + ///@remark ֻе¼ɹ,ܵõȷĽ + virtual const char *GetTradingDay() = 0; + + ///עǰûַ + ///@param pszFrontAddressǰûַ + ///@remark ַĸʽΪprotocol://ipaddress:port磺tcp://127.0.0.1:17001 + ///@remark tcpЭ飬127.0.0.1ַ17001˿ںš + virtual void RegisterFront(char *pszFrontAddress) = 0; + + ///עַַ + ///@param pszNsAddressַַ + ///@remark ַĸʽΪprotocol://ipaddress:port磺tcp://127.0.0.1:12001 + ///@remark tcpЭ飬127.0.0.1ַ12001˿ںš + ///@remark RegisterNameServerRegisterFront + virtual void RegisterNameServer(char *pszNsAddress) = 0; + + ///עַûϢ + ///@param pFensUserInfoûϢ + virtual void RegisterFensUserInfo(CThostFtdcFensUserInfoField * pFensUserInfo) = 0; + + ///עصӿ + ///@param pSpi Իصӿʵ + virtual void RegisterSpi(CThostFtdcMdSpi *pSpi) = 0; + + ///顣 + ///@param ppInstrumentID ԼID + ///@param nCount Ҫ/˶ĺԼ + ///@remark + virtual int SubscribeMarketData(char *ppInstrumentID[], int nCount) = 0; + + ///˶顣 + ///@param ppInstrumentID ԼID + ///@param nCount Ҫ/˶ĺԼ + ///@remark + virtual int UnSubscribeMarketData(char *ppInstrumentID[], int nCount) = 0; + + ///ѯۡ + ///@param ppInstrumentID ԼID + ///@param nCount Ҫ/˶ĺԼ + ///@remark + virtual int SubscribeForQuoteRsp(char *ppInstrumentID[], int nCount) = 0; + + ///˶ѯۡ + ///@param ppInstrumentID ԼID + ///@param nCount Ҫ/˶ĺԼ + ///@remark + virtual int UnSubscribeForQuoteRsp(char *ppInstrumentID[], int nCount) = 0; + + ///û¼ + virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0; + + + ///dz + virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0; +protected: + ~CThostFtdcMdApi(){}; +}; + +#endif diff --git a/v6.3.6_20160606_api_tradeapi_linux64/ThostFtdcTraderApi.h b/v6.3.15_20190220_tradeapi64_se_windows/ThostFtdcTraderApi.h similarity index 75% rename from v6.3.6_20160606_api_tradeapi_linux64/ThostFtdcTraderApi.h rename to v6.3.15_20190220_tradeapi64_se_windows/ThostFtdcTraderApi.h index d2d3786..df8ebc1 100644 --- a/v6.3.6_20160606_api_tradeapi_linux64/ThostFtdcTraderApi.h +++ b/v6.3.15_20190220_tradeapi64_se_windows/ThostFtdcTraderApi.h @@ -1,474 +1,739 @@ - -#if !defined(THOST_FTDCTRADERAPI_H) -#define THOST_FTDCTRADERAPI_H - -#if _MSC_VER > 1000 -#pragma once -#endif - -#include "ThostFtdcUserApiStruct.h" - -#if defined(ISLIB) && defined(WIN32) -#ifdef LIB_TRADER_API_EXPORT -#define TRADER_API_EXPORT __declspec(dllexport) -#else -#define TRADER_API_EXPORT __declspec(dllimport) -#endif -#else -#define TRADER_API_EXPORT -#endif - -class CThostFtdcTraderSpi -{ -public: - virtual void OnFrontConnected(){}; - - virtual void OnFrontDisconnected(int nReason){}; - - virtual void OnHeartBeatWarning(int nTimeLapse){}; - - virtual void OnRspAuthenticate(CThostFtdcRspAuthenticateField *pRspAuthenticateField, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - - virtual void OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspUserAuthMethod(CThostFtdcRspUserAuthMethodField *pRspUserAuthMethod, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspGenUserCaptcha(CThostFtdcRspGenUserCaptchaField *pRspGenUserCaptcha, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspGenUserText(CThostFtdcRspGenUserTextField *pRspGenUserText, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQueryMaxOrderVolume(CThostFtdcQueryMaxOrderVolumeField *pQueryMaxOrderVolume, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField *pInputOptionSelfCloseAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryOrder(CThostFtdcOrderField *pOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryTrade(CThostFtdcTradeField *pTrade, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryInvestorPosition(CThostFtdcInvestorPositionField *pInvestorPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryInvestor(CThostFtdcInvestorField *pInvestor, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryTradingCode(CThostFtdcTradingCodeField *pTradingCode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryInstrumentMarginRate(CThostFtdcInstrumentMarginRateField *pInstrumentMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryInstrumentCommissionRate(CThostFtdcInstrumentCommissionRateField *pInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryExchange(CThostFtdcExchangeField *pExchange, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryProduct(CThostFtdcProductField *pProduct, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryInstrument(CThostFtdcInstrumentField *pInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQrySettlementInfo(CThostFtdcSettlementInfoField *pSettlementInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryTransferBank(CThostFtdcTransferBankField *pTransferBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryInvestorPositionDetail(CThostFtdcInvestorPositionDetailField *pInvestorPositionDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryNotice(CThostFtdcNoticeField *pNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQrySettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryInvestorPositionCombineDetail(CThostFtdcInvestorPositionCombineDetailField *pInvestorPositionCombineDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryCFMMCTradingAccountKey(CThostFtdcCFMMCTradingAccountKeyField *pCFMMCTradingAccountKey, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryEWarrantOffset(CThostFtdcEWarrantOffsetField *pEWarrantOffset, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryInvestorProductGroupMargin(CThostFtdcInvestorProductGroupMarginField *pInvestorProductGroupMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryExchangeMarginRate(CThostFtdcExchangeMarginRateField *pExchangeMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryExchangeMarginRateAdjust(CThostFtdcExchangeMarginRateAdjustField *pExchangeMarginRateAdjust, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryExchangeRate(CThostFtdcExchangeRateField *pExchangeRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQrySecAgentACIDMap(CThostFtdcSecAgentACIDMapField *pSecAgentACIDMap, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryProductExchRate(CThostFtdcProductExchRateField *pProductExchRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryProductGroup(CThostFtdcProductGroupField *pProductGroup, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryMMInstrumentCommissionRate(CThostFtdcMMInstrumentCommissionRateField *pMMInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryMMOptionInstrCommRate(CThostFtdcMMOptionInstrCommRateField *pMMOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryInstrumentOrderCommRate(CThostFtdcInstrumentOrderCommRateField *pInstrumentOrderCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQrySecAgentTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQrySecAgentCheckMode(CThostFtdcSecAgentCheckModeField *pSecAgentCheckMode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQrySecAgentTradeInfo(CThostFtdcSecAgentTradeInfoField *pSecAgentTradeInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryOptionInstrTradeCost(CThostFtdcOptionInstrTradeCostField *pOptionInstrTradeCost, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryOptionInstrCommRate(CThostFtdcOptionInstrCommRateField *pOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryExecOrder(CThostFtdcExecOrderField *pExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryForQuote(CThostFtdcForQuoteField *pForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryQuote(CThostFtdcQuoteField *pQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryOptionSelfClose(CThostFtdcOptionSelfCloseField *pOptionSelfClose, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryInvestUnit(CThostFtdcInvestUnitField *pInvestUnit, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryCombInstrumentGuard(CThostFtdcCombInstrumentGuardField *pCombInstrumentGuard, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryCombAction(CThostFtdcCombActionField *pCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryTransferSerial(CThostFtdcTransferSerialField *pTransferSerial, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryAccountregister(CThostFtdcAccountregisterField *pAccountregister, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRtnOrder(CThostFtdcOrderField *pOrder) {}; - - virtual void OnRtnTrade(CThostFtdcTradeField *pTrade) {}; - - virtual void OnErrRtnOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnErrRtnOrderAction(CThostFtdcOrderActionField *pOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnRtnInstrumentStatus(CThostFtdcInstrumentStatusField *pInstrumentStatus) {}; - - virtual void OnRtnBulletin(CThostFtdcBulletinField *pBulletin) {}; - - virtual void OnRtnTradingNotice(CThostFtdcTradingNoticeInfoField *pTradingNoticeInfo) {}; - - virtual void OnRtnErrorConditionalOrder(CThostFtdcErrorConditionalOrderField *pErrorConditionalOrder) {}; - - virtual void OnRtnExecOrder(CThostFtdcExecOrderField *pExecOrder) {}; - - virtual void OnErrRtnExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnErrRtnExecOrderAction(CThostFtdcExecOrderActionField *pExecOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnErrRtnForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnRtnQuote(CThostFtdcQuoteField *pQuote) {}; - - virtual void OnErrRtnQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnErrRtnQuoteAction(CThostFtdcQuoteActionField *pQuoteAction, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) {}; - - virtual void OnRtnCFMMCTradingAccountToken(CThostFtdcCFMMCTradingAccountTokenField *pCFMMCTradingAccountToken) {}; - - virtual void OnErrRtnBatchOrderAction(CThostFtdcBatchOrderActionField *pBatchOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnRtnOptionSelfClose(CThostFtdcOptionSelfCloseField *pOptionSelfClose) {}; - - virtual void OnErrRtnOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnErrRtnOptionSelfCloseAction(CThostFtdcOptionSelfCloseActionField *pOptionSelfCloseAction, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnRtnCombAction(CThostFtdcCombActionField *pCombAction) {}; - - virtual void OnErrRtnCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnRspQryContractBank(CThostFtdcContractBankField *pContractBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryParkedOrder(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryTradingNotice(CThostFtdcTradingNoticeField *pTradingNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryBrokerTradingParams(CThostFtdcBrokerTradingParamsField *pBrokerTradingParams, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQryBrokerTradingAlgos(CThostFtdcBrokerTradingAlgosField *pBrokerTradingAlgos, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRtnFromBankToFutureByBank(CThostFtdcRspTransferField *pRspTransfer) {}; - - virtual void OnRtnFromFutureToBankByBank(CThostFtdcRspTransferField *pRspTransfer) {}; - - virtual void OnRtnRepealFromBankToFutureByBank(CThostFtdcRspRepealField *pRspRepeal) {}; - - virtual void OnRtnRepealFromFutureToBankByBank(CThostFtdcRspRepealField *pRspRepeal) {}; - - virtual void OnRtnFromBankToFutureByFuture(CThostFtdcRspTransferField *pRspTransfer) {}; - - virtual void OnRtnFromFutureToBankByFuture(CThostFtdcRspTransferField *pRspTransfer) {}; - - virtual void OnRtnRepealFromBankToFutureByFutureManual(CThostFtdcRspRepealField *pRspRepeal) {}; - - virtual void OnRtnRepealFromFutureToBankByFutureManual(CThostFtdcRspRepealField *pRspRepeal) {}; - - virtual void OnRtnQueryBankBalanceByFuture(CThostFtdcNotifyQueryAccountField *pNotifyQueryAccount) {}; - - virtual void OnErrRtnBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnErrRtnFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnErrRtnRepealBankToFutureByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnErrRtnRepealFutureToBankByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnErrRtnQueryBankBalanceByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo) {}; - - virtual void OnRtnRepealFromBankToFutureByFuture(CThostFtdcRspRepealField *pRspRepeal) {}; - - virtual void OnRtnRepealFromFutureToBankByFuture(CThostFtdcRspRepealField *pRspRepeal) {}; - - virtual void OnRspFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRspQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - virtual void OnRtnOpenAccountByBank(CThostFtdcOpenAccountField *pOpenAccount) {}; - - virtual void OnRtnCancelAccountByBank(CThostFtdcCancelAccountField *pCancelAccount) {}; - - virtual void OnRtnChangeAccountByBank(CThostFtdcChangeAccountField *pChangeAccount) {}; -}; - -class TRADER_API_EXPORT CThostFtdcTraderApi -{ -public: - static CThostFtdcTraderApi *CreateFtdcTraderApi(const char *pszFlowPath = ""); - - static const char *GetApiVersion(); - - virtual void Release() = 0; - - virtual void Init() = 0; - - virtual int Join() = 0; - - virtual const char *GetTradingDay() = 0; - - virtual void RegisterFront(char *pszFrontAddress) = 0; - - virtual void RegisterNameServer(char *pszNsAddress) = 0; - - virtual void RegisterFensUserInfo(CThostFtdcFensUserInfoField * pFensUserInfo) = 0; - - virtual void RegisterSpi(CThostFtdcTraderSpi *pSpi) = 0; - - virtual void SubscribePrivateTopic(THOST_TE_RESUME_TYPE nResumeType) = 0; - - virtual void SubscribePublicTopic(THOST_TE_RESUME_TYPE nResumeType) = 0; - - virtual int ReqAuthenticate(CThostFtdcReqAuthenticateField *pReqAuthenticateField, int nRequestID) = 0; - - virtual int RegisterUserSystemInfo(CThostFtdcUserSystemInfoField *pUserSystemInfo) = 0; - - virtual int SubmitUserSystemInfo(CThostFtdcUserSystemInfoField *pUserSystemInfo) = 0; - - virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0; - - virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0; - - virtual int ReqUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, int nRequestID) = 0; - - virtual int ReqTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, int nRequestID) = 0; - - virtual int ReqUserAuthMethod(CThostFtdcReqUserAuthMethodField *pReqUserAuthMethod, int nRequestID) = 0; - - virtual int ReqGenUserCaptcha(CThostFtdcReqGenUserCaptchaField *pReqGenUserCaptcha, int nRequestID) = 0; - - virtual int ReqGenUserText(CThostFtdcReqGenUserTextField *pReqGenUserText, int nRequestID) = 0; - - virtual int ReqUserLoginWithCaptcha(CThostFtdcReqUserLoginWithCaptchaField *pReqUserLoginWithCaptcha, int nRequestID) = 0; - - virtual int ReqUserLoginWithText(CThostFtdcReqUserLoginWithTextField *pReqUserLoginWithText, int nRequestID) = 0; - - virtual int ReqUserLoginWithOTP(CThostFtdcReqUserLoginWithOTPField *pReqUserLoginWithOTP, int nRequestID) = 0; - - virtual int ReqOrderInsert(CThostFtdcInputOrderField *pInputOrder, int nRequestID) = 0; - - virtual int ReqParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, int nRequestID) = 0; - - virtual int ReqParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, int nRequestID) = 0; - - virtual int ReqOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, int nRequestID) = 0; - - virtual int ReqQueryMaxOrderVolume(CThostFtdcQueryMaxOrderVolumeField *pQueryMaxOrderVolume, int nRequestID) = 0; - - virtual int ReqSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, int nRequestID) = 0; - - virtual int ReqRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, int nRequestID) = 0; - - virtual int ReqRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, int nRequestID) = 0; - - virtual int ReqExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, int nRequestID) = 0; - - virtual int ReqExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, int nRequestID) = 0; - - virtual int ReqForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, int nRequestID) = 0; - - virtual int ReqQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, int nRequestID) = 0; - - virtual int ReqQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, int nRequestID) = 0; - - virtual int ReqBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, int nRequestID) = 0; - - virtual int ReqOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, int nRequestID) = 0; - - virtual int ReqOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField *pInputOptionSelfCloseAction, int nRequestID) = 0; - - virtual int ReqCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, int nRequestID) = 0; - - virtual int ReqQryOrder(CThostFtdcQryOrderField *pQryOrder, int nRequestID) = 0; - - virtual int ReqQryTrade(CThostFtdcQryTradeField *pQryTrade, int nRequestID) = 0; - - virtual int ReqQryInvestorPosition(CThostFtdcQryInvestorPositionField *pQryInvestorPosition, int nRequestID) = 0; - - virtual int ReqQryTradingAccount(CThostFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0; - - virtual int ReqQryInvestor(CThostFtdcQryInvestorField *pQryInvestor, int nRequestID) = 0; - - virtual int ReqQryTradingCode(CThostFtdcQryTradingCodeField *pQryTradingCode, int nRequestID) = 0; - - virtual int ReqQryInstrumentMarginRate(CThostFtdcQryInstrumentMarginRateField *pQryInstrumentMarginRate, int nRequestID) = 0; - - virtual int ReqQryInstrumentCommissionRate(CThostFtdcQryInstrumentCommissionRateField *pQryInstrumentCommissionRate, int nRequestID) = 0; - - virtual int ReqQryExchange(CThostFtdcQryExchangeField *pQryExchange, int nRequestID) = 0; - - virtual int ReqQryProduct(CThostFtdcQryProductField *pQryProduct, int nRequestID) = 0; - - virtual int ReqQryInstrument(CThostFtdcQryInstrumentField *pQryInstrument, int nRequestID) = 0; - - virtual int ReqQryDepthMarketData(CThostFtdcQryDepthMarketDataField *pQryDepthMarketData, int nRequestID) = 0; - - virtual int ReqQrySettlementInfo(CThostFtdcQrySettlementInfoField *pQrySettlementInfo, int nRequestID) = 0; - - virtual int ReqQryTransferBank(CThostFtdcQryTransferBankField *pQryTransferBank, int nRequestID) = 0; - - virtual int ReqQryInvestorPositionDetail(CThostFtdcQryInvestorPositionDetailField *pQryInvestorPositionDetail, int nRequestID) = 0; - - virtual int ReqQryNotice(CThostFtdcQryNoticeField *pQryNotice, int nRequestID) = 0; - - virtual int ReqQrySettlementInfoConfirm(CThostFtdcQrySettlementInfoConfirmField *pQrySettlementInfoConfirm, int nRequestID) = 0; - - virtual int ReqQryInvestorPositionCombineDetail(CThostFtdcQryInvestorPositionCombineDetailField *pQryInvestorPositionCombineDetail, int nRequestID) = 0; - - virtual int ReqQryCFMMCTradingAccountKey(CThostFtdcQryCFMMCTradingAccountKeyField *pQryCFMMCTradingAccountKey, int nRequestID) = 0; - - virtual int ReqQryEWarrantOffset(CThostFtdcQryEWarrantOffsetField *pQryEWarrantOffset, int nRequestID) = 0; - - virtual int ReqQryInvestorProductGroupMargin(CThostFtdcQryInvestorProductGroupMarginField *pQryInvestorProductGroupMargin, int nRequestID) = 0; - - virtual int ReqQryExchangeMarginRate(CThostFtdcQryExchangeMarginRateField *pQryExchangeMarginRate, int nRequestID) = 0; - - virtual int ReqQryExchangeMarginRateAdjust(CThostFtdcQryExchangeMarginRateAdjustField *pQryExchangeMarginRateAdjust, int nRequestID) = 0; - - virtual int ReqQryExchangeRate(CThostFtdcQryExchangeRateField *pQryExchangeRate, int nRequestID) = 0; - - virtual int ReqQrySecAgentACIDMap(CThostFtdcQrySecAgentACIDMapField *pQrySecAgentACIDMap, int nRequestID) = 0; - - virtual int ReqQryProductExchRate(CThostFtdcQryProductExchRateField *pQryProductExchRate, int nRequestID) = 0; - - virtual int ReqQryProductGroup(CThostFtdcQryProductGroupField *pQryProductGroup, int nRequestID) = 0; - - virtual int ReqQryMMInstrumentCommissionRate(CThostFtdcQryMMInstrumentCommissionRateField *pQryMMInstrumentCommissionRate, int nRequestID) = 0; - - virtual int ReqQryMMOptionInstrCommRate(CThostFtdcQryMMOptionInstrCommRateField *pQryMMOptionInstrCommRate, int nRequestID) = 0; - - virtual int ReqQryInstrumentOrderCommRate(CThostFtdcQryInstrumentOrderCommRateField *pQryInstrumentOrderCommRate, int nRequestID) = 0; - - virtual int ReqQrySecAgentTradingAccount(CThostFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0; - - virtual int ReqQrySecAgentCheckMode(CThostFtdcQrySecAgentCheckModeField *pQrySecAgentCheckMode, int nRequestID) = 0; - - virtual int ReqQrySecAgentTradeInfo(CThostFtdcQrySecAgentTradeInfoField *pQrySecAgentTradeInfo, int nRequestID) = 0; - - virtual int ReqQryOptionInstrTradeCost(CThostFtdcQryOptionInstrTradeCostField *pQryOptionInstrTradeCost, int nRequestID) = 0; - - virtual int ReqQryOptionInstrCommRate(CThostFtdcQryOptionInstrCommRateField *pQryOptionInstrCommRate, int nRequestID) = 0; - - virtual int ReqQryExecOrder(CThostFtdcQryExecOrderField *pQryExecOrder, int nRequestID) = 0; - - virtual int ReqQryForQuote(CThostFtdcQryForQuoteField *pQryForQuote, int nRequestID) = 0; - - virtual int ReqQryQuote(CThostFtdcQryQuoteField *pQryQuote, int nRequestID) = 0; - - virtual int ReqQryOptionSelfClose(CThostFtdcQryOptionSelfCloseField *pQryOptionSelfClose, int nRequestID) = 0; - - virtual int ReqQryInvestUnit(CThostFtdcQryInvestUnitField *pQryInvestUnit, int nRequestID) = 0; - - virtual int ReqQryCombInstrumentGuard(CThostFtdcQryCombInstrumentGuardField *pQryCombInstrumentGuard, int nRequestID) = 0; - - virtual int ReqQryCombAction(CThostFtdcQryCombActionField *pQryCombAction, int nRequestID) = 0; - - virtual int ReqQryTransferSerial(CThostFtdcQryTransferSerialField *pQryTransferSerial, int nRequestID) = 0; - - virtual int ReqQryAccountregister(CThostFtdcQryAccountregisterField *pQryAccountregister, int nRequestID) = 0; - - virtual int ReqQryContractBank(CThostFtdcQryContractBankField *pQryContractBank, int nRequestID) = 0; - - virtual int ReqQryParkedOrder(CThostFtdcQryParkedOrderField *pQryParkedOrder, int nRequestID) = 0; - - virtual int ReqQryParkedOrderAction(CThostFtdcQryParkedOrderActionField *pQryParkedOrderAction, int nRequestID) = 0; - - virtual int ReqQryTradingNotice(CThostFtdcQryTradingNoticeField *pQryTradingNotice, int nRequestID) = 0; - - virtual int ReqQryBrokerTradingParams(CThostFtdcQryBrokerTradingParamsField *pQryBrokerTradingParams, int nRequestID) = 0; - - virtual int ReqQryBrokerTradingAlgos(CThostFtdcQryBrokerTradingAlgosField *pQryBrokerTradingAlgos, int nRequestID) = 0; - - virtual int ReqQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, int nRequestID) = 0; - - virtual int ReqFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, int nRequestID) = 0; - - virtual int ReqFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, int nRequestID) = 0; - - virtual int ReqQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, int nRequestID) = 0; -protected: - ~CThostFtdcTraderApi(){}; -}; - -#endif +///////////////////////////////////////////////////////////////////////// +///@system һϵͳ +///@company ϺڻϢ޹˾ +///@file ThostFtdcTraderApi.h +///@brief ˿ͻ˽ӿ +///@history +///20060106 Ժ ļ +///////////////////////////////////////////////////////////////////////// + +#if !defined(THOST_FTDCTRADERAPI_H) +#define THOST_FTDCTRADERAPI_H + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#include "ThostFtdcUserApiStruct.h" + +#if defined(ISLIB) && defined(WIN32) +#ifdef LIB_TRADER_API_EXPORT +#define TRADER_API_EXPORT __declspec(dllexport) +#else +#define TRADER_API_EXPORT __declspec(dllimport) +#endif +#else +#define TRADER_API_EXPORT +#endif + +class CThostFtdcTraderSpi +{ +public: + ///ͻ뽻׺̨ͨʱδ¼ǰ÷á + virtual void OnFrontConnected(){}; + + ///ͻ뽻׺̨ͨӶϿʱ÷áAPIԶӣͻ˿ɲ + ///@param nReason ԭ + /// 0x1001 ʧ + /// 0x1002 дʧ + /// 0x2001 ʱ + /// 0x2002 ʧ + /// 0x2003 յ + virtual void OnFrontDisconnected(int nReason){}; + + ///ʱ档ʱδյʱ÷á + ///@param nTimeLapse ϴνձĵʱ + virtual void OnHeartBeatWarning(int nTimeLapse){}; + + ///ͻ֤Ӧ + virtual void OnRspAuthenticate(CThostFtdcRspAuthenticateField *pRspAuthenticateField, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + + ///¼Ӧ + virtual void OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///dzӦ + virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ûӦ + virtual void OnRspUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ʽ˻Ӧ + virtual void OnRspTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯûǰֵ֧֤ģʽĻظ + virtual void OnRspUserAuthMethod(CThostFtdcRspUserAuthMethodField *pRspUserAuthMethod, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ȡͼ֤Ļظ + virtual void OnRspGenUserCaptcha(CThostFtdcRspGenUserCaptchaField *pRspGenUserCaptcha, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ȡ֤Ļظ + virtual void OnRspGenUserText(CThostFtdcRspGenUserTextField *pRspGenUserText, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///¼Ӧ + virtual void OnRspOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///Ԥ¼Ӧ + virtual void OnRspParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///Ԥ񳷵¼Ӧ + virtual void OnRspParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///Ӧ + virtual void OnRspOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯ󱨵Ӧ + virtual void OnRspQueryMaxOrderVolume(CThostFtdcQueryMaxOrderVolumeField *pQueryMaxOrderVolume, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///Ͷ߽ȷӦ + virtual void OnRspSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ɾԤӦ + virtual void OnRspRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ɾԤ񳷵Ӧ + virtual void OnRspRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ִ¼Ӧ + virtual void OnRspExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ִӦ + virtual void OnRspExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯ¼Ӧ + virtual void OnRspForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///¼Ӧ + virtual void OnRspQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///۲Ӧ + virtual void OnRspQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///Ӧ + virtual void OnRspBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ȨԶԳ¼Ӧ + virtual void OnRspOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ȨԶԳӦ + virtual void OnRspOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField *pInputOptionSelfCloseAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///¼Ӧ + virtual void OnRspCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯӦ + virtual void OnRspQryOrder(CThostFtdcOrderField *pOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯɽӦ + virtual void OnRspQryTrade(CThostFtdcTradeField *pTrade, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯͶֲ߳Ӧ + virtual void OnRspQryInvestorPosition(CThostFtdcInvestorPositionField *pInvestorPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯʽ˻Ӧ + virtual void OnRspQryTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯͶӦ + virtual void OnRspQryInvestor(CThostFtdcInvestorField *pInvestor, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯױӦ + virtual void OnRspQryTradingCode(CThostFtdcTradingCodeField *pTradingCode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯԼ֤Ӧ + virtual void OnRspQryInstrumentMarginRate(CThostFtdcInstrumentMarginRateField *pInstrumentMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯԼӦ + virtual void OnRspQryInstrumentCommissionRate(CThostFtdcInstrumentCommissionRateField *pInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯӦ + virtual void OnRspQryExchange(CThostFtdcExchangeField *pExchange, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯƷӦ + virtual void OnRspQryProduct(CThostFtdcProductField *pProduct, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯԼӦ + virtual void OnRspQryInstrument(CThostFtdcInstrumentField *pInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯӦ + virtual void OnRspQryDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯͶ߽Ӧ + virtual void OnRspQrySettlementInfo(CThostFtdcSettlementInfoField *pSettlementInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯתӦ + virtual void OnRspQryTransferBank(CThostFtdcTransferBankField *pTransferBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯͶֲ߳ϸӦ + virtual void OnRspQryInvestorPositionDetail(CThostFtdcInvestorPositionDetailField *pInvestorPositionDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯͻ֪ͨӦ + virtual void OnRspQryNotice(CThostFtdcNoticeField *pNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯϢȷӦ + virtual void OnRspQrySettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯͶֲ߳ϸӦ + virtual void OnRspQryInvestorPositionCombineDetail(CThostFtdcInvestorPositionCombineDetailField *pInvestorPositionCombineDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯ֤ϵͳ͹˾ʽ˻ԿӦ + virtual void OnRspQryCFMMCTradingAccountKey(CThostFtdcCFMMCTradingAccountKeyField *pCFMMCTradingAccountKey, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯֵ۵ϢӦ + virtual void OnRspQryEWarrantOffset(CThostFtdcEWarrantOffsetField *pEWarrantOffset, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯͶƷ/Ʒֱ֤Ӧ + virtual void OnRspQryInvestorProductGroupMargin(CThostFtdcInvestorProductGroupMarginField *pInvestorProductGroupMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯ֤Ӧ + virtual void OnRspQryExchangeMarginRate(CThostFtdcExchangeMarginRateField *pExchangeMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯ֤Ӧ + virtual void OnRspQryExchangeMarginRateAdjust(CThostFtdcExchangeMarginRateAdjustField *pExchangeMarginRateAdjust, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯӦ + virtual void OnRspQryExchangeRate(CThostFtdcExchangeRateField *pExchangeRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯԱȨӦ + virtual void OnRspQrySecAgentACIDMap(CThostFtdcSecAgentACIDMapField *pSecAgentACIDMap, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯƷۻ + virtual void OnRspQryProductExchRate(CThostFtdcProductExchRateField *pProductExchRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯƷ + virtual void OnRspQryProductGroup(CThostFtdcProductGroupField *pProductGroup, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯ̺ԼӦ + virtual void OnRspQryMMInstrumentCommissionRate(CThostFtdcMMInstrumentCommissionRateField *pMMInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯȨԼӦ + virtual void OnRspQryMMOptionInstrCommRate(CThostFtdcMMOptionInstrCommRateField *pMMOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯӦ + virtual void OnRspQryInstrumentOrderCommRate(CThostFtdcInstrumentOrderCommRateField *pInstrumentOrderCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯʽ˻Ӧ + virtual void OnRspQrySecAgentTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯʽУģʽӦ + virtual void OnRspQrySecAgentCheckMode(CThostFtdcSecAgentCheckModeField *pSecAgentCheckMode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯϢӦ + virtual void OnRspQrySecAgentTradeInfo(CThostFtdcSecAgentTradeInfoField *pSecAgentTradeInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯȨ׳ɱӦ + virtual void OnRspQryOptionInstrTradeCost(CThostFtdcOptionInstrTradeCostField *pOptionInstrTradeCost, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯȨԼӦ + virtual void OnRspQryOptionInstrCommRate(CThostFtdcOptionInstrCommRateField *pOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯִӦ + virtual void OnRspQryExecOrder(CThostFtdcExecOrderField *pExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯѯӦ + virtual void OnRspQryForQuote(CThostFtdcForQuoteField *pForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯӦ + virtual void OnRspQryQuote(CThostFtdcQuoteField *pQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯȨԶԳӦ + virtual void OnRspQryOptionSelfClose(CThostFtdcOptionSelfCloseField *pOptionSelfClose, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯͶʵԪӦ + virtual void OnRspQryInvestUnit(CThostFtdcInvestUnitField *pInvestUnit, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯϺԼȫϵӦ + virtual void OnRspQryCombInstrumentGuard(CThostFtdcCombInstrumentGuardField *pCombInstrumentGuard, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯӦ + virtual void OnRspQryCombAction(CThostFtdcCombActionField *pCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯתˮӦ + virtual void OnRspQryTransferSerial(CThostFtdcTransferSerialField *pTransferSerial, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯǩԼϵӦ + virtual void OnRspQryAccountregister(CThostFtdcAccountregisterField *pAccountregister, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///Ӧ + virtual void OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///֪ͨ + virtual void OnRtnOrder(CThostFtdcOrderField *pOrder) {}; + + ///ɽ֪ͨ + virtual void OnRtnTrade(CThostFtdcTradeField *pTrade) {}; + + ///¼ر + virtual void OnErrRtnOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo) {}; + + ///ر + virtual void OnErrRtnOrderAction(CThostFtdcOrderActionField *pOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; + + ///Լ״̬֪ͨ + virtual void OnRtnInstrumentStatus(CThostFtdcInstrumentStatusField *pInstrumentStatus) {}; + + ///֪ͨ + virtual void OnRtnBulletin(CThostFtdcBulletinField *pBulletin) {}; + + ///֪ͨ + virtual void OnRtnTradingNotice(CThostFtdcTradingNoticeInfoField *pTradingNoticeInfo) {}; + + ///ʾУ + virtual void OnRtnErrorConditionalOrder(CThostFtdcErrorConditionalOrderField *pErrorConditionalOrder) {}; + + ///ִ֪ͨ + virtual void OnRtnExecOrder(CThostFtdcExecOrderField *pExecOrder) {}; + + ///ִ¼ر + virtual void OnErrRtnExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo) {}; + + ///ִر + virtual void OnErrRtnExecOrderAction(CThostFtdcExecOrderActionField *pExecOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; + + ///ѯ¼ر + virtual void OnErrRtnForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo) {}; + + ///֪ͨ + virtual void OnRtnQuote(CThostFtdcQuoteField *pQuote) {}; + + ///¼ر + virtual void OnErrRtnQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo) {}; + + ///۲ر + virtual void OnErrRtnQuoteAction(CThostFtdcQuoteActionField *pQuoteAction, CThostFtdcRspInfoField *pRspInfo) {}; + + ///ѯ֪ͨ + virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) {}; + + ///֤û + virtual void OnRtnCFMMCTradingAccountToken(CThostFtdcCFMMCTradingAccountTokenField *pCFMMCTradingAccountToken) {}; + + ///ر + virtual void OnErrRtnBatchOrderAction(CThostFtdcBatchOrderActionField *pBatchOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; + + ///ȨԶԳ֪ͨ + virtual void OnRtnOptionSelfClose(CThostFtdcOptionSelfCloseField *pOptionSelfClose) {}; + + ///ȨԶԳ¼ر + virtual void OnErrRtnOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, CThostFtdcRspInfoField *pRspInfo) {}; + + ///ȨԶԳر + virtual void OnErrRtnOptionSelfCloseAction(CThostFtdcOptionSelfCloseActionField *pOptionSelfCloseAction, CThostFtdcRspInfoField *pRspInfo) {}; + + ///֪ͨ + virtual void OnRtnCombAction(CThostFtdcCombActionField *pCombAction) {}; + + ///¼ر + virtual void OnErrRtnCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo) {}; + + ///ѯǩԼӦ + virtual void OnRspQryContractBank(CThostFtdcContractBankField *pContractBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯԤӦ + virtual void OnRspQryParkedOrder(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯԤ񳷵Ӧ + virtual void OnRspQryParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯ֪ͨӦ + virtual void OnRspQryTradingNotice(CThostFtdcTradingNoticeField *pTradingNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯ͹˾ײӦ + virtual void OnRspQryBrokerTradingParams(CThostFtdcBrokerTradingParamsField *pBrokerTradingParams, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯ͹˾㷨Ӧ + virtual void OnRspQryBrokerTradingAlgos(CThostFtdcBrokerTradingAlgosField *pBrokerTradingAlgos, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ѯû + virtual void OnRspQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///зʽתڻ֪ͨ + virtual void OnRtnFromBankToFutureByBank(CThostFtdcRspTransferField *pRspTransfer) {}; + + ///зڻʽת֪ͨ + virtual void OnRtnFromFutureToBankByBank(CThostFtdcRspTransferField *pRspTransfer) {}; + + ///зתڻ֪ͨ + virtual void OnRtnRepealFromBankToFutureByBank(CThostFtdcRspRepealField *pRspRepeal) {}; + + ///зڻת֪ͨ + virtual void OnRtnRepealFromFutureToBankByBank(CThostFtdcRspRepealField *pRspRepeal) {}; + + ///ڻʽתڻ֪ͨ + virtual void OnRtnFromBankToFutureByFuture(CThostFtdcRspTransferField *pRspTransfer) {}; + + ///ڻڻʽת֪ͨ + virtual void OnRtnFromFutureToBankByFuture(CThostFtdcRspTransferField *pRspTransfer) {}; + + ///ϵͳʱڻֹתڻдϺ̷ص֪ͨ + virtual void OnRtnRepealFromBankToFutureByFutureManual(CThostFtdcRspRepealField *pRspRepeal) {}; + + ///ϵͳʱڻֹڻתдϺ̷ص֪ͨ + virtual void OnRtnRepealFromFutureToBankByFutureManual(CThostFtdcRspRepealField *pRspRepeal) {}; + + ///ڻѯ֪ͨ + virtual void OnRtnQueryBankBalanceByFuture(CThostFtdcNotifyQueryAccountField *pNotifyQueryAccount) {}; + + ///ڻʽתڻر + virtual void OnErrRtnBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) {}; + + ///ڻڻʽתдر + virtual void OnErrRtnFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) {}; + + ///ϵͳʱڻֹתڻر + virtual void OnErrRtnRepealBankToFutureByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) {}; + + ///ϵͳʱڻֹڻתдر + virtual void OnErrRtnRepealFutureToBankByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) {}; + + ///ڻѯر + virtual void OnErrRtnQueryBankBalanceByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo) {}; + + ///ڻתڻдϺ̷ص֪ͨ + virtual void OnRtnRepealFromBankToFutureByFuture(CThostFtdcRspRepealField *pRspRepeal) {}; + + ///ڻڻתдϺ̷ص֪ͨ + virtual void OnRtnRepealFromFutureToBankByFuture(CThostFtdcRspRepealField *pRspRepeal) {}; + + ///ڻʽתڻӦ + virtual void OnRspFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ڻڻʽתӦ + virtual void OnRspFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///ڻѯӦ + virtual void OnRspQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///зڿ֪ͨ + virtual void OnRtnOpenAccountByBank(CThostFtdcOpenAccountField *pOpenAccount) {}; + + ///з֪ͨ + virtual void OnRtnCancelAccountByBank(CThostFtdcCancelAccountField *pCancelAccount) {}; + + ///з˺֪ͨ + virtual void OnRtnChangeAccountByBank(CThostFtdcChangeAccountField *pChangeAccount) {}; +}; + +class TRADER_API_EXPORT CThostFtdcTraderApi +{ +public: + ///TraderApi + ///@param pszFlowPath ϢļĿ¼ĬΪǰĿ¼ + ///@return UserApi + static CThostFtdcTraderApi *CreateFtdcTraderApi(const char *pszFlowPath = ""); + + ///ȡAPIİ汾Ϣ + ///@retrun ȡİ汾 + static const char *GetApiVersion(); + + ///ɾӿڶ + ///@remark ʹñӿڶʱ,øúɾӿڶ + virtual void Release() = 0; + + ///ʼ + ///@remark ʼл,ֻеú,ӿڲſʼ + virtual void Init() = 0; + + ///ȴӿ߳̽ + ///@return ߳˳ + virtual int Join() = 0; + + ///ȡǰ + ///@retrun ȡĽ + ///@remark ֻе¼ɹ,ܵõȷĽ + virtual const char *GetTradingDay() = 0; + + ///עǰûַ + ///@param pszFrontAddressǰûַ + ///@remark ַĸʽΪprotocol://ipaddress:port磺tcp://127.0.0.1:17001 + ///@remark tcpЭ飬127.0.0.1ַ17001˿ںš + virtual void RegisterFront(char *pszFrontAddress) = 0; + + ///עַַ + ///@param pszNsAddressַַ + ///@remark ַĸʽΪprotocol://ipaddress:port磺tcp://127.0.0.1:12001 + ///@remark tcpЭ飬127.0.0.1ַ12001˿ںš + ///@remark RegisterNameServerRegisterFront + virtual void RegisterNameServer(char *pszNsAddress) = 0; + + ///עַûϢ + ///@param pFensUserInfoûϢ + virtual void RegisterFensUserInfo(CThostFtdcFensUserInfoField * pFensUserInfo) = 0; + + ///עصӿ + ///@param pSpi Իصӿʵ + virtual void RegisterSpi(CThostFtdcTraderSpi *pSpi) = 0; + + ///˽ + ///@param nResumeType ˽شʽ + /// THOST_TERT_RESTART:ӱտʼش + /// THOST_TERT_RESUME:ϴյ + /// THOST_TERT_QUICK:ֻ͵¼˽ + ///@remark ÷ҪInitǰá򲻻յ˽ݡ + virtual void SubscribePrivateTopic(THOST_TE_RESUME_TYPE nResumeType) = 0; + + ///Ĺ + ///@param nResumeType شʽ + /// THOST_TERT_RESTART:ӱտʼش + /// THOST_TERT_RESUME:ϴյ + /// THOST_TERT_QUICK:ֻ͵¼󹫹 + ///@remark ÷ҪInitǰá򲻻յݡ + virtual void SubscribePublicTopic(THOST_TE_RESUME_TYPE nResumeType) = 0; + + ///ͻ֤ + virtual int ReqAuthenticate(CThostFtdcReqAuthenticateField *pReqAuthenticateField, int nRequestID) = 0; + + ///עûնϢм̷ģʽ + ///Ҫն֤ɹû¼ǰøýӿ + virtual int RegisterUserSystemInfo(CThostFtdcUserSystemInfoField *pUserSystemInfo) = 0; + + ///ϱûնϢм̷Ա¼ģʽ + ///Ա¼󣬿ԶεøýӿϱͻϢ + virtual int SubmitUserSystemInfo(CThostFtdcUserSystemInfoField *pUserSystemInfo) = 0; + + ///û¼ + virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0; + + ///dz + virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0; + + ///û + virtual int ReqUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, int nRequestID) = 0; + + ///ʽ˻ + virtual int ReqTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, int nRequestID) = 0; + + ///ѯûǰֵ֧֤ģʽ + virtual int ReqUserAuthMethod(CThostFtdcReqUserAuthMethodField *pReqUserAuthMethod, int nRequestID) = 0; + + ///ûȡͼ֤ + virtual int ReqGenUserCaptcha(CThostFtdcReqGenUserCaptchaField *pReqGenUserCaptcha, int nRequestID) = 0; + + ///ûȡ֤ + virtual int ReqGenUserText(CThostFtdcReqGenUserTextField *pReqGenUserText, int nRequestID) = 0; + + ///ûͼƬ֤ĵ½ + virtual int ReqUserLoginWithCaptcha(CThostFtdcReqUserLoginWithCaptchaField *pReqUserLoginWithCaptcha, int nRequestID) = 0; + + ///ûж֤ĵ½ + virtual int ReqUserLoginWithText(CThostFtdcReqUserLoginWithTextField *pReqUserLoginWithText, int nRequestID) = 0; + + ///ûж̬ĵ½ + virtual int ReqUserLoginWithOTP(CThostFtdcReqUserLoginWithOTPField *pReqUserLoginWithOTP, int nRequestID) = 0; + + ///¼ + virtual int ReqOrderInsert(CThostFtdcInputOrderField *pInputOrder, int nRequestID) = 0; + + ///Ԥ¼ + virtual int ReqParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, int nRequestID) = 0; + + ///Ԥ񳷵¼ + virtual int ReqParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, int nRequestID) = 0; + + /// + virtual int ReqOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, int nRequestID) = 0; + + ///ѯ󱨵 + virtual int ReqQueryMaxOrderVolume(CThostFtdcQueryMaxOrderVolumeField *pQueryMaxOrderVolume, int nRequestID) = 0; + + ///Ͷ߽ȷ + virtual int ReqSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, int nRequestID) = 0; + + ///ɾԤ + virtual int ReqRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, int nRequestID) = 0; + + ///ɾԤ񳷵 + virtual int ReqRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, int nRequestID) = 0; + + ///ִ¼ + virtual int ReqExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, int nRequestID) = 0; + + ///ִ + virtual int ReqExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, int nRequestID) = 0; + + ///ѯ¼ + virtual int ReqForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, int nRequestID) = 0; + + ///¼ + virtual int ReqQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, int nRequestID) = 0; + + ///۲ + virtual int ReqQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, int nRequestID) = 0; + + /// + virtual int ReqBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, int nRequestID) = 0; + + ///ȨԶԳ¼ + virtual int ReqOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, int nRequestID) = 0; + + ///ȨԶԳ + virtual int ReqOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField *pInputOptionSelfCloseAction, int nRequestID) = 0; + + ///¼ + virtual int ReqCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, int nRequestID) = 0; + + ///ѯ + virtual int ReqQryOrder(CThostFtdcQryOrderField *pQryOrder, int nRequestID) = 0; + + ///ѯɽ + virtual int ReqQryTrade(CThostFtdcQryTradeField *pQryTrade, int nRequestID) = 0; + + ///ѯͶֲ߳ + virtual int ReqQryInvestorPosition(CThostFtdcQryInvestorPositionField *pQryInvestorPosition, int nRequestID) = 0; + + ///ѯʽ˻ + virtual int ReqQryTradingAccount(CThostFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0; + + ///ѯͶ + virtual int ReqQryInvestor(CThostFtdcQryInvestorField *pQryInvestor, int nRequestID) = 0; + + ///ѯױ + virtual int ReqQryTradingCode(CThostFtdcQryTradingCodeField *pQryTradingCode, int nRequestID) = 0; + + ///ѯԼ֤ + virtual int ReqQryInstrumentMarginRate(CThostFtdcQryInstrumentMarginRateField *pQryInstrumentMarginRate, int nRequestID) = 0; + + ///ѯԼ + virtual int ReqQryInstrumentCommissionRate(CThostFtdcQryInstrumentCommissionRateField *pQryInstrumentCommissionRate, int nRequestID) = 0; + + ///ѯ + virtual int ReqQryExchange(CThostFtdcQryExchangeField *pQryExchange, int nRequestID) = 0; + + ///ѯƷ + virtual int ReqQryProduct(CThostFtdcQryProductField *pQryProduct, int nRequestID) = 0; + + ///ѯԼ + virtual int ReqQryInstrument(CThostFtdcQryInstrumentField *pQryInstrument, int nRequestID) = 0; + + ///ѯ + virtual int ReqQryDepthMarketData(CThostFtdcQryDepthMarketDataField *pQryDepthMarketData, int nRequestID) = 0; + + ///ѯͶ߽ + virtual int ReqQrySettlementInfo(CThostFtdcQrySettlementInfoField *pQrySettlementInfo, int nRequestID) = 0; + + ///ѯת + virtual int ReqQryTransferBank(CThostFtdcQryTransferBankField *pQryTransferBank, int nRequestID) = 0; + + ///ѯͶֲ߳ϸ + virtual int ReqQryInvestorPositionDetail(CThostFtdcQryInvestorPositionDetailField *pQryInvestorPositionDetail, int nRequestID) = 0; + + ///ѯͻ֪ͨ + virtual int ReqQryNotice(CThostFtdcQryNoticeField *pQryNotice, int nRequestID) = 0; + + ///ѯϢȷ + virtual int ReqQrySettlementInfoConfirm(CThostFtdcQrySettlementInfoConfirmField *pQrySettlementInfoConfirm, int nRequestID) = 0; + + ///ѯͶֲ߳ϸ + virtual int ReqQryInvestorPositionCombineDetail(CThostFtdcQryInvestorPositionCombineDetailField *pQryInvestorPositionCombineDetail, int nRequestID) = 0; + + ///ѯ֤ϵͳ͹˾ʽ˻Կ + virtual int ReqQryCFMMCTradingAccountKey(CThostFtdcQryCFMMCTradingAccountKeyField *pQryCFMMCTradingAccountKey, int nRequestID) = 0; + + ///ѯֵ۵Ϣ + virtual int ReqQryEWarrantOffset(CThostFtdcQryEWarrantOffsetField *pQryEWarrantOffset, int nRequestID) = 0; + + ///ѯͶƷ/Ʒֱ֤ + virtual int ReqQryInvestorProductGroupMargin(CThostFtdcQryInvestorProductGroupMarginField *pQryInvestorProductGroupMargin, int nRequestID) = 0; + + ///ѯ֤ + virtual int ReqQryExchangeMarginRate(CThostFtdcQryExchangeMarginRateField *pQryExchangeMarginRate, int nRequestID) = 0; + + ///ѯ֤ + virtual int ReqQryExchangeMarginRateAdjust(CThostFtdcQryExchangeMarginRateAdjustField *pQryExchangeMarginRateAdjust, int nRequestID) = 0; + + ///ѯ + virtual int ReqQryExchangeRate(CThostFtdcQryExchangeRateField *pQryExchangeRate, int nRequestID) = 0; + + ///ѯԱȨ + virtual int ReqQrySecAgentACIDMap(CThostFtdcQrySecAgentACIDMapField *pQrySecAgentACIDMap, int nRequestID) = 0; + + ///ѯƷۻ + virtual int ReqQryProductExchRate(CThostFtdcQryProductExchRateField *pQryProductExchRate, int nRequestID) = 0; + + ///ѯƷ + virtual int ReqQryProductGroup(CThostFtdcQryProductGroupField *pQryProductGroup, int nRequestID) = 0; + + ///ѯ̺Լ + virtual int ReqQryMMInstrumentCommissionRate(CThostFtdcQryMMInstrumentCommissionRateField *pQryMMInstrumentCommissionRate, int nRequestID) = 0; + + ///ѯȨԼ + virtual int ReqQryMMOptionInstrCommRate(CThostFtdcQryMMOptionInstrCommRateField *pQryMMOptionInstrCommRate, int nRequestID) = 0; + + ///ѯ + virtual int ReqQryInstrumentOrderCommRate(CThostFtdcQryInstrumentOrderCommRateField *pQryInstrumentOrderCommRate, int nRequestID) = 0; + + ///ѯʽ˻ + virtual int ReqQrySecAgentTradingAccount(CThostFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0; + + ///ѯʽУģʽ + virtual int ReqQrySecAgentCheckMode(CThostFtdcQrySecAgentCheckModeField *pQrySecAgentCheckMode, int nRequestID) = 0; + + ///ѯϢ + virtual int ReqQrySecAgentTradeInfo(CThostFtdcQrySecAgentTradeInfoField *pQrySecAgentTradeInfo, int nRequestID) = 0; + + ///ѯȨ׳ɱ + virtual int ReqQryOptionInstrTradeCost(CThostFtdcQryOptionInstrTradeCostField *pQryOptionInstrTradeCost, int nRequestID) = 0; + + ///ѯȨԼ + virtual int ReqQryOptionInstrCommRate(CThostFtdcQryOptionInstrCommRateField *pQryOptionInstrCommRate, int nRequestID) = 0; + + ///ѯִ + virtual int ReqQryExecOrder(CThostFtdcQryExecOrderField *pQryExecOrder, int nRequestID) = 0; + + ///ѯѯ + virtual int ReqQryForQuote(CThostFtdcQryForQuoteField *pQryForQuote, int nRequestID) = 0; + + ///ѯ + virtual int ReqQryQuote(CThostFtdcQryQuoteField *pQryQuote, int nRequestID) = 0; + + ///ѯȨԶԳ + virtual int ReqQryOptionSelfClose(CThostFtdcQryOptionSelfCloseField *pQryOptionSelfClose, int nRequestID) = 0; + + ///ѯͶʵԪ + virtual int ReqQryInvestUnit(CThostFtdcQryInvestUnitField *pQryInvestUnit, int nRequestID) = 0; + + ///ѯϺԼȫϵ + virtual int ReqQryCombInstrumentGuard(CThostFtdcQryCombInstrumentGuardField *pQryCombInstrumentGuard, int nRequestID) = 0; + + ///ѯ + virtual int ReqQryCombAction(CThostFtdcQryCombActionField *pQryCombAction, int nRequestID) = 0; + + ///ѯתˮ + virtual int ReqQryTransferSerial(CThostFtdcQryTransferSerialField *pQryTransferSerial, int nRequestID) = 0; + + ///ѯǩԼϵ + virtual int ReqQryAccountregister(CThostFtdcQryAccountregisterField *pQryAccountregister, int nRequestID) = 0; + + ///ѯǩԼ + virtual int ReqQryContractBank(CThostFtdcQryContractBankField *pQryContractBank, int nRequestID) = 0; + + ///ѯԤ + virtual int ReqQryParkedOrder(CThostFtdcQryParkedOrderField *pQryParkedOrder, int nRequestID) = 0; + + ///ѯԤ񳷵 + virtual int ReqQryParkedOrderAction(CThostFtdcQryParkedOrderActionField *pQryParkedOrderAction, int nRequestID) = 0; + + ///ѯ֪ͨ + virtual int ReqQryTradingNotice(CThostFtdcQryTradingNoticeField *pQryTradingNotice, int nRequestID) = 0; + + ///ѯ͹˾ײ + virtual int ReqQryBrokerTradingParams(CThostFtdcQryBrokerTradingParamsField *pQryBrokerTradingParams, int nRequestID) = 0; + + ///ѯ͹˾㷨 + virtual int ReqQryBrokerTradingAlgos(CThostFtdcQryBrokerTradingAlgosField *pQryBrokerTradingAlgos, int nRequestID) = 0; + + ///ѯû + virtual int ReqQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, int nRequestID) = 0; + + ///ڻʽתڻ + virtual int ReqFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, int nRequestID) = 0; + + ///ڻڻʽת + virtual int ReqFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, int nRequestID) = 0; + + ///ڻѯ + virtual int ReqQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, int nRequestID) = 0; +protected: + ~CThostFtdcTraderApi(){}; +}; + +#endif diff --git a/v6.3.15_20190220_tradeapi64_se_windows/ThostFtdcUserApiDataType.h b/v6.3.15_20190220_tradeapi64_se_windows/ThostFtdcUserApiDataType.h new file mode 100644 index 0000000..fe239c0 --- /dev/null +++ b/v6.3.15_20190220_tradeapi64_se_windows/ThostFtdcUserApiDataType.h @@ -0,0 +1,6663 @@ +///////////////////////////////////////////////////////////////////////// +///@system һϵͳ +///@company ϺڻϢ޹˾ +///@file ThostFtdcUserApiDataType.h +///@brief ˿ͻ˽ӿʹõҵ +///@history +///20060106 Ժ ļ +///////////////////////////////////////////////////////////////////////// + +#ifndef THOST_FTDCDATATYPE_H +#define THOST_FTDCDATATYPE_H + +enum THOST_TE_RESUME_TYPE +{ + THOST_TERT_RESTART = 0, + THOST_TERT_RESUME, + THOST_TERT_QUICK +}; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTraderIDTypeһԱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTraderIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorIDTypeһͶߴ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerIDTypeһ͹˾ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerAbbrTypeһ͹˾ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerAbbrType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerNameTypeһ͹˾ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeInstIDTypeһԼڽĴ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeInstIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderRefTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrderRefType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParticipantIDTypeһԱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParticipantIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserIDTypeһû +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserIDType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPasswordTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPasswordType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientIDTypeһױ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentIDTypeһԼ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentCodeTypeһԼʶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentCodeType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarketIDTypeһг +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMarketIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductNameTypeһƷ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProductNameType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeAbbrTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeAbbrType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeFlagTypeһ־ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMacAddressTypeһMacַ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMacAddressType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemIDTypeһϵͳ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSystemIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangePropertyTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_EXP_Normal '0' +///ݳɽɱ +#define THOST_FTDC_EXP_GenOrderByTrade '1' + +typedef char TThostFtdcExchangePropertyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimeTypeһʱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTimeType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLongTimeTypeһʱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongTimeType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentNameTypeһԼ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentNameType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementGroupIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettlementGroupIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderSysIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrderSysIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeIDTypeһɽ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommandTypeTypeһDB +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommandTypeType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIPAddressTypeһIPַ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIPAddressType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIPPortTypeһIP˿ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcIPPortType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductInfoTypeһƷϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProductInfoType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProtocolInfoTypeһЭϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProtocolInfoType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessUnitTypeһҵԪ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBusinessUnitType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDepositSeqNoTypeһˮ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDepositSeqNoType[15]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIdentifiedCardNoTypeһ֤ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIdentifiedCardNoType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIdCardTypeTypeһ֤ +///////////////////////////////////////////////////////////////////////// +///֯ +#define THOST_FTDC_ICT_EID '0' +///й֤ +#define THOST_FTDC_ICT_IDCard '1' +///֤ +#define THOST_FTDC_ICT_OfficerIDCard '2' +///֤ +#define THOST_FTDC_ICT_PoliceIDCard '3' +///ʿ֤ +#define THOST_FTDC_ICT_SoldierIDCard '4' +///ڲ +#define THOST_FTDC_ICT_HouseholdRegister '5' +/// +#define THOST_FTDC_ICT_Passport '6' +///̨֤ +#define THOST_FTDC_ICT_TaiwanCompatriotIDCard '7' +///֤ +#define THOST_FTDC_ICT_HomeComingCard '8' +///Ӫҵִպ +#define THOST_FTDC_ICT_LicenseNo '9' +///˰ǼǺ/˰ID +#define THOST_FTDC_ICT_TaxNo 'A' +///۰ľڵ֤ͨ +#define THOST_FTDC_ICT_HMMainlandTravelPermit 'B' +///̨½֤ͨ +#define THOST_FTDC_ICT_TwMainlandTravelPermit 'C' +/// +#define THOST_FTDC_ICT_DrivingLicense 'D' +///籣ID +#define THOST_FTDC_ICT_SocialID 'F' +///֤ +#define THOST_FTDC_ICT_LocalID 'G' +///ҵǼ֤ +#define THOST_FTDC_ICT_BusinessRegistration 'H' +///۰Ծ֤ +#define THOST_FTDC_ICT_HKMCIDCard 'I' +///п֤ +#define THOST_FTDC_ICT_AccountsPermits 'J' +///þ֤ +#define THOST_FTDC_ICT_FrgPrmtRdCard 'K' +///ʹܲƷ +#define THOST_FTDC_ICT_CptMngPrdLetter 'L' +///֤ +#define THOST_FTDC_ICT_OtherCard 'x' + +typedef char TThostFtdcIdCardTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderLocalIDTypeһر +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrderLocalIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserNameTypeһû +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPartyNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPartyNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcErrorMsgTypeһϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcErrorMsgType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFieldNameTypeһֶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFieldNameType[2049]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFieldContentTypeһֶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFieldContentType[2049]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemNameTypeһϵͳ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSystemNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcContentTypeһϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcContentType[501]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorRangeTypeһͶ߷Χ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_IR_All '1' +///Ͷ +#define THOST_FTDC_IR_Group '2' +///һͶ +#define THOST_FTDC_IR_Single '3' + +typedef char TThostFtdcInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDepartmentRangeTypeһͶ߷Χ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_DR_All '1' +///ܹ֯ +#define THOST_FTDC_DR_Group '2' +///һͶ +#define THOST_FTDC_DR_Single '3' + +typedef char TThostFtdcDepartmentRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataSyncStatusTypeһͬ״̬ +///////////////////////////////////////////////////////////////////////// +///δͬ +#define THOST_FTDC_DS_Asynchronous '1' +///ͬ +#define THOST_FTDC_DS_Synchronizing '2' +///ͬ +#define THOST_FTDC_DS_Synchronized '3' + +typedef char TThostFtdcDataSyncStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerDataSyncStatusTypeһ͹˾ͬ״̬ +///////////////////////////////////////////////////////////////////////// +///ͬ +#define THOST_FTDC_BDS_Synchronized '1' +///ͬ +#define THOST_FTDC_BDS_Synchronizing '2' + +typedef char TThostFtdcBrokerDataSyncStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeConnectStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///ûκ +#define THOST_FTDC_ECS_NoConnection '1' +///ѾԼѯ +#define THOST_FTDC_ECS_QryInstrumentSent '2' +///ѾȡϢ +#define THOST_FTDC_ECS_GotInformation '9' + +typedef char TThostFtdcExchangeConnectStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTraderConnectStatusTypeһԱ״̬ +///////////////////////////////////////////////////////////////////////// +///ûκ +#define THOST_FTDC_TCS_NotConnected '1' +///Ѿ +#define THOST_FTDC_TCS_Connected '2' +///ѾԼѯ +#define THOST_FTDC_TCS_QryInstrumentSent '3' +///˽ +#define THOST_FTDC_TCS_SubPrivateFlow '4' + +typedef char TThostFtdcTraderConnectStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionCodeTypeһܴ +///////////////////////////////////////////////////////////////////////// +///첽 +#define THOST_FTDC_FC_DataAsync '1' +///ǿûdz +#define THOST_FTDC_FC_ForceUserLogout '2' +///û +#define THOST_FTDC_FC_UserPasswordUpdate '3' +///͹˾ +#define THOST_FTDC_FC_BrokerPasswordUpdate '4' +///Ͷ߿ +#define THOST_FTDC_FC_InvestorPasswordUpdate '5' +/// +#define THOST_FTDC_FC_OrderInsert '6' +/// +#define THOST_FTDC_FC_OrderAction '7' +///ͬϵͳ +#define THOST_FTDC_FC_SyncSystemData '8' +///ͬ͹˾ +#define THOST_FTDC_FC_SyncBrokerData '9' +///ͬ͹˾ +#define THOST_FTDC_FC_BachSyncBrokerData 'A' +///ѯ +#define THOST_FTDC_FC_SuperQuery 'B' +///Ԥ񱨵 +#define THOST_FTDC_FC_ParkedOrderInsert 'C' +///Ԥ񱨵 +#define THOST_FTDC_FC_ParkedOrderAction 'D' +///̬ͬ +#define THOST_FTDC_FC_SyncOTP 'E' +///ɾδ֪ +#define THOST_FTDC_FC_DeleteOrder 'F' + +typedef char TThostFtdcFunctionCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerFunctionCodeTypeһ͹˾ܴ +///////////////////////////////////////////////////////////////////////// +///ǿûdz +#define THOST_FTDC_BFC_ForceUserLogout '1' +///û +#define THOST_FTDC_BFC_UserPasswordUpdate '2' +///ͬ͹˾ +#define THOST_FTDC_BFC_SyncBrokerData '3' +///ͬ͹˾ +#define THOST_FTDC_BFC_BachSyncBrokerData '4' +/// +#define THOST_FTDC_BFC_OrderInsert '5' +/// +#define THOST_FTDC_BFC_OrderAction '6' +///ȫѯ +#define THOST_FTDC_BFC_AllQuery '7' +///ϵͳܣ/dz/޸ +#define THOST_FTDC_BFC_log 'a' +///ѯѯݣԼȳ +#define THOST_FTDC_BFC_BaseQry 'b' +///ײѯɽί +#define THOST_FTDC_BFC_TradeQry 'c' +///׹ܣ +#define THOST_FTDC_BFC_Trade 'd' +///ת +#define THOST_FTDC_BFC_Virement 'e' +///ռ +#define THOST_FTDC_BFC_Risk 'f' +///ѯ/ѯỰ˵ +#define THOST_FTDC_BFC_Session 'g' +///֪ͨ +#define THOST_FTDC_BFC_RiskNoticeCtl 'h' +///֪ͨ +#define THOST_FTDC_BFC_RiskNotice 'i' +///쿴͹˾ʽȨ +#define THOST_FTDC_BFC_BrokerDeposit 'j' +///ʽѯ +#define THOST_FTDC_BFC_QueryFund 'k' +///ѯ +#define THOST_FTDC_BFC_QueryOrder 'l' +///ɽѯ +#define THOST_FTDC_BFC_QueryTrade 'm' +///ֲֲѯ +#define THOST_FTDC_BFC_QueryPosition 'n' +///ѯ +#define THOST_FTDC_BFC_QueryMarketData 'o' +///û¼ѯ +#define THOST_FTDC_BFC_QueryUserEvent 'p' +///֪ͨѯ +#define THOST_FTDC_BFC_QueryRiskNotify 'q' +///ѯ +#define THOST_FTDC_BFC_QueryFundChange 'r' +///ͶϢѯ +#define THOST_FTDC_BFC_QueryInvestor 's' +///ױѯ +#define THOST_FTDC_BFC_QueryTradingCode 't' +///ǿƽ +#define THOST_FTDC_BFC_ForceClose 'u' +///ѹ +#define THOST_FTDC_BFC_PressTest 'v' +///Ȩ淴 +#define THOST_FTDC_BFC_RemainCalc 'w' +///ֱֲָ֤ +#define THOST_FTDC_BFC_NetPositionInd 'x' +///Ԥ +#define THOST_FTDC_BFC_RiskPredict 'y' +///ݵ +#define THOST_FTDC_BFC_DataExport 'z' +///ָ +#define THOST_FTDC_BFC_RiskTargetSetup 'A' +///Ԥ +#define THOST_FTDC_BFC_MarketDataWarn 'B' +///ҵ֪ͨѯ +#define THOST_FTDC_BFC_QryBizNotice 'C' +///ҵ֪ͨģ +#define THOST_FTDC_BFC_CfgBizNotice 'D' +///̬ͬ +#define THOST_FTDC_BFC_SyncOTP 'E' +///ҵ֪ͨ +#define THOST_FTDC_BFC_SendBizNotice 'F' +///ռ׼ +#define THOST_FTDC_BFC_CfgRiskLevelStd 'G' +///նӦ +#define THOST_FTDC_BFC_TbCommand 'H' +///ɾδ֪ +#define THOST_FTDC_BFC_DeleteOrder 'J' +///Ԥ񱨵 +#define THOST_FTDC_BFC_ParkedOrderInsert 'K' +///Ԥ񱨵 +#define THOST_FTDC_BFC_ParkedOrderAction 'L' +///ʽ𲻹Ȩ +#define THOST_FTDC_BFC_ExecOrderNoCheck 'M' +///ָ +#define THOST_FTDC_BFC_Designate 'N' +///֤ȯ +#define THOST_FTDC_BFC_StockDisposal 'O' +///ϯλʽԤ +#define THOST_FTDC_BFC_BrokerDepositWarn 'Q' +///ҲԤ +#define THOST_FTDC_BFC_CoverWarn 'S' +///Ȩ +#define THOST_FTDC_BFC_PreExecOrder 'T' +///Ȩշ +#define THOST_FTDC_BFC_ExecOrderRisk 'P' +///ֲ޶Ԥ +#define THOST_FTDC_BFC_PosiLimitWarn 'U' +///ֲ޶ѯ +#define THOST_FTDC_BFC_QryPosiLimit 'V' +///ǩǩ +#define THOST_FTDC_BFC_FBSign 'W' +///ǩԼԼ +#define THOST_FTDC_BFC_FBAccount 'X' + +typedef char TThostFtdcBrokerFunctionCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderActionStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///Ѿύ +#define THOST_FTDC_OAS_Submitted 'a' +///Ѿ +#define THOST_FTDC_OAS_Accepted 'b' +///Ѿܾ +#define THOST_FTDC_OAS_Rejected 'c' + +typedef char TThostFtdcOrderActionStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///ȫɽ +#define THOST_FTDC_OST_AllTraded '0' +///ֳɽڶ +#define THOST_FTDC_OST_PartTradedQueueing '1' +///ֳɽڶ +#define THOST_FTDC_OST_PartTradedNotQueueing '2' +///δɽڶ +#define THOST_FTDC_OST_NoTradeQueueing '3' +///δɽڶ +#define THOST_FTDC_OST_NoTradeNotQueueing '4' +/// +#define THOST_FTDC_OST_Canceled '5' +///δ֪ +#define THOST_FTDC_OST_Unknown 'a' +///δ +#define THOST_FTDC_OST_NotTouched 'b' +///Ѵ +#define THOST_FTDC_OST_Touched 'c' + +typedef char TThostFtdcOrderStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderSubmitStatusTypeһύ״̬ +///////////////////////////////////////////////////////////////////////// +///Ѿύ +#define THOST_FTDC_OSS_InsertSubmitted '0' +///Ѿύ +#define THOST_FTDC_OSS_CancelSubmitted '1' +///޸Ѿύ +#define THOST_FTDC_OSS_ModifySubmitted '2' +///Ѿ +#define THOST_FTDC_OSS_Accepted '3' +///Ѿܾ +#define THOST_FTDC_OSS_InsertRejected '4' +///Ѿܾ +#define THOST_FTDC_OSS_CancelRejected '5' +///ĵѾܾ +#define THOST_FTDC_OSS_ModifyRejected '6' + +typedef char TThostFtdcOrderSubmitStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionDateTypeһֲ +///////////////////////////////////////////////////////////////////////// +///ճֲ +#define THOST_FTDC_PSD_Today '1' +///ʷֲ +#define THOST_FTDC_PSD_History '2' + +typedef char TThostFtdcPositionDateType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionDateTypeTypeһֲ +///////////////////////////////////////////////////////////////////////// +///ʹʷֲ +#define THOST_FTDC_PDT_UseHistory '1' +///ʹʷֲ +#define THOST_FTDC_PDT_NoUseHistory '2' + +typedef char TThostFtdcPositionDateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingRoleTypeһ׽ɫ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_ER_Broker '1' +///Ӫ +#define THOST_FTDC_ER_Host '2' +/// +#define THOST_FTDC_ER_Maker '3' + +typedef char TThostFtdcTradingRoleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductClassTypeһƷ +///////////////////////////////////////////////////////////////////////// +///ڻ +#define THOST_FTDC_PC_Futures '1' +///ڻȨ +#define THOST_FTDC_PC_Options '2' +/// +#define THOST_FTDC_PC_Combination '3' +/// +#define THOST_FTDC_PC_Spot '4' +///ת +#define THOST_FTDC_PC_EFP '5' +///ֻȨ +#define THOST_FTDC_PC_SpotOption '6' + +typedef char TThostFtdcProductClassType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstLifePhaseTypeһԼ״̬ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_IP_NotStart '0' +/// +#define THOST_FTDC_IP_Started '1' +///ͣ +#define THOST_FTDC_IP_Pause '2' +/// +#define THOST_FTDC_IP_Expired '3' + +typedef char TThostFtdcInstLifePhaseType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDirectionTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_D_Buy '0' +/// +#define THOST_FTDC_D_Sell '1' + +typedef char TThostFtdcDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionTypeTypeһֲ +///////////////////////////////////////////////////////////////////////// +///ֲ +#define THOST_FTDC_PT_Net '1' +///ۺϳֲ +#define THOST_FTDC_PT_Gross '2' + +typedef char TThostFtdcPositionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPosiDirectionTypeһֲֶշ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_PD_Net '1' +///ͷ +#define THOST_FTDC_PD_Long '2' +///ͷ +#define THOST_FTDC_PD_Short '3' + +typedef char TThostFtdcPosiDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysSettlementStatusTypeһϵͳ״̬ +///////////////////////////////////////////////////////////////////////// +///Ծ +#define THOST_FTDC_SS_NonActive '1' +/// +#define THOST_FTDC_SS_Startup '2' +/// +#define THOST_FTDC_SS_Operating '3' +/// +#define THOST_FTDC_SS_Settlement '4' +/// +#define THOST_FTDC_SS_SettlementFinished '5' + +typedef char TThostFtdcSysSettlementStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRatioAttrTypeһ +///////////////////////////////////////////////////////////////////////// +///׷ +#define THOST_FTDC_RA_Trade '0' +/// +#define THOST_FTDC_RA_Settlement '1' + +typedef char TThostFtdcRatioAttrType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHedgeFlagTypeһͶױ־ +///////////////////////////////////////////////////////////////////////// +///Ͷ +#define THOST_FTDC_HF_Speculation '1' +/// +#define THOST_FTDC_HF_Arbitrage '2' +///ױ +#define THOST_FTDC_HF_Hedge '3' +/// +#define THOST_FTDC_HF_MarketMaker '5' +///һͶڶױ ר +#define THOST_FTDC_HF_SpecHedge '6' +///һױڶͶ ר +#define THOST_FTDC_HF_HedgeSpec '7' + +typedef char TThostFtdcHedgeFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillHedgeFlagTypeһͶױ־ +///////////////////////////////////////////////////////////////////////// +///Ͷ +#define THOST_FTDC_BHF_Speculation '1' +/// +#define THOST_FTDC_BHF_Arbitrage '2' +///ױ +#define THOST_FTDC_BHF_Hedge '3' + +typedef char TThostFtdcBillHedgeFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientIDTypeTypeһױ +///////////////////////////////////////////////////////////////////////// +///Ͷ +#define THOST_FTDC_CIDT_Speculation '1' +/// +#define THOST_FTDC_CIDT_Arbitrage '2' +///ױ +#define THOST_FTDC_CIDT_Hedge '3' +/// +#define THOST_FTDC_CIDT_MarketMaker '5' + +typedef char TThostFtdcClientIDTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderPriceTypeTypeһ۸ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_OPT_AnyPrice '1' +///޼ +#define THOST_FTDC_OPT_LimitPrice '2' +///ż +#define THOST_FTDC_OPT_BestPrice '3' +///¼ +#define THOST_FTDC_OPT_LastPrice '4' +///¼۸ϸ1ticks +#define THOST_FTDC_OPT_LastPricePlusOneTicks '5' +///¼۸ϸ2ticks +#define THOST_FTDC_OPT_LastPricePlusTwoTicks '6' +///¼۸ϸ3ticks +#define THOST_FTDC_OPT_LastPricePlusThreeTicks '7' +///һ +#define THOST_FTDC_OPT_AskPrice1 '8' +///һ۸ϸ1ticks +#define THOST_FTDC_OPT_AskPrice1PlusOneTicks '9' +///һ۸ϸ2ticks +#define THOST_FTDC_OPT_AskPrice1PlusTwoTicks 'A' +///һ۸ϸ3ticks +#define THOST_FTDC_OPT_AskPrice1PlusThreeTicks 'B' +///һ +#define THOST_FTDC_OPT_BidPrice1 'C' +///һ۸ϸ1ticks +#define THOST_FTDC_OPT_BidPrice1PlusOneTicks 'D' +///һ۸ϸ2ticks +#define THOST_FTDC_OPT_BidPrice1PlusTwoTicks 'E' +///һ۸ϸ3ticks +#define THOST_FTDC_OPT_BidPrice1PlusThreeTicks 'F' +///嵵 +#define THOST_FTDC_OPT_FiveLevelPrice 'G' + +typedef char TThostFtdcOrderPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOffsetFlagTypeһƽ־ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_OF_Open '0' +///ƽ +#define THOST_FTDC_OF_Close '1' +///ǿƽ +#define THOST_FTDC_OF_ForceClose '2' +///ƽ +#define THOST_FTDC_OF_CloseToday '3' +///ƽ +#define THOST_FTDC_OF_CloseYesterday '4' +///ǿ +#define THOST_FTDC_OF_ForceOff '5' +///ǿƽ +#define THOST_FTDC_OF_LocalForceClose '6' + +typedef char TThostFtdcOffsetFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForceCloseReasonTypeһǿƽԭ +///////////////////////////////////////////////////////////////////////// +///ǿƽ +#define THOST_FTDC_FCC_NotForceClose '0' +///ʽ +#define THOST_FTDC_FCC_LackDeposit '1' +///ͻ +#define THOST_FTDC_FCC_ClientOverPositionLimit '2' +///Ա +#define THOST_FTDC_FCC_MemberOverPositionLimit '3' +///ֲַ +#define THOST_FTDC_FCC_NotMultiple '4' +///Υ +#define THOST_FTDC_FCC_Violation '5' +/// +#define THOST_FTDC_FCC_Other '6' +///Ȼٽ +#define THOST_FTDC_FCC_PersonDeliv '7' + +typedef char TThostFtdcForceCloseReasonType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderTypeTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_ORDT_Normal '0' +/// +#define THOST_FTDC_ORDT_DeriveFromQuote '1' +/// +#define THOST_FTDC_ORDT_DeriveFromCombination '2' +///ϱ +#define THOST_FTDC_ORDT_Combination '3' +/// +#define THOST_FTDC_ORDT_ConditionalOrder '4' +/// +#define THOST_FTDC_ORDT_Swap '5' +///ڽ׳ɽ +#define THOST_FTDC_ORDT_DeriveFromBlockTrade '6' +///תֳɽ +#define THOST_FTDC_ORDT_DeriveFromEFPTrade '7' + +typedef char TThostFtdcOrderTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimeConditionTypeһЧ +///////////////////////////////////////////////////////////////////////// +///ɣ +#define THOST_FTDC_TC_IOC '1' +///Ч +#define THOST_FTDC_TC_GFS '2' +///Ч +#define THOST_FTDC_TC_GFD '3' +///ָǰЧ +#define THOST_FTDC_TC_GTD '4' +///ǰЧ +#define THOST_FTDC_TC_GTC '5' +///ϾЧ +#define THOST_FTDC_TC_GFA '6' + +typedef char TThostFtdcTimeConditionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVolumeConditionTypeһɽ +///////////////////////////////////////////////////////////////////////// +///κ +#define THOST_FTDC_VC_AV '1' +///С +#define THOST_FTDC_VC_MV '2' +///ȫ +#define THOST_FTDC_VC_CV '3' + +typedef char TThostFtdcVolumeConditionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcContingentConditionTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_CC_Immediately '1' +///ֹ +#define THOST_FTDC_CC_Touch '2' +///ֹӮ +#define THOST_FTDC_CC_TouchProfit '3' +///Ԥ +#define THOST_FTDC_CC_ParkedOrder '4' +///¼۴ +#define THOST_FTDC_CC_LastPriceGreaterThanStopPrice '5' +///¼۴ڵ +#define THOST_FTDC_CC_LastPriceGreaterEqualStopPrice '6' +///¼С +#define THOST_FTDC_CC_LastPriceLesserThanStopPrice '7' +///¼Сڵ +#define THOST_FTDC_CC_LastPriceLesserEqualStopPrice '8' +///һ۴ +#define THOST_FTDC_CC_AskPriceGreaterThanStopPrice '9' +///һ۴ڵ +#define THOST_FTDC_CC_AskPriceGreaterEqualStopPrice 'A' +///һС +#define THOST_FTDC_CC_AskPriceLesserThanStopPrice 'B' +///һСڵ +#define THOST_FTDC_CC_AskPriceLesserEqualStopPrice 'C' +///һ۴ +#define THOST_FTDC_CC_BidPriceGreaterThanStopPrice 'D' +///һ۴ڵ +#define THOST_FTDC_CC_BidPriceGreaterEqualStopPrice 'E' +///һС +#define THOST_FTDC_CC_BidPriceLesserThanStopPrice 'F' +///һСڵ +#define THOST_FTDC_CC_BidPriceLesserEqualStopPrice 'H' + +typedef char TThostFtdcContingentConditionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcActionFlagTypeһ־ +///////////////////////////////////////////////////////////////////////// +///ɾ +#define THOST_FTDC_AF_Delete '0' +///޸ +#define THOST_FTDC_AF_Modify '3' + +typedef char TThostFtdcActionFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingRightTypeһȨ +///////////////////////////////////////////////////////////////////////// +///Խ +#define THOST_FTDC_TR_Allow '0' +///ֻƽ +#define THOST_FTDC_TR_CloseOnly '1' +///ܽ +#define THOST_FTDC_TR_Forbidden '2' + +typedef char TThostFtdcTradingRightType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderSourceTypeһԴ +///////////////////////////////////////////////////////////////////////// +///Բ +#define THOST_FTDC_OSRC_Participant '0' +///ԹԱ +#define THOST_FTDC_OSRC_Administrator '1' + +typedef char TThostFtdcOrderSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeTypeTypeһɽ +///////////////////////////////////////////////////////////////////////// +///ϳֲֲΪһֲ,ʼӦ͵ijֲ +#define THOST_FTDC_TRDT_SplitCombination '#' +///ͨɽ +#define THOST_FTDC_TRDT_Common '0' +///Ȩִ +#define THOST_FTDC_TRDT_OptionsExecution '1' +///OTCɽ +#define THOST_FTDC_TRDT_OTC '2' +///תɽ +#define THOST_FTDC_TRDT_EFPDerived '3' +///ɽ +#define THOST_FTDC_TRDT_CombinationDerived '4' +///ڽ׳ɽ +#define THOST_FTDC_TRDT_BlockTrade '5' + +typedef char TThostFtdcTradeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriceSourceTypeһɽԴ +///////////////////////////////////////////////////////////////////////// +///ǰɽ +#define THOST_FTDC_PSRC_LastPrice '0' +///ίм +#define THOST_FTDC_PSRC_Buy '1' +///ίм +#define THOST_FTDC_PSRC_Sell '2' +///ɽ +#define THOST_FTDC_PSRC_OTC '3' + +typedef char TThostFtdcPriceSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentStatusTypeһԼ״̬ +///////////////////////////////////////////////////////////////////////// +///ǰ +#define THOST_FTDC_IS_BeforeTrading '0' +///ǽ +#define THOST_FTDC_IS_NoTrading '1' +/// +#define THOST_FTDC_IS_Continous '2' +///Ͼ۱ +#define THOST_FTDC_IS_AuctionOrdering '3' +///Ͼۼ۸ƽ +#define THOST_FTDC_IS_AuctionBalance '4' +///Ͼ۴ +#define THOST_FTDC_IS_AuctionMatch '5' +/// +#define THOST_FTDC_IS_Closed '6' + +typedef char TThostFtdcInstrumentStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstStatusEnterReasonTypeһƷֽ뽻״̬ԭ +///////////////////////////////////////////////////////////////////////// +///Զл +#define THOST_FTDC_IER_Automatic '1' +///ֶл +#define THOST_FTDC_IER_Manual '2' +///۶ +#define THOST_FTDC_IER_Fuse '3' + +typedef char TThostFtdcInstStatusEnterReasonType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderActionRefTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcOrderActionRefType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstallCountTypeһװ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcInstallCountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstallIDTypeһװ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcInstallIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcErrorIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcErrorIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSettlementIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVolumeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcVolumeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFrontIDTypeһǰñ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFrontIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSessionIDTypeһỰ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSessionIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceNoTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSequenceNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommandNoTypeһDB +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCommandNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMillisecTypeһʱ䣨룩 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcMillisecType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVolumeMultipleTypeһԼ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcVolumeMultipleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingSegmentSNTypeһ׽׶α +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTradingSegmentSNType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRequestIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRequestIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcYearTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcYearType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMonthTypeһ· +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcMonthType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBoolTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcBoolType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriceTypeһ۸ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcPriceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombOffsetFlagTypeһϿƽ־ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombOffsetFlagType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombHedgeFlagTypeһͶױ־ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombHedgeFlagType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRatioTypeһ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcRatioType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMoneyTypeһʽ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLargeVolumeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcLargeVolumeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceSeriesTypeһϵк +///////////////////////////////////////////////////////////////////////// +typedef short TThostFtdcSequenceSeriesType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommPhaseNoTypeһͨѶʱα +///////////////////////////////////////////////////////////////////////// +typedef short TThostFtdcCommPhaseNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceLabelTypeһб +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSequenceLabelType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUnderlyingMultipleTypeһƷ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcUnderlyingMultipleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriorityTypeһȼ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcPriorityType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcContractCodeTypeһͬ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcContractCodeType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCityTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCityType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIsStockTypeһǷ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIsStockType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcChannelTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcChannelType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAddressTypeһͨѶַ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAddressType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcZipCodeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcZipCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTelephoneTypeһϵ绰 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTelephoneType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFaxTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFaxType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMobileTypeһֻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMobileType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEMailTypeһʼ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEMailType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMemoTypeһע +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMemoType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCompanyCodeTypeһҵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCompanyCodeType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWebsiteTypeһվַ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWebsiteType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTaxNoTypeһ˰ǼǺ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTaxNoType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBatchStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///δϴ +#define THOST_FTDC_BS_NoUpload '1' +///ϴ +#define THOST_FTDC_BS_Uploaded '2' +///ʧ +#define THOST_FTDC_BS_Failed '3' + +typedef char TThostFtdcBatchStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyIDTypeһԴ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPropertyIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPropertyNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLicenseNoTypeһӪҵִպ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLicenseNoType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentIDTypeһ˴ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentGroupIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentGroupIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentGroupNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentGroupNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnStyleTypeһƷַʽ +///////////////////////////////////////////////////////////////////////// +///Ʒ +#define THOST_FTDC_RS_All '1' +///Ʒ +#define THOST_FTDC_RS_ByProduct '2' + +typedef char TThostFtdcReturnStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnPatternTypeһģʽ +///////////////////////////////////////////////////////////////////////// +///ɽ +#define THOST_FTDC_RP_ByVolume '1' +/// +#define THOST_FTDC_RP_ByFeeOnHand '2' + +typedef char TThostFtdcReturnPatternType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnLevelTypeһ +///////////////////////////////////////////////////////////////////////// +///1 +#define THOST_FTDC_RL_Level1 '1' +///2 +#define THOST_FTDC_RL_Level2 '2' +///3 +#define THOST_FTDC_RL_Level3 '3' +///4 +#define THOST_FTDC_RL_Level4 '4' +///5 +#define THOST_FTDC_RL_Level5 '5' +///6 +#define THOST_FTDC_RL_Level6 '6' +///7 +#define THOST_FTDC_RL_Level7 '7' +///8 +#define THOST_FTDC_RL_Level8 '8' +///9 +#define THOST_FTDC_RL_Level9 '9' + +typedef char TThostFtdcReturnLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnStandardTypeһ׼ +///////////////////////////////////////////////////////////////////////// +///ֽ׶η +#define THOST_FTDC_RSD_ByPeriod '1' +///ijһ׼ +#define THOST_FTDC_RSD_ByStandard '2' + +typedef char TThostFtdcReturnStandardType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMortgageTypeTypeһѺ +///////////////////////////////////////////////////////////////////////// +///ʳ +#define THOST_FTDC_MT_Out '0' +/// +#define THOST_FTDC_MT_In '1' + +typedef char TThostFtdcMortgageTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorSettlementParamIDTypeһͶ߽ +///////////////////////////////////////////////////////////////////////// +///Ѻ +#define THOST_FTDC_ISPI_MortgageRatio '4' +///֤㷨 +#define THOST_FTDC_ISPI_MarginWay '5' +///㵥ǷѺ +#define THOST_FTDC_ISPI_BillDeposit '9' + +typedef char TThostFtdcInvestorSettlementParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeSettlementParamIDTypeһ +///////////////////////////////////////////////////////////////////////// +///Ѻ +#define THOST_FTDC_ESPI_MortgageRatio '1' +///ʽ +#define THOST_FTDC_ESPI_OtherFundItem '2' +///ʽ뽻 +#define THOST_FTDC_ESPI_OtherFundImport '3' +///нͿý +#define THOST_FTDC_ESPI_CFFEXMinPrepa '6' +///֣㷽ʽ +#define THOST_FTDC_ESPI_CZCESettlementType '7' +///ȡʽ +#define THOST_FTDC_ESPI_ExchDelivFeeMode '9' +///Ͷ߽ȡʽ +#define THOST_FTDC_ESPI_DelivFeeMode '0' +///֣ϳֱֲ֤ȡʽ +#define THOST_FTDC_ESPI_CZCEComMarginType 'A' +///֤ǷŻ +#define THOST_FTDC_ESPI_DceComMarginType 'B' +///ֵȨ֤Żݱ +#define THOST_FTDC_ESPI_OptOutDisCountRate 'a' +///ͱϵ +#define THOST_FTDC_ESPI_OptMiniGuarantee 'b' + +typedef char TThostFtdcExchangeSettlementParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemParamIDTypeһϵͳ +///////////////////////////////////////////////////////////////////////// +///ͶߴС +#define THOST_FTDC_SPI_InvestorIDMinLength '1' +///ͶʺŴС +#define THOST_FTDC_SPI_AccountIDMinLength '2' +///Ͷ߿Ĭϵ¼Ȩ +#define THOST_FTDC_SPI_UserRightLogon '3' +///Ͷ߽׽㵥ɽܷʽ +#define THOST_FTDC_SPI_SettlementBillTrade '4' +///ͳһ½ױ뷽ʽ +#define THOST_FTDC_SPI_TradingCode '5' +///Ƿжϴδ˵ijͷʽ +#define THOST_FTDC_SPI_CheckFund '6' +///ǷģȨ +#define THOST_FTDC_SPI_CommModelRight '7' +///Ƿñ֤ģȨ +#define THOST_FTDC_SPI_MarginModelRight '9' +///Ƿ淶ûܼ +#define THOST_FTDC_SPI_IsStandardActive '8' +///ϴĽļ· +#define THOST_FTDC_SPI_UploadSettlementFile 'U' +///ϱ֤ļ· +#define THOST_FTDC_SPI_DownloadCSRCFile 'D' +///ɵĽ㵥ļ· +#define THOST_FTDC_SPI_SettlementBillFile 'S' +///֤ļʶ +#define THOST_FTDC_SPI_CSRCOthersFile 'C' +///ͶƬ· +#define THOST_FTDC_SPI_InvestorPhoto 'P' +///ȫᾭ͹˾ϴļ· +#define THOST_FTDC_SPI_CSRCData 'R' +///¼뷽ʽ +#define THOST_FTDC_SPI_InvestorPwdModel 'I' +///Ͷнļ· +#define THOST_FTDC_SPI_CFFEXInvestorSettleFile 'F' +///Ͷߴ뷽ʽ +#define THOST_FTDC_SPI_InvestorIDType 'a' +///߻Ȩ +#define THOST_FTDC_SPI_FreezeMaxReMain 'r' +///زʵʱϳ +#define THOST_FTDC_SPI_IsSync 'A' +///Ȩ +#define THOST_FTDC_SPI_RelieveOpenLimit 'O' +///Ƿ淶û +#define THOST_FTDC_SPI_IsStandardFreeze 'X' +///֣Ƿ񿪷Ʒױ +#define THOST_FTDC_SPI_CZCENormalProductHedge 'B' + +typedef char TThostFtdcSystemParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeParamIDTypeһϵͳ +///////////////////////////////////////////////////////////////////////// +///ϵͳ㷨 +#define THOST_FTDC_TPID_EncryptionStandard 'E' +///ϵͳ㷨 +#define THOST_FTDC_TPID_RiskMode 'R' +///ϵͳ㷨Ƿȫ 0- 1- +#define THOST_FTDC_TPID_RiskModeGlobal 'G' +///㷨 +#define THOST_FTDC_TPID_modeEncode 'P' +///۸Сλ +#define THOST_FTDC_TPID_tickMode 'T' +///ûỰ +#define THOST_FTDC_TPID_SingleUserSessionMaxNum 'S' +///¼ʧ +#define THOST_FTDC_TPID_LoginFailMaxNum 'L' +///Ƿǿ֤ +#define THOST_FTDC_TPID_IsAuthForce 'A' +///Ƿ񶳽֤ȯֲ +#define THOST_FTDC_TPID_IsPosiFreeze 'F' +///Ƿ޲ +#define THOST_FTDC_TPID_IsPosiLimit 'M' +///֣ѯʱ +#define THOST_FTDC_TPID_ForQuoteTimeInterval 'Q' +///Ƿڻ޲ +#define THOST_FTDC_TPID_IsFuturePosiLimit 'B' +///ǷڻµƵ +#define THOST_FTDC_TPID_IsFutureOrderFreq 'C' +///ȨǷӯ +#define THOST_FTDC_TPID_IsExecOrderProfit 'H' +///ڿǷ֤пǷԤ˻ +#define THOST_FTDC_TPID_IsCheckBankAcc 'I' +///޸ +#define THOST_FTDC_TPID_PasswordDeadLine 'J' +///ǿУ +#define THOST_FTDC_TPID_IsStrongPassword 'K' +///ʽѺ +#define THOST_FTDC_TPID_BalanceMorgage 'a' +///С볤 +#define THOST_FTDC_TPID_MinPwdLen 'O' +///IP½ʧܴ +#define THOST_FTDC_TPID_LoginFailMaxNumForIP 'U' +///Ч +#define THOST_FTDC_TPID_PasswordPeriod 'V' + +typedef char TThostFtdcTradeParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementParamValueTypeһֵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettlementParamValueType[256]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCounterIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCounterIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorGroupNameTypeһͶ߷ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorGroupNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrandCodeTypeһƺ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrandCodeType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWarehouseTypeһֿ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWarehouseType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductDateTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProductDateType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcGradeTypeһȼ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcGradeType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClassifyTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClassifyType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionTypeһλ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPositionType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcYieldlyTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcYieldlyType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWeightTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWeightType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSubEntryFundNoTypeһʽˮ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSubEntryFundNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileIDTypeһļʶ +///////////////////////////////////////////////////////////////////////// +///ʽ +#define THOST_FTDC_FI_SettlementFund 'F' +///ɽ +#define THOST_FTDC_FI_Trade 'T' +///Ͷֲ߳ +#define THOST_FTDC_FI_InvestorPosition 'P' +///Ͷ߷ʽ +#define THOST_FTDC_FI_SubEntryFund 'O' +///ϳֲ +#define THOST_FTDC_FI_CZCECombinationPos 'C' +///ϱ֤ +#define THOST_FTDC_FI_CSRCData 'R' +///֣ƽ˽ +#define THOST_FTDC_FI_CZCEClose 'L' +///֣ƽ˽ +#define THOST_FTDC_FI_CZCENoClose 'N' +///ֲϸ +#define THOST_FTDC_FI_PositionDtl 'D' +///Ȩִļ +#define THOST_FTDC_FI_OptionStrike 'S' +///۱ȶļ +#define THOST_FTDC_FI_SettlementPriceComparison 'M' +///dzֱֲ䶯ϸ +#define THOST_FTDC_FI_NonTradePosChange 'B' + +typedef char TThostFtdcFileIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileNameTypeһļ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFileNameType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileTypeTypeһļϴ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_FUT_Settlement '0' +///˶ +#define THOST_FTDC_FUT_Check '1' + +typedef char TThostFtdcFileTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileFormatTypeһļʽ +///////////////////////////////////////////////////////////////////////// +///ıļ(.txt) +#define THOST_FTDC_FFT_Txt '0' +///ѹļ(.zip) +#define THOST_FTDC_FFT_Zip '1' +///DBFļ(.dbf) +#define THOST_FTDC_FFT_DBF '2' + +typedef char TThostFtdcFileFormatType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileUploadStatusTypeһļ״̬ +///////////////////////////////////////////////////////////////////////// +///ϴɹ +#define THOST_FTDC_FUS_SucceedUpload '1' +///ϴʧ +#define THOST_FTDC_FUS_FailedUpload '2' +///ɹ +#define THOST_FTDC_FUS_SucceedLoad '3' +///벿ֳɹ +#define THOST_FTDC_FUS_PartSucceedLoad '4' +///ʧ +#define THOST_FTDC_FUS_FailedLoad '5' + +typedef char TThostFtdcFileUploadStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferDirectionTypeһƲַ +///////////////////////////////////////////////////////////////////////// +///Ƴ +#define THOST_FTDC_TD_Out '0' +/// +#define THOST_FTDC_TD_In '1' + +typedef char TThostFtdcTransferDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUploadModeTypeһϴļ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUploadModeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAccountIDTypeһͶʺ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAccountIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankFlagTypeһͳһʶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankFlagType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccountTypeһ˻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankAccountType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenNameTypeһ˻Ŀ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOpenNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenBankTypeһ˻Ŀ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOpenBankType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPublishPathTypeһ· +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPublishPathType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperatorIDTypeһԱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperatorIDType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMonthCountTypeһ· +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcMonthCountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdvanceMonthArrayTypeһ·ǰ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAdvanceMonthArrayType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateExprTypeһڱʽ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateExprType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentIDExprTypeһԼʽ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentIDExprType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentNameExprTypeһԼƱʽ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentNameExprType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSpecialCreateRuleTypeһĴ +///////////////////////////////////////////////////////////////////////// +///ûⴴ +#define THOST_FTDC_SC_NoSpecialRule '0' +/// +#define THOST_FTDC_SC_NoSpringFestival '1' + +typedef char TThostFtdcSpecialCreateRuleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBasisPriceTypeTypeһƻ׼ +///////////////////////////////////////////////////////////////////////// +///һԼ +#define THOST_FTDC_IPT_LastSettlement '1' +///һԼ̼ +#define THOST_FTDC_IPT_LaseClose '2' + +typedef char TThostFtdcBasisPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductLifePhaseTypeһƷ״̬ +///////////////////////////////////////////////////////////////////////// +///Ծ +#define THOST_FTDC_PLP_Active '1' +///Ծ +#define THOST_FTDC_PLP_NonActive '2' +///ע +#define THOST_FTDC_PLP_Canceled '3' + +typedef char TThostFtdcProductLifePhaseType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDeliveryModeTypeһʽ +///////////////////////////////////////////////////////////////////////// +///ֽ𽻸 +#define THOST_FTDC_DM_CashDeliv '1' +///ʵサ +#define THOST_FTDC_DM_CommodityDeliv '2' + +typedef char TThostFtdcDeliveryModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLogLevelTypeһ־ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLogLevelType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessNameTypeһ洢 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProcessNameType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperationMemoTypeһժҪ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperationMemoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundIOTypeTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_FIOT_FundIO '1' +///ת +#define THOST_FTDC_FIOT_Transfer '2' +///ڻ +#define THOST_FTDC_FIOT_SwapCurrency '3' + +typedef char TThostFtdcFundIOTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundTypeTypeһʽ +///////////////////////////////////////////////////////////////////////// +///д +#define THOST_FTDC_FT_Deposite '1' +///ʽ +#define THOST_FTDC_FT_ItemFund '2' +///˾ +#define THOST_FTDC_FT_Company '3' +///ʽת +#define THOST_FTDC_FT_InnerTransfer '4' + +typedef char TThostFtdcFundTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundDirectionTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_FD_In '1' +/// +#define THOST_FTDC_FD_Out '2' + +typedef char TThostFtdcFundDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundStatusTypeһʽ״̬ +///////////////////////////////////////////////////////////////////////// +///¼ +#define THOST_FTDC_FS_Record '1' +///Ѹ +#define THOST_FTDC_FS_Check '2' +///ѳ +#define THOST_FTDC_FS_Charge '3' + +typedef char TThostFtdcFundStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillNoTypeһƱݺ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBillNoType[15]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillNameTypeһƱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBillNameType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPublishStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_PS_None '1' +///ڷ +#define THOST_FTDC_PS_Publishing '2' +///ѷ +#define THOST_FTDC_PS_Published '3' + +typedef char TThostFtdcPublishStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueIDTypeһöֵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueIDType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueTypeTypeһöֵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueTypeType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueLabelTypeһöֵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueLabelType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueResultTypeһöֵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueResultType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemStatusTypeһϵͳ״̬ +///////////////////////////////////////////////////////////////////////// +///Ծ +#define THOST_FTDC_ES_NonActive '1' +/// +#define THOST_FTDC_ES_Startup '2' +///׿ʼʼ +#define THOST_FTDC_ES_Initialize '3' +///ɳʼ +#define THOST_FTDC_ES_Initialized '4' +///пʼ +#define THOST_FTDC_ES_Close '5' +/// +#define THOST_FTDC_ES_Closed '6' +/// +#define THOST_FTDC_ES_Settlement '7' + +typedef char TThostFtdcSystemStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///ʼ +#define THOST_FTDC_STS_Initialize '0' +/// +#define THOST_FTDC_STS_Settlementing '1' +///ѽ +#define THOST_FTDC_STS_Settlemented '2' +/// +#define THOST_FTDC_STS_Finished '3' + +typedef char TThostFtdcSettlementStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRangeIntTypeTypeһ޶ֵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRangeIntTypeType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRangeIntFromTypeһ޶ֵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRangeIntFromType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRangeIntToTypeһ޶ֵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRangeIntToType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionIDTypeһܴ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionIDType[25]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionValueCodeTypeһܱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionValueCodeType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRoleIDTypeһɫ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRoleIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRoleNameTypeһɫ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRoleNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDescriptionTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDescriptionType[401]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombineIDTypeһϱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombineIDType[25]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombineTypeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombineTypeType[25]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorTypeTypeһͶ +///////////////////////////////////////////////////////////////////////// +///Ȼ +#define THOST_FTDC_CT_Person '0' +/// +#define THOST_FTDC_CT_Company '1' +///Ͷʻ +#define THOST_FTDC_CT_Fund '2' +///ⷨ +#define THOST_FTDC_CT_SpecialOrgan '3' +///ʹܻ +#define THOST_FTDC_CT_Asset '4' + +typedef char TThostFtdcInvestorTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerTypeTypeһ͹˾ +///////////////////////////////////////////////////////////////////////// +///׻Ա +#define THOST_FTDC_BT_Trade '0' +///׽Ա +#define THOST_FTDC_BT_TradeSettle '1' + +typedef char TThostFtdcBrokerTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskLevelTypeһյȼ +///////////////////////////////////////////////////////////////////////// +///ͷտͻ +#define THOST_FTDC_FAS_Low '1' +///ͨͻ +#define THOST_FTDC_FAS_Normal '2' +///עͻ +#define THOST_FTDC_FAS_Focus '3' +///տͻ +#define THOST_FTDC_FAS_Risk '4' + +typedef char TThostFtdcRiskLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFeeAcceptStyleTypeһȡʽ +///////////////////////////////////////////////////////////////////////// +///ȡ +#define THOST_FTDC_FAS_ByTrade '1' +///ȡ +#define THOST_FTDC_FAS_ByDeliv '2' +/// +#define THOST_FTDC_FAS_None '3' +///ָȡ +#define THOST_FTDC_FAS_FixFee '4' + +typedef char TThostFtdcFeeAcceptStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPasswordTypeTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_PWDT_Trade '1' +///ʽ +#define THOST_FTDC_PWDT_Account '2' + +typedef char TThostFtdcPasswordTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAlgorithmTypeһӯ㷨 +///////////////////////////////////////////////////////////////////////// +///ӯ +#define THOST_FTDC_AG_All '1' +///ӯƣ +#define THOST_FTDC_AG_OnlyLost '2' +///ӯƣ +#define THOST_FTDC_AG_OnlyGain '3' +///ӯ +#define THOST_FTDC_AG_None '4' + +typedef char TThostFtdcAlgorithmType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIncludeCloseProfitTypeһǷƽӯ +///////////////////////////////////////////////////////////////////////// +///ƽӯ +#define THOST_FTDC_ICP_Include '0' +///ƽӯ +#define THOST_FTDC_ICP_NotInclude '2' + +typedef char TThostFtdcIncludeCloseProfitType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAllWithoutTradeTypeһǷܿ +///////////////////////////////////////////////////////////////////////// +///޲޳ɽܿ +#define THOST_FTDC_AWT_Enable '0' +///ܿ +#define THOST_FTDC_AWT_Disable '2' +///޲ֲܿ +#define THOST_FTDC_AWT_NoHoldEnable '3' + +typedef char TThostFtdcAllWithoutTradeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommentTypeһӯ㷨˵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommentType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVersionTypeһ汾 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcVersionType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeCodeTypeһ״ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeDateTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeDateType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeTimeTypeһʱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeTimeType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSerialTypeһˮ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeSerialType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSerialNoTypeһˮ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTradeSerialNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureIDTypeһڻ˾ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankIDTypeһд +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankIDType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankBrchIDTypeһзĴ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankBrchIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankBranchIDTypeһĴ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankBranchIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperNoTypeһ׹Ա +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperNoType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDeviceIDTypeһ־ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDeviceIDType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRecordNumTypeһ¼ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRecordNumType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccountTypeһڻʽ˺ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureAccountType[22]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFuturePwdFlagTypeһʽ˶Ա־ +///////////////////////////////////////////////////////////////////////// +///˶ +#define THOST_FTDC_FPWD_UnCheck '0' +///˶ +#define THOST_FTDC_FPWD_Check '1' + +typedef char TThostFtdcFuturePwdFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferTypeTypeһת +///////////////////////////////////////////////////////////////////////// +///תڻ +#define THOST_FTDC_TT_BankToFuture '0' +///ڻת +#define THOST_FTDC_TT_FutureToBank '1' + +typedef char TThostFtdcTransferTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccPwdTypeһڻʽ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureAccPwdType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyCodeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencyCodeType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRetCodeTypeһӦ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRetCodeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRetInfoTypeһӦϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRetInfoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeAmtTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeAmtType[20]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUseAmtTypeһп +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUseAmtType[20]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFetchAmtTypeһпȡ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFetchAmtType[20]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferValidFlagTypeһתЧ־ +///////////////////////////////////////////////////////////////////////// +///Чʧ +#define THOST_FTDC_TVF_Invalid '0' +///Ч +#define THOST_FTDC_TVF_Valid '1' +/// +#define THOST_FTDC_TVF_Reverse '2' + +typedef char TThostFtdcTransferValidFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCertCodeTypeһ֤ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCertCodeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReasonTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_RN_CD '0' +///ʽ; +#define THOST_FTDC_RN_ZT '1' +/// +#define THOST_FTDC_RN_QT '2' + +typedef char TThostFtdcReasonType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundProjectIDTypeһʽĿ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFundProjectIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSexTypeһԱ +///////////////////////////////////////////////////////////////////////// +///δ֪ +#define THOST_FTDC_SEX_None '0' +/// +#define THOST_FTDC_SEX_Man '1' +///Ů +#define THOST_FTDC_SEX_Woman '2' + +typedef char TThostFtdcSexType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProfessionTypeһְҵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProfessionType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNationalTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNationalType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProvinceTypeһʡ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProvinceType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRegionTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRegionType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCountryTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCountryType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLicenseNOTypeһӪҵִ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLicenseNOType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCompanyTypeTypeһҵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCompanyTypeType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessScopeTypeһӪΧ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBusinessScopeType[1001]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCapitalCurrencyTypeһעʱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCapitalCurrencyType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserTypeTypeһû +///////////////////////////////////////////////////////////////////////// +///Ͷ +#define THOST_FTDC_UT_Investor '0' +///Ա +#define THOST_FTDC_UT_Operator '1' +///Ա +#define THOST_FTDC_UT_SuperUser '2' + +typedef char TThostFtdcUserTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBranchIDTypeһӪҵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBranchIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateTypeTypeһ +///////////////////////////////////////////////////////////////////////// +///֤ +#define THOST_FTDC_RATETYPE_MarginRate '2' + +typedef char TThostFtdcRateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNoteTypeTypeһ֪ͨ +///////////////////////////////////////////////////////////////////////// +///׽㵥 +#define THOST_FTDC_NOTETYPE_TradeSettleBill '1' +///׽± +#define THOST_FTDC_NOTETYPE_TradeSettleMonth '2' +///׷ӱ֤֪ͨ +#define THOST_FTDC_NOTETYPE_CallMarginNotes '3' +///ǿƽ֪ͨ +#define THOST_FTDC_NOTETYPE_ForceCloseNotes '4' +///ɽ֪ͨ +#define THOST_FTDC_NOTETYPE_TradeNotes '5' +///֪ͨ +#define THOST_FTDC_NOTETYPE_DelivNotes '6' + +typedef char TThostFtdcNoteTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementStyleTypeһ㵥ʽ +///////////////////////////////////////////////////////////////////////// +///ն +#define THOST_FTDC_SBS_Day '1' +///ʶԳ +#define THOST_FTDC_SBS_Volume '2' + +typedef char TThostFtdcSettlementStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerDNSTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerDNSType[256]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSentenceTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSentenceType[501]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementBillTypeTypeһ㵥 +///////////////////////////////////////////////////////////////////////// +///ձ +#define THOST_FTDC_ST_Day '0' +///± +#define THOST_FTDC_ST_Month '1' + +typedef char TThostFtdcSettlementBillTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserRightTypeTypeһͻȨ +///////////////////////////////////////////////////////////////////////// +///¼ +#define THOST_FTDC_URT_Logon '1' +///ת +#define THOST_FTDC_URT_Transfer '2' +///ʼĽ㵥 +#define THOST_FTDC_URT_EMail '3' +///㵥 +#define THOST_FTDC_URT_Fax '4' +/// +#define THOST_FTDC_URT_ConditionOrder '5' + +typedef char TThostFtdcUserRightTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarginPriceTypeTypeһ֤۸ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_MPT_PreSettlementPrice '1' +///¼ +#define THOST_FTDC_MPT_SettlementPrice '2' +///ɽ +#define THOST_FTDC_MPT_AveragePrice '3' +///ּ +#define THOST_FTDC_MPT_OpenPrice '4' + +typedef char TThostFtdcMarginPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillGenStatusTypeһ㵥״̬ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_BGS_None '0' +/// +#define THOST_FTDC_BGS_NoGenerated '1' +/// +#define THOST_FTDC_BGS_Generated '2' + +typedef char TThostFtdcBillGenStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAlgoTypeTypeһ㷨 +///////////////////////////////////////////////////////////////////////// +///ֲִ㷨 +#define THOST_FTDC_AT_HandlePositionAlgo '1' +///Ѱұ֤㷨 +#define THOST_FTDC_AT_FindMarginRateAlgo '2' + +typedef char TThostFtdcAlgoTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandlePositionAlgoIDTypeһֲִ㷨 +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_HPA_Base '1' +///Ʒ +#define THOST_FTDC_HPA_DCE '2' +///֣Ʒ +#define THOST_FTDC_HPA_CZCE '3' + +typedef char TThostFtdcHandlePositionAlgoIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFindMarginRateAlgoIDTypeһѰұ֤㷨 +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_FMRA_Base '1' +///Ʒ +#define THOST_FTDC_FMRA_DCE '2' +///֣Ʒ +#define THOST_FTDC_FMRA_CZCE '3' + +typedef char TThostFtdcFindMarginRateAlgoIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandleTradingAccountAlgoIDTypeһʽ㷨 +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_HTAA_Base '1' +///Ʒ +#define THOST_FTDC_HTAA_DCE '2' +///֣Ʒ +#define THOST_FTDC_HTAA_CZCE '3' + +typedef char TThostFtdcHandleTradingAccountAlgoIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPersonTypeTypeһϵ +///////////////////////////////////////////////////////////////////////// +///ָµ +#define THOST_FTDC_PST_Order '1' +///Ȩ +#define THOST_FTDC_PST_Open '2' +///ʽ +#define THOST_FTDC_PST_Fund '3' +///㵥ȷ +#define THOST_FTDC_PST_Settlement '4' +/// +#define THOST_FTDC_PST_Company '5' +///˴ +#define THOST_FTDC_PST_Corporation '6' +///Ͷϵ +#define THOST_FTDC_PST_LinkMan '7' +///ֻʲ +#define THOST_FTDC_PST_Ledger '8' +///У +#define THOST_FTDC_PST_Trustee '9' +///Уܻ˴ +#define THOST_FTDC_PST_TrusteeCorporation 'A' +///УܻȨ +#define THOST_FTDC_PST_TrusteeOpen 'B' +///Уܻϵ +#define THOST_FTDC_PST_TrusteeContact 'C' +///Ȼ˲ο֤ +#define THOST_FTDC_PST_ForeignerRefer 'D' +///˴ο֤ +#define THOST_FTDC_PST_CorporationRefer 'E' + +typedef char TThostFtdcPersonTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryInvestorRangeTypeһѯΧ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_QIR_All '1' +///ѯ +#define THOST_FTDC_QIR_Group '2' +///һͶ +#define THOST_FTDC_QIR_Single '3' + +typedef char TThostFtdcQueryInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorRiskStatusTypeһͶ߷״̬ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_IRS_Normal '1' +/// +#define THOST_FTDC_IRS_Warn '2' +///׷ +#define THOST_FTDC_IRS_Call '3' +///ǿƽ +#define THOST_FTDC_IRS_Force '4' +///쳣 +#define THOST_FTDC_IRS_Exception '5' + +typedef char TThostFtdcInvestorRiskStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLegIDTypeһȱ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLegIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLegMultipleTypeһȳ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLegMultipleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcImplyLevelTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcImplyLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearAccountTypeһ˻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearAccountType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganNOTypeһ˻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganNOType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearbarchIDTypeһ˻к +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearbarchIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserEventTypeTypeһû¼ +///////////////////////////////////////////////////////////////////////// +///¼ +#define THOST_FTDC_UET_Login '1' +///dz +#define THOST_FTDC_UET_Logout '2' +///׳ɹ +#define THOST_FTDC_UET_Trading '3' +///ʧ +#define THOST_FTDC_UET_TradingError '4' +///޸ +#define THOST_FTDC_UET_UpdatePassword '5' +///ͻ֤ +#define THOST_FTDC_UET_Authenticate '6' +/// +#define THOST_FTDC_UET_Other '9' + +typedef char TThostFtdcUserEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserEventInfoTypeһû¼Ϣ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserEventInfoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCloseStyleTypeһƽַʽ +///////////////////////////////////////////////////////////////////////// +///ȿƽ +#define THOST_FTDC_ICS_Close '0' +///ƽƽ +#define THOST_FTDC_ICS_CloseToday '1' + +typedef char TThostFtdcCloseStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStatModeTypeһͳƷʽ +///////////////////////////////////////////////////////////////////////// +///---- +#define THOST_FTDC_SM_Non '0' +///Լͳ +#define THOST_FTDC_SM_Instrument '1' +///Ʒͳ +#define THOST_FTDC_SM_Product '2' +///Ͷͳ +#define THOST_FTDC_SM_Investor '3' + +typedef char TThostFtdcStatModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParkedOrderStatusTypeһԤ״̬ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_PAOS_NotSend '1' +///ѷ +#define THOST_FTDC_PAOS_Send '2' +///ɾ +#define THOST_FTDC_PAOS_Deleted '3' + +typedef char TThostFtdcParkedOrderStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParkedOrderIDTypeһԤ񱨵 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParkedOrderIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParkedOrderActionIDTypeһԤ񳷵 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParkedOrderActionIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirDealStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///ڴ +#define THOST_FTDC_VDS_Dealing '1' +///ɹ +#define THOST_FTDC_VDS_DeaclSucceed '2' + +typedef char TThostFtdcVirDealStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrgSystemIDTypeһԭϵͳ +///////////////////////////////////////////////////////////////////////// +///ۺϽƽ̨ +#define THOST_FTDC_ORGS_Standard '0' +///ʢϵͳ +#define THOST_FTDC_ORGS_ESunny '1' +///˴V6ϵͳ +#define THOST_FTDC_ORGS_KingStarV6 '2' + +typedef char TThostFtdcOrgSystemIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirTradeStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_VTS_NaturalDeal '0' +///ɹ +#define THOST_FTDC_VTS_SucceedEnd '1' +///ʧܽ +#define THOST_FTDC_VTS_FailedEND '2' +///쳣 +#define THOST_FTDC_VTS_Exception '3' +///˹쳣 +#define THOST_FTDC_VTS_ManualDeal '4' +///ͨѶ쳣 ˹ +#define THOST_FTDC_VTS_MesException '5' +///ϵͳ˹ +#define THOST_FTDC_VTS_SysException '6' + +typedef char TThostFtdcVirTradeStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirBankAccTypeTypeһʻ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_VBAT_BankBook '1' +/// +#define THOST_FTDC_VBAT_BankCard '2' +///ÿ +#define THOST_FTDC_VBAT_CreditCard '3' + +typedef char TThostFtdcVirBankAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirementStatusTypeһʻ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_VMS_Natural '0' +/// +#define THOST_FTDC_VMS_Canceled '9' + +typedef char TThostFtdcVirementStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirementAvailAbilityTypeһЧ־ +///////////////////////////////////////////////////////////////////////// +///δȷ +#define THOST_FTDC_VAA_NoAvailAbility '0' +///Ч +#define THOST_FTDC_VAA_AvailAbility '1' +/// +#define THOST_FTDC_VAA_Repeal '2' + +typedef char TThostFtdcVirementAvailAbilityType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirementTradeCodeTypeһ״ +///////////////////////////////////////////////////////////////////////// +///зʽתڻ +#define THOST_FTDC_VTC_BankBankToFuture '102001' +///зڻʽת +#define THOST_FTDC_VTC_BankFutureToBank '102002' +///ڻʽתڻ +#define THOST_FTDC_VTC_FutureBankToFuture '202001' +///ڻڻʽת +#define THOST_FTDC_VTC_FutureFutureToBank '202002' + +typedef char TThostFtdcVirementTradeCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPhotoTypeNameTypeһӰ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPhotoTypeNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPhotoTypeIDTypeһӰʹ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPhotoTypeIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPhotoNameTypeһӰ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPhotoNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTopicIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTopicIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReportTypeIDTypeһױͱʶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcReportTypeIDType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCharacterIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCharacterIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLParamIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLParamIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInvestorTypeTypeһͶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInvestorTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLIdCardTypeTypeһ֤ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLIdCardTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTradeDirectTypeһʽ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTradeDirectType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTradeModelTypeһʽʽ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTradeModelType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLParamIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLParamIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLOpParamValueTypeһҵֵ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcAMLOpParamValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCustomerCardTypeTypeһͻ֤/֤ļ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLCustomerCardTypeType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInstitutionNameTypeһڻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInstitutionNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLDistrictIDTypeһڻڵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLDistrictIDType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLRelationShipTypeһڻ׵Ĺϵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLRelationShipType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInstitutionTypeTypeһڻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInstitutionTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInstitutionIDTypeһڻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInstitutionIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLAccountTypeTypeһ˻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLAccountTypeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTradingTypeTypeһ׷ʽ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTradingTypeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTransactClassTypeһ֧׷ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTransactClassType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCapitalIOTypeһʽոʶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLCapitalIOType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLSiteTypeһ׵ص +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLSiteType[10]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCapitalPurposeTypeһʽ; +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLCapitalPurposeType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLReportTypeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLReportTypeType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLSerialNoTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLSerialNoType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLStatusType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLGenStatusTypeһAmlɷʽ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_GEN_Program '0' +///˹ +#define THOST_FTDC_GEN_HandWork '1' + +typedef char TThostFtdcAMLGenStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLSeqCodeTypeһҵʶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLSeqCodeType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLFileNameTypeһAMLļ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLFileNameType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLMoneyTypeһϴǮʽ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcAMLMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLFileAmountTypeһϴǮʽ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcAMLFileAmountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFMMCKeyTypeһԿ(֤) +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCFMMCKeyType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFMMCTokenTypeһ(֤) +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCFMMCTokenType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFMMCKeyKindTypeһ̬Կ(֤) +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_CFMMCKK_REQUEST 'R' +///CFMMCԶ +#define THOST_FTDC_CFMMCKK_AUTO 'A' +///CFMMCֶ +#define THOST_FTDC_CFMMCKK_MANUAL 'M' + +typedef char TThostFtdcCFMMCKeyKindType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLReportNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLReportNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIndividualNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIndividualNameType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyIDTypeһִ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencyIDType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCustNumberTypeһͻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCustNumberType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganCodeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganCodeType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSuperOrganCodeTypeһϼ,ڻ˾ܲ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSuperOrganCodeType[12]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSubBranchIDTypeһ֧ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSubBranchIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSubBranchNameTypeһ֧ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSubBranchNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBranchNetCodeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBranchNetCodeType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBranchNetNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBranchNetNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganFlagTypeһʶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankCodingForFutureTypeһжڻ˾ı +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankCodingForFutureType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankReturnCodeTypeһжԷĶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankReturnCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPlateReturnCodeTypeһתƽ̨ԷĶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPlateReturnCodeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankSubBranchIDTypeһз֧ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankSubBranchIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureBranchIDTypeһڻ֧ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureBranchIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnCodeTypeһش +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcReturnCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperatorCodeTypeһԱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperatorCodeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearDepIDTypeһʻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearDepIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearBrchIDTypeһʻк +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearBrchIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearNameTypeһʻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccountNameTypeһʻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankAccountNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvDepIDTypeһͶ˺Ż +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvDepIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvBrchIDTypeһͶк +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvBrchIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMessageFormatVersionTypeһϢʽ汾 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMessageFormatVersionType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDigestTypeһժҪ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDigestType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthenticDataTypeһ֤ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthenticDataType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPasswordKeyTypeһԿ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPasswordKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccountNameTypeһڻʻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureAccountNameType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMobilePhoneTypeһֻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMobilePhoneType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureMainKeyTypeһڻ˾Կ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureMainKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureWorkKeyTypeһڻ˾Կ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureWorkKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureTransKeyTypeһڻ˾Կ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureTransKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankMainKeyTypeһԿ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankMainKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankWorkKeyTypeһйԿ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankWorkKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankTransKeyTypeһдԿ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankTransKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankServerDescriptionTypeһзϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankServerDescriptionType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAddInfoTypeһϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAddInfoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDescrInfoForReturnCodeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDescrInfoForReturnCodeType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCountryCodeTypeһҴ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCountryCodeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSerialTypeһˮ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPlateSerialTypeһƽ̨ˮ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcPlateSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankSerialTypeһˮ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankSerialType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCorrectSerialTypeһˮ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCorrectSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureSerialTypeһڻ˾ˮ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFutureSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplicationIDTypeһӦñʶ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcApplicationIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankProxyIDTypeһдʶ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcBankProxyIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTCoreIDTypeһתʺϵͳʶ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFBTCoreIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServerPortTypeһ˿ں +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcServerPortType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRepealedTimesTypeһѾ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRepealedTimesType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRepealTimeIntervalTypeһʱ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRepealTimeIntervalType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTotalTimesTypeһÿۼתʴ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTotalTimesType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTRequestIDTypeһID +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFBTRequestIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTIDTypeһID +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeAmountTypeһ׽Ԫ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcTradeAmountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCustFeeTypeһӦտͻãԪ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCustFeeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureFeeTypeһӦڻ˾ãԪ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcFutureFeeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSingleMaxAmtTypeһ޶ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcSingleMaxAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSingleMinAmtTypeһ޶ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcSingleMinAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTotalAmtTypeһÿۼתʶ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcTotalAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCertificationTypeTypeһ֤ +///////////////////////////////////////////////////////////////////////// +///֤ +#define THOST_FTDC_CFT_IDCard '0' +/// +#define THOST_FTDC_CFT_Passport '1' +///֤ +#define THOST_FTDC_CFT_OfficerIDCard '2' +///ʿ֤ +#define THOST_FTDC_CFT_SoldierIDCard '3' +///֤ +#define THOST_FTDC_CFT_HomeComingCard '4' +///ڲ +#define THOST_FTDC_CFT_HouseholdRegister '5' +///Ӫҵִպ +#define THOST_FTDC_CFT_LicenseNo '6' +///֤֯ +#define THOST_FTDC_CFT_InstitutionCodeCard '7' +///ʱӪҵִպ +#define THOST_FTDC_CFT_TempLicenseNo '8' +///ҵǼ֤ +#define THOST_FTDC_CFT_NoEnterpriseLicenseNo '9' +///֤ +#define THOST_FTDC_CFT_OtherCard 'x' +///ܲ +#define THOST_FTDC_CFT_SuperDepAgree 'a' + +typedef char TThostFtdcCertificationTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileBusinessCodeTypeһļҵ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_FBC_Others '0' +///ת˽ϸ +#define THOST_FTDC_FBC_TransferDetails '1' +///ͻ˻״̬ +#define THOST_FTDC_FBC_CustAccStatus '2' +///˻ཻϸ +#define THOST_FTDC_FBC_AccountTradeDetails '3' +///ڻ˻Ϣϸ +#define THOST_FTDC_FBC_FutureAccountChangeInfoDetails '4' +///ͻʽ̨ϸ +#define THOST_FTDC_FBC_CustMoneyDetail '5' +///ͻϢϸ +#define THOST_FTDC_FBC_CustCancelAccountInfo '6' +///ͻʽ˽ +#define THOST_FTDC_FBC_CustMoneyResult '7' +///쳣ļ +#define THOST_FTDC_FBC_OthersExceptionResult '8' +///ͻϢϸ +#define THOST_FTDC_FBC_CustInterestNetMoneyDetails '9' +///ͻʽϸ +#define THOST_FTDC_FBC_CustMoneySendAndReceiveDetails 'a' +///˴ʽջ +#define THOST_FTDC_FBC_CorporationMoneyTotal 'b' +///ʽջ +#define THOST_FTDC_FBC_MainbodyMoneyTotal 'c' +///ܷƽ +#define THOST_FTDC_FBC_MainPartMonitorData 'd' +///б +#define THOST_FTDC_FBC_PreparationMoney 'e' +///Эʽ +#define THOST_FTDC_FBC_BankMoneyMonitorData 'f' + +typedef char TThostFtdcFileBusinessCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCashExchangeCodeTypeһ㳮־ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_CEC_Exchange '1' +/// +#define THOST_FTDC_CEC_Cash '2' + +typedef char TThostFtdcCashExchangeCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcYesNoIndicatorTypeһǻʶ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_YNI_Yes '0' +/// +#define THOST_FTDC_YNI_No '1' + +typedef char TThostFtdcYesNoIndicatorType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBanlanceTypeTypeһ +///////////////////////////////////////////////////////////////////////// +///ǰ +#define THOST_FTDC_BLT_CurrentMoney '0' +/// +#define THOST_FTDC_BLT_UsableMoney '1' +///ȡ +#define THOST_FTDC_BLT_FetchableMoney '2' +/// +#define THOST_FTDC_BLT_FreezeMoney '3' + +typedef char TThostFtdcBanlanceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcGenderTypeһԱ +///////////////////////////////////////////////////////////////////////// +///δ֪״̬ +#define THOST_FTDC_GD_Unknown '0' +/// +#define THOST_FTDC_GD_Male '1' +///Ů +#define THOST_FTDC_GD_Female '2' + +typedef char TThostFtdcGenderType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFeePayFlagTypeһ֧־ +///////////////////////////////////////////////////////////////////////// +///淽֧ +#define THOST_FTDC_FPF_BEN '0' +///ɷͷ֧ +#define THOST_FTDC_FPF_OUR '1' +///ɷͷ֧ķã淽֧ܵķ +#define THOST_FTDC_FPF_SHA '2' + +typedef char TThostFtdcFeePayFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPassWordKeyTypeTypeһԿ +///////////////////////////////////////////////////////////////////////// +///Կ +#define THOST_FTDC_PWKT_ExchangeKey '0' +///Կ +#define THOST_FTDC_PWKT_PassWordKey '1' +///MACԿ +#define THOST_FTDC_PWKT_MACKey '2' +///Կ +#define THOST_FTDC_PWKT_MessageKey '3' + +typedef char TThostFtdcPassWordKeyTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTPassWordTypeTypeһ +///////////////////////////////////////////////////////////////////////// +///ѯ +#define THOST_FTDC_PWT_Query '0' +///ȡ +#define THOST_FTDC_PWT_Fetch '1' +///ת +#define THOST_FTDC_PWT_Transfer '2' +/// +#define THOST_FTDC_PWT_Trade '3' + +typedef char TThostFtdcFBTPassWordTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTEncryModeTypeһܷʽ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_EM_NoEncry '0' +///DES +#define THOST_FTDC_EM_DES '1' +///3DES +#define THOST_FTDC_EM_3DES '2' + +typedef char TThostFtdcFBTEncryModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankRepealFlagTypeһг־ +///////////////////////////////////////////////////////////////////////// +///Զ +#define THOST_FTDC_BRF_BankNotNeedRepeal '0' +///дԶ +#define THOST_FTDC_BRF_BankWaitingRepeal '1' +///Զ +#define THOST_FTDC_BRF_BankBeenRepealed '2' + +typedef char TThostFtdcBankRepealFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerRepealFlagTypeһ̳־ +///////////////////////////////////////////////////////////////////////// +///Զ +#define THOST_FTDC_BRORF_BrokerNotNeedRepeal '0' +///̴Զ +#define THOST_FTDC_BRORF_BrokerWaitingRepeal '1' +///Զ +#define THOST_FTDC_BRORF_BrokerBeenRepealed '2' + +typedef char TThostFtdcBrokerRepealFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstitutionTypeTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_TS_Bank '0' +/// +#define THOST_FTDC_TS_Future '1' +///ȯ +#define THOST_FTDC_TS_Store '2' + +typedef char TThostFtdcInstitutionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLastFragmentTypeһƬ־ +///////////////////////////////////////////////////////////////////////// +///Ƭ +#define THOST_FTDC_LF_Yes '0' +///Ƭ +#define THOST_FTDC_LF_No '1' + +typedef char TThostFtdcLastFragmentType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccStatusTypeһ˻״̬ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_BAS_Normal '0' +/// +#define THOST_FTDC_BAS_Freeze '1' +///ʧ +#define THOST_FTDC_BAS_ReportLoss '2' + +typedef char TThostFtdcBankAccStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMoneyAccountStatusTypeһʽ˻״̬ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_MAS_Normal '0' +/// +#define THOST_FTDC_MAS_Cancel '1' + +typedef char TThostFtdcMoneyAccountStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcManageStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///ָ +#define THOST_FTDC_MSS_Point '0' +///Ԥָ +#define THOST_FTDC_MSS_PrePoint '1' +///ָ +#define THOST_FTDC_MSS_CancelPoint '2' + +typedef char TThostFtdcManageStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemTypeTypeһӦϵͳ +///////////////////////////////////////////////////////////////////////// +///ת +#define THOST_FTDC_SYT_FutureBankTransfer '0' +///֤ת +#define THOST_FTDC_SYT_StockBankTransfer '1' +/// +#define THOST_FTDC_SYT_TheThirdPartStore '2' + +typedef char TThostFtdcSystemTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTxnEndFlagTypeһתʻת־ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_TEF_NormalProcessing '0' +///ɹ +#define THOST_FTDC_TEF_Success '1' +///ʧܽ +#define THOST_FTDC_TEF_Failed '2' +///쳣 +#define THOST_FTDC_TEF_Abnormal '3' +///˹쳣 +#define THOST_FTDC_TEF_ManualProcessedForException '4' +///ͨѶ쳣 ˹ +#define THOST_FTDC_TEF_CommuFailedNeedManualProcess '5' +///ϵͳ˹ +#define THOST_FTDC_TEF_SysErrorNeedManualProcess '6' + +typedef char TThostFtdcTxnEndFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessStatusTypeһתʷ״̬ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_PSS_NotProcess '0' +///ʼ +#define THOST_FTDC_PSS_StartProcess '1' +/// +#define THOST_FTDC_PSS_Finished '2' + +typedef char TThostFtdcProcessStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCustTypeTypeһͻ +///////////////////////////////////////////////////////////////////////// +///Ȼ +#define THOST_FTDC_CUSTT_Person '0' +/// +#define THOST_FTDC_CUSTT_Institution '1' + +typedef char TThostFtdcCustTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTTransferDirectionTypeһתʷ +///////////////////////////////////////////////////////////////////////// +///תڻ +#define THOST_FTDC_FBTTD_FromBankToFuture '1' +///ڻת +#define THOST_FTDC_FBTTD_FromFutureToBank '2' + +typedef char TThostFtdcFBTTransferDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenOrDestroyTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_OOD_Open '1' +/// +#define THOST_FTDC_OOD_Destroy '0' + +typedef char TThostFtdcOpenOrDestroyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAvailabilityFlagTypeһЧ־ +///////////////////////////////////////////////////////////////////////// +///δȷ +#define THOST_FTDC_AVAF_Invalid '0' +///Ч +#define THOST_FTDC_AVAF_Valid '1' +/// +#define THOST_FTDC_AVAF_Repeal '2' + +typedef char TThostFtdcAvailabilityFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganTypeTypeһ +///////////////////////////////////////////////////////////////////////// +///д +#define THOST_FTDC_OT_Bank '1' +///ǰ +#define THOST_FTDC_OT_Future '2' +///תƽ̨ +#define THOST_FTDC_OT_PlateForm '9' + +typedef char TThostFtdcOrganTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganLevelTypeһ +///////////////////////////////////////////////////////////////////////// +///лܲ +#define THOST_FTDC_OL_HeadQuarters '1' +///зĻڻ˾Ӫҵ +#define THOST_FTDC_OL_Branch '2' + +typedef char TThostFtdcOrganLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProtocalIDTypeһЭ +///////////////////////////////////////////////////////////////////////// +///Э +#define THOST_FTDC_PID_FutureProtocal '0' +///Э +#define THOST_FTDC_PID_ICBCProtocal '1' +///ũЭ +#define THOST_FTDC_PID_ABCProtocal '2' +///йЭ +#define THOST_FTDC_PID_CBCProtocal '3' +///Э +#define THOST_FTDC_PID_CCBProtocal '4' +///Э +#define THOST_FTDC_PID_BOCOMProtocal '5' +///תƽ̨Э +#define THOST_FTDC_PID_FBTPlateFormProtocal 'X' + +typedef char TThostFtdcProtocalIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcConnectModeTypeһ׽ӷʽ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_CM_ShortConnect '0' +/// +#define THOST_FTDC_CM_LongConnect '1' + +typedef char TThostFtdcConnectModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncModeTypeһ׽ͨŷʽ +///////////////////////////////////////////////////////////////////////// +///첽 +#define THOST_FTDC_SRM_ASync '0' +///ͬ +#define THOST_FTDC_SRM_Sync '1' + +typedef char TThostFtdcSyncModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccTypeTypeһʺ +///////////////////////////////////////////////////////////////////////// +///д +#define THOST_FTDC_BAT_BankBook '1' +/// +#define THOST_FTDC_BAT_SavingCard '2' +///ÿ +#define THOST_FTDC_BAT_CreditCard '3' + +typedef char TThostFtdcBankAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccTypeTypeһڻ˾ʺ +///////////////////////////////////////////////////////////////////////// +///д +#define THOST_FTDC_FAT_BankBook '1' +/// +#define THOST_FTDC_FAT_SavingCard '2' +///ÿ +#define THOST_FTDC_FAT_CreditCard '3' + +typedef char TThostFtdcFutureAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_OS_Ready '0' +///ǩ +#define THOST_FTDC_OS_CheckIn '1' +///ǩ +#define THOST_FTDC_OS_CheckOut '2' +///ļ +#define THOST_FTDC_OS_CheckFileArrived '3' +/// +#define THOST_FTDC_OS_CheckDetail '4' +/// +#define THOST_FTDC_OS_DayEndClean '5' +///ע +#define THOST_FTDC_OS_Invalid '9' + +typedef char TThostFtdcOrganStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCCBFeeModeTypeһշģʽ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_CCBFM_ByAmount '1' +///¿ +#define THOST_FTDC_CCBFM_ByMonth '2' + +typedef char TThostFtdcCCBFeeModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommApiTypeTypeһͨѶAPI +///////////////////////////////////////////////////////////////////////// +///ͻ +#define THOST_FTDC_CAPIT_Client '1' +/// +#define THOST_FTDC_CAPIT_Server '2' +///ϵͳUserApi +#define THOST_FTDC_CAPIT_UserApi '3' + +typedef char TThostFtdcCommApiTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServiceIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcServiceIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServiceLineNoTypeһ· +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcServiceLineNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServiceNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcServiceNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLinkStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///Ѿ +#define THOST_FTDC_LS_Connected '1' +///û +#define THOST_FTDC_LS_Disconnected '2' + +typedef char TThostFtdcLinkStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommApiPointerTypeһͨѶAPIָ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCommApiPointerType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPwdFlagTypeһ˶Ա־ +///////////////////////////////////////////////////////////////////////// +///˶ +#define THOST_FTDC_BPWDF_NoCheck '0' +///ĺ˶ +#define THOST_FTDC_BPWDF_BlankCheck '1' +///ĺ˶ +#define THOST_FTDC_BPWDF_EncryptCheck '2' + +typedef char TThostFtdcPwdFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSecuAccTypeTypeһڻʺ +///////////////////////////////////////////////////////////////////////// +///ʽʺ +#define THOST_FTDC_SAT_AccountID '1' +///ʽ𿨺 +#define THOST_FTDC_SAT_CardID '2' +///Ϻɶʺ +#define THOST_FTDC_SAT_SHStockholderID '3' +///ڹɶʺ +#define THOST_FTDC_SAT_SZStockholderID '4' + +typedef char TThostFtdcSecuAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferStatusTypeһת˽״̬ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_TRFS_Normal '0' +/// +#define THOST_FTDC_TRFS_Repealed '1' + +typedef char TThostFtdcTransferStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSponsorTypeTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_SPTYPE_Broker '0' +/// +#define THOST_FTDC_SPTYPE_Bank '1' + +typedef char TThostFtdcSponsorTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReqRspTypeTypeһӦ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_REQRSP_Request '0' +///Ӧ +#define THOST_FTDC_REQRSP_Response '1' + +typedef char TThostFtdcReqRspTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTUserEventTypeTypeһתû¼ +///////////////////////////////////////////////////////////////////////// +///ǩ +#define THOST_FTDC_FBTUET_SignIn '0' +///תڻ +#define THOST_FTDC_FBTUET_FromBankToFuture '1' +///ڻת +#define THOST_FTDC_FBTUET_FromFutureToBank '2' +/// +#define THOST_FTDC_FBTUET_OpenAccount '3' +/// +#define THOST_FTDC_FBTUET_CancelAccount '4' +///˻ +#define THOST_FTDC_FBTUET_ChangeAccount '5' +///תڻ +#define THOST_FTDC_FBTUET_RepealFromBankToFuture '6' +///ڻת +#define THOST_FTDC_FBTUET_RepealFromFutureToBank '7' +///ѯ˻ +#define THOST_FTDC_FBTUET_QueryBankAccount '8' +///ѯڻ˻ +#define THOST_FTDC_FBTUET_QueryFutureAccount '9' +///ǩ +#define THOST_FTDC_FBTUET_SignOut 'A' +///Կͬ +#define THOST_FTDC_FBTUET_SyncKey 'B' +///ԤԼ +#define THOST_FTDC_FBTUET_ReserveOpenAccount 'C' +///ԤԼ +#define THOST_FTDC_FBTUET_CancelReserveOpenAccount 'D' +///ԤԼȷ +#define THOST_FTDC_FBTUET_ReserveOpenAccountConfirm 'E' +/// +#define THOST_FTDC_FBTUET_Other 'Z' + +typedef char TThostFtdcFBTUserEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankIDByBankTypeһԼı +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankIDByBankType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankOperNoTypeһвԱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankOperNoType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankCustNoTypeһпͻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankCustNoType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDBOPSeqNoTypeһк +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDBOPSeqNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTableNameTypeһFBT +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTableNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPKNameTypeһFBT +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPKNameType[201]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPKValueTypeһFBTֵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPKValueType[501]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDBOperationTypeһ¼ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_DBOP_Insert '0' +/// +#define THOST_FTDC_DBOP_Update '1' +///ɾ +#define THOST_FTDC_DBOP_Delete '2' + +typedef char TThostFtdcDBOperationType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncFlagTypeһͬ +///////////////////////////////////////////////////////////////////////// +///ͬ +#define THOST_FTDC_SYNF_Yes '0' +///δͬ +#define THOST_FTDC_SYNF_No '1' + +typedef char TThostFtdcSyncFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTargetIDTypeһͬĿ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTargetIDType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncTypeTypeһͬ +///////////////////////////////////////////////////////////////////////// +///һͬ +#define THOST_FTDC_SYNT_OneOffSync '0' +///ʱͬ +#define THOST_FTDC_SYNT_TimerSync '1' +///ʱȫͬ +#define THOST_FTDC_SYNT_TimerFullSync '2' + +typedef char TThostFtdcSyncTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBETimeTypeһֻʱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBETimeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBankNoTypeһк +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBankNoType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBECertNoTypeһƾ֤ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBECertNoType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExDirectionTypeһ㷽 +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_FBEDIR_Settlement '0' +///ۻ +#define THOST_FTDC_FBEDIR_Sale '1' + +typedef char TThostFtdcExDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBankAccountTypeһ˻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBankAccountType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBankAccountNameTypeһ˻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBankAccountNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEAmtTypeһֻ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcFBEAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBusinessTypeTypeһҵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBusinessTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEPostScriptTypeһ㸽 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEPostScriptType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBERemarkTypeһ㱸ע +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBERemarkType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExRateTypeһ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcExRateType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEResultFlagTypeһɹ־ +///////////////////////////////////////////////////////////////////////// +///ɹ +#define THOST_FTDC_FBERES_Success '0' +///˻ +#define THOST_FTDC_FBERES_InsufficientBalance '1' +///׽δ֪ +#define THOST_FTDC_FBERES_UnknownTrading '8' +///ʧ +#define THOST_FTDC_FBERES_Fail 'x' + +typedef char TThostFtdcFBEResultFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBERtnMsgTypeһ㷵Ϣ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBERtnMsgType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEExtendMsgTypeһչϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEExtendMsgType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBusinessSerialTypeһˮ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBusinessSerialType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBESystemSerialTypeһˮ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBESystemSerialType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBETotalExCntTypeһ㽻ܱ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFBETotalExCntType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEExchStatusTypeһ㽻״̬ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_FBEES_Normal '0' +///ط +#define THOST_FTDC_FBEES_ReExchange '1' + +typedef char TThostFtdcFBEExchStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEFileFlagTypeһļ־ +///////////////////////////////////////////////////////////////////////// +///ݰ +#define THOST_FTDC_FBEFG_DataPackage '0' +///ļ +#define THOST_FTDC_FBEFG_File '1' + +typedef char TThostFtdcFBEFileFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEAlreadyTradeTypeһѽױ־ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_FBEAT_NotTrade '0' +///ѽ +#define THOST_FTDC_FBEAT_Trade '1' + +typedef char TThostFtdcFBEAlreadyTradeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEOpenBankTypeһ˻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEOpenBankType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEUserEventTypeTypeһڻû¼ +///////////////////////////////////////////////////////////////////////// +///ǩ +#define THOST_FTDC_FBEUET_SignIn '0' +/// +#define THOST_FTDC_FBEUET_Exchange '1' +///ط +#define THOST_FTDC_FBEUET_ReExchange '2' +///˻ѯ +#define THOST_FTDC_FBEUET_QueryBankAccount '3' +///ϸѯ +#define THOST_FTDC_FBEUET_QueryExchDetial '4' +///ܲѯ +#define THOST_FTDC_FBEUET_QueryExchSummary '5' +///ʲѯ +#define THOST_FTDC_FBEUET_QueryExchRate '6' +///ļ֪ͨ +#define THOST_FTDC_FBEUET_CheckBankAccount '7' +///ǩ +#define THOST_FTDC_FBEUET_SignOut '8' +/// +#define THOST_FTDC_FBEUET_Other 'Z' + +typedef char TThostFtdcFBEUserEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEFileNameTypeһļ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEFileNameType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBatchSerialTypeһκ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBatchSerialType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEReqFlagTypeһ㷢ͱ־ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_FBERF_UnProcessed '0' +///ȴ +#define THOST_FTDC_FBERF_WaitSend '1' +///ͳɹ +#define THOST_FTDC_FBERF_SendSuccess '2' +///ʧ +#define THOST_FTDC_FBERF_SendFailed '3' +///ȴط +#define THOST_FTDC_FBERF_WaitReSend '4' + +typedef char TThostFtdcFBEReqFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNotifyClassTypeһ֪ͨ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_NC_NOERROR '0' +///ʾ +#define THOST_FTDC_NC_Warn '1' +///׷ +#define THOST_FTDC_NC_Call '2' +///ǿƽ +#define THOST_FTDC_NC_Force '3' +/// +#define THOST_FTDC_NC_CHUANCANG '4' +///쳣 +#define THOST_FTDC_NC_Exception '5' + +typedef char TThostFtdcNotifyClassType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskNofityInfoTypeһͻ֪ͨϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRiskNofityInfoType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForceCloseSceneIdTypeһǿƽ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcForceCloseSceneIdType[24]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForceCloseTypeTypeһǿƽ +///////////////////////////////////////////////////////////////////////// +///ֹǿƽ +#define THOST_FTDC_FCT_Manual '0' +///һͶ߸ǿƽ +#define THOST_FTDC_FCT_Single '1' +///Ͷ߸ǿƽ +#define THOST_FTDC_FCT_Group '2' + +typedef char TThostFtdcForceCloseTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentIDsTypeһƷ,+ָ,cu+zn +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentIDsType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskNotifyMethodTypeһ֪ͨ; +///////////////////////////////////////////////////////////////////////// +///ϵͳ֪ͨ +#define THOST_FTDC_RNM_System '0' +///֪ͨ +#define THOST_FTDC_RNM_SMS '1' +///ʼ֪ͨ +#define THOST_FTDC_RNM_EMail '2' +///˹֪ͨ +#define THOST_FTDC_RNM_Manual '3' + +typedef char TThostFtdcRiskNotifyMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskNotifyStatusTypeһ֪ͨ״̬ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_RNS_NotGen '0' +///δ +#define THOST_FTDC_RNS_Generated '1' +///ʧ +#define THOST_FTDC_RNS_SendError '2' +///ѷδ +#define THOST_FTDC_RNS_SendOk '3' +///ѽδȷ +#define THOST_FTDC_RNS_Received '4' +///ȷ +#define THOST_FTDC_RNS_Confirmed '5' + +typedef char TThostFtdcRiskNotifyStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskUserEventTypeһû¼ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_RUE_ExportData '0' + +typedef char TThostFtdcRiskUserEventType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParamIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParamNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParamNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParamValueTypeһֵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParamValueType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcConditionalOrderSortTypeTypeһ +///////////////////////////////////////////////////////////////////////// +///ʹ¼ +#define THOST_FTDC_COST_LastPriceAsc '0' +///ʹ¼۽ +#define THOST_FTDC_COST_LastPriceDesc '1' +///ʹ +#define THOST_FTDC_COST_AskPriceAsc '2' +///ʹ۽ +#define THOST_FTDC_COST_AskPriceDesc '3' +///ʹ +#define THOST_FTDC_COST_BidPriceAsc '4' +///ʹ۽ +#define THOST_FTDC_COST_BidPriceDesc '5' + +typedef char TThostFtdcConditionalOrderSortTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSendTypeTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_UOAST_NoSend '0' +///ѷ +#define THOST_FTDC_UOAST_Sended '1' +/// +#define THOST_FTDC_UOAST_Generated '2' +///ʧ +#define THOST_FTDC_UOAST_SendFail '3' +///ճɹ +#define THOST_FTDC_UOAST_Success '4' +///ʧ +#define THOST_FTDC_UOAST_Fail '5' +///ȡ +#define THOST_FTDC_UOAST_Cancel '6' + +typedef char TThostFtdcSendTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientIDStatusTypeһױ״̬ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_UOACS_NoApply '1' +///ύ +#define THOST_FTDC_UOACS_Submited '2' +///ѷ +#define THOST_FTDC_UOACS_Sended '3' +/// +#define THOST_FTDC_UOACS_Success '4' +///ܾ +#define THOST_FTDC_UOACS_Refuse '5' +///ѳ +#define THOST_FTDC_UOACS_Cancel '6' + +typedef char TThostFtdcClientIDStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIndustryIDTypeһҵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIndustryIDType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQuestionIDTypeһϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcQuestionIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQuestionContentTypeһϢ˵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcQuestionContentType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionIDTypeһѡ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOptionIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionContentTypeһѡ˵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOptionContentType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQuestionTypeTypeһϢ +///////////////////////////////////////////////////////////////////////// +///ѡ +#define THOST_FTDC_QT_Radio '1' +///ѡ +#define THOST_FTDC_QT_Option '2' +/// +#define THOST_FTDC_QT_Blank '3' + +typedef char TThostFtdcQuestionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessIDTypeһҵˮ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProcessIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSeqNoTypeһˮ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSeqNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAProcessStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAProcessStatusType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessTypeTypeһ̹ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProcessTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessTypeTypeһҵ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_BT_Request '1' +///Ӧ +#define THOST_FTDC_BT_Response '2' +///֪ͨ +#define THOST_FTDC_BT_Notice '3' + +typedef char TThostFtdcBusinessTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCfmmcReturnCodeTypeһķ +///////////////////////////////////////////////////////////////////////// +///ɹ +#define THOST_FTDC_CRC_Success '0' +///ÿͻѾڴ +#define THOST_FTDC_CRC_Working '1' +///пͻϼʧ +#define THOST_FTDC_CRC_InfoFail '2' +///ʵƼʧ +#define THOST_FTDC_CRC_IDCardFail '3' +/// +#define THOST_FTDC_CRC_OtherFail '4' + +typedef char TThostFtdcCfmmcReturnCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExReturnCodeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcExReturnCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientTypeTypeһͻ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_CfMMCCT_All '0' +/// +#define THOST_FTDC_CfMMCCT_Person '1' +///λ +#define THOST_FTDC_CfMMCCT_Company '2' +/// +#define THOST_FTDC_CfMMCCT_Other '3' +///ⷨ +#define THOST_FTDC_CfMMCCT_SpecialOrgan '4' +///ʹܻ +#define THOST_FTDC_CfMMCCT_Asset '5' + +typedef char TThostFtdcClientTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeIDTypeTypeһ +///////////////////////////////////////////////////////////////////////// +///Ϻڻ +#define THOST_FTDC_EIDT_SHFE 'S' +///֣Ʒ +#define THOST_FTDC_EIDT_CZCE 'Z' +///Ʒ +#define THOST_FTDC_EIDT_DCE 'D' +///йڻ +#define THOST_FTDC_EIDT_CFFEX 'J' +///ϺԴĹɷ޹˾ +#define THOST_FTDC_EIDT_INE 'N' + +typedef char TThostFtdcExchangeIDTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExClientIDTypeTypeһױ +///////////////////////////////////////////////////////////////////////// +///ױ +#define THOST_FTDC_ECIDT_Hedge '1' +/// +#define THOST_FTDC_ECIDT_Arbitrage '2' +///Ͷ +#define THOST_FTDC_ECIDT_Speculation '3' + +typedef char TThostFtdcExClientIDTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientClassifyTypeһͻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientClassifyType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAOrganTypeTypeһλ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAOrganTypeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOACountryCodeTypeһҴ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOACountryCodeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAreaCodeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAreaCodeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFuturesIDTypeһΪͻĴ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFuturesIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffmcDateTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffmcDateType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffmcTimeTypeһʱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffmcTimeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNocIDTypeһ֯ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNocIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUpdateFlagTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_UF_NoUpdate '0' +///ȫϢɹ +#define THOST_FTDC_UF_Success '1' +///ȫϢʧ +#define THOST_FTDC_UF_Fail '2' +///½ױɹ +#define THOST_FTDC_UF_TCSuccess '3' +///½ױʧ +#define THOST_FTDC_UF_TCFail '4' +///Ѷ +#define THOST_FTDC_UF_Cancel '5' + +typedef char TThostFtdcUpdateFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplyOperateIDTypeһ붯 +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_AOID_OpenInvestor '1' +///޸Ϣ +#define THOST_FTDC_AOID_ModifyIDCard '2' +///޸һϢ +#define THOST_FTDC_AOID_ModifyNoIDCard '3' +///뽻ױ +#define THOST_FTDC_AOID_ApplyTradingCode '4' +///ױ +#define THOST_FTDC_AOID_CancelTradingCode '5' +/// +#define THOST_FTDC_AOID_CancelInvestor '6' +///˻ +#define THOST_FTDC_AOID_FreezeAccount '8' +///˻ +#define THOST_FTDC_AOID_ActiveFreezeAccount '9' + +typedef char TThostFtdcApplyOperateIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplyStatusIDTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///δȫ +#define THOST_FTDC_ASID_NoComplete '1' +///ύ +#define THOST_FTDC_ASID_Submited '2' +/// +#define THOST_FTDC_ASID_Checked '3' +///Ѿܾ +#define THOST_FTDC_ASID_Refused '4' +///ɾ +#define THOST_FTDC_ASID_Deleted '5' + +typedef char TThostFtdcApplyStatusIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSendMethodTypeһͷʽ +///////////////////////////////////////////////////////////////////////// +///ļ +#define THOST_FTDC_UOASM_ByAPI '1' +///ӷ +#define THOST_FTDC_UOASM_ByFile '2' + +typedef char TThostFtdcSendMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEventTypeTypeһҵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEventTypeType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEventModeTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_EvM_ADD '1' +///޸ +#define THOST_FTDC_EvM_UPDATE '2' +///ɾ +#define THOST_FTDC_EvM_DELETE '3' +/// +#define THOST_FTDC_EvM_CHECK '4' +/// +#define THOST_FTDC_EvM_COPY '5' +///ע +#define THOST_FTDC_EvM_CANCEL '6' +/// +#define THOST_FTDC_EvM_Reverse '7' + +typedef char TThostFtdcEventModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAAutoSendTypeһͳһԶ +///////////////////////////////////////////////////////////////////////// +///ԶͲ +#define THOST_FTDC_UOAA_ASR '1' +///ԶͣԶ +#define THOST_FTDC_UOAA_ASNR '2' +///ԶͣԶ +#define THOST_FTDC_UOAA_NSAR '3' +///ԶͣҲԶ +#define THOST_FTDC_UOAA_NSR '4' + +typedef char TThostFtdcUOAAutoSendType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryDepthTypeһѯ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcQueryDepthType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataCenterIDTypeһĴ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDataCenterIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFlowIDTypeһID +///////////////////////////////////////////////////////////////////////// +///Ͷ߶ӦͶ +#define THOST_FTDC_EvM_InvestorGroupFlow '1' +///Ͷ +#define THOST_FTDC_EvM_InvestorRate '2' +///Ͷģϵ +#define THOST_FTDC_EvM_InvestorCommRateModel '3' + +typedef char TThostFtdcFlowIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckLevelTypeһ˼ +///////////////////////////////////////////////////////////////////////// +///㼶 +#define THOST_FTDC_CL_Zero '0' +///һ +#define THOST_FTDC_CL_One '1' +/// +#define THOST_FTDC_CL_Two '2' + +typedef char TThostFtdcCheckLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckNoTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCheckNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckStatusTypeһ˼ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_CHS_Init '0' +/// +#define THOST_FTDC_CHS_Checking '1' +///Ѹ +#define THOST_FTDC_CHS_Checked '2' +///ܾ +#define THOST_FTDC_CHS_Refuse '3' +/// +#define THOST_FTDC_CHS_Cancel '4' + +typedef char TThostFtdcCheckStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUsedStatusTypeһЧ״̬ +///////////////////////////////////////////////////////////////////////// +///δЧ +#define THOST_FTDC_CHU_Unused '0' +///Ч +#define THOST_FTDC_CHU_Used '1' +///Чʧ +#define THOST_FTDC_CHU_Fail '2' + +typedef char TThostFtdcUsedStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateTemplateNameTypeһģ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRateTemplateNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyStringTypeһڲѯͶֶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPropertyStringType[2049]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAcountOriginTypeһ˻Դ +///////////////////////////////////////////////////////////////////////// +///ֹ¼ +#define THOST_FTDC_BAO_ByAccProperty '0' +///ת +#define THOST_FTDC_BAO_ByFBTransfer '1' + +typedef char TThostFtdcBankAcountOriginType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMonthBillTradeSumTypeһ㵥±ɽܷʽ +///////////////////////////////////////////////////////////////////////// +///ͬͬԼ +#define THOST_FTDC_MBTS_ByInstrument '0' +///ͬͬԼͬ۸ +#define THOST_FTDC_MBTS_ByDayInsPrc '1' +///ͬԼ +#define THOST_FTDC_MBTS_ByDayIns '2' + +typedef char TThostFtdcMonthBillTradeSumType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTTradeCodeEnumTypeһڽ״ö +///////////////////////////////////////////////////////////////////////// +///зתڻ +#define THOST_FTDC_FTC_BankLaunchBankToBroker '102001' +///ڻתڻ +#define THOST_FTDC_FTC_BrokerLaunchBankToBroker '202001' +///зڻת +#define THOST_FTDC_FTC_BankLaunchBrokerToBank '102002' +///ڻڻת +#define THOST_FTDC_FTC_BrokerLaunchBrokerToBank '202002' + +typedef char TThostFtdcFBTTradeCodeEnumType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateTemplateIDTypeһģʹ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRateTemplateIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskRateTypeһն +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRiskRateType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimestampTypeһʱ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTimestampType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorIDRuleNameTypeһŶι +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorIDRuleNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorIDRuleExprTypeһŶιʽ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorIDRuleExprType[513]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLastDriftTypeһϴOTPƯֵ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLastDriftType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLastSuccessTypeһϴOTPɹֵ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLastSuccessType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthKeyTypeһԿ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthKeyType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSerialNumberTypeһк +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSerialNumberType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPTypeTypeһ̬ +///////////////////////////////////////////////////////////////////////// +///޶̬ +#define THOST_FTDC_OTP_NONE '0' +///ʱ +#define THOST_FTDC_OTP_TOTP '1' + +typedef char TThostFtdcOTPTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPVendorsIDTypeһ̬ṩ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTPVendorsIDType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPVendorsNameTypeһ̬ṩ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTPVendorsNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPStatusTypeһ̬״̬ +///////////////////////////////////////////////////////////////////////// +///δʹ +#define THOST_FTDC_OTPS_Unused '0' +///ʹ +#define THOST_FTDC_OTPS_Used '1' +///ע +#define THOST_FTDC_OTPS_Disuse '2' + +typedef char TThostFtdcOTPStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerUserTypeTypeһù˾û +///////////////////////////////////////////////////////////////////////// +///Ͷ +#define THOST_FTDC_BUT_Investor '1' +///Ա +#define THOST_FTDC_BUT_BrokerUser '2' + +typedef char TThostFtdcBrokerUserTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureTypeTypeһڻ +///////////////////////////////////////////////////////////////////////// +///Ʒڻ +#define THOST_FTDC_FUTT_Commodity '1' +///ڻ +#define THOST_FTDC_FUTT_Financial '2' + +typedef char TThostFtdcFutureTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundEventTypeTypeһʽ +///////////////////////////////////////////////////////////////////////// +///ת޶ +#define THOST_FTDC_FET_Restriction '0' +///ת޶ +#define THOST_FTDC_FET_TodayRestriction '1' +///ˮ +#define THOST_FTDC_FET_Transfer '2' +///ʽ𶳽 +#define THOST_FTDC_FET_Credit '3' +///Ͷ߿ʽ +#define THOST_FTDC_FET_InvestorWithdrawAlm '4' +///ʻת޶ +#define THOST_FTDC_FET_BankRestriction '5' +///ǩԼ˻ +#define THOST_FTDC_FET_Accountregister '6' +/// +#define THOST_FTDC_FET_ExchangeFundIO '7' +///Ͷ߳ +#define THOST_FTDC_FET_InvestorFundIO '8' + +typedef char TThostFtdcFundEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAccountSourceTypeTypeһʽ˻Դ +///////////////////////////////////////////////////////////////////////// +///ͬ +#define THOST_FTDC_AST_FBTransfer '0' +///ֹ¼ +#define THOST_FTDC_AST_ManualEntry '1' + +typedef char TThostFtdcAccountSourceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCodeSourceTypeTypeһױԴ +///////////////////////////////////////////////////////////////////////// +///ͳһ(ѹ淶) +#define THOST_FTDC_CST_UnifyAccount '0' +///ֹ¼(δ淶) +#define THOST_FTDC_CST_ManualEntry '1' + +typedef char TThostFtdcCodeSourceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserRangeTypeһԱΧ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_UR_All '0' +///һԱ +#define THOST_FTDC_UR_Single '1' + +typedef char TThostFtdcUserRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimeSpanTypeһʱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTimeSpanType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcImportSequenceIDTypeһ̬Ƶα +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcImportSequenceIDType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcByGroupTypeһͳƱͻͳƷʽ +///////////////////////////////////////////////////////////////////////// +///Ͷͳ +#define THOST_FTDC_BG_Investor '2' +///ͳ +#define THOST_FTDC_BG_Group '1' + +typedef char TThostFtdcByGroupType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSumStatModeTypeһͳƱΧͳƷʽ +///////////////////////////////////////////////////////////////////////// +///Լͳ +#define THOST_FTDC_TSSM_Instrument '1' +///Ʒͳ +#define THOST_FTDC_TSSM_Product '2' +///ͳ +#define THOST_FTDC_TSSM_Exchange '3' + +typedef char TThostFtdcTradeSumStatModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcComTypeTypeһϳɽ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcComTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserProductIDTypeһƷʶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserProductIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserProductNameTypeһƷ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserProductNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserProductMemoTypeһƷ˵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserProductMemoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCCancelFlagTypeһ־ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCCancelFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCDateTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCDateType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCInvestorNameTypeһͻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCInvestorNameType[201]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCOpenInvestorNameTypeһͻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCOpenInvestorNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCInvestorIDTypeһͻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCInvestorIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCIdentifiedCardNoTypeһ֤ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCIdentifiedCardNoType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCClientIDTypeһױ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCClientIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCBankFlagTypeһбʶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCBankFlagType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCBankAccountTypeһ˻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCBankAccountType[23]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCOpenNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCOpenNameType[401]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMemoTypeһ˵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCMemoType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTimeTypeһʱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTimeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTradeIDTypeһɽˮ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTradeIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCExchangeInstIDTypeһԼ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCExchangeInstIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMortgageNameTypeһѺƷ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCMortgageNameType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCReasonTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCReasonType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIsSettlementTypeһǷΪǽԱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIsSettlementType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMoneyTypeһʽ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCSRCMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCPriceTypeһ۸ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCSRCPriceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCOptionsTypeTypeһȨ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCOptionsTypeType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCStrikePriceTypeһִм +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCSRCStrikePriceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTargetProductIDTypeһƷ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTargetProductIDType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTargetInstrIDTypeһĺԼ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTargetInstrIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommModelNameTypeһģ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommModelNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommModelMemoTypeһģ屸ע +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommModelMemoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExprSetModeTypeһڱʽ +///////////////////////////////////////////////////////////////////////// +///й +#define THOST_FTDC_ESM_Relative '1' +/// +#define THOST_FTDC_ESM_Typical '2' + +typedef char TThostFtdcExprSetModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateInvestorRangeTypeһͶ߷Χ +///////////////////////////////////////////////////////////////////////// +///˾׼ +#define THOST_FTDC_RIR_All '1' +///ģ +#define THOST_FTDC_RIR_Model '2' +///һͶ +#define THOST_FTDC_RIR_Single '3' + +typedef char TThostFtdcRateInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentBrokerIDTypeһ͹˾ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentBrokerIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDRIdentityIDTypeһĴ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDRIdentityIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDRIdentityNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDRIdentityNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDBLinkIDTypeһDBLinkʶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDBLinkIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncDataStatusTypeһϵͳͬ״̬ +///////////////////////////////////////////////////////////////////////// +///δͬ +#define THOST_FTDC_SDS_Initialize '0' +///ͬ +#define THOST_FTDC_SDS_Settlementing '1' +///ͬ +#define THOST_FTDC_SDS_Settlemented '2' + +typedef char TThostFtdcSyncDataStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSourceTypeһɽԴ +///////////////////////////////////////////////////////////////////////// +///Խͨر +#define THOST_FTDC_TSRC_NORMAL '0' +///Բѯ +#define THOST_FTDC_TSRC_QUERY '1' + +typedef char TThostFtdcTradeSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFlexStatModeTypeһƷԼͳƷʽ +///////////////////////////////////////////////////////////////////////// +///Ʒͳ +#define THOST_FTDC_FSM_Product '1' +///ͳ +#define THOST_FTDC_FSM_Exchange '2' +///ͳ +#define THOST_FTDC_FSM_All '3' + +typedef char TThostFtdcFlexStatModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcByInvestorRangeTypeһͶ߷ΧͳƷʽ +///////////////////////////////////////////////////////////////////////// +///ͳ +#define THOST_FTDC_BIR_Property '1' +///ͳ +#define THOST_FTDC_BIR_All '2' + +typedef char TThostFtdcByInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSRiskRateTypeһն +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSRiskRateType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceNo12Typeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSequenceNo12Type; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyInvestorRangeTypeһͶ߷Χ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_PIR_All '1' +///Ͷ +#define THOST_FTDC_PIR_Property '2' +///һͶ +#define THOST_FTDC_PIR_Single '3' + +typedef char TThostFtdcPropertyInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileStatusTypeһļ״̬ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_FIS_NoCreate '0' +/// +#define THOST_FTDC_FIS_Created '1' +///ʧ +#define THOST_FTDC_FIS_Failed '2' + +typedef char TThostFtdcFileStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileGenStyleTypeһļɷʽ +///////////////////////////////////////////////////////////////////////// +///· +#define THOST_FTDC_FGS_FileTransmit '0' +/// +#define THOST_FTDC_FGS_FileGen '1' + +typedef char TThostFtdcFileGenStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysOperModeTypeһϵͳ־ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_SoM_Add '1' +///޸ +#define THOST_FTDC_SoM_Update '2' +///ɾ +#define THOST_FTDC_SoM_Delete '3' +/// +#define THOST_FTDC_SoM_Copy '4' +/// +#define THOST_FTDC_SoM_AcTive '5' +///ע +#define THOST_FTDC_SoM_CanCel '6' +/// +#define THOST_FTDC_SoM_ReSet '7' + +typedef char TThostFtdcSysOperModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysOperTypeTypeһϵͳ־ +///////////////////////////////////////////////////////////////////////// +///޸IJԱ +#define THOST_FTDC_SoT_UpdatePassword '0' +///Աܹ֯ϵ +#define THOST_FTDC_SoT_UserDepartment '1' +///ɫ +#define THOST_FTDC_SoT_RoleManager '2' +///ɫ +#define THOST_FTDC_SoT_RoleFunction '3' +/// +#define THOST_FTDC_SoT_BaseParam '4' +///òԱ +#define THOST_FTDC_SoT_SetUserID '5' +///ûɫ +#define THOST_FTDC_SoT_SetUserRole '6' +///ûIP +#define THOST_FTDC_SoT_UserIpRestriction '7' +///ܹ֯ +#define THOST_FTDC_SoT_DepartmentManager '8' +///ܹ֯ѯิ +#define THOST_FTDC_SoT_DepartmentCopy '9' +///ױ +#define THOST_FTDC_SoT_Tradingcode 'A' +///Ͷ״̬ά +#define THOST_FTDC_SoT_InvestorStatus 'B' +///ͶȨ޹ +#define THOST_FTDC_SoT_InvestorAuthority 'C' +/// +#define THOST_FTDC_SoT_PropertySet 'D' +///Ͷ +#define THOST_FTDC_SoT_ReSetInvestorPasswd 'E' +///Ͷ߸Ϣά +#define THOST_FTDC_SoT_InvestorPersonalityInfo 'F' + +typedef char TThostFtdcSysOperTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCDataQueyTypeTypeһϱݲѯ +///////////////////////////////////////////////////////////////////////// +///ѯǰձ͵ +#define THOST_FTDC_CSRCQ_Current '0' +///ѯʷ͵Ĵ͹˾ +#define THOST_FTDC_CSRCQ_History '1' + +typedef char TThostFtdcCSRCDataQueyTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFreezeStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///Ծ +#define THOST_FTDC_FRS_Normal '1' +/// +#define THOST_FTDC_FRS_Freeze '0' + +typedef char TThostFtdcFreezeStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStandardStatusTypeһ淶״̬ +///////////////////////////////////////////////////////////////////////// +///ѹ淶 +#define THOST_FTDC_STST_Standard '0' +///δ淶 +#define THOST_FTDC_STST_NonStandard '1' + +typedef char TThostFtdcStandardStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCFreezeStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCFreezeStatusType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRightParamTypeTypeһ +///////////////////////////////////////////////////////////////////////// +///߻ +#define THOST_FTDC_RPT_Freeze '1' +///߻ +#define THOST_FTDC_RPT_FreezeActive '2' +///Ȩ +#define THOST_FTDC_RPT_OpenLimit '3' +///Ȩ +#define THOST_FTDC_RPT_RelieveOpenLimit '4' + +typedef char TThostFtdcRightParamTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRightTemplateIDTypeһģ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRightTemplateIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRightTemplateNameTypeһģ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRightTemplateNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataStatusTypeһϴǮ˱״̬ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_AMLDS_Normal '0' +///ɾ +#define THOST_FTDC_AMLDS_Deleted '1' + +typedef char TThostFtdcDataStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCheckStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_AMLCHS_Init '0' +/// +#define THOST_FTDC_AMLCHS_Checking '1' +///Ѹ +#define THOST_FTDC_AMLCHS_Checked '2' +///ܾϱ +#define THOST_FTDC_AMLCHS_RefuseReport '3' + +typedef char TThostFtdcAMLCheckStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmlDateTypeTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_AMLDT_DrawDay '0' +/// +#define THOST_FTDC_AMLDT_TouchDay '1' + +typedef char TThostFtdcAmlDateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmlCheckLevelTypeһ˼ +///////////////////////////////////////////////////////////////////////// +///㼶 +#define THOST_FTDC_AMLCL_CheckLevel0 '0' +///һ +#define THOST_FTDC_AMLCL_CheckLevel1 '1' +/// +#define THOST_FTDC_AMLCL_CheckLevel2 '2' +/// +#define THOST_FTDC_AMLCL_CheckLevel3 '3' + +typedef char TThostFtdcAmlCheckLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmlCheckFlowTypeһϴǮݳȡ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAmlCheckFlowType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataTypeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDataTypeType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExportFileTypeTypeһļ +///////////////////////////////////////////////////////////////////////// +///CSV +#define THOST_FTDC_EFT_CSV '0' +///Excel +#define THOST_FTDC_EFT_EXCEL '1' +///DBF +#define THOST_FTDC_EFT_DBF '2' + +typedef char TThostFtdcExportFileTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerTypeTypeһ +///////////////////////////////////////////////////////////////////////// +///ǰ׼ +#define THOST_FTDC_SMT_Before '1' +/// +#define THOST_FTDC_SMT_Settlement '2' +///˶ +#define THOST_FTDC_SMT_After '3' +/// +#define THOST_FTDC_SMT_Settlemented '4' + +typedef char TThostFtdcSettleManagerTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerIDTypeһô +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettleManagerIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettleManagerNameType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerLevelTypeһõȼ +///////////////////////////////////////////////////////////////////////// +///Ҫ +#define THOST_FTDC_SML_Must '1' +/// +#define THOST_FTDC_SML_Alarm '2' +///ʾ +#define THOST_FTDC_SML_Prompt '3' +/// +#define THOST_FTDC_SML_Ignore '4' + +typedef char TThostFtdcSettleManagerLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerGroupTypeһģ +///////////////////////////////////////////////////////////////////////// +///˶ +#define THOST_FTDC_SMG_Exhcange '1' +///ڲ˶ +#define THOST_FTDC_SMG_ASP '2' +///ϱݺ˶ +#define THOST_FTDC_SMG_CSRC '3' + +typedef char TThostFtdcSettleManagerGroupType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckResultMemoTypeһ˶Խ˵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCheckResultMemoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionUrlTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionUrlType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthInfoTypeһͻ֤Ϣ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthInfoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthCodeTypeһͻ֤ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthCodeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLimitUseTypeTypeһֵʹ +///////////////////////////////////////////////////////////////////////// +///ظʹ +#define THOST_FTDC_LUT_Repeatable '1' +///ظʹ +#define THOST_FTDC_LUT_Unrepeatable '2' + +typedef char TThostFtdcLimitUseTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataResourceTypeһԴ +///////////////////////////////////////////////////////////////////////// +///ϵͳ +#define THOST_FTDC_DAR_Settle '1' +/// +#define THOST_FTDC_DAR_Exchange '2' +/// +#define THOST_FTDC_DAR_CSRC '3' + +typedef char TThostFtdcDataResourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarginTypeTypeһ֤ +///////////////////////////////////////////////////////////////////////// +///֤ +#define THOST_FTDC_MGT_ExchMarginRate '0' +///Ͷ֤߱ +#define THOST_FTDC_MGT_InstrMarginRate '1' +///Ͷ߽ױ֤ +#define THOST_FTDC_MGT_InstrMarginRateTrade '2' + +typedef char TThostFtdcMarginTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcActiveTypeTypeһЧ +///////////////////////////////////////////////////////////////////////// +///Ч +#define THOST_FTDC_ACT_Intraday '1' +///Ч +#define THOST_FTDC_ACT_Long '2' + +typedef char TThostFtdcActiveTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarginRateTypeTypeһͻ֤ +///////////////////////////////////////////////////////////////////////// +///֤ +#define THOST_FTDC_MRT_Exchange '1' +///Ͷ֤߱ +#define THOST_FTDC_MRT_Investor '2' +///Ͷ߽ױ֤ +#define THOST_FTDC_MRT_InvestorTrade '3' + +typedef char TThostFtdcMarginRateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBackUpStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///δɱ +#define THOST_FTDC_BUS_UnBak '0' +/// +#define THOST_FTDC_BUS_BakUp '1' +///ɱ +#define THOST_FTDC_BUS_BakUped '2' +///ʧ +#define THOST_FTDC_BUS_BakFail '3' + +typedef char TThostFtdcBackUpStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInitSettlementTypeһʼ״̬ +///////////////////////////////////////////////////////////////////////// +///ʼδʼ +#define THOST_FTDC_SIS_UnInitialize '0' +///ʼ +#define THOST_FTDC_SIS_Initialize '1' +///ʼ +#define THOST_FTDC_SIS_Initialized '2' + +typedef char TThostFtdcInitSettlementType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReportStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///δɱ +#define THOST_FTDC_SRS_NoCreate '0' +/// +#define THOST_FTDC_SRS_Create '1' +///ɱ +#define THOST_FTDC_SRS_Created '2' +///ɱʧ +#define THOST_FTDC_SRS_CreateFail '3' + +typedef char TThostFtdcReportStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSaveStatusTypeһݹ鵵״̬ +///////////////////////////////////////////////////////////////////////// +///鵵δ +#define THOST_FTDC_SSS_UnSaveData '0' +///鵵 +#define THOST_FTDC_SSS_SaveDatad '1' + +typedef char TThostFtdcSaveStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettArchiveStatusTypeһȷݹ鵵״̬ +///////////////////////////////////////////////////////////////////////// +///δ鵵 +#define THOST_FTDC_SAS_UnArchived '0' +///ݹ鵵 +#define THOST_FTDC_SAS_Archiving '1' +///ѹ鵵 +#define THOST_FTDC_SAS_Archived '2' +///鵵ʧ +#define THOST_FTDC_SAS_ArchiveFail '3' + +typedef char TThostFtdcSettArchiveStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCTPTypeTypeһCTPϵͳ +///////////////////////////////////////////////////////////////////////// +///δ֪ +#define THOST_FTDC_CTPT_Unkown '0' +/// +#define THOST_FTDC_CTPT_MainCenter '1' +/// +#define THOST_FTDC_CTPT_BackUp '2' + +typedef char TThostFtdcCTPTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcToolIDTypeһߴ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcToolIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcToolNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcToolNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCloseDealTypeTypeһƽִ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_CDT_Normal '0' +///Ͷƽ +#define THOST_FTDC_CDT_SpecFirst '1' + +typedef char TThostFtdcCloseDealTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMortgageFundUseRangeTypeһѺʽ÷Χ +///////////////////////////////////////////////////////////////////////// +///ʹ +#define THOST_FTDC_MFUR_None '0' +///ڱ֤ +#define THOST_FTDC_MFUR_Margin '1' +///ѡӯ֤ +#define THOST_FTDC_MFUR_All '2' +///ҷ3 +#define THOST_FTDC_MFUR_CNY3 '3' + +typedef char TThostFtdcMortgageFundUseRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyUnitTypeһֵλ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCurrencyUnitType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeRateTypeһ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcExchangeRateType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSpecProductTypeTypeһƷ +///////////////////////////////////////////////////////////////////////// +///֣ױƷ +#define THOST_FTDC_SPT_CzceHedge '1' +///ѺƷ +#define THOST_FTDC_SPT_IneForeignCurrency '2' +///߿ƽֲƷ +#define THOST_FTDC_SPT_DceOpenClose '3' + +typedef char TThostFtdcSpecProductTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundMortgageTypeTypeһѺ +///////////////////////////////////////////////////////////////////////// +///Ѻ +#define THOST_FTDC_FMT_Mortgage '1' +/// +#define THOST_FTDC_FMT_Redemption '2' + +typedef char TThostFtdcFundMortgageTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAccountSettlementParamIDTypeһͶ˻ +///////////////////////////////////////////////////////////////////////// +///֤ +#define THOST_FTDC_ASPI_BaseMargin '1' +///Ȩ׼ +#define THOST_FTDC_ASPI_LowestInterest '2' + +typedef char TThostFtdcAccountSettlementParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencyNameType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencySignTypeһַ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencySignType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundMortDirectionTypeһѺ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_FMD_In '1' +///ʳ +#define THOST_FTDC_FMD_Out '2' + +typedef char TThostFtdcFundMortDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessClassTypeһ +///////////////////////////////////////////////////////////////////////// +///ӯ +#define THOST_FTDC_BT_Profit '0' +/// +#define THOST_FTDC_BT_Loss '1' +/// +#define THOST_FTDC_BT_Other 'Z' + +typedef char TThostFtdcBusinessClassType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSwapSourceTypeTypeһԴ +///////////////////////////////////////////////////////////////////////// +///ֹ +#define THOST_FTDC_SST_Manual '0' +///Զ +#define THOST_FTDC_SST_Automatic '1' + +typedef char TThostFtdcSwapSourceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrExDirectionTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_CED_Settlement '0' +///ۻ +#define THOST_FTDC_CED_Sale '1' + +typedef char TThostFtdcCurrExDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencySwapStatusTypeһ״̬ +///////////////////////////////////////////////////////////////////////// +///¼ +#define THOST_FTDC_CSS_Entry '1' +/// +#define THOST_FTDC_CSS_Approve '2' +///Ѿܾ +#define THOST_FTDC_CSS_Refuse '3' +///ѳ +#define THOST_FTDC_CSS_Revoke '4' +///ѷ +#define THOST_FTDC_CSS_Send '5' +///ɹ +#define THOST_FTDC_CSS_Success '6' +///ʧ +#define THOST_FTDC_CSS_Failure '7' + +typedef char TThostFtdcCurrencySwapStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrExchCertNoTypeһƾ֤ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrExchCertNoType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBatchSerialNoTypeһκ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBatchSerialNoType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReqFlagTypeһ㷢ͱ־ +///////////////////////////////////////////////////////////////////////// +///δ +#define THOST_FTDC_REQF_NoSend '0' +///ͳɹ +#define THOST_FTDC_REQF_SendSuccess '1' +///ʧ +#define THOST_FTDC_REQF_SendFailed '2' +///ȴط +#define THOST_FTDC_REQF_WaitReSend '3' + +typedef char TThostFtdcReqFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcResFlagTypeһ㷵سɹ־ +///////////////////////////////////////////////////////////////////////// +///ɹ +#define THOST_FTDC_RESF_Success '0' +///˻ +#define THOST_FTDC_RESF_InsuffiCient '1' +///׽δ֪ +#define THOST_FTDC_RESF_UnKnown '8' + +typedef char TThostFtdcResFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPageControlTypeһҳ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPageControlType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRecordCountTypeһ¼ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRecordCountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencySwapMemoTypeһȷϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencySwapMemoType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExStatusTypeһ޸״̬ +///////////////////////////////////////////////////////////////////////// +///޸ǰ +#define THOST_FTDC_EXS_Before '0' +///޸ĺ +#define THOST_FTDC_EXS_After '1' + +typedef char TThostFtdcExStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientRegionTypeһͻ +///////////////////////////////////////////////////////////////////////// +///ڿͻ +#define THOST_FTDC_CR_Domestic '1' +///۰̨ͻ +#define THOST_FTDC_CR_GMT '2' +///ͻ +#define THOST_FTDC_CR_Foreign '3' + +typedef char TThostFtdcClientRegionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWorkPlaceTypeһλ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWorkPlaceType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessPeriodTypeһӪ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBusinessPeriodType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWebSiteTypeһַ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWebSiteType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAIdCardTypeTypeһͳһ֤ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAIdCardTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientModeTypeһģʽ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientModeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorFullNameTypeһͶȫ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorFullNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOABrokerIDTypeһнID +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOABrokerIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAZipCodeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAZipCodeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAEMailTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAEMailType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOldCityTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOldCityType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCorporateIdentifiedCardNoTypeһ˴֤ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCorporateIdentifiedCardNoType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHasBoardTypeһǷж» +///////////////////////////////////////////////////////////////////////// +///û +#define THOST_FTDC_HB_No '0' +/// +#define THOST_FTDC_HB_Yes '1' + +typedef char TThostFtdcHasBoardType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStartModeTypeһģʽ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_SM_Normal '1' +///Ӧ +#define THOST_FTDC_SM_Emerge '2' +///ָ +#define THOST_FTDC_SM_Restore '3' + +typedef char TThostFtdcStartModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTemplateTypeTypeһģ +///////////////////////////////////////////////////////////////////////// +///ȫ +#define THOST_FTDC_TPT_Full '1' +/// +#define THOST_FTDC_TPT_Increment '2' +/// +#define THOST_FTDC_TPT_BackUp '3' + +typedef char TThostFtdcTemplateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLoginModeTypeһ¼ģʽ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_LM_Trade '0' +///ת +#define THOST_FTDC_LM_Transfer '1' + +typedef char TThostFtdcLoginModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPromptTypeTypeһʾ +///////////////////////////////////////////////////////////////////////// +///Լ +#define THOST_FTDC_CPT_Instrument '1' +///ֶ֤Ч +#define THOST_FTDC_CPT_Margin '2' + +typedef char TThostFtdcPromptTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLedgerManageIDTypeһֻʲ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLedgerManageIDType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestVarietyTypeһͶƷ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestVarietyType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccountTypeTypeһ˻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankAccountTypeType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLedgerManageBankTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLedgerManageBankType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffexDepartmentNameTypeһӪҵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffexDepartmentNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffexDepartmentCodeTypeһӪҵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffexDepartmentCodeType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHasTrusteeTypeһǷй +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_HT_Yes '1' +///û +#define THOST_FTDC_HT_No '0' + +typedef char TThostFtdcHasTrusteeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMemo1Typeһ˵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCMemo1Type[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrCFullNameTypeһʲҵڻ˾ȫ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAssetmgrCFullNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrApprovalNOTypeһʲҵĺ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAssetmgrApprovalNOType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrMgrNameTypeһʲҵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAssetmgrMgrNameType[401]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmTypeTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_AMT_Bank '1' +///֤ȯ˾ +#define THOST_FTDC_AMT_Securities '2' +///˾ +#define THOST_FTDC_AMT_Fund '3' +///չ˾ +#define THOST_FTDC_AMT_Insurance '4' +///й˾ +#define THOST_FTDC_AMT_Trust '5' +/// +#define THOST_FTDC_AMT_Other '9' + +typedef char TThostFtdcAmTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCAmTypeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCAmTypeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCFundIOTypeTypeһ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_CFIOT_FundIO '0' +///ڻ +#define THOST_FTDC_CFIOT_SwapCurrency '1' + +typedef char TThostFtdcCSRCFundIOTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCusAccountTypeTypeһ˻ +///////////////////////////////////////////////////////////////////////// +///ڻ˻ +#define THOST_FTDC_CAT_Futures '1' +///ڻʹҵµʹܽ˻ +#define THOST_FTDC_CAT_AssetmgrFuture '2' +///ۺʹҵµڻʹй˻ +#define THOST_FTDC_CAT_AssetmgrTrustee '3' +///ۺʹҵµʽת˻ +#define THOST_FTDC_CAT_AssetmgrTransfer '4' + +typedef char TThostFtdcCusAccountTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCNationalTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCNationalType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCSecAgentIDTypeһID +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCSecAgentIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLanguageTypeTypeһ֪ͨ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_LT_Chinese '1' +///Ӣ +#define THOST_FTDC_LT_English '2' + +typedef char TThostFtdcLanguageTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmAccountTypeһͶ˻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAmAccountType[23]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrClientTypeTypeһʲͻ +///////////////////////////////////////////////////////////////////////// +///ʹܿͻ +#define THOST_FTDC_AMCT_Person '1' +///λʹܿͻ +#define THOST_FTDC_AMCT_Organ '2' +///ⵥλʹܿͻ +#define THOST_FTDC_AMCT_SpecialOrgan '4' + +typedef char TThostFtdcAssetmgrClientTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrTypeTypeһͶ +///////////////////////////////////////////////////////////////////////// +///ڻ +#define THOST_FTDC_ASST_Futures '3' +///ۺ +#define THOST_FTDC_ASST_SpecialOrgan '4' + +typedef char TThostFtdcAssetmgrTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOMTypeһλ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOMType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSHFEInstLifePhaseTypeһԼ״̬ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSHFEInstLifePhaseType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSHFEProductClassTypeһƷ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSHFEProductClassType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriceDecimalTypeһ۸Сλ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPriceDecimalType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInTheMoneyFlagTypeһƽֵȨ־ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInTheMoneyFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckInstrTypeTypeһԼȽ +///////////////////////////////////////////////////////////////////////// +///Լ +#define THOST_FTDC_CIT_HasExch '0' +///Լϵͳ +#define THOST_FTDC_CIT_HasATP '1' +///ԼȽϲһ +#define THOST_FTDC_CIT_HasDiff '2' + +typedef char TThostFtdcCheckInstrTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDeliveryTypeTypeһ +///////////////////////////////////////////////////////////////////////// +///ֹ +#define THOST_FTDC_DT_HandDeliv '1' +///ڽ +#define THOST_FTDC_DT_PersonDeliv '2' + +typedef char TThostFtdcDeliveryTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBigMoneyTypeһʽ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcBigMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMaxMarginSideAlgorithmTypeһ֤߱㷨 +///////////////////////////////////////////////////////////////////////// +///ʹô֤߱㷨 +#define THOST_FTDC_MMSA_NO '0' +///ʹô֤߱㷨 +#define THOST_FTDC_MMSA_YES '1' + +typedef char TThostFtdcMaxMarginSideAlgorithmType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDAClientTypeTypeһʲͻ +///////////////////////////////////////////////////////////////////////// +///Ȼ +#define THOST_FTDC_CACT_Person '0' +/// +#define THOST_FTDC_CACT_Company '1' +/// +#define THOST_FTDC_CACT_Other '2' + +typedef char TThostFtdcDAClientTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombinInstrIDTypeһԼ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombinInstrIDType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombinSettlePriceTypeһȽ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombinSettlePriceType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDCEPriorityTypeһȼ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDCEPriorityType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeGroupIDTypeһɽ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTradeGroupIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIsCheckPrepaTypeһǷУ鿪ʽ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcIsCheckPrepaType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAAssetmgrTypeTypeһͶ +///////////////////////////////////////////////////////////////////////// +///ڻ +#define THOST_FTDC_UOAAT_Futures '1' +///ۺ +#define THOST_FTDC_UOAAT_SpecialOrgan '2' + +typedef char TThostFtdcUOAAssetmgrTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDirectionEnTypeһ +///////////////////////////////////////////////////////////////////////// +///Buy +#define THOST_FTDC_DEN_Buy '0' +///Sell +#define THOST_FTDC_DEN_Sell '1' + +typedef char TThostFtdcDirectionEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOffsetFlagEnTypeһƽ־ +///////////////////////////////////////////////////////////////////////// +///Position Opening +#define THOST_FTDC_OFEN_Open '0' +///Position Close +#define THOST_FTDC_OFEN_Close '1' +///Forced Liquidation +#define THOST_FTDC_OFEN_ForceClose '2' +///Close Today +#define THOST_FTDC_OFEN_CloseToday '3' +///Close Prev. +#define THOST_FTDC_OFEN_CloseYesterday '4' +///Forced Reduction +#define THOST_FTDC_OFEN_ForceOff '5' +///Local Forced Liquidation +#define THOST_FTDC_OFEN_LocalForceClose '6' + +typedef char TThostFtdcOffsetFlagEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHedgeFlagEnTypeһͶױ־ +///////////////////////////////////////////////////////////////////////// +///Speculation +#define THOST_FTDC_HFEN_Speculation '1' +///Arbitrage +#define THOST_FTDC_HFEN_Arbitrage '2' +///Hedge +#define THOST_FTDC_HFEN_Hedge '3' + +typedef char TThostFtdcHedgeFlagEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundIOTypeEnTypeһ +///////////////////////////////////////////////////////////////////////// +///Deposit/Withdrawal +#define THOST_FTDC_FIOTEN_FundIO '1' +///Bank-Futures Transfer +#define THOST_FTDC_FIOTEN_Transfer '2' +///Bank-Futures FX Exchange +#define THOST_FTDC_FIOTEN_SwapCurrency '3' + +typedef char TThostFtdcFundIOTypeEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundTypeEnTypeһʽ +///////////////////////////////////////////////////////////////////////// +///Bank Deposit +#define THOST_FTDC_FTEN_Deposite '1' +///Payment/Fee +#define THOST_FTDC_FTEN_ItemFund '2' +///Brokerage Adj +#define THOST_FTDC_FTEN_Company '3' +///Internal Transfer +#define THOST_FTDC_FTEN_InnerTransfer '4' + +typedef char TThostFtdcFundTypeEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundDirectionEnTypeһ +///////////////////////////////////////////////////////////////////////// +///Deposit +#define THOST_FTDC_FDEN_In '1' +///Withdrawal +#define THOST_FTDC_FDEN_Out '2' + +typedef char TThostFtdcFundDirectionEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundMortDirectionEnTypeһѺ +///////////////////////////////////////////////////////////////////////// +///Pledge +#define THOST_FTDC_FMDEN_In '1' +///Redemption +#define THOST_FTDC_FMDEN_Out '2' + +typedef char TThostFtdcFundMortDirectionEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSwapBusinessTypeTypeһҵ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSwapBusinessTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionsTypeTypeһȨ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_CP_CallOptions '1' +/// +#define THOST_FTDC_CP_PutOptions '2' + +typedef char TThostFtdcOptionsTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeModeTypeһִзʽ +///////////////////////////////////////////////////////////////////////// +///ŷʽ +#define THOST_FTDC_STM_Continental '0' +///ʽ +#define THOST_FTDC_STM_American '1' +///Ľ +#define THOST_FTDC_STM_Bermuda '2' + +typedef char TThostFtdcStrikeModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeTypeTypeһִ +///////////////////////////////////////////////////////////////////////// +///Գ +#define THOST_FTDC_STT_Hedge '0' +///ƥִ +#define THOST_FTDC_STT_Match '1' + +typedef char TThostFtdcStrikeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplyTypeTypeһнȨִ +///////////////////////////////////////////////////////////////////////// +///ִ +#define THOST_FTDC_APPT_NotStrikeNum '4' + +typedef char TThostFtdcApplyTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcGiveUpDataSourceTypeһִԴ +///////////////////////////////////////////////////////////////////////// +///ϵͳ +#define THOST_FTDC_GUDS_Gen '0' +///ֹ +#define THOST_FTDC_GUDS_Hand '1' + +typedef char TThostFtdcGiveUpDataSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecOrderSysIDTypeһִϵͳ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExecOrderSysIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecResultTypeһִн +///////////////////////////////////////////////////////////////////////// +///ûִ +#define THOST_FTDC_OER_NoExec 'n' +///Ѿȡ +#define THOST_FTDC_OER_Canceled 'c' +///ִгɹ +#define THOST_FTDC_OER_OK '0' +///Ȩֲֲ +#define THOST_FTDC_OER_NoPosition '1' +///ʽ𲻹 +#define THOST_FTDC_OER_NoDeposit '2' +///Ա +#define THOST_FTDC_OER_NoParticipant '3' +///ͻ +#define THOST_FTDC_OER_NoClient '4' +///Լ +#define THOST_FTDC_OER_NoInstrument '6' +///ûִȨ +#define THOST_FTDC_OER_NoRight '7' +/// +#define THOST_FTDC_OER_InvalidVolume '8' +///û㹻ʷɽ +#define THOST_FTDC_OER_NoEnoughHistoryTrade '9' +///δ֪ +#define THOST_FTDC_OER_Unknown 'a' + +typedef char TThostFtdcExecResultType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeSequenceTypeһִ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcStrikeSequenceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeTimeTypeһִʱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcStrikeTimeType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombinationTypeTypeһ +///////////////////////////////////////////////////////////////////////// +///ڻ +#define THOST_FTDC_COMBT_Future '0' +///ֱ۲BUL +#define THOST_FTDC_COMBT_BUL '1' +///ֱ۲BER +#define THOST_FTDC_COMBT_BER '2' +///ʽ +#define THOST_FTDC_COMBT_STD '3' +///ʽ +#define THOST_FTDC_COMBT_STG '4' +/// +#define THOST_FTDC_COMBT_PRT '5' +///ʱ۲ +#define THOST_FTDC_COMBT_CLD '6' + +typedef char TThostFtdcCombinationTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDceCombinationTypeTypeһ +///////////////////////////////////////////////////////////////////////// +///ڻ +#define THOST_FTDC_DCECOMBT_SPL '0' +///Ȩ +#define THOST_FTDC_DCECOMBT_OPL '1' +///ڻ +#define THOST_FTDC_DCECOMBT_SP '2' +///ڻƷ +#define THOST_FTDC_DCECOMBT_SPC '3' +///Ȩֱ۲ +#define THOST_FTDC_DCECOMBT_BLS '4' +///Ȩֱ۲ +#define THOST_FTDC_DCECOMBT_BES '5' +///Ȩ۲ +#define THOST_FTDC_DCECOMBT_CAS '6' +///Ȩʽ +#define THOST_FTDC_DCECOMBT_STD '7' +///Ȩʽ +#define THOST_FTDC_DCECOMBT_STG '8' +///ڻȨ +#define THOST_FTDC_DCECOMBT_BFO '9' +///ڻȨ +#define THOST_FTDC_DCECOMBT_SFO 'a' + +typedef char TThostFtdcDceCombinationTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionRoyaltyPriceTypeTypeһȨȨ۸ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_ORPT_PreSettlementPrice '1' +///ּ +#define THOST_FTDC_ORPT_OpenPrice '4' +///¼۽ϴֵ +#define THOST_FTDC_ORPT_MaxPreSettlementPrice '5' + +typedef char TThostFtdcOptionRoyaltyPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBalanceAlgorithmTypeһȨ㷨 +///////////////////////////////////////////////////////////////////////// +///Ȩֵӯ +#define THOST_FTDC_BLAG_Default '1' +///Ȩֵ +#define THOST_FTDC_BLAG_IncludeOptValLost '2' + +typedef char TThostFtdcBalanceAlgorithmType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcActionTypeTypeһִ +///////////////////////////////////////////////////////////////////////// +///ִ +#define THOST_FTDC_ACTP_Exec '1' +/// +#define THOST_FTDC_ACTP_Abandon '2' + +typedef char TThostFtdcActionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForQuoteStatusTypeһѯ״̬ +///////////////////////////////////////////////////////////////////////// +///Ѿύ +#define THOST_FTDC_FQST_Submitted 'a' +///Ѿ +#define THOST_FTDC_FQST_Accepted 'b' +///Ѿܾ +#define THOST_FTDC_FQST_Rejected 'c' + +typedef char TThostFtdcForQuoteStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcValueMethodTypeһȡֵʽ +///////////////////////////////////////////////////////////////////////// +///ֵ +#define THOST_FTDC_VM_Absolute '0' +/// +#define THOST_FTDC_VM_Ratio '1' + +typedef char TThostFtdcValueMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecOrderPositionFlagTypeһȨȨǷڻͷı +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_EOPF_Reserve '0' +/// +#define THOST_FTDC_EOPF_UnReserve '1' + +typedef char TThostFtdcExecOrderPositionFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecOrderCloseFlagTypeһȨȨɵͷǷԶƽ +///////////////////////////////////////////////////////////////////////// +///Զƽ +#define THOST_FTDC_EOCF_AutoClose '0' +///Զƽ +#define THOST_FTDC_EOCF_NotToClose '1' + +typedef char TThostFtdcExecOrderCloseFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductTypeTypeһƷ +///////////////////////////////////////////////////////////////////////// +///ڻ +#define THOST_FTDC_PTE_Futures '1' +///Ȩ +#define THOST_FTDC_PTE_Options '2' + +typedef char TThostFtdcProductTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCZCEUploadFileNameTypeһ֣ļ +///////////////////////////////////////////////////////////////////////// +///^\d{8}_zz_\d{4} +#define THOST_FTDC_CUFN_CUFN_O 'O' +///^\d{8}ɽ +#define THOST_FTDC_CUFN_CUFN_T 'T' +///^\d{8}ȳֱֲnew +#define THOST_FTDC_CUFN_CUFN_P 'P' +///^\d{8}ƽ˽ +#define THOST_FTDC_CUFN_CUFN_N 'N' +///^\d{8}ƽֱ +#define THOST_FTDC_CUFN_CUFN_L 'L' +///^\d{8}ʽ +#define THOST_FTDC_CUFN_CUFN_F 'F' +///^\d{8}ϳֱֲ +#define THOST_FTDC_CUFN_CUFN_C 'C' +///^\d{8}֤ +#define THOST_FTDC_CUFN_CUFN_M 'M' + +typedef char TThostFtdcCZCEUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDCEUploadFileNameTypeһļ +///////////////////////////////////////////////////////////////////////// +///^\d{8}_dl_\d{3} +#define THOST_FTDC_DUFN_DUFN_O 'O' +///^\d{8}_ɽ +#define THOST_FTDC_DUFN_DUFN_T 'T' +///^\d{8}_ֱֲ +#define THOST_FTDC_DUFN_DUFN_P 'P' +///^\d{8}_ʽ +#define THOST_FTDC_DUFN_DUFN_F 'F' +///^\d{8}_Żϳֲϸ +#define THOST_FTDC_DUFN_DUFN_C 'C' +///^\d{8}_ֲϸ +#define THOST_FTDC_DUFN_DUFN_D 'D' +///^\d{8}_֤ +#define THOST_FTDC_DUFN_DUFN_M 'M' +///^\d{8}_Ȩִб +#define THOST_FTDC_DUFN_DUFN_S 'S' + +typedef char TThostFtdcDCEUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSHFEUploadFileNameTypeһļ +///////////////////////////////////////////////////////////////////////// +///^\d{4}_\d{8}_\d{8}_DailyFundChg +#define THOST_FTDC_SUFN_SUFN_O 'O' +///^\d{4}_\d{8}_\d{8}_Trade +#define THOST_FTDC_SUFN_SUFN_T 'T' +///^\d{4}_\d{8}_\d{8}_SettlementDetail +#define THOST_FTDC_SUFN_SUFN_P 'P' +///^\d{4}_\d{8}_\d{8}_Capital +#define THOST_FTDC_SUFN_SUFN_F 'F' + +typedef char TThostFtdcSHFEUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFFEXUploadFileNameTypeһнļ +///////////////////////////////////////////////////////////////////////// +///^\d{4}_SG\d{1}_\d{8}_\d{1}_Trade +#define THOST_FTDC_CFUFN_SUFN_T 'T' +///^\d{4}_SG\d{1}_\d{8}_\d{1}_SettlementDetail +#define THOST_FTDC_CFUFN_SUFN_P 'P' +///^\d{4}_SG\d{1}_\d{8}_\d{1}_Capital +#define THOST_FTDC_CFUFN_SUFN_F 'F' +///^\d{4}_SG\d{1}_\d{8}_\d{1}_OptionExec +#define THOST_FTDC_CFUFN_SUFN_S 'S' + +typedef char TThostFtdcCFFEXUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombDirectionTypeһָ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_CMDR_Comb '0' +/// +#define THOST_FTDC_CMDR_UnComb '1' + +typedef char TThostFtdcCombDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeOffsetTypeTypeһȨƫ +///////////////////////////////////////////////////////////////////////// +///ʵֵ +#define THOST_FTDC_STOV_RealValue '1' +///ӯ +#define THOST_FTDC_STOV_ProfitValue '2' +///ʵֵ +#define THOST_FTDC_STOV_RealRatio '3' +///ӯ +#define THOST_FTDC_STOV_ProfitRatio '4' + +typedef char TThostFtdcStrikeOffsetTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReserveOpenAccStasTypeһԤԼ״̬ +///////////////////////////////////////////////////////////////////////// +///ȴ +#define THOST_FTDC_ROAST_Processing '0' +///ѳ +#define THOST_FTDC_ROAST_Cancelled '1' +///ѿ +#define THOST_FTDC_ROAST_Opened '2' +///Ч +#define THOST_FTDC_ROAST_Invalid '3' + +typedef char TThostFtdcReserveOpenAccStasType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLoginRemarkTypeһ¼ע +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLoginRemarkType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestUnitIDTypeһͶʵԪ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestUnitIDType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBulletinIDTypeһ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcBulletinIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNewsTypeTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNewsTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNewsUrgencyTypeһ̶ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNewsUrgencyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAbstractTypeһϢժҪ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAbstractType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcComeFromTypeһϢԴ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcComeFromType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcURLLinkTypeһWEBַ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcURLLinkType[201]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLongIndividualNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongIndividualNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLongFBEBankAccountNameTypeһ˻ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongFBEBankAccountNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateTimeTypeһʱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateTimeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWeakPasswordSourceTypeһԴ +///////////////////////////////////////////////////////////////////////// +/// +#define THOST_FTDC_WPSR_Lib '1' +///ֹ¼ +#define THOST_FTDC_WPSR_Manual '2' + +typedef char TThostFtdcWeakPasswordSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRandomStringTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRandomStringType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptSelfCloseFlagTypeһȨȨͷǷԶԳ +///////////////////////////////////////////////////////////////////////// +///ԶԳȨλ +#define THOST_FTDC_OSCF_CloseSelfOptionPosition '1' +///Ȩλ +#define THOST_FTDC_OSCF_ReserveOptionPosition '2' +///ԶԳԼڻλ +#define THOST_FTDC_OSCF_SellCloseSelfFuturePosition '3' +///Լڻλ +#define THOST_FTDC_OSCF_ReserveFuturePosition '4' + +typedef char TThostFtdcOptSelfCloseFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBizTypeTypeһҵ +///////////////////////////////////////////////////////////////////////// +///ڻ +#define THOST_FTDC_BZTP_Future '1' +///֤ȯ +#define THOST_FTDC_BZTP_Stock '2' + +typedef char TThostFtdcBizTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAppTypeTypeһûApp +///////////////////////////////////////////////////////////////////////// +///ֱͶ +#define THOST_FTDC_APP_TYPE_Investor '1' +///ΪÿͶ߶ӵм +#define THOST_FTDC_APP_TYPE_InvestorRelay '2' +///Ͷ߹һԱӵм +#define THOST_FTDC_APP_TYPE_OperatorRelay '3' +///δ֪ +#define THOST_FTDC_APP_TYPE_UnKnown '4' + +typedef char TThostFtdcAppTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAppIDTypeһApp +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAppIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemInfoLenTypeһϵͳϢ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSystemInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdditionalInfoLenTypeһϢ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcAdditionalInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientSystemInfoTypeһնϵͳϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientSystemInfoType[273]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdditionalInfoTypeһϵͳⲿϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAdditionalInfoType[261]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBase64ClientSystemInfoTypeһbase64նϵͳϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBase64ClientSystemInfoType[365]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBase64AdditionalInfoTypeһbase64ϵͳⲿϢ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBase64AdditionalInfoType[349]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrentAuthMethodTypeһǰõ֤ģʽ0֤ģʽ AӵλʼһλͼƬ֤룬ڶλ̬λ֤ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCurrentAuthMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCaptchaInfoLenTypeһͼƬ֤Ϣ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCaptchaInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCaptchaInfoTypeһͼƬ֤Ϣ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCaptchaInfoType[2561]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserTextSeqTypeһû֤ı +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcUserTextSeqType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandshakeDataTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcHandshakeDataType[301]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandshakeDataLenTypeһݳ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcHandshakeDataLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCryptoKeyVersionTypeһapifrontͨԿ汾 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCryptoKeyVersionType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRsaKeyVersionTypeһԿ汾 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRsaKeyVersionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSoftwareProviderIDTypeһID +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSoftwareProviderIDType[22]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCollectTimeTypeһϢɼʱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCollectTimeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryFreqTypeһѯƵ +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcQueryFreqType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcResponseValueTypeһӦ +///////////////////////////////////////////////////////////////////////// +///ɹ +#define THOST_FTDC_RV_Right '0' +///ʧ +#define THOST_FTDC_RV_Refuse '1' + +typedef char TThostFtdcResponseValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTCTradeTypeTypeһOTCɽ +///////////////////////////////////////////////////////////////////////// +///ڽ +#define THOST_FTDC_OTC_TRDT_Block '0' +///ת +#define THOST_FTDC_OTC_TRDT_EFP '1' + +typedef char TThostFtdcOTCTradeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMatchTypeTypeһַƥ䷽ʽ +///////////////////////////////////////////////////////////////////////// +///ֵ +#define THOST_FTDC_OTC_MT_DV01 '1' +///ֵ +#define THOST_FTDC_OTC_MT_ParValue '2' + +typedef char TThostFtdcMatchTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTCTraderIDTypeһOTCԱ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTCTraderIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskValueTypeһڻֵ +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcRiskValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIDBNameTypeһ +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIDBNameType[100]; + +#endif diff --git a/v6.3.6_20160606_api_tradeapi_linux64/ThostFtdcUserApiStruct.h b/v6.3.15_20190220_tradeapi64_se_windows/ThostFtdcUserApiStruct.h similarity index 68% rename from v6.3.6_20160606_api_tradeapi_linux64/ThostFtdcUserApiStruct.h rename to v6.3.15_20190220_tradeapi64_se_windows/ThostFtdcUserApiStruct.h index 8970789..74d5a99 100644 --- a/v6.3.6_20160606_api_tradeapi_linux64/ThostFtdcUserApiStruct.h +++ b/v6.3.15_20190220_tradeapi64_se_windows/ThostFtdcUserApiStruct.h @@ -1,5275 +1,9492 @@ - -#if !defined(THOST_FTDCSTRUCT_H) -#define THOST_FTDCSTRUCT_H - -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 - -#include "ThostFtdcUserApiDataType.h" - -struct CThostFtdcDisseminationField -{ - TThostFtdcSequenceSeriesType SequenceSeries; - TThostFtdcSequenceNoType SequenceNo; -}; - -struct CThostFtdcReqUserLoginField -{ - TThostFtdcDateType TradingDay; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcPasswordType Password; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcProductInfoType InterfaceProductInfo; - TThostFtdcProtocolInfoType ProtocolInfo; - TThostFtdcMacAddressType MacAddress; - TThostFtdcPasswordType OneTimePassword; - TThostFtdcIPAddressType ClientIPAddress; - TThostFtdcLoginRemarkType LoginRemark; - TThostFtdcIPPortType ClientIPPort; -}; - -struct CThostFtdcRspUserLoginField -{ - TThostFtdcDateType TradingDay; - TThostFtdcTimeType LoginTime; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcSystemNameType SystemName; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcOrderRefType MaxOrderRef; - TThostFtdcTimeType SHFETime; - TThostFtdcTimeType DCETime; - TThostFtdcTimeType CZCETime; - TThostFtdcTimeType FFEXTime; - TThostFtdcTimeType INETime; -}; - -struct CThostFtdcUserLogoutField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; -}; - -struct CThostFtdcForceUserLogoutField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; -}; - -struct CThostFtdcReqAuthenticateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcAuthCodeType AuthCode; - TThostFtdcAppIDType AppID; -}; - -struct CThostFtdcRspAuthenticateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcAppIDType AppID; - TThostFtdcAppTypeType AppType; -}; - -struct CThostFtdcAuthenticationInfoField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcAuthInfoType AuthInfo; - TThostFtdcBoolType IsResult; - TThostFtdcAppIDType AppID; - TThostFtdcAppTypeType AppType; -}; - -struct CThostFtdcRspUserLogin2Field -{ - TThostFtdcDateType TradingDay; - TThostFtdcTimeType LoginTime; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcSystemNameType SystemName; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcOrderRefType MaxOrderRef; - TThostFtdcTimeType SHFETime; - TThostFtdcTimeType DCETime; - TThostFtdcTimeType CZCETime; - TThostFtdcTimeType FFEXTime; - TThostFtdcTimeType INETime; - TThostFtdcRandomStringType RandomString; -}; - -struct CThostFtdcTransferHeaderField -{ - TThostFtdcVersionType Version; - TThostFtdcTradeCodeType TradeCode; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcTradeSerialType TradeSerial; - TThostFtdcFutureIDType FutureID; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBrchID; - TThostFtdcOperNoType OperNo; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcRecordNumType RecordNum; - TThostFtdcSessionIDType SessionID; - TThostFtdcRequestIDType RequestID; -}; - -struct CThostFtdcTransferBankToFutureReqField -{ - TThostFtdcAccountIDType FutureAccount; - TThostFtdcFuturePwdFlagType FuturePwdFlag; - TThostFtdcFutureAccPwdType FutureAccPwd; - TThostFtdcMoneyType TradeAmt; - TThostFtdcMoneyType CustFee; - TThostFtdcCurrencyCodeType CurrencyCode; -}; - -struct CThostFtdcTransferBankToFutureRspField -{ - TThostFtdcRetCodeType RetCode; - TThostFtdcRetInfoType RetInfo; - TThostFtdcAccountIDType FutureAccount; - TThostFtdcMoneyType TradeAmt; - TThostFtdcMoneyType CustFee; - TThostFtdcCurrencyCodeType CurrencyCode; -}; - -struct CThostFtdcTransferFutureToBankReqField -{ - TThostFtdcAccountIDType FutureAccount; - TThostFtdcFuturePwdFlagType FuturePwdFlag; - TThostFtdcFutureAccPwdType FutureAccPwd; - TThostFtdcMoneyType TradeAmt; - TThostFtdcMoneyType CustFee; - TThostFtdcCurrencyCodeType CurrencyCode; -}; - -struct CThostFtdcTransferFutureToBankRspField -{ - TThostFtdcRetCodeType RetCode; - TThostFtdcRetInfoType RetInfo; - TThostFtdcAccountIDType FutureAccount; - TThostFtdcMoneyType TradeAmt; - TThostFtdcMoneyType CustFee; - TThostFtdcCurrencyCodeType CurrencyCode; -}; - -struct CThostFtdcTransferQryBankReqField -{ - TThostFtdcAccountIDType FutureAccount; - TThostFtdcFuturePwdFlagType FuturePwdFlag; - TThostFtdcFutureAccPwdType FutureAccPwd; - TThostFtdcCurrencyCodeType CurrencyCode; -}; - -struct CThostFtdcTransferQryBankRspField -{ - TThostFtdcRetCodeType RetCode; - TThostFtdcRetInfoType RetInfo; - TThostFtdcAccountIDType FutureAccount; - TThostFtdcMoneyType TradeAmt; - TThostFtdcMoneyType UseAmt; - TThostFtdcMoneyType FetchAmt; - TThostFtdcCurrencyCodeType CurrencyCode; -}; - -struct CThostFtdcTransferQryDetailReqField -{ - TThostFtdcAccountIDType FutureAccount; -}; - -struct CThostFtdcTransferQryDetailRspField -{ - TThostFtdcDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcTradeCodeType TradeCode; - TThostFtdcTradeSerialNoType FutureSerial; - TThostFtdcFutureIDType FutureID; - TThostFtdcFutureAccountType FutureAccount; - TThostFtdcTradeSerialNoType BankSerial; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBrchID; - TThostFtdcBankAccountType BankAccount; - TThostFtdcCertCodeType CertCode; - TThostFtdcCurrencyCodeType CurrencyCode; - TThostFtdcMoneyType TxAmount; - TThostFtdcTransferValidFlagType Flag; -}; - -struct CThostFtdcRspInfoField -{ - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcExchangeField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcExchangeNameType ExchangeName; - TThostFtdcExchangePropertyType ExchangeProperty; -}; - -struct CThostFtdcProductField -{ - TThostFtdcInstrumentIDType ProductID; - TThostFtdcProductNameType ProductName; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcProductClassType ProductClass; - TThostFtdcVolumeMultipleType VolumeMultiple; - TThostFtdcPriceType PriceTick; - TThostFtdcVolumeType MaxMarketOrderVolume; - TThostFtdcVolumeType MinMarketOrderVolume; - TThostFtdcVolumeType MaxLimitOrderVolume; - TThostFtdcVolumeType MinLimitOrderVolume; - TThostFtdcPositionTypeType PositionType; - TThostFtdcPositionDateTypeType PositionDateType; - TThostFtdcCloseDealTypeType CloseDealType; - TThostFtdcCurrencyIDType TradeCurrencyID; - TThostFtdcMortgageFundUseRangeType MortgageFundUseRange; - TThostFtdcInstrumentIDType ExchangeProductID; - TThostFtdcUnderlyingMultipleType UnderlyingMultiple; -}; - -struct CThostFtdcInstrumentField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInstrumentNameType InstrumentName; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcInstrumentIDType ProductID; - TThostFtdcProductClassType ProductClass; - TThostFtdcYearType DeliveryYear; - TThostFtdcMonthType DeliveryMonth; - TThostFtdcVolumeType MaxMarketOrderVolume; - TThostFtdcVolumeType MinMarketOrderVolume; - TThostFtdcVolumeType MaxLimitOrderVolume; - TThostFtdcVolumeType MinLimitOrderVolume; - TThostFtdcVolumeMultipleType VolumeMultiple; - TThostFtdcPriceType PriceTick; - TThostFtdcDateType CreateDate; - TThostFtdcDateType OpenDate; - TThostFtdcDateType ExpireDate; - TThostFtdcDateType StartDelivDate; - TThostFtdcDateType EndDelivDate; - TThostFtdcInstLifePhaseType InstLifePhase; - TThostFtdcBoolType IsTrading; - TThostFtdcPositionTypeType PositionType; - TThostFtdcPositionDateTypeType PositionDateType; - TThostFtdcRatioType LongMarginRatio; - TThostFtdcRatioType ShortMarginRatio; - TThostFtdcMaxMarginSideAlgorithmType MaxMarginSideAlgorithm; - TThostFtdcInstrumentIDType UnderlyingInstrID; - TThostFtdcPriceType StrikePrice; - TThostFtdcOptionsTypeType OptionsType; - TThostFtdcUnderlyingMultipleType UnderlyingMultiple; - TThostFtdcCombinationTypeType CombinationType; -}; - -struct CThostFtdcBrokerField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcBrokerAbbrType BrokerAbbr; - TThostFtdcBrokerNameType BrokerName; - TThostFtdcBoolType IsActive; -}; - -struct CThostFtdcTraderField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTraderIDType TraderID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcPasswordType Password; - TThostFtdcInstallCountType InstallCount; - TThostFtdcBrokerIDType BrokerID; -}; - -struct CThostFtdcInvestorField -{ - TThostFtdcInvestorIDType InvestorID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorGroupID; - TThostFtdcPartyNameType InvestorName; - TThostFtdcIdCardTypeType IdentifiedCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcBoolType IsActive; - TThostFtdcTelephoneType Telephone; - TThostFtdcAddressType Address; - TThostFtdcDateType OpenDate; - TThostFtdcMobileType Mobile; - TThostFtdcInvestorIDType CommModelID; - TThostFtdcInvestorIDType MarginModelID; -}; - -struct CThostFtdcTradingCodeField -{ - TThostFtdcInvestorIDType InvestorID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcClientIDType ClientID; - TThostFtdcBoolType IsActive; - TThostFtdcClientIDTypeType ClientIDType; - TThostFtdcBranchIDType BranchID; - TThostFtdcBizTypeType BizType; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcPartBrokerField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcBoolType IsActive; -}; - -struct CThostFtdcSuperUserField -{ - TThostFtdcUserIDType UserID; - TThostFtdcUserNameType UserName; - TThostFtdcPasswordType Password; - TThostFtdcBoolType IsActive; -}; - -struct CThostFtdcSuperUserFunctionField -{ - TThostFtdcUserIDType UserID; - TThostFtdcFunctionCodeType FunctionCode; -}; - -struct CThostFtdcInvestorGroupField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorGroupID; - TThostFtdcInvestorGroupNameType InvestorGroupName; -}; - -struct CThostFtdcTradingAccountField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcAccountIDType AccountID; - TThostFtdcMoneyType PreMortgage; - TThostFtdcMoneyType PreCredit; - TThostFtdcMoneyType PreDeposit; - TThostFtdcMoneyType PreBalance; - TThostFtdcMoneyType PreMargin; - TThostFtdcMoneyType InterestBase; - TThostFtdcMoneyType Interest; - TThostFtdcMoneyType Deposit; - TThostFtdcMoneyType Withdraw; - TThostFtdcMoneyType FrozenMargin; - TThostFtdcMoneyType FrozenCash; - TThostFtdcMoneyType FrozenCommission; - TThostFtdcMoneyType CurrMargin; - TThostFtdcMoneyType CashIn; - TThostFtdcMoneyType Commission; - TThostFtdcMoneyType CloseProfit; - TThostFtdcMoneyType PositionProfit; - TThostFtdcMoneyType Balance; - TThostFtdcMoneyType Available; - TThostFtdcMoneyType WithdrawQuota; - TThostFtdcMoneyType Reserve; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcMoneyType Credit; - TThostFtdcMoneyType Mortgage; - TThostFtdcMoneyType ExchangeMargin; - TThostFtdcMoneyType DeliveryMargin; - TThostFtdcMoneyType ExchangeDeliveryMargin; - TThostFtdcMoneyType ReserveBalance; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcMoneyType PreFundMortgageIn; - TThostFtdcMoneyType PreFundMortgageOut; - TThostFtdcMoneyType FundMortgageIn; - TThostFtdcMoneyType FundMortgageOut; - TThostFtdcMoneyType FundMortgageAvailable; - TThostFtdcMoneyType MortgageableFund; - TThostFtdcMoneyType SpecProductMargin; - TThostFtdcMoneyType SpecProductFrozenMargin; - TThostFtdcMoneyType SpecProductCommission; - TThostFtdcMoneyType SpecProductFrozenCommission; - TThostFtdcMoneyType SpecProductPositionProfit; - TThostFtdcMoneyType SpecProductCloseProfit; - TThostFtdcMoneyType SpecProductPositionProfitByAlg; - TThostFtdcMoneyType SpecProductExchangeMargin; - TThostFtdcBizTypeType BizType; - TThostFtdcMoneyType FrozenSwap; - TThostFtdcMoneyType RemainSwap; -}; - -struct CThostFtdcInvestorPositionField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcPosiDirectionType PosiDirection; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcPositionDateType PositionDate; - TThostFtdcVolumeType YdPosition; - TThostFtdcVolumeType Position; - TThostFtdcVolumeType LongFrozen; - TThostFtdcVolumeType ShortFrozen; - TThostFtdcMoneyType LongFrozenAmount; - TThostFtdcMoneyType ShortFrozenAmount; - TThostFtdcVolumeType OpenVolume; - TThostFtdcVolumeType CloseVolume; - TThostFtdcMoneyType OpenAmount; - TThostFtdcMoneyType CloseAmount; - TThostFtdcMoneyType PositionCost; - TThostFtdcMoneyType PreMargin; - TThostFtdcMoneyType UseMargin; - TThostFtdcMoneyType FrozenMargin; - TThostFtdcMoneyType FrozenCash; - TThostFtdcMoneyType FrozenCommission; - TThostFtdcMoneyType CashIn; - TThostFtdcMoneyType Commission; - TThostFtdcMoneyType CloseProfit; - TThostFtdcMoneyType PositionProfit; - TThostFtdcPriceType PreSettlementPrice; - TThostFtdcPriceType SettlementPrice; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcMoneyType OpenCost; - TThostFtdcMoneyType ExchangeMargin; - TThostFtdcVolumeType CombPosition; - TThostFtdcVolumeType CombLongFrozen; - TThostFtdcVolumeType CombShortFrozen; - TThostFtdcMoneyType CloseProfitByDate; - TThostFtdcMoneyType CloseProfitByTrade; - TThostFtdcVolumeType TodayPosition; - TThostFtdcRatioType MarginRateByMoney; - TThostFtdcRatioType MarginRateByVolume; - TThostFtdcVolumeType StrikeFrozen; - TThostFtdcMoneyType StrikeFrozenAmount; - TThostFtdcVolumeType AbandonFrozen; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcVolumeType YdStrikeFrozen; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcInstrumentMarginRateField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcRatioType LongMarginRatioByMoney; - TThostFtdcMoneyType LongMarginRatioByVolume; - TThostFtdcRatioType ShortMarginRatioByMoney; - TThostFtdcMoneyType ShortMarginRatioByVolume; - TThostFtdcBoolType IsRelative; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcInstrumentCommissionRateField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcRatioType OpenRatioByMoney; - TThostFtdcRatioType OpenRatioByVolume; - TThostFtdcRatioType CloseRatioByMoney; - TThostFtdcRatioType CloseRatioByVolume; - TThostFtdcRatioType CloseTodayRatioByMoney; - TThostFtdcRatioType CloseTodayRatioByVolume; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcBizTypeType BizType; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcDepthMarketDataField -{ - TThostFtdcDateType TradingDay; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcPriceType LastPrice; - TThostFtdcPriceType PreSettlementPrice; - TThostFtdcPriceType PreClosePrice; - TThostFtdcLargeVolumeType PreOpenInterest; - TThostFtdcPriceType OpenPrice; - TThostFtdcPriceType HighestPrice; - TThostFtdcPriceType LowestPrice; - TThostFtdcVolumeType Volume; - TThostFtdcMoneyType Turnover; - TThostFtdcLargeVolumeType OpenInterest; - TThostFtdcPriceType ClosePrice; - TThostFtdcPriceType SettlementPrice; - TThostFtdcPriceType UpperLimitPrice; - TThostFtdcPriceType LowerLimitPrice; - TThostFtdcRatioType PreDelta; - TThostFtdcRatioType CurrDelta; - TThostFtdcTimeType UpdateTime; - TThostFtdcMillisecType UpdateMillisec; - TThostFtdcPriceType BidPrice1; - TThostFtdcVolumeType BidVolume1; - TThostFtdcPriceType AskPrice1; - TThostFtdcVolumeType AskVolume1; - TThostFtdcPriceType BidPrice2; - TThostFtdcVolumeType BidVolume2; - TThostFtdcPriceType AskPrice2; - TThostFtdcVolumeType AskVolume2; - TThostFtdcPriceType BidPrice3; - TThostFtdcVolumeType BidVolume3; - TThostFtdcPriceType AskPrice3; - TThostFtdcVolumeType AskVolume3; - TThostFtdcPriceType BidPrice4; - TThostFtdcVolumeType BidVolume4; - TThostFtdcPriceType AskPrice4; - TThostFtdcVolumeType AskVolume4; - TThostFtdcPriceType BidPrice5; - TThostFtdcVolumeType BidVolume5; - TThostFtdcPriceType AskPrice5; - TThostFtdcVolumeType AskVolume5; - TThostFtdcPriceType AveragePrice; - TThostFtdcDateType ActionDay; -}; - -struct CThostFtdcInstrumentTradingRightField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcTradingRightType TradingRight; -}; - -struct CThostFtdcBrokerUserField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcUserNameType UserName; - TThostFtdcUserTypeType UserType; - TThostFtdcBoolType IsActive; - TThostFtdcBoolType IsUsingOTP; - TThostFtdcBoolType IsAuthForce; -}; - -struct CThostFtdcBrokerUserPasswordField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcPasswordType Password; - TThostFtdcDateTimeType LastUpdateTime; - TThostFtdcDateTimeType LastLoginTime; - TThostFtdcDateType ExpireDate; - TThostFtdcDateType WeakExpireDate; -}; - -struct CThostFtdcBrokerUserFunctionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcBrokerFunctionCodeType BrokerFunctionCode; -}; - -struct CThostFtdcTraderOfferField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTraderIDType TraderID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcPasswordType Password; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType OrderLocalID; - TThostFtdcTraderConnectStatusType TraderConnectStatus; - TThostFtdcDateType ConnectRequestDate; - TThostFtdcTimeType ConnectRequestTime; - TThostFtdcDateType LastReportDate; - TThostFtdcTimeType LastReportTime; - TThostFtdcDateType ConnectDate; - TThostFtdcTimeType ConnectTime; - TThostFtdcDateType StartDate; - TThostFtdcTimeType StartTime; - TThostFtdcDateType TradingDay; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcTradeIDType MaxTradeID; - TThostFtdcReturnCodeType MaxOrderMessageReference; -}; - -struct CThostFtdcSettlementInfoField -{ - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcContentType Content; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcInstrumentMarginRateAdjustField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcRatioType LongMarginRatioByMoney; - TThostFtdcMoneyType LongMarginRatioByVolume; - TThostFtdcRatioType ShortMarginRatioByMoney; - TThostFtdcMoneyType ShortMarginRatioByVolume; - TThostFtdcBoolType IsRelative; -}; - -struct CThostFtdcExchangeMarginRateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcRatioType LongMarginRatioByMoney; - TThostFtdcMoneyType LongMarginRatioByVolume; - TThostFtdcRatioType ShortMarginRatioByMoney; - TThostFtdcMoneyType ShortMarginRatioByVolume; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcExchangeMarginRateAdjustField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcRatioType LongMarginRatioByMoney; - TThostFtdcMoneyType LongMarginRatioByVolume; - TThostFtdcRatioType ShortMarginRatioByMoney; - TThostFtdcMoneyType ShortMarginRatioByVolume; - TThostFtdcRatioType ExchLongMarginRatioByMoney; - TThostFtdcMoneyType ExchLongMarginRatioByVolume; - TThostFtdcRatioType ExchShortMarginRatioByMoney; - TThostFtdcMoneyType ExchShortMarginRatioByVolume; - TThostFtdcRatioType NoLongMarginRatioByMoney; - TThostFtdcMoneyType NoLongMarginRatioByVolume; - TThostFtdcRatioType NoShortMarginRatioByMoney; - TThostFtdcMoneyType NoShortMarginRatioByVolume; -}; - -struct CThostFtdcExchangeRateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcCurrencyIDType FromCurrencyID; - TThostFtdcCurrencyUnitType FromCurrencyUnit; - TThostFtdcCurrencyIDType ToCurrencyID; - TThostFtdcExchangeRateType ExchangeRate; -}; - -struct CThostFtdcSettlementRefField -{ - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; -}; - -struct CThostFtdcCurrentTimeField -{ - TThostFtdcDateType CurrDate; - TThostFtdcTimeType CurrTime; - TThostFtdcMillisecType CurrMillisec; - TThostFtdcDateType ActionDay; -}; - -struct CThostFtdcCommPhaseField -{ - TThostFtdcDateType TradingDay; - TThostFtdcCommPhaseNoType CommPhaseNo; - TThostFtdcSystemIDType SystemID; -}; - -struct CThostFtdcLoginInfoField -{ - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcDateType LoginDate; - TThostFtdcTimeType LoginTime; - TThostFtdcIPAddressType IPAddress; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcProductInfoType InterfaceProductInfo; - TThostFtdcProtocolInfoType ProtocolInfo; - TThostFtdcSystemNameType SystemName; - TThostFtdcPasswordType PasswordDeprecated; - TThostFtdcOrderRefType MaxOrderRef; - TThostFtdcTimeType SHFETime; - TThostFtdcTimeType DCETime; - TThostFtdcTimeType CZCETime; - TThostFtdcTimeType FFEXTime; - TThostFtdcMacAddressType MacAddress; - TThostFtdcPasswordType OneTimePassword; - TThostFtdcTimeType INETime; - TThostFtdcBoolType IsQryControl; - TThostFtdcLoginRemarkType LoginRemark; - TThostFtdcPasswordType Password; -}; - -struct CThostFtdcLogoutAllField -{ - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcSystemNameType SystemName; -}; - -struct CThostFtdcFrontStatusField -{ - TThostFtdcFrontIDType FrontID; - TThostFtdcDateType LastReportDate; - TThostFtdcTimeType LastReportTime; - TThostFtdcBoolType IsActive; -}; - -struct CThostFtdcUserPasswordUpdateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcPasswordType OldPassword; - TThostFtdcPasswordType NewPassword; -}; - -struct CThostFtdcInputOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType OrderRef; - TThostFtdcUserIDType UserID; - TThostFtdcOrderPriceTypeType OrderPriceType; - TThostFtdcDirectionType Direction; - TThostFtdcCombOffsetFlagType CombOffsetFlag; - TThostFtdcCombHedgeFlagType CombHedgeFlag; - TThostFtdcPriceType LimitPrice; - TThostFtdcVolumeType VolumeTotalOriginal; - TThostFtdcTimeConditionType TimeCondition; - TThostFtdcDateType GTDDate; - TThostFtdcVolumeConditionType VolumeCondition; - TThostFtdcVolumeType MinVolume; - TThostFtdcContingentConditionType ContingentCondition; - TThostFtdcPriceType StopPrice; - TThostFtdcForceCloseReasonType ForceCloseReason; - TThostFtdcBoolType IsAutoSuspend; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcRequestIDType RequestID; - TThostFtdcBoolType UserForceClose; - TThostFtdcBoolType IsSwapOrder; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcClientIDType ClientID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType OrderRef; - TThostFtdcUserIDType UserID; - TThostFtdcOrderPriceTypeType OrderPriceType; - TThostFtdcDirectionType Direction; - TThostFtdcCombOffsetFlagType CombOffsetFlag; - TThostFtdcCombHedgeFlagType CombHedgeFlag; - TThostFtdcPriceType LimitPrice; - TThostFtdcVolumeType VolumeTotalOriginal; - TThostFtdcTimeConditionType TimeCondition; - TThostFtdcDateType GTDDate; - TThostFtdcVolumeConditionType VolumeCondition; - TThostFtdcVolumeType MinVolume; - TThostFtdcContingentConditionType ContingentCondition; - TThostFtdcPriceType StopPrice; - TThostFtdcForceCloseReasonType ForceCloseReason; - TThostFtdcBoolType IsAutoSuspend; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcRequestIDType RequestID; - TThostFtdcOrderLocalIDType OrderLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - TThostFtdcSequenceNoType NotifySequence; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcOrderSourceType OrderSource; - TThostFtdcOrderStatusType OrderStatus; - TThostFtdcOrderTypeType OrderType; - TThostFtdcVolumeType VolumeTraded; - TThostFtdcVolumeType VolumeTotal; - TThostFtdcDateType InsertDate; - TThostFtdcTimeType InsertTime; - TThostFtdcTimeType ActiveTime; - TThostFtdcTimeType SuspendTime; - TThostFtdcTimeType UpdateTime; - TThostFtdcTimeType CancelTime; - TThostFtdcTraderIDType ActiveTraderID; - TThostFtdcParticipantIDType ClearingPartID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcBoolType UserForceClose; - TThostFtdcUserIDType ActiveUserID; - TThostFtdcSequenceNoType BrokerOrderSeq; - TThostFtdcOrderSysIDType RelativeOrderSysID; - TThostFtdcVolumeType ZCETotalTradedVolume; - TThostFtdcBoolType IsSwapOrder; - TThostFtdcBranchIDType BranchID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcExchangeOrderField -{ - TThostFtdcOrderPriceTypeType OrderPriceType; - TThostFtdcDirectionType Direction; - TThostFtdcCombOffsetFlagType CombOffsetFlag; - TThostFtdcCombHedgeFlagType CombHedgeFlag; - TThostFtdcPriceType LimitPrice; - TThostFtdcVolumeType VolumeTotalOriginal; - TThostFtdcTimeConditionType TimeCondition; - TThostFtdcDateType GTDDate; - TThostFtdcVolumeConditionType VolumeCondition; - TThostFtdcVolumeType MinVolume; - TThostFtdcContingentConditionType ContingentCondition; - TThostFtdcPriceType StopPrice; - TThostFtdcForceCloseReasonType ForceCloseReason; - TThostFtdcBoolType IsAutoSuspend; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcRequestIDType RequestID; - TThostFtdcOrderLocalIDType OrderLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - TThostFtdcSequenceNoType NotifySequence; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcOrderSourceType OrderSource; - TThostFtdcOrderStatusType OrderStatus; - TThostFtdcOrderTypeType OrderType; - TThostFtdcVolumeType VolumeTraded; - TThostFtdcVolumeType VolumeTotal; - TThostFtdcDateType InsertDate; - TThostFtdcTimeType InsertTime; - TThostFtdcTimeType ActiveTime; - TThostFtdcTimeType SuspendTime; - TThostFtdcTimeType UpdateTime; - TThostFtdcTimeType CancelTime; - TThostFtdcTraderIDType ActiveTraderID; - TThostFtdcParticipantIDType ClearingPartID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcBranchIDType BranchID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcExchangeOrderInsertErrorField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType OrderLocalID; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcInputOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType OrderActionRef; - TThostFtdcOrderRefType OrderRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcPriceType LimitPrice; - TThostFtdcVolumeType VolumeChange; - TThostFtdcUserIDType UserID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType OrderActionRef; - TThostFtdcOrderRefType OrderRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcPriceType LimitPrice; - TThostFtdcVolumeType VolumeChange; - TThostFtdcDateType ActionDate; - TThostFtdcTimeType ActionTime; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType OrderLocalID; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOrderActionStatusType OrderActionStatus; - TThostFtdcUserIDType UserID; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcBranchIDType BranchID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcExchangeOrderActionField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcPriceType LimitPrice; - TThostFtdcVolumeType VolumeChange; - TThostFtdcDateType ActionDate; - TThostFtdcTimeType ActionTime; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType OrderLocalID; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOrderActionStatusType OrderActionStatus; - TThostFtdcUserIDType UserID; - TThostFtdcBranchIDType BranchID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcExchangeOrderActionErrorField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType OrderLocalID; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcExchangeTradeField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTradeIDType TradeID; - TThostFtdcDirectionType Direction; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcTradingRoleType TradingRole; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcOffsetFlagType OffsetFlag; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcPriceType Price; - TThostFtdcVolumeType Volume; - TThostFtdcDateType TradeDate; - TThostFtdcTimeType TradeTime; - TThostFtdcTradeTypeType TradeType; - TThostFtdcPriceSourceType PriceSource; - TThostFtdcTraderIDType TraderID; - TThostFtdcOrderLocalIDType OrderLocalID; - TThostFtdcParticipantIDType ClearingPartID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcTradeSourceType TradeSource; -}; - -struct CThostFtdcTradeField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType OrderRef; - TThostFtdcUserIDType UserID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTradeIDType TradeID; - TThostFtdcDirectionType Direction; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcTradingRoleType TradingRole; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcOffsetFlagType OffsetFlag; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcPriceType Price; - TThostFtdcVolumeType Volume; - TThostFtdcDateType TradeDate; - TThostFtdcTimeType TradeTime; - TThostFtdcTradeTypeType TradeType; - TThostFtdcPriceSourceType PriceSource; - TThostFtdcTraderIDType TraderID; - TThostFtdcOrderLocalIDType OrderLocalID; - TThostFtdcParticipantIDType ClearingPartID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcSequenceNoType BrokerOrderSeq; - TThostFtdcTradeSourceType TradeSource; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcUserSessionField -{ - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcDateType LoginDate; - TThostFtdcTimeType LoginTime; - TThostFtdcIPAddressType IPAddress; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcProductInfoType InterfaceProductInfo; - TThostFtdcProtocolInfoType ProtocolInfo; - TThostFtdcMacAddressType MacAddress; - TThostFtdcLoginRemarkType LoginRemark; -}; - -struct CThostFtdcQueryMaxOrderVolumeField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcDirectionType Direction; - TThostFtdcOffsetFlagType OffsetFlag; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcVolumeType MaxVolume; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcSettlementInfoConfirmField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcDateType ConfirmDate; - TThostFtdcTimeType ConfirmTime; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcSyncDepositField -{ - TThostFtdcDepositSeqNoType DepositSeqNo; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcMoneyType Deposit; - TThostFtdcBoolType IsForce; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcSyncFundMortgageField -{ - TThostFtdcDepositSeqNoType MortgageSeqNo; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcCurrencyIDType FromCurrencyID; - TThostFtdcMoneyType MortgageAmount; - TThostFtdcCurrencyIDType ToCurrencyID; -}; - -struct CThostFtdcBrokerSyncField -{ - TThostFtdcBrokerIDType BrokerID; -}; - -struct CThostFtdcSyncingInvestorField -{ - TThostFtdcInvestorIDType InvestorID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorGroupID; - TThostFtdcPartyNameType InvestorName; - TThostFtdcIdCardTypeType IdentifiedCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcBoolType IsActive; - TThostFtdcTelephoneType Telephone; - TThostFtdcAddressType Address; - TThostFtdcDateType OpenDate; - TThostFtdcMobileType Mobile; - TThostFtdcInvestorIDType CommModelID; - TThostFtdcInvestorIDType MarginModelID; -}; - -struct CThostFtdcSyncingTradingCodeField -{ - TThostFtdcInvestorIDType InvestorID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcClientIDType ClientID; - TThostFtdcBoolType IsActive; - TThostFtdcClientIDTypeType ClientIDType; -}; - -struct CThostFtdcSyncingInvestorGroupField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorGroupID; - TThostFtdcInvestorGroupNameType InvestorGroupName; -}; - -struct CThostFtdcSyncingTradingAccountField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcAccountIDType AccountID; - TThostFtdcMoneyType PreMortgage; - TThostFtdcMoneyType PreCredit; - TThostFtdcMoneyType PreDeposit; - TThostFtdcMoneyType PreBalance; - TThostFtdcMoneyType PreMargin; - TThostFtdcMoneyType InterestBase; - TThostFtdcMoneyType Interest; - TThostFtdcMoneyType Deposit; - TThostFtdcMoneyType Withdraw; - TThostFtdcMoneyType FrozenMargin; - TThostFtdcMoneyType FrozenCash; - TThostFtdcMoneyType FrozenCommission; - TThostFtdcMoneyType CurrMargin; - TThostFtdcMoneyType CashIn; - TThostFtdcMoneyType Commission; - TThostFtdcMoneyType CloseProfit; - TThostFtdcMoneyType PositionProfit; - TThostFtdcMoneyType Balance; - TThostFtdcMoneyType Available; - TThostFtdcMoneyType WithdrawQuota; - TThostFtdcMoneyType Reserve; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcMoneyType Credit; - TThostFtdcMoneyType Mortgage; - TThostFtdcMoneyType ExchangeMargin; - TThostFtdcMoneyType DeliveryMargin; - TThostFtdcMoneyType ExchangeDeliveryMargin; - TThostFtdcMoneyType ReserveBalance; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcMoneyType PreFundMortgageIn; - TThostFtdcMoneyType PreFundMortgageOut; - TThostFtdcMoneyType FundMortgageIn; - TThostFtdcMoneyType FundMortgageOut; - TThostFtdcMoneyType FundMortgageAvailable; - TThostFtdcMoneyType MortgageableFund; - TThostFtdcMoneyType SpecProductMargin; - TThostFtdcMoneyType SpecProductFrozenMargin; - TThostFtdcMoneyType SpecProductCommission; - TThostFtdcMoneyType SpecProductFrozenCommission; - TThostFtdcMoneyType SpecProductPositionProfit; - TThostFtdcMoneyType SpecProductCloseProfit; - TThostFtdcMoneyType SpecProductPositionProfitByAlg; - TThostFtdcMoneyType SpecProductExchangeMargin; - TThostFtdcMoneyType FrozenSwap; - TThostFtdcMoneyType RemainSwap; -}; - -struct CThostFtdcSyncingInvestorPositionField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcPosiDirectionType PosiDirection; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcPositionDateType PositionDate; - TThostFtdcVolumeType YdPosition; - TThostFtdcVolumeType Position; - TThostFtdcVolumeType LongFrozen; - TThostFtdcVolumeType ShortFrozen; - TThostFtdcMoneyType LongFrozenAmount; - TThostFtdcMoneyType ShortFrozenAmount; - TThostFtdcVolumeType OpenVolume; - TThostFtdcVolumeType CloseVolume; - TThostFtdcMoneyType OpenAmount; - TThostFtdcMoneyType CloseAmount; - TThostFtdcMoneyType PositionCost; - TThostFtdcMoneyType PreMargin; - TThostFtdcMoneyType UseMargin; - TThostFtdcMoneyType FrozenMargin; - TThostFtdcMoneyType FrozenCash; - TThostFtdcMoneyType FrozenCommission; - TThostFtdcMoneyType CashIn; - TThostFtdcMoneyType Commission; - TThostFtdcMoneyType CloseProfit; - TThostFtdcMoneyType PositionProfit; - TThostFtdcPriceType PreSettlementPrice; - TThostFtdcPriceType SettlementPrice; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcMoneyType OpenCost; - TThostFtdcMoneyType ExchangeMargin; - TThostFtdcVolumeType CombPosition; - TThostFtdcVolumeType CombLongFrozen; - TThostFtdcVolumeType CombShortFrozen; - TThostFtdcMoneyType CloseProfitByDate; - TThostFtdcMoneyType CloseProfitByTrade; - TThostFtdcVolumeType TodayPosition; - TThostFtdcRatioType MarginRateByMoney; - TThostFtdcRatioType MarginRateByVolume; - TThostFtdcVolumeType StrikeFrozen; - TThostFtdcMoneyType StrikeFrozenAmount; - TThostFtdcVolumeType AbandonFrozen; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcVolumeType YdStrikeFrozen; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcSyncingInstrumentMarginRateField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcRatioType LongMarginRatioByMoney; - TThostFtdcMoneyType LongMarginRatioByVolume; - TThostFtdcRatioType ShortMarginRatioByMoney; - TThostFtdcMoneyType ShortMarginRatioByVolume; - TThostFtdcBoolType IsRelative; -}; - -struct CThostFtdcSyncingInstrumentCommissionRateField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcRatioType OpenRatioByMoney; - TThostFtdcRatioType OpenRatioByVolume; - TThostFtdcRatioType CloseRatioByMoney; - TThostFtdcRatioType CloseRatioByVolume; - TThostFtdcRatioType CloseTodayRatioByMoney; - TThostFtdcRatioType CloseTodayRatioByVolume; -}; - -struct CThostFtdcSyncingInstrumentTradingRightField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcTradingRightType TradingRight; -}; - -struct CThostFtdcQryOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcTimeType InsertTimeStart; - TThostFtdcTimeType InsertTimeEnd; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryTradeField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTradeIDType TradeID; - TThostFtdcTimeType TradeTimeStart; - TThostFtdcTimeType TradeTimeEnd; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryInvestorPositionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryTradingAccountField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcBizTypeType BizType; - TThostFtdcAccountIDType AccountID; -}; - -struct CThostFtdcQryInvestorField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; -}; - -struct CThostFtdcQryTradingCodeField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcClientIDType ClientID; - TThostFtdcClientIDTypeType ClientIDType; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryInvestorGroupField -{ - TThostFtdcBrokerIDType BrokerID; -}; - -struct CThostFtdcQryInstrumentMarginRateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryInstrumentCommissionRateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryInstrumentTradingRightField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; -}; - -struct CThostFtdcQryBrokerField -{ - TThostFtdcBrokerIDType BrokerID; -}; - -struct CThostFtdcQryTraderField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcTraderIDType TraderID; -}; - -struct CThostFtdcQrySuperUserFunctionField -{ - TThostFtdcUserIDType UserID; -}; - -struct CThostFtdcQryUserSessionField -{ - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; -}; - -struct CThostFtdcQryPartBrokerField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcParticipantIDType ParticipantID; -}; - -struct CThostFtdcQryFrontStatusField -{ - TThostFtdcFrontIDType FrontID; -}; - -struct CThostFtdcQryExchangeOrderField -{ - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTraderIDType TraderID; -}; - -struct CThostFtdcQryOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcQryExchangeOrderActionField -{ - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTraderIDType TraderID; -}; - -struct CThostFtdcQrySuperUserField -{ - TThostFtdcUserIDType UserID; -}; - -struct CThostFtdcQryExchangeField -{ - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcQryProductField -{ - TThostFtdcInstrumentIDType ProductID; - TThostFtdcProductClassType ProductClass; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcQryInstrumentField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcInstrumentIDType ProductID; -}; - -struct CThostFtdcQryDepthMarketDataField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcQryBrokerUserField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; -}; - -struct CThostFtdcQryBrokerUserFunctionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; -}; - -struct CThostFtdcQryTraderOfferField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcTraderIDType TraderID; -}; - -struct CThostFtdcQrySyncDepositField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcDepositSeqNoType DepositSeqNo; -}; - -struct CThostFtdcQrySettlementInfoField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcDateType TradingDay; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcQryExchangeMarginRateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcQryExchangeMarginRateAdjustField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcHedgeFlagType HedgeFlag; -}; - -struct CThostFtdcQryExchangeRateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcCurrencyIDType FromCurrencyID; - TThostFtdcCurrencyIDType ToCurrencyID; -}; - -struct CThostFtdcQrySyncFundMortgageField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcDepositSeqNoType MortgageSeqNo; -}; - -struct CThostFtdcQryHisOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcTimeType InsertTimeStart; - TThostFtdcTimeType InsertTimeEnd; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; -}; - -struct CThostFtdcOptionInstrMiniMarginField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcMoneyType MinMargin; - TThostFtdcValueMethodType ValueMethod; - TThostFtdcBoolType IsRelative; -}; - -struct CThostFtdcOptionInstrMarginAdjustField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcRatioType SShortMarginRatioByMoney; - TThostFtdcMoneyType SShortMarginRatioByVolume; - TThostFtdcRatioType HShortMarginRatioByMoney; - TThostFtdcMoneyType HShortMarginRatioByVolume; - TThostFtdcRatioType AShortMarginRatioByMoney; - TThostFtdcMoneyType AShortMarginRatioByVolume; - TThostFtdcBoolType IsRelative; - TThostFtdcRatioType MShortMarginRatioByMoney; - TThostFtdcMoneyType MShortMarginRatioByVolume; -}; - -struct CThostFtdcOptionInstrCommRateField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcRatioType OpenRatioByMoney; - TThostFtdcRatioType OpenRatioByVolume; - TThostFtdcRatioType CloseRatioByMoney; - TThostFtdcRatioType CloseRatioByVolume; - TThostFtdcRatioType CloseTodayRatioByMoney; - TThostFtdcRatioType CloseTodayRatioByVolume; - TThostFtdcRatioType StrikeRatioByMoney; - TThostFtdcRatioType StrikeRatioByVolume; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcOptionInstrTradeCostField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcMoneyType FixedMargin; - TThostFtdcMoneyType MiniMargin; - TThostFtdcMoneyType Royalty; - TThostFtdcMoneyType ExchFixedMargin; - TThostFtdcMoneyType ExchMiniMargin; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryOptionInstrTradeCostField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcPriceType InputPrice; - TThostFtdcPriceType UnderlyingPrice; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryOptionInstrCommRateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcIndexPriceField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcPriceType ClosePrice; -}; - -struct CThostFtdcInputExecOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType ExecOrderRef; - TThostFtdcUserIDType UserID; - TThostFtdcVolumeType Volume; - TThostFtdcRequestIDType RequestID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOffsetFlagType OffsetFlag; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcActionTypeType ActionType; - TThostFtdcPosiDirectionType PosiDirection; - TThostFtdcExecOrderPositionFlagType ReservePositionFlag; - TThostFtdcExecOrderCloseFlagType CloseFlag; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcClientIDType ClientID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcInputExecOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType ExecOrderActionRef; - TThostFtdcOrderRefType ExecOrderRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcExecOrderSysIDType ExecOrderSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcUserIDType UserID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcExecOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType ExecOrderRef; - TThostFtdcUserIDType UserID; - TThostFtdcVolumeType Volume; - TThostFtdcRequestIDType RequestID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOffsetFlagType OffsetFlag; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcActionTypeType ActionType; - TThostFtdcPosiDirectionType PosiDirection; - TThostFtdcExecOrderPositionFlagType ReservePositionFlag; - TThostFtdcExecOrderCloseFlagType CloseFlag; - TThostFtdcOrderLocalIDType ExecOrderLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - TThostFtdcSequenceNoType NotifySequence; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcExecOrderSysIDType ExecOrderSysID; - TThostFtdcDateType InsertDate; - TThostFtdcTimeType InsertTime; - TThostFtdcTimeType CancelTime; - TThostFtdcExecResultType ExecResult; - TThostFtdcParticipantIDType ClearingPartID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcUserIDType ActiveUserID; - TThostFtdcSequenceNoType BrokerExecOrderSeq; - TThostFtdcBranchIDType BranchID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcExecOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType ExecOrderActionRef; - TThostFtdcOrderRefType ExecOrderRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcExecOrderSysIDType ExecOrderSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcDateType ActionDate; - TThostFtdcTimeType ActionTime; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType ExecOrderLocalID; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOrderActionStatusType OrderActionStatus; - TThostFtdcUserIDType UserID; - TThostFtdcActionTypeType ActionType; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcBranchIDType BranchID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQryExecOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcExecOrderSysIDType ExecOrderSysID; - TThostFtdcTimeType InsertTimeStart; - TThostFtdcTimeType InsertTimeEnd; -}; - -struct CThostFtdcExchangeExecOrderField -{ - TThostFtdcVolumeType Volume; - TThostFtdcRequestIDType RequestID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOffsetFlagType OffsetFlag; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcActionTypeType ActionType; - TThostFtdcPosiDirectionType PosiDirection; - TThostFtdcExecOrderPositionFlagType ReservePositionFlag; - TThostFtdcExecOrderCloseFlagType CloseFlag; - TThostFtdcOrderLocalIDType ExecOrderLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - TThostFtdcSequenceNoType NotifySequence; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcExecOrderSysIDType ExecOrderSysID; - TThostFtdcDateType InsertDate; - TThostFtdcTimeType InsertTime; - TThostFtdcTimeType CancelTime; - TThostFtdcExecResultType ExecResult; - TThostFtdcParticipantIDType ClearingPartID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcBranchIDType BranchID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQryExchangeExecOrderField -{ - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTraderIDType TraderID; -}; - -struct CThostFtdcQryExecOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcExchangeExecOrderActionField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcExecOrderSysIDType ExecOrderSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcDateType ActionDate; - TThostFtdcTimeType ActionTime; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType ExecOrderLocalID; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOrderActionStatusType OrderActionStatus; - TThostFtdcUserIDType UserID; - TThostFtdcActionTypeType ActionType; - TThostFtdcBranchIDType BranchID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcVolumeType Volume; -}; - -struct CThostFtdcQryExchangeExecOrderActionField -{ - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTraderIDType TraderID; -}; - -struct CThostFtdcErrExecOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType ExecOrderRef; - TThostFtdcUserIDType UserID; - TThostFtdcVolumeType Volume; - TThostFtdcRequestIDType RequestID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOffsetFlagType OffsetFlag; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcActionTypeType ActionType; - TThostFtdcPosiDirectionType PosiDirection; - TThostFtdcExecOrderPositionFlagType ReservePositionFlag; - TThostFtdcExecOrderCloseFlagType CloseFlag; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcClientIDType ClientID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcQryErrExecOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; -}; - -struct CThostFtdcErrExecOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType ExecOrderActionRef; - TThostFtdcOrderRefType ExecOrderRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcExecOrderSysIDType ExecOrderSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcUserIDType UserID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcQryErrExecOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; -}; - -struct CThostFtdcOptionInstrTradingRightField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcDirectionType Direction; - TThostFtdcTradingRightType TradingRight; -}; - -struct CThostFtdcQryOptionInstrTradingRightField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcDirectionType Direction; -}; - -struct CThostFtdcInputForQuoteField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType ForQuoteRef; - TThostFtdcUserIDType UserID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcForQuoteField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType ForQuoteRef; - TThostFtdcUserIDType UserID; - TThostFtdcOrderLocalIDType ForQuoteLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcDateType InsertDate; - TThostFtdcTimeType InsertTime; - TThostFtdcForQuoteStatusType ForQuoteStatus; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcUserIDType ActiveUserID; - TThostFtdcSequenceNoType BrokerForQutoSeq; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQryForQuoteField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTimeType InsertTimeStart; - TThostFtdcTimeType InsertTimeEnd; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcExchangeForQuoteField -{ - TThostFtdcOrderLocalIDType ForQuoteLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcDateType InsertDate; - TThostFtdcTimeType InsertTime; - TThostFtdcForQuoteStatusType ForQuoteStatus; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQryExchangeForQuoteField -{ - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTraderIDType TraderID; -}; - -struct CThostFtdcInputQuoteField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType QuoteRef; - TThostFtdcUserIDType UserID; - TThostFtdcPriceType AskPrice; - TThostFtdcPriceType BidPrice; - TThostFtdcVolumeType AskVolume; - TThostFtdcVolumeType BidVolume; - TThostFtdcRequestIDType RequestID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOffsetFlagType AskOffsetFlag; - TThostFtdcOffsetFlagType BidOffsetFlag; - TThostFtdcHedgeFlagType AskHedgeFlag; - TThostFtdcHedgeFlagType BidHedgeFlag; - TThostFtdcOrderRefType AskOrderRef; - TThostFtdcOrderRefType BidOrderRef; - TThostFtdcOrderSysIDType ForQuoteSysID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcClientIDType ClientID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcInputQuoteActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType QuoteActionRef; - TThostFtdcOrderRefType QuoteRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType QuoteSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcUserIDType UserID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcClientIDType ClientID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQuoteField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType QuoteRef; - TThostFtdcUserIDType UserID; - TThostFtdcPriceType AskPrice; - TThostFtdcPriceType BidPrice; - TThostFtdcVolumeType AskVolume; - TThostFtdcVolumeType BidVolume; - TThostFtdcRequestIDType RequestID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOffsetFlagType AskOffsetFlag; - TThostFtdcOffsetFlagType BidOffsetFlag; - TThostFtdcHedgeFlagType AskHedgeFlag; - TThostFtdcHedgeFlagType BidHedgeFlag; - TThostFtdcOrderLocalIDType QuoteLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcSequenceNoType NotifySequence; - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcOrderSysIDType QuoteSysID; - TThostFtdcDateType InsertDate; - TThostFtdcTimeType InsertTime; - TThostFtdcTimeType CancelTime; - TThostFtdcOrderStatusType QuoteStatus; - TThostFtdcParticipantIDType ClearingPartID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcOrderSysIDType AskOrderSysID; - TThostFtdcOrderSysIDType BidOrderSysID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcUserIDType ActiveUserID; - TThostFtdcSequenceNoType BrokerQuoteSeq; - TThostFtdcOrderRefType AskOrderRef; - TThostFtdcOrderRefType BidOrderRef; - TThostFtdcOrderSysIDType ForQuoteSysID; - TThostFtdcBranchIDType BranchID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQuoteActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType QuoteActionRef; - TThostFtdcOrderRefType QuoteRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType QuoteSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcDateType ActionDate; - TThostFtdcTimeType ActionTime; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType QuoteLocalID; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOrderActionStatusType OrderActionStatus; - TThostFtdcUserIDType UserID; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcBranchIDType BranchID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQryQuoteField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType QuoteSysID; - TThostFtdcTimeType InsertTimeStart; - TThostFtdcTimeType InsertTimeEnd; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcExchangeQuoteField -{ - TThostFtdcPriceType AskPrice; - TThostFtdcPriceType BidPrice; - TThostFtdcVolumeType AskVolume; - TThostFtdcVolumeType BidVolume; - TThostFtdcRequestIDType RequestID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOffsetFlagType AskOffsetFlag; - TThostFtdcOffsetFlagType BidOffsetFlag; - TThostFtdcHedgeFlagType AskHedgeFlag; - TThostFtdcHedgeFlagType BidHedgeFlag; - TThostFtdcOrderLocalIDType QuoteLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcSequenceNoType NotifySequence; - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcOrderSysIDType QuoteSysID; - TThostFtdcDateType InsertDate; - TThostFtdcTimeType InsertTime; - TThostFtdcTimeType CancelTime; - TThostFtdcOrderStatusType QuoteStatus; - TThostFtdcParticipantIDType ClearingPartID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcOrderSysIDType AskOrderSysID; - TThostFtdcOrderSysIDType BidOrderSysID; - TThostFtdcOrderSysIDType ForQuoteSysID; - TThostFtdcBranchIDType BranchID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQryExchangeQuoteField -{ - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTraderIDType TraderID; -}; - -struct CThostFtdcQryQuoteActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcExchangeQuoteActionField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType QuoteSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcDateType ActionDate; - TThostFtdcTimeType ActionTime; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType QuoteLocalID; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOrderActionStatusType OrderActionStatus; - TThostFtdcUserIDType UserID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQryExchangeQuoteActionField -{ - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTraderIDType TraderID; -}; - -struct CThostFtdcOptionInstrDeltaField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcRatioType Delta; -}; - -struct CThostFtdcForQuoteRspField -{ - TThostFtdcDateType TradingDay; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderSysIDType ForQuoteSysID; - TThostFtdcTimeType ForQuoteTime; - TThostFtdcDateType ActionDay; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcStrikeOffsetField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcMoneyType Offset; - TThostFtdcStrikeOffsetTypeType OffsetType; -}; - -struct CThostFtdcQryStrikeOffsetField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; -}; - -struct CThostFtdcInputBatchOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType OrderActionRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcUserIDType UserID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcBatchOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType OrderActionRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcDateType ActionDate; - TThostFtdcTimeType ActionTime; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOrderActionStatusType OrderActionStatus; - TThostFtdcUserIDType UserID; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcExchangeBatchOrderActionField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcDateType ActionDate; - TThostFtdcTimeType ActionTime; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOrderActionStatusType OrderActionStatus; - TThostFtdcUserIDType UserID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQryBatchOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcCombInstrumentGuardField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcRatioType GuarantRatio; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcQryCombInstrumentGuardField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcInputCombActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType CombActionRef; - TThostFtdcUserIDType UserID; - TThostFtdcDirectionType Direction; - TThostFtdcVolumeType Volume; - TThostFtdcCombDirectionType CombDirection; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcCombActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType CombActionRef; - TThostFtdcUserIDType UserID; - TThostFtdcDirectionType Direction; - TThostFtdcVolumeType Volume; - TThostFtdcCombDirectionType CombDirection; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderActionStatusType ActionStatus; - TThostFtdcSequenceNoType NotifySequence; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; - TThostFtdcTradeIDType ComTradeID; - TThostFtdcBranchIDType BranchID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryCombActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcExchangeCombActionField -{ - TThostFtdcDirectionType Direction; - TThostFtdcVolumeType Volume; - TThostFtdcCombDirectionType CombDirection; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderActionStatusType ActionStatus; - TThostFtdcSequenceNoType NotifySequence; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; - TThostFtdcTradeIDType ComTradeID; - TThostFtdcBranchIDType BranchID; -}; - -struct CThostFtdcQryExchangeCombActionField -{ - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTraderIDType TraderID; -}; - -struct CThostFtdcProductExchRateField -{ - TThostFtdcInstrumentIDType ProductID; - TThostFtdcCurrencyIDType QuoteCurrencyID; - TThostFtdcExchangeRateType ExchangeRate; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcQryProductExchRateField -{ - TThostFtdcInstrumentIDType ProductID; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcQryForQuoteParamField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcForQuoteParamField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcPriceType LastPrice; - TThostFtdcPriceType PriceInterval; -}; - -struct CThostFtdcMMOptionInstrCommRateField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcRatioType OpenRatioByMoney; - TThostFtdcRatioType OpenRatioByVolume; - TThostFtdcRatioType CloseRatioByMoney; - TThostFtdcRatioType CloseRatioByVolume; - TThostFtdcRatioType CloseTodayRatioByMoney; - TThostFtdcRatioType CloseTodayRatioByVolume; - TThostFtdcRatioType StrikeRatioByMoney; - TThostFtdcRatioType StrikeRatioByVolume; -}; - -struct CThostFtdcQryMMOptionInstrCommRateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; -}; - -struct CThostFtdcMMInstrumentCommissionRateField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcRatioType OpenRatioByMoney; - TThostFtdcRatioType OpenRatioByVolume; - TThostFtdcRatioType CloseRatioByMoney; - TThostFtdcRatioType CloseRatioByVolume; - TThostFtdcRatioType CloseTodayRatioByMoney; - TThostFtdcRatioType CloseTodayRatioByVolume; -}; - -struct CThostFtdcQryMMInstrumentCommissionRateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; -}; - -struct CThostFtdcInstrumentOrderCommRateField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcRatioType OrderCommByVolume; - TThostFtdcRatioType OrderActionCommByVolume; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryInstrumentOrderCommRateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; -}; - -struct CThostFtdcTradeParamField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcTradeParamIDType TradeParamID; - TThostFtdcSettlementParamValueType TradeParamValue; - TThostFtdcMemoType Memo; -}; - -struct CThostFtdcInstrumentMarginRateULField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcRatioType LongMarginRatioByMoney; - TThostFtdcMoneyType LongMarginRatioByVolume; - TThostFtdcRatioType ShortMarginRatioByMoney; - TThostFtdcMoneyType ShortMarginRatioByVolume; -}; - -struct CThostFtdcFutureLimitPosiParamField -{ - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType ProductID; - TThostFtdcVolumeType SpecOpenVolume; - TThostFtdcVolumeType ArbiOpenVolume; - TThostFtdcVolumeType OpenVolume; -}; - -struct CThostFtdcLoginForbiddenIPField -{ - TThostFtdcIPAddressType IPAddress; -}; - -struct CThostFtdcIPListField -{ - TThostFtdcIPAddressType IPAddress; - TThostFtdcBoolType IsWhite; -}; - -struct CThostFtdcInputOptionSelfCloseField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType OptionSelfCloseRef; - TThostFtdcUserIDType UserID; - TThostFtdcVolumeType Volume; - TThostFtdcRequestIDType RequestID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcClientIDType ClientID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcInputOptionSelfCloseActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType OptionSelfCloseActionRef; - TThostFtdcOrderRefType OptionSelfCloseRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType OptionSelfCloseSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcUserIDType UserID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcOptionSelfCloseField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType OptionSelfCloseRef; - TThostFtdcUserIDType UserID; - TThostFtdcVolumeType Volume; - TThostFtdcRequestIDType RequestID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; - TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - TThostFtdcSequenceNoType NotifySequence; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcOrderSysIDType OptionSelfCloseSysID; - TThostFtdcDateType InsertDate; - TThostFtdcTimeType InsertTime; - TThostFtdcTimeType CancelTime; - TThostFtdcExecResultType ExecResult; - TThostFtdcParticipantIDType ClearingPartID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcUserIDType ActiveUserID; - TThostFtdcSequenceNoType BrokerOptionSelfCloseSeq; - TThostFtdcBranchIDType BranchID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcOptionSelfCloseActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType OptionSelfCloseActionRef; - TThostFtdcOrderRefType OptionSelfCloseRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType OptionSelfCloseSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcDateType ActionDate; - TThostFtdcTimeType ActionTime; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOrderActionStatusType OrderActionStatus; - TThostFtdcUserIDType UserID; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcBranchIDType BranchID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQryOptionSelfCloseField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType OptionSelfCloseSysID; - TThostFtdcTimeType InsertTimeStart; - TThostFtdcTimeType InsertTimeEnd; -}; - -struct CThostFtdcExchangeOptionSelfCloseField -{ - TThostFtdcVolumeType Volume; - TThostFtdcRequestIDType RequestID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; - TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - TThostFtdcSequenceNoType NotifySequence; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcOrderSysIDType OptionSelfCloseSysID; - TThostFtdcDateType InsertDate; - TThostFtdcTimeType InsertTime; - TThostFtdcTimeType CancelTime; - TThostFtdcExecResultType ExecResult; - TThostFtdcParticipantIDType ClearingPartID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcBranchIDType BranchID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQryOptionSelfCloseActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcExchangeOptionSelfCloseActionField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType OptionSelfCloseSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcDateType ActionDate; - TThostFtdcTimeType ActionTime; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOrderActionStatusType OrderActionStatus; - TThostFtdcUserIDType UserID; - TThostFtdcBranchIDType BranchID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; -}; - -struct CThostFtdcSyncDelaySwapField -{ - TThostFtdcDepositSeqNoType DelaySwapSeqNo; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcCurrencyIDType FromCurrencyID; - TThostFtdcMoneyType FromAmount; - TThostFtdcMoneyType FromFrozenSwap; - TThostFtdcMoneyType FromRemainSwap; - TThostFtdcCurrencyIDType ToCurrencyID; - TThostFtdcMoneyType ToAmount; -}; - -struct CThostFtdcQrySyncDelaySwapField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcDepositSeqNoType DelaySwapSeqNo; -}; - -struct CThostFtdcInvestUnitField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcPartyNameType InvestorUnitName; - TThostFtdcInvestorIDType InvestorGroupID; - TThostFtdcInvestorIDType CommModelID; - TThostFtdcInvestorIDType MarginModelID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcQryInvestUnitField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcSecAgentCheckModeField -{ - TThostFtdcInvestorIDType InvestorID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcAccountIDType BrokerSecAgentID; - TThostFtdcBoolType CheckSelfAccount; -}; - -struct CThostFtdcSecAgentTradeInfoField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcAccountIDType BrokerSecAgentID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcMarketDataField -{ - TThostFtdcDateType TradingDay; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcPriceType LastPrice; - TThostFtdcPriceType PreSettlementPrice; - TThostFtdcPriceType PreClosePrice; - TThostFtdcLargeVolumeType PreOpenInterest; - TThostFtdcPriceType OpenPrice; - TThostFtdcPriceType HighestPrice; - TThostFtdcPriceType LowestPrice; - TThostFtdcVolumeType Volume; - TThostFtdcMoneyType Turnover; - TThostFtdcLargeVolumeType OpenInterest; - TThostFtdcPriceType ClosePrice; - TThostFtdcPriceType SettlementPrice; - TThostFtdcPriceType UpperLimitPrice; - TThostFtdcPriceType LowerLimitPrice; - TThostFtdcRatioType PreDelta; - TThostFtdcRatioType CurrDelta; - TThostFtdcTimeType UpdateTime; - TThostFtdcMillisecType UpdateMillisec; - TThostFtdcDateType ActionDay; -}; - -struct CThostFtdcMarketDataBaseField -{ - TThostFtdcDateType TradingDay; - TThostFtdcPriceType PreSettlementPrice; - TThostFtdcPriceType PreClosePrice; - TThostFtdcLargeVolumeType PreOpenInterest; - TThostFtdcRatioType PreDelta; -}; - -struct CThostFtdcMarketDataStaticField -{ - TThostFtdcPriceType OpenPrice; - TThostFtdcPriceType HighestPrice; - TThostFtdcPriceType LowestPrice; - TThostFtdcPriceType ClosePrice; - TThostFtdcPriceType UpperLimitPrice; - TThostFtdcPriceType LowerLimitPrice; - TThostFtdcPriceType SettlementPrice; - TThostFtdcRatioType CurrDelta; -}; - -struct CThostFtdcMarketDataLastMatchField -{ - TThostFtdcPriceType LastPrice; - TThostFtdcVolumeType Volume; - TThostFtdcMoneyType Turnover; - TThostFtdcLargeVolumeType OpenInterest; -}; - -struct CThostFtdcMarketDataBestPriceField -{ - TThostFtdcPriceType BidPrice1; - TThostFtdcVolumeType BidVolume1; - TThostFtdcPriceType AskPrice1; - TThostFtdcVolumeType AskVolume1; -}; - -struct CThostFtdcMarketDataBid23Field -{ - TThostFtdcPriceType BidPrice2; - TThostFtdcVolumeType BidVolume2; - TThostFtdcPriceType BidPrice3; - TThostFtdcVolumeType BidVolume3; -}; - -struct CThostFtdcMarketDataAsk23Field -{ - TThostFtdcPriceType AskPrice2; - TThostFtdcVolumeType AskVolume2; - TThostFtdcPriceType AskPrice3; - TThostFtdcVolumeType AskVolume3; -}; - -struct CThostFtdcMarketDataBid45Field -{ - TThostFtdcPriceType BidPrice4; - TThostFtdcVolumeType BidVolume4; - TThostFtdcPriceType BidPrice5; - TThostFtdcVolumeType BidVolume5; -}; - -struct CThostFtdcMarketDataAsk45Field -{ - TThostFtdcPriceType AskPrice4; - TThostFtdcVolumeType AskVolume4; - TThostFtdcPriceType AskPrice5; - TThostFtdcVolumeType AskVolume5; -}; - -struct CThostFtdcMarketDataUpdateTimeField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcTimeType UpdateTime; - TThostFtdcMillisecType UpdateMillisec; - TThostFtdcDateType ActionDay; -}; - -struct CThostFtdcMarketDataExchangeField -{ - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcSpecificInstrumentField -{ - TThostFtdcInstrumentIDType InstrumentID; -}; - -struct CThostFtdcInstrumentStatusField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcSettlementGroupIDType SettlementGroupID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInstrumentStatusType InstrumentStatus; - TThostFtdcTradingSegmentSNType TradingSegmentSN; - TThostFtdcTimeType EnterTime; - TThostFtdcInstStatusEnterReasonType EnterReason; -}; - -struct CThostFtdcQryInstrumentStatusField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcExchangeInstIDType ExchangeInstID; -}; - -struct CThostFtdcInvestorAccountField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcPositionProfitAlgorithmField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcAccountIDType AccountID; - TThostFtdcAlgorithmType Algorithm; - TThostFtdcMemoType Memo; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcDiscountField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcRatioType Discount; -}; - -struct CThostFtdcQryTransferBankField -{ - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBrchID; -}; - -struct CThostFtdcTransferBankField -{ - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBrchID; - TThostFtdcBankNameType BankName; - TThostFtdcBoolType IsActive; -}; - -struct CThostFtdcQryInvestorPositionDetailField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcInvestorPositionDetailField -{ - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcDirectionType Direction; - TThostFtdcDateType OpenDate; - TThostFtdcTradeIDType TradeID; - TThostFtdcVolumeType Volume; - TThostFtdcPriceType OpenPrice; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcTradeTypeType TradeType; - TThostFtdcInstrumentIDType CombInstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcMoneyType CloseProfitByDate; - TThostFtdcMoneyType CloseProfitByTrade; - TThostFtdcMoneyType PositionProfitByDate; - TThostFtdcMoneyType PositionProfitByTrade; - TThostFtdcMoneyType Margin; - TThostFtdcMoneyType ExchMargin; - TThostFtdcRatioType MarginRateByMoney; - TThostFtdcRatioType MarginRateByVolume; - TThostFtdcPriceType LastSettlementPrice; - TThostFtdcPriceType SettlementPrice; - TThostFtdcVolumeType CloseVolume; - TThostFtdcMoneyType CloseAmount; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcTradingAccountPasswordField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcMDTraderOfferField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcTraderIDType TraderID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcPasswordType Password; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType OrderLocalID; - TThostFtdcTraderConnectStatusType TraderConnectStatus; - TThostFtdcDateType ConnectRequestDate; - TThostFtdcTimeType ConnectRequestTime; - TThostFtdcDateType LastReportDate; - TThostFtdcTimeType LastReportTime; - TThostFtdcDateType ConnectDate; - TThostFtdcTimeType ConnectTime; - TThostFtdcDateType StartDate; - TThostFtdcTimeType StartTime; - TThostFtdcDateType TradingDay; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcTradeIDType MaxTradeID; - TThostFtdcReturnCodeType MaxOrderMessageReference; -}; - -struct CThostFtdcQryMDTraderOfferField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcTraderIDType TraderID; -}; - -struct CThostFtdcQryNoticeField -{ - TThostFtdcBrokerIDType BrokerID; -}; - -struct CThostFtdcNoticeField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcContentType Content; - TThostFtdcSequenceLabelType SequenceLabel; -}; - -struct CThostFtdcUserRightField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcUserRightTypeType UserRightType; - TThostFtdcBoolType IsForbidden; -}; - -struct CThostFtdcQrySettlementInfoConfirmField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcLoadSettlementInfoField -{ - TThostFtdcBrokerIDType BrokerID; -}; - -struct CThostFtdcBrokerWithdrawAlgorithmField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcAlgorithmType WithdrawAlgorithm; - TThostFtdcRatioType UsingRatio; - TThostFtdcIncludeCloseProfitType IncludeCloseProfit; - TThostFtdcAllWithoutTradeType AllWithoutTrade; - TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit; - TThostFtdcBoolType IsBrokerUserEvent; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcRatioType FundMortgageRatio; - TThostFtdcBalanceAlgorithmType BalanceAlgorithm; -}; - -struct CThostFtdcTradingAccountPasswordUpdateV1Field -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcPasswordType OldPassword; - TThostFtdcPasswordType NewPassword; -}; - -struct CThostFtdcTradingAccountPasswordUpdateField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType OldPassword; - TThostFtdcPasswordType NewPassword; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcQryCombinationLegField -{ - TThostFtdcInstrumentIDType CombInstrumentID; - TThostFtdcLegIDType LegID; - TThostFtdcInstrumentIDType LegInstrumentID; -}; - -struct CThostFtdcQrySyncStatusField -{ - TThostFtdcDateType TradingDay; -}; - -struct CThostFtdcCombinationLegField -{ - TThostFtdcInstrumentIDType CombInstrumentID; - TThostFtdcLegIDType LegID; - TThostFtdcInstrumentIDType LegInstrumentID; - TThostFtdcDirectionType Direction; - TThostFtdcLegMultipleType LegMultiple; - TThostFtdcImplyLevelType ImplyLevel; -}; - -struct CThostFtdcSyncStatusField -{ - TThostFtdcDateType TradingDay; - TThostFtdcDataSyncStatusType DataSyncStatus; -}; - -struct CThostFtdcQryLinkManField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; -}; - -struct CThostFtdcLinkManField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcPersonTypeType PersonType; - TThostFtdcIdCardTypeType IdentifiedCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcPartyNameType PersonName; - TThostFtdcTelephoneType Telephone; - TThostFtdcAddressType Address; - TThostFtdcZipCodeType ZipCode; - TThostFtdcPriorityType Priority; - TThostFtdcUOAZipCodeType UOAZipCode; - TThostFtdcInvestorFullNameType PersonFullName; -}; - -struct CThostFtdcQryBrokerUserEventField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcUserEventTypeType UserEventType; -}; - -struct CThostFtdcBrokerUserEventField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcUserEventTypeType UserEventType; - TThostFtdcSequenceNoType EventSequenceNo; - TThostFtdcDateType EventDate; - TThostFtdcTimeType EventTime; - TThostFtdcUserEventInfoType UserEventInfo; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; -}; - -struct CThostFtdcQryContractBankField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBrchID; -}; - -struct CThostFtdcContractBankField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBrchID; - TThostFtdcBankNameType BankName; -}; - -struct CThostFtdcInvestorPositionCombineDetailField -{ - TThostFtdcDateType TradingDay; - TThostFtdcDateType OpenDate; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcTradeIDType ComTradeID; - TThostFtdcTradeIDType TradeID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcDirectionType Direction; - TThostFtdcVolumeType TotalAmt; - TThostFtdcMoneyType Margin; - TThostFtdcMoneyType ExchMargin; - TThostFtdcRatioType MarginRateByMoney; - TThostFtdcRatioType MarginRateByVolume; - TThostFtdcLegIDType LegID; - TThostFtdcLegMultipleType LegMultiple; - TThostFtdcInstrumentIDType CombInstrumentID; - TThostFtdcTradeGroupIDType TradeGroupID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcParkedOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType OrderRef; - TThostFtdcUserIDType UserID; - TThostFtdcOrderPriceTypeType OrderPriceType; - TThostFtdcDirectionType Direction; - TThostFtdcCombOffsetFlagType CombOffsetFlag; - TThostFtdcCombHedgeFlagType CombHedgeFlag; - TThostFtdcPriceType LimitPrice; - TThostFtdcVolumeType VolumeTotalOriginal; - TThostFtdcTimeConditionType TimeCondition; - TThostFtdcDateType GTDDate; - TThostFtdcVolumeConditionType VolumeCondition; - TThostFtdcVolumeType MinVolume; - TThostFtdcContingentConditionType ContingentCondition; - TThostFtdcPriceType StopPrice; - TThostFtdcForceCloseReasonType ForceCloseReason; - TThostFtdcBoolType IsAutoSuspend; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcRequestIDType RequestID; - TThostFtdcBoolType UserForceClose; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParkedOrderIDType ParkedOrderID; - TThostFtdcUserTypeType UserType; - TThostFtdcParkedOrderStatusType Status; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcBoolType IsSwapOrder; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcClientIDType ClientID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcParkedOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType OrderActionRef; - TThostFtdcOrderRefType OrderRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcPriceType LimitPrice; - TThostFtdcVolumeType VolumeChange; - TThostFtdcUserIDType UserID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcParkedOrderActionIDType ParkedOrderActionID; - TThostFtdcUserTypeType UserType; - TThostFtdcParkedOrderStatusType Status; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQryParkedOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryParkedOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcRemoveParkedOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcParkedOrderIDType ParkedOrderID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcRemoveParkedOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcParkedOrderActionIDType ParkedOrderActionID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcInvestorWithdrawAlgorithmField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcRatioType UsingRatio; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcRatioType FundMortgageRatio; -}; - -struct CThostFtdcQryInvestorPositionCombineDetailField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType CombInstrumentID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcMarketDataAveragePriceField -{ - TThostFtdcPriceType AveragePrice; -}; - -struct CThostFtdcVerifyInvestorPasswordField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcPasswordType Password; -}; - -struct CThostFtdcUserIPField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcIPAddressType IPMask; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcTradingNoticeInfoField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcTimeType SendTime; - TThostFtdcContentType FieldContent; - TThostFtdcSequenceSeriesType SequenceSeries; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcTradingNoticeField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorRangeType InvestorRange; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcSequenceSeriesType SequenceSeries; - TThostFtdcUserIDType UserID; - TThostFtdcTimeType SendTime; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcContentType FieldContent; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryTradingNoticeField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryErrOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; -}; - -struct CThostFtdcErrOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType OrderRef; - TThostFtdcUserIDType UserID; - TThostFtdcOrderPriceTypeType OrderPriceType; - TThostFtdcDirectionType Direction; - TThostFtdcCombOffsetFlagType CombOffsetFlag; - TThostFtdcCombHedgeFlagType CombHedgeFlag; - TThostFtdcPriceType LimitPrice; - TThostFtdcVolumeType VolumeTotalOriginal; - TThostFtdcTimeConditionType TimeCondition; - TThostFtdcDateType GTDDate; - TThostFtdcVolumeConditionType VolumeCondition; - TThostFtdcVolumeType MinVolume; - TThostFtdcContingentConditionType ContingentCondition; - TThostFtdcPriceType StopPrice; - TThostFtdcForceCloseReasonType ForceCloseReason; - TThostFtdcBoolType IsAutoSuspend; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcRequestIDType RequestID; - TThostFtdcBoolType UserForceClose; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcBoolType IsSwapOrder; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcClientIDType ClientID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcErrorConditionalOrderField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcOrderRefType OrderRef; - TThostFtdcUserIDType UserID; - TThostFtdcOrderPriceTypeType OrderPriceType; - TThostFtdcDirectionType Direction; - TThostFtdcCombOffsetFlagType CombOffsetFlag; - TThostFtdcCombHedgeFlagType CombHedgeFlag; - TThostFtdcPriceType LimitPrice; - TThostFtdcVolumeType VolumeTotalOriginal; - TThostFtdcTimeConditionType TimeCondition; - TThostFtdcDateType GTDDate; - TThostFtdcVolumeConditionType VolumeCondition; - TThostFtdcVolumeType MinVolume; - TThostFtdcContingentConditionType ContingentCondition; - TThostFtdcPriceType StopPrice; - TThostFtdcForceCloseReasonType ForceCloseReason; - TThostFtdcBoolType IsAutoSuspend; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcRequestIDType RequestID; - TThostFtdcOrderLocalIDType OrderLocalID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcExchangeInstIDType ExchangeInstID; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - TThostFtdcSequenceNoType NotifySequence; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcOrderSourceType OrderSource; - TThostFtdcOrderStatusType OrderStatus; - TThostFtdcOrderTypeType OrderType; - TThostFtdcVolumeType VolumeTraded; - TThostFtdcVolumeType VolumeTotal; - TThostFtdcDateType InsertDate; - TThostFtdcTimeType InsertTime; - TThostFtdcTimeType ActiveTime; - TThostFtdcTimeType SuspendTime; - TThostFtdcTimeType UpdateTime; - TThostFtdcTimeType CancelTime; - TThostFtdcTraderIDType ActiveTraderID; - TThostFtdcParticipantIDType ClearingPartID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcBoolType UserForceClose; - TThostFtdcUserIDType ActiveUserID; - TThostFtdcSequenceNoType BrokerOrderSeq; - TThostFtdcOrderSysIDType RelativeOrderSysID; - TThostFtdcVolumeType ZCETotalTradedVolume; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcBoolType IsSwapOrder; - TThostFtdcBranchIDType BranchID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; -}; - -struct CThostFtdcQryErrOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; -}; - -struct CThostFtdcErrOrderActionField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcOrderActionRefType OrderActionRef; - TThostFtdcOrderRefType OrderRef; - TThostFtdcRequestIDType RequestID; - TThostFtdcFrontIDType FrontID; - TThostFtdcSessionIDType SessionID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcOrderSysIDType OrderSysID; - TThostFtdcActionFlagType ActionFlag; - TThostFtdcPriceType LimitPrice; - TThostFtdcVolumeType VolumeChange; - TThostFtdcDateType ActionDate; - TThostFtdcTimeType ActionTime; - TThostFtdcTraderIDType TraderID; - TThostFtdcInstallIDType InstallID; - TThostFtdcOrderLocalIDType OrderLocalID; - TThostFtdcOrderLocalIDType ActionLocalID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcClientIDType ClientID; - TThostFtdcBusinessUnitType BusinessUnit; - TThostFtdcOrderActionStatusType OrderActionStatus; - TThostFtdcUserIDType UserID; - TThostFtdcErrorMsgType StatusMsg; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcBranchIDType BranchID; - TThostFtdcInvestUnitIDType InvestUnitID; - TThostFtdcIPAddressType IPAddress; - TThostFtdcMacAddressType MacAddress; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcQryExchangeSequenceField -{ - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcExchangeSequenceField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcInstrumentStatusType MarketStatus; -}; - -struct CThostFtdcQueryMaxOrderVolumeWithPriceField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcDirectionType Direction; - TThostFtdcOffsetFlagType OffsetFlag; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcVolumeType MaxVolume; - TThostFtdcPriceType Price; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryBrokerTradingParamsField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcAccountIDType AccountID; -}; - -struct CThostFtdcBrokerTradingParamsField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcMarginPriceTypeType MarginPriceType; - TThostFtdcAlgorithmType Algorithm; - TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcOptionRoyaltyPriceTypeType OptionRoyaltyPriceType; - TThostFtdcAccountIDType AccountID; -}; - -struct CThostFtdcQryBrokerTradingAlgosField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInstrumentIDType InstrumentID; -}; - -struct CThostFtdcBrokerTradingAlgosField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcHandlePositionAlgoIDType HandlePositionAlgoID; - TThostFtdcFindMarginRateAlgoIDType FindMarginRateAlgoID; - TThostFtdcHandleTradingAccountAlgoIDType HandleTradingAccountAlgoID; -}; - -struct CThostFtdcQueryBrokerDepositField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcBrokerDepositField -{ - TThostFtdcTradeDateType TradingDay; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcMoneyType PreBalance; - TThostFtdcMoneyType CurrMargin; - TThostFtdcMoneyType CloseProfit; - TThostFtdcMoneyType Balance; - TThostFtdcMoneyType Deposit; - TThostFtdcMoneyType Withdraw; - TThostFtdcMoneyType Available; - TThostFtdcMoneyType Reserve; - TThostFtdcMoneyType FrozenMargin; -}; - -struct CThostFtdcQryCFMMCBrokerKeyField -{ - TThostFtdcBrokerIDType BrokerID; -}; - -struct CThostFtdcCFMMCBrokerKeyField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcDateType CreateDate; - TThostFtdcTimeType CreateTime; - TThostFtdcSequenceNoType KeyID; - TThostFtdcCFMMCKeyType CurrentKey; - TThostFtdcCFMMCKeyKindType KeyKind; -}; - -struct CThostFtdcCFMMCTradingAccountKeyField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcAccountIDType AccountID; - TThostFtdcSequenceNoType KeyID; - TThostFtdcCFMMCKeyType CurrentKey; -}; - -struct CThostFtdcQryCFMMCTradingAccountKeyField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; -}; - -struct CThostFtdcBrokerUserOTPParamField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcOTPVendorsIDType OTPVendorsID; - TThostFtdcSerialNumberType SerialNumber; - TThostFtdcAuthKeyType AuthKey; - TThostFtdcLastDriftType LastDrift; - TThostFtdcLastSuccessType LastSuccess; - TThostFtdcOTPTypeType OTPType; -}; - -struct CThostFtdcManualSyncBrokerUserOTPField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcOTPTypeType OTPType; - TThostFtdcPasswordType FirstOTP; - TThostFtdcPasswordType SecondOTP; -}; - -struct CThostFtdcCommRateModelField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType CommModelID; - TThostFtdcCommModelNameType CommModelName; -}; - -struct CThostFtdcQryCommRateModelField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType CommModelID; -}; - -struct CThostFtdcMarginModelField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType MarginModelID; - TThostFtdcCommModelNameType MarginModelName; -}; - -struct CThostFtdcQryMarginModelField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType MarginModelID; -}; - -struct CThostFtdcEWarrantOffsetField -{ - TThostFtdcTradeDateType TradingDay; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcDirectionType Direction; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcVolumeType Volume; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryEWarrantOffsetField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInstrumentIDType InstrumentID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQryInvestorProductGroupMarginField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInstrumentIDType ProductGroupID; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcInvestorProductGroupMarginField -{ - TThostFtdcInstrumentIDType ProductGroupID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcDateType TradingDay; - TThostFtdcSettlementIDType SettlementID; - TThostFtdcMoneyType FrozenMargin; - TThostFtdcMoneyType LongFrozenMargin; - TThostFtdcMoneyType ShortFrozenMargin; - TThostFtdcMoneyType UseMargin; - TThostFtdcMoneyType LongUseMargin; - TThostFtdcMoneyType ShortUseMargin; - TThostFtdcMoneyType ExchMargin; - TThostFtdcMoneyType LongExchMargin; - TThostFtdcMoneyType ShortExchMargin; - TThostFtdcMoneyType CloseProfit; - TThostFtdcMoneyType FrozenCommission; - TThostFtdcMoneyType Commission; - TThostFtdcMoneyType FrozenCash; - TThostFtdcMoneyType CashIn; - TThostFtdcMoneyType PositionProfit; - TThostFtdcMoneyType OffsetAmount; - TThostFtdcMoneyType LongOffsetAmount; - TThostFtdcMoneyType ShortOffsetAmount; - TThostFtdcMoneyType ExchOffsetAmount; - TThostFtdcMoneyType LongExchOffsetAmount; - TThostFtdcMoneyType ShortExchOffsetAmount; - TThostFtdcHedgeFlagType HedgeFlag; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcQueryCFMMCTradingAccountTokenField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -struct CThostFtdcCFMMCTradingAccountTokenField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcParticipantIDType ParticipantID; - TThostFtdcAccountIDType AccountID; - TThostFtdcSequenceNoType KeyID; - TThostFtdcCFMMCTokenType Token; -}; - -struct CThostFtdcQryProductGroupField -{ - TThostFtdcInstrumentIDType ProductID; - TThostFtdcExchangeIDType ExchangeID; -}; - -struct CThostFtdcProductGroupField -{ - TThostFtdcInstrumentIDType ProductID; - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcInstrumentIDType ProductGroupID; -}; - -struct CThostFtdcBulletinField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcDateType TradingDay; - TThostFtdcBulletinIDType BulletinID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcNewsTypeType NewsType; - TThostFtdcNewsUrgencyType NewsUrgency; - TThostFtdcTimeType SendTime; - TThostFtdcAbstractType Abstract; - TThostFtdcComeFromType ComeFrom; - TThostFtdcContentType Content; - TThostFtdcURLLinkType URLLink; - TThostFtdcMarketIDType MarketID; -}; - -struct CThostFtdcQryBulletinField -{ - TThostFtdcExchangeIDType ExchangeID; - TThostFtdcBulletinIDType BulletinID; - TThostFtdcSequenceNoType SequenceNo; - TThostFtdcNewsTypeType NewsType; - TThostFtdcNewsUrgencyType NewsUrgency; -}; - -struct CThostFtdcReqOpenAccountField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcGenderType Gender; - TThostFtdcCountryCodeType CountryCode; - TThostFtdcCustTypeType CustType; - TThostFtdcAddressType Address; - TThostFtdcZipCodeType ZipCode; - TThostFtdcTelephoneType Telephone; - TThostFtdcMobilePhoneType MobilePhone; - TThostFtdcFaxType Fax; - TThostFtdcEMailType EMail; - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcInstallIDType InstallID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcCashExchangeCodeType CashExchangeCode; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankAccTypeType BankSecuAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcBankAccountType BankSecuAcc; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcOperNoType OperNo; - TThostFtdcTIDType TID; - TThostFtdcUserIDType UserID; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcReqCancelAccountField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcGenderType Gender; - TThostFtdcCountryCodeType CountryCode; - TThostFtdcCustTypeType CustType; - TThostFtdcAddressType Address; - TThostFtdcZipCodeType ZipCode; - TThostFtdcTelephoneType Telephone; - TThostFtdcMobilePhoneType MobilePhone; - TThostFtdcFaxType Fax; - TThostFtdcEMailType EMail; - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcInstallIDType InstallID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcCashExchangeCodeType CashExchangeCode; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankAccTypeType BankSecuAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcBankAccountType BankSecuAcc; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcOperNoType OperNo; - TThostFtdcTIDType TID; - TThostFtdcUserIDType UserID; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcReqChangeAccountField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcGenderType Gender; - TThostFtdcCountryCodeType CountryCode; - TThostFtdcCustTypeType CustType; - TThostFtdcAddressType Address; - TThostFtdcZipCodeType ZipCode; - TThostFtdcTelephoneType Telephone; - TThostFtdcMobilePhoneType MobilePhone; - TThostFtdcFaxType Fax; - TThostFtdcEMailType EMail; - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcBankAccountType NewBankAccount; - TThostFtdcPasswordType NewBankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcInstallIDType InstallID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcTIDType TID; - TThostFtdcDigestType Digest; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcReqTransferField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcCustTypeType CustType; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcInstallIDType InstallID; - TThostFtdcFutureSerialType FutureSerial; - TThostFtdcUserIDType UserID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcTradeAmountType TradeAmount; - TThostFtdcTradeAmountType FutureFetchAmount; - TThostFtdcFeePayFlagType FeePayFlag; - TThostFtdcCustFeeType CustFee; - TThostFtdcFutureFeeType BrokerFee; - TThostFtdcAddInfoType Message; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankAccTypeType BankSecuAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcBankAccountType BankSecuAcc; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcTransferStatusType TransferStatus; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcRspTransferField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcCustTypeType CustType; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcInstallIDType InstallID; - TThostFtdcFutureSerialType FutureSerial; - TThostFtdcUserIDType UserID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcTradeAmountType TradeAmount; - TThostFtdcTradeAmountType FutureFetchAmount; - TThostFtdcFeePayFlagType FeePayFlag; - TThostFtdcCustFeeType CustFee; - TThostFtdcFutureFeeType BrokerFee; - TThostFtdcAddInfoType Message; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankAccTypeType BankSecuAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcBankAccountType BankSecuAcc; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcTransferStatusType TransferStatus; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcReqRepealField -{ - TThostFtdcRepealTimeIntervalType RepealTimeInterval; - TThostFtdcRepealedTimesType RepealedTimes; - TThostFtdcBankRepealFlagType BankRepealFlag; - TThostFtdcBrokerRepealFlagType BrokerRepealFlag; - TThostFtdcPlateSerialType PlateRepealSerial; - TThostFtdcBankSerialType BankRepealSerial; - TThostFtdcFutureSerialType FutureRepealSerial; - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcCustTypeType CustType; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcInstallIDType InstallID; - TThostFtdcFutureSerialType FutureSerial; - TThostFtdcUserIDType UserID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcTradeAmountType TradeAmount; - TThostFtdcTradeAmountType FutureFetchAmount; - TThostFtdcFeePayFlagType FeePayFlag; - TThostFtdcCustFeeType CustFee; - TThostFtdcFutureFeeType BrokerFee; - TThostFtdcAddInfoType Message; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankAccTypeType BankSecuAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcBankAccountType BankSecuAcc; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcTransferStatusType TransferStatus; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcRspRepealField -{ - TThostFtdcRepealTimeIntervalType RepealTimeInterval; - TThostFtdcRepealedTimesType RepealedTimes; - TThostFtdcBankRepealFlagType BankRepealFlag; - TThostFtdcBrokerRepealFlagType BrokerRepealFlag; - TThostFtdcPlateSerialType PlateRepealSerial; - TThostFtdcBankSerialType BankRepealSerial; - TThostFtdcFutureSerialType FutureRepealSerial; - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcCustTypeType CustType; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcInstallIDType InstallID; - TThostFtdcFutureSerialType FutureSerial; - TThostFtdcUserIDType UserID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcTradeAmountType TradeAmount; - TThostFtdcTradeAmountType FutureFetchAmount; - TThostFtdcFeePayFlagType FeePayFlag; - TThostFtdcCustFeeType CustFee; - TThostFtdcFutureFeeType BrokerFee; - TThostFtdcAddInfoType Message; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankAccTypeType BankSecuAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcBankAccountType BankSecuAcc; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcTransferStatusType TransferStatus; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcReqQueryAccountField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcCustTypeType CustType; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcFutureSerialType FutureSerial; - TThostFtdcInstallIDType InstallID; - TThostFtdcUserIDType UserID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankAccTypeType BankSecuAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcBankAccountType BankSecuAcc; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcRspQueryAccountField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcCustTypeType CustType; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcFutureSerialType FutureSerial; - TThostFtdcInstallIDType InstallID; - TThostFtdcUserIDType UserID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankAccTypeType BankSecuAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcBankAccountType BankSecuAcc; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcTradeAmountType BankUseAmount; - TThostFtdcTradeAmountType BankFetchAmount; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcFutureSignIOField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcInstallIDType InstallID; - TThostFtdcUserIDType UserID; - TThostFtdcDigestType Digest; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; -}; - -struct CThostFtdcRspFutureSignInField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcInstallIDType InstallID; - TThostFtdcUserIDType UserID; - TThostFtdcDigestType Digest; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcPasswordKeyType PinKey; - TThostFtdcPasswordKeyType MacKey; -}; - -struct CThostFtdcReqFutureSignOutField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcInstallIDType InstallID; - TThostFtdcUserIDType UserID; - TThostFtdcDigestType Digest; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; -}; - -struct CThostFtdcRspFutureSignOutField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcInstallIDType InstallID; - TThostFtdcUserIDType UserID; - TThostFtdcDigestType Digest; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcReqQueryTradeResultBySerialField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcSerialType Reference; - TThostFtdcInstitutionTypeType RefrenceIssureType; - TThostFtdcOrganCodeType RefrenceIssure; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcCustTypeType CustType; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcTradeAmountType TradeAmount; - TThostFtdcDigestType Digest; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcRspQueryTradeResultBySerialField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcSerialType Reference; - TThostFtdcInstitutionTypeType RefrenceIssureType; - TThostFtdcOrganCodeType RefrenceIssure; - TThostFtdcReturnCodeType OriginReturnCode; - TThostFtdcDescrInfoForReturnCodeType OriginDescrInfoForReturnCode; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcTradeAmountType TradeAmount; - TThostFtdcDigestType Digest; -}; - -struct CThostFtdcReqDayEndFileReadyField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcFileBusinessCodeType FileBusinessCode; - TThostFtdcDigestType Digest; -}; - -struct CThostFtdcReturnResultField -{ - TThostFtdcReturnCodeType ReturnCode; - TThostFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode; -}; - -struct CThostFtdcVerifyFuturePasswordField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcInstallIDType InstallID; - TThostFtdcTIDType TID; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcVerifyCustInfoField -{ - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcCustTypeType CustType; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcVerifyFuturePasswordAndCustInfoField -{ - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcCustTypeType CustType; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcDepositResultInformField -{ - TThostFtdcDepositSeqNoType DepositSeqNo; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcMoneyType Deposit; - TThostFtdcRequestIDType RequestID; - TThostFtdcReturnCodeType ReturnCode; - TThostFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode; -}; - -struct CThostFtdcReqSyncKeyField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcInstallIDType InstallID; - TThostFtdcUserIDType UserID; - TThostFtdcAddInfoType Message; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; -}; - -struct CThostFtdcRspSyncKeyField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcInstallIDType InstallID; - TThostFtdcUserIDType UserID; - TThostFtdcAddInfoType Message; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcNotifyQueryAccountField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcCustTypeType CustType; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcFutureSerialType FutureSerial; - TThostFtdcInstallIDType InstallID; - TThostFtdcUserIDType UserID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankAccTypeType BankSecuAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcBankAccountType BankSecuAcc; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcTradeAmountType BankUseAmount; - TThostFtdcTradeAmountType BankFetchAmount; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcTransferSerialField -{ - TThostFtdcPlateSerialType PlateSerial; - TThostFtdcTradeDateType TradeDate; - TThostFtdcDateType TradingDay; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcTradeCodeType TradeCode; - TThostFtdcSessionIDType SessionID; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcBankAccountType BankAccount; - TThostFtdcBankSerialType BankSerial; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcFutureAccTypeType FutureAccType; - TThostFtdcAccountIDType AccountID; - TThostFtdcInvestorIDType InvestorID; - TThostFtdcFutureSerialType FutureSerial; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcTradeAmountType TradeAmount; - TThostFtdcCustFeeType CustFee; - TThostFtdcFutureFeeType BrokerFee; - TThostFtdcAvailabilityFlagType AvailabilityFlag; - TThostFtdcOperatorCodeType OperatorCode; - TThostFtdcBankAccountType BankNewAccount; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcQryTransferSerialField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcAccountIDType AccountID; - TThostFtdcBankIDType BankID; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcNotifyFutureSignInField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcInstallIDType InstallID; - TThostFtdcUserIDType UserID; - TThostFtdcDigestType Digest; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcPasswordKeyType PinKey; - TThostFtdcPasswordKeyType MacKey; -}; - -struct CThostFtdcNotifyFutureSignOutField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcInstallIDType InstallID; - TThostFtdcUserIDType UserID; - TThostFtdcDigestType Digest; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcNotifySyncKeyField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcInstallIDType InstallID; - TThostFtdcUserIDType UserID; - TThostFtdcAddInfoType Message; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcOperNoType OperNo; - TThostFtdcRequestIDType RequestID; - TThostFtdcTIDType TID; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcQryAccountregisterField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcAccountIDType AccountID; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcAccountregisterField -{ - TThostFtdcTradeDateType TradeDay; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBankAccountType BankAccount; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcAccountIDType AccountID; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcOpenOrDestroyType OpenOrDestroy; - TThostFtdcTradeDateType RegDate; - TThostFtdcTradeDateType OutDate; - TThostFtdcTIDType TID; - TThostFtdcCustTypeType CustType; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcOpenAccountField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcGenderType Gender; - TThostFtdcCountryCodeType CountryCode; - TThostFtdcCustTypeType CustType; - TThostFtdcAddressType Address; - TThostFtdcZipCodeType ZipCode; - TThostFtdcTelephoneType Telephone; - TThostFtdcMobilePhoneType MobilePhone; - TThostFtdcFaxType Fax; - TThostFtdcEMailType EMail; - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcInstallIDType InstallID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcCashExchangeCodeType CashExchangeCode; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankAccTypeType BankSecuAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcBankAccountType BankSecuAcc; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcOperNoType OperNo; - TThostFtdcTIDType TID; - TThostFtdcUserIDType UserID; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcCancelAccountField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcGenderType Gender; - TThostFtdcCountryCodeType CountryCode; - TThostFtdcCustTypeType CustType; - TThostFtdcAddressType Address; - TThostFtdcZipCodeType ZipCode; - TThostFtdcTelephoneType Telephone; - TThostFtdcMobilePhoneType MobilePhone; - TThostFtdcFaxType Fax; - TThostFtdcEMailType EMail; - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcInstallIDType InstallID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcCashExchangeCodeType CashExchangeCode; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcDeviceIDType DeviceID; - TThostFtdcBankAccTypeType BankSecuAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcBankAccountType BankSecuAcc; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcOperNoType OperNo; - TThostFtdcTIDType TID; - TThostFtdcUserIDType UserID; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcChangeAccountField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcGenderType Gender; - TThostFtdcCountryCodeType CountryCode; - TThostFtdcCustTypeType CustType; - TThostFtdcAddressType Address; - TThostFtdcZipCodeType ZipCode; - TThostFtdcTelephoneType Telephone; - TThostFtdcMobilePhoneType MobilePhone; - TThostFtdcFaxType Fax; - TThostFtdcEMailType EMail; - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcBankAccountType NewBankAccount; - TThostFtdcPasswordType NewBankPassWord; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcInstallIDType InstallID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcPwdFlagType BankPwdFlag; - TThostFtdcPwdFlagType SecuPwdFlag; - TThostFtdcTIDType TID; - TThostFtdcDigestType Digest; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; - TThostFtdcLongIndividualNameType LongCustomerName; -}; - -struct CThostFtdcSecAgentACIDMapField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcAccountIDType BrokerSecAgentID; -}; - -struct CThostFtdcQrySecAgentACIDMapField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcAccountIDType AccountID; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcUserRightsAssignField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcDRIdentityIDType DRIdentityID; -}; - -struct CThostFtdcBrokerUserRightAssignField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcDRIdentityIDType DRIdentityID; - TThostFtdcBoolType Tradeable; -}; - -struct CThostFtdcDRTransferField -{ - TThostFtdcDRIdentityIDType OrigDRIdentityID; - TThostFtdcDRIdentityIDType DestDRIdentityID; - TThostFtdcBrokerIDType OrigBrokerID; - TThostFtdcBrokerIDType DestBrokerID; -}; - -struct CThostFtdcFensUserInfoField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcLoginModeType LoginMode; -}; - -struct CThostFtdcCurrTransferIdentityField -{ - TThostFtdcDRIdentityIDType IdentityID; -}; - -struct CThostFtdcLoginForbiddenUserField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcIPAddressType IPAddress; -}; - -struct CThostFtdcQryLoginForbiddenUserField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; -}; - -struct CThostFtdcMulticastGroupInfoField -{ - TThostFtdcIPAddressType GroupIP; - TThostFtdcIPPortType GroupPort; - TThostFtdcIPAddressType SourceIP; -}; - -struct CThostFtdcTradingAccountReserveField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcAccountIDType AccountID; - TThostFtdcMoneyType Reserve; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcQryLoginForbiddenIPField -{ - TThostFtdcIPAddressType IPAddress; -}; - -struct CThostFtdcQryIPListField -{ - TThostFtdcIPAddressType IPAddress; -}; - -struct CThostFtdcQryUserRightsAssignField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; -}; - -struct CThostFtdcReserveOpenAccountConfirmField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcLongIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcGenderType Gender; - TThostFtdcCountryCodeType CountryCode; - TThostFtdcCustTypeType CustType; - TThostFtdcAddressType Address; - TThostFtdcZipCodeType ZipCode; - TThostFtdcTelephoneType Telephone; - TThostFtdcMobilePhoneType MobilePhone; - TThostFtdcFaxType Fax; - TThostFtdcEMailType EMail; - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcInstallIDType InstallID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcTIDType TID; - TThostFtdcAccountIDType AccountID; - TThostFtdcPasswordType Password; - TThostFtdcBankSerialType BankReserveOpenSeq; - TThostFtdcTradeDateType BookDate; - TThostFtdcPasswordType BookPsw; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcReserveOpenAccountField -{ - TThostFtdcTradeCodeType TradeCode; - TThostFtdcBankIDType BankID; - TThostFtdcBankBrchIDType BankBranchID; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcFutureBranchIDType BrokerBranchID; - TThostFtdcTradeDateType TradeDate; - TThostFtdcTradeTimeType TradeTime; - TThostFtdcBankSerialType BankSerial; - TThostFtdcTradeDateType TradingDay; - TThostFtdcSerialType PlateSerial; - TThostFtdcLastFragmentType LastFragment; - TThostFtdcSessionIDType SessionID; - TThostFtdcLongIndividualNameType CustomerName; - TThostFtdcIdCardTypeType IdCardType; - TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - TThostFtdcGenderType Gender; - TThostFtdcCountryCodeType CountryCode; - TThostFtdcCustTypeType CustType; - TThostFtdcAddressType Address; - TThostFtdcZipCodeType ZipCode; - TThostFtdcTelephoneType Telephone; - TThostFtdcMobilePhoneType MobilePhone; - TThostFtdcFaxType Fax; - TThostFtdcEMailType EMail; - TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - TThostFtdcBankAccountType BankAccount; - TThostFtdcPasswordType BankPassWord; - TThostFtdcInstallIDType InstallID; - TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - TThostFtdcCurrencyIDType CurrencyID; - TThostFtdcDigestType Digest; - TThostFtdcBankAccTypeType BankAccType; - TThostFtdcBankCodingForFutureType BrokerIDByBank; - TThostFtdcTIDType TID; - TThostFtdcReserveOpenAccStasType ReserveOpenAccStas; - TThostFtdcErrorIDType ErrorID; - TThostFtdcErrorMsgType ErrorMsg; -}; - -struct CThostFtdcAccountPropertyField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcAccountIDType AccountID; - TThostFtdcBankIDType BankID; - TThostFtdcBankAccountType BankAccount; - TThostFtdcInvestorFullNameType OpenName; - TThostFtdcOpenBankType OpenBank; - TThostFtdcBoolType IsActive; - TThostFtdcAccountSourceTypeType AccountSourceType; - TThostFtdcDateType OpenDate; - TThostFtdcDateType CancelDate; - TThostFtdcOperatorIDType OperatorID; - TThostFtdcDateType OperateDate; - TThostFtdcTimeType OperateTime; - TThostFtdcCurrencyIDType CurrencyID; -}; - -struct CThostFtdcQryCurrDRIdentityField -{ - TThostFtdcDRIdentityIDType DRIdentityID; -}; - -struct CThostFtdcCurrDRIdentityField -{ - TThostFtdcDRIdentityIDType DRIdentityID; -}; - -struct CThostFtdcQrySecAgentCheckModeField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcInvestorIDType InvestorID; -}; - -struct CThostFtdcQrySecAgentTradeInfoField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcAccountIDType BrokerSecAgentID; -}; - -struct CThostFtdcUserSystemInfoField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcSystemInfoLenType ClientSystemInfoLen; - TThostFtdcClientSystemInfoType ClientSystemInfo; - TThostFtdcIPAddressType ClientPublicIP; - TThostFtdcIPPortType ClientIPPort; - TThostFtdcTimeType ClientLoginTime; - TThostFtdcAppIDType ClientAppID; -}; - -struct CThostFtdcReqUserAuthMethodField -{ - TThostFtdcDateType TradingDay; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; -}; - -struct CThostFtdcRspUserAuthMethodField -{ - TThostFtdcCurrentAuthMethodType UsableAuthMethod; -}; - -struct CThostFtdcReqGenUserCaptchaField -{ - TThostFtdcDateType TradingDay; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; -}; - -struct CThostFtdcRspGenUserCaptchaField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcCaptchaInfoLenType CaptchaInfoLen; - TThostFtdcCaptchaInfoType CaptchaInfo; -}; - -struct CThostFtdcReqGenUserTextField -{ - TThostFtdcDateType TradingDay; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; -}; - -struct CThostFtdcRspGenUserTextField -{ - TThostFtdcUserTextSeqType UserTextSeq; -}; - -struct CThostFtdcReqUserLoginWithCaptchaField -{ - TThostFtdcDateType TradingDay; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcPasswordType Password; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcProductInfoType InterfaceProductInfo; - TThostFtdcProtocolInfoType ProtocolInfo; - TThostFtdcMacAddressType MacAddress; - TThostFtdcIPAddressType ClientIPAddress; - TThostFtdcLoginRemarkType LoginRemark; - TThostFtdcPasswordType Captcha; - TThostFtdcIPPortType ClientIPPort; -}; - -struct CThostFtdcReqUserLoginWithTextField -{ - TThostFtdcDateType TradingDay; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcPasswordType Password; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcProductInfoType InterfaceProductInfo; - TThostFtdcProtocolInfoType ProtocolInfo; - TThostFtdcMacAddressType MacAddress; - TThostFtdcIPAddressType ClientIPAddress; - TThostFtdcLoginRemarkType LoginRemark; - TThostFtdcPasswordType Text; - TThostFtdcIPPortType ClientIPPort; -}; - -struct CThostFtdcReqUserLoginWithOTPField -{ - TThostFtdcDateType TradingDay; - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcPasswordType Password; - TThostFtdcProductInfoType UserProductInfo; - TThostFtdcProductInfoType InterfaceProductInfo; - TThostFtdcProtocolInfoType ProtocolInfo; - TThostFtdcMacAddressType MacAddress; - TThostFtdcIPAddressType ClientIPAddress; - TThostFtdcLoginRemarkType LoginRemark; - TThostFtdcPasswordType OTPPassword; - TThostFtdcIPPortType ClientIPPort; -}; - -struct CThostFtdcReqApiHandshakeField -{ - TThostFtdcCryptoKeyVersionType CryptoKeyVersion; -}; - -struct CThostFtdcRspApiHandshakeField -{ - TThostFtdcHandshakeDataLenType FrontHandshakeDataLen; - TThostFtdcHandshakeDataType FrontHandshakeData; - TThostFtdcBoolType IsApiAuthEnabled; -}; - -struct CThostFtdcReqVerifyApiKeyField -{ - TThostFtdcHandshakeDataLenType ApiHandshakeDataLen; - TThostFtdcHandshakeDataType ApiHandshakeData; -}; - -struct CThostFtdcDepartmentUserField -{ - TThostFtdcBrokerIDType BrokerID; - TThostFtdcUserIDType UserID; - TThostFtdcDepartmentRangeType InvestorRange; - TThostFtdcInvestorIDType InvestorID; -}; - -struct CThostFtdcQueryFreqField -{ - TThostFtdcQueryFreqType QueryFreq; -}; - - - -#endif +///////////////////////////////////////////////////////////////////////// +///@system һϵͳ +///@company ϺڻϢ޹˾ +///@file ThostFtdcUserApiStruct.h +///@brief ˿ͻ˽ӿʹõҵݽṹ +///@history +///20060106 Ժ ļ +///////////////////////////////////////////////////////////////////////// + +#if !defined(THOST_FTDCSTRUCT_H) +#define THOST_FTDCSTRUCT_H + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#include "ThostFtdcUserApiDataType.h" + +///Ϣַ +struct CThostFtdcDisseminationField +{ + ///ϵк + TThostFtdcSequenceSeriesType SequenceSeries; + ///к + TThostFtdcSequenceNoType SequenceNo; +}; + +///û¼ +struct CThostFtdcReqUserLoginField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcPasswordType Password; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///ӿڶ˲ƷϢ + TThostFtdcProductInfoType InterfaceProductInfo; + ///ЭϢ + TThostFtdcProtocolInfoType ProtocolInfo; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///̬ + TThostFtdcPasswordType OneTimePassword; + ///նIPַ + TThostFtdcIPAddressType ClientIPAddress; + ///¼ע + TThostFtdcLoginRemarkType LoginRemark; + ///նIP˿ + TThostFtdcIPPortType ClientIPPort; +}; + +///û¼Ӧ +struct CThostFtdcRspUserLoginField +{ + /// + TThostFtdcDateType TradingDay; + ///¼ɹʱ + TThostFtdcTimeType LoginTime; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///ϵͳ + TThostFtdcSystemNameType SystemName; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///󱨵 + TThostFtdcOrderRefType MaxOrderRef; + ///ʱ + TThostFtdcTimeType SHFETime; + ///ʱ + TThostFtdcTimeType DCETime; + ///֣ʱ + TThostFtdcTimeType CZCETime; + ///нʱ + TThostFtdcTimeType FFEXTime; + ///Դʱ + TThostFtdcTimeType INETime; +}; + +///ûdz +struct CThostFtdcUserLogoutField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///ǿƽԱ˳ +struct CThostFtdcForceUserLogoutField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///ͻ֤ +struct CThostFtdcReqAuthenticateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///֤ + TThostFtdcAuthCodeType AuthCode; + ///App + TThostFtdcAppIDType AppID; +}; + +///ͻ֤Ӧ +struct CThostFtdcRspAuthenticateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///App + TThostFtdcAppIDType AppID; + ///App + TThostFtdcAppTypeType AppType; +}; + +///ͻ֤Ϣ +struct CThostFtdcAuthenticationInfoField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///֤Ϣ + TThostFtdcAuthInfoType AuthInfo; + ///ǷΪ֤ + TThostFtdcBoolType IsResult; + ///App + TThostFtdcAppIDType AppID; + ///App + TThostFtdcAppTypeType AppType; +}; + +///û¼Ӧ2 +struct CThostFtdcRspUserLogin2Field +{ + /// + TThostFtdcDateType TradingDay; + ///¼ɹʱ + TThostFtdcTimeType LoginTime; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///ϵͳ + TThostFtdcSystemNameType SystemName; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///󱨵 + TThostFtdcOrderRefType MaxOrderRef; + ///ʱ + TThostFtdcTimeType SHFETime; + ///ʱ + TThostFtdcTimeType DCETime; + ///֣ʱ + TThostFtdcTimeType CZCETime; + ///нʱ + TThostFtdcTimeType FFEXTime; + ///Դʱ + TThostFtdcTimeType INETime; + /// + TThostFtdcRandomStringType RandomString; +}; + +///תʱͷ +struct CThostFtdcTransferHeaderField +{ + ///汾ţ1.0 + TThostFtdcVersionType Version; + ///״룬 + TThostFtdcTradeCodeType TradeCode; + ///ڣʽyyyymmdd + TThostFtdcTradeDateType TradeDate; + ///ʱ䣬ʽhhmmss + TThostFtdcTradeTimeType TradeTime; + ///ˮţN/A + TThostFtdcTradeSerialType TradeSerial; + ///ڻ˾룬 + TThostFtdcFutureIDType FutureID; + ///д룬ݲѯеõ + TThostFtdcBankIDType BankID; + ///зĴ룬ݲѯеõ + TThostFtdcBankBrchIDType BankBrchID; + ///ԱN/A + TThostFtdcOperNoType OperNo; + ///豸ͣN/A + TThostFtdcDeviceIDType DeviceID; + ///¼N/A + TThostFtdcRecordNumType RecordNum; + ///ỰţN/A + TThostFtdcSessionIDType SessionID; + ///ţN/A + TThostFtdcRequestIDType RequestID; +}; + +///ʽתڻTradeCode=202001 +struct CThostFtdcTransferBankToFutureReqField +{ + ///ڻʽ˻ + TThostFtdcAccountIDType FutureAccount; + ///־ + TThostFtdcFuturePwdFlagType FuturePwdFlag; + /// + TThostFtdcFutureAccPwdType FutureAccPwd; + ///ת˽ + TThostFtdcMoneyType TradeAmt; + ///ͻ + TThostFtdcMoneyType CustFee; + ///֣RMB- USD-Բ HKD-Ԫ + TThostFtdcCurrencyCodeType CurrencyCode; +}; + +///ʽתڻӦ +struct CThostFtdcTransferBankToFutureRspField +{ + ///Ӧ + TThostFtdcRetCodeType RetCode; + ///ӦϢ + TThostFtdcRetInfoType RetInfo; + ///ʽ˻ + TThostFtdcAccountIDType FutureAccount; + ///תʽ + TThostFtdcMoneyType TradeAmt; + ///Ӧտͻ + TThostFtdcMoneyType CustFee; + /// + TThostFtdcCurrencyCodeType CurrencyCode; +}; + +///ڻʽתTradeCode=202002 +struct CThostFtdcTransferFutureToBankReqField +{ + ///ڻʽ˻ + TThostFtdcAccountIDType FutureAccount; + ///־ + TThostFtdcFuturePwdFlagType FuturePwdFlag; + /// + TThostFtdcFutureAccPwdType FutureAccPwd; + ///ת˽ + TThostFtdcMoneyType TradeAmt; + ///ͻ + TThostFtdcMoneyType CustFee; + ///֣RMB- USD-Բ HKD-Ԫ + TThostFtdcCurrencyCodeType CurrencyCode; +}; + +///ڻʽתӦ +struct CThostFtdcTransferFutureToBankRspField +{ + ///Ӧ + TThostFtdcRetCodeType RetCode; + ///ӦϢ + TThostFtdcRetInfoType RetInfo; + ///ʽ˻ + TThostFtdcAccountIDType FutureAccount; + ///תʽ + TThostFtdcMoneyType TradeAmt; + ///Ӧտͻ + TThostFtdcMoneyType CustFee; + /// + TThostFtdcCurrencyCodeType CurrencyCode; +}; + +///ѯʽTradeCode=204002 +struct CThostFtdcTransferQryBankReqField +{ + ///ڻʽ˻ + TThostFtdcAccountIDType FutureAccount; + ///־ + TThostFtdcFuturePwdFlagType FuturePwdFlag; + /// + TThostFtdcFutureAccPwdType FutureAccPwd; + ///֣RMB- USD-Բ HKD-Ԫ + TThostFtdcCurrencyCodeType CurrencyCode; +}; + +///ѯʽӦ +struct CThostFtdcTransferQryBankRspField +{ + ///Ӧ + TThostFtdcRetCodeType RetCode; + ///ӦϢ + TThostFtdcRetInfoType RetInfo; + ///ʽ˻ + TThostFtdcAccountIDType FutureAccount; + /// + TThostFtdcMoneyType TradeAmt; + ///п + TThostFtdcMoneyType UseAmt; + ///пȡ + TThostFtdcMoneyType FetchAmt; + /// + TThostFtdcCurrencyCodeType CurrencyCode; +}; + +///ѯнϸTradeCode=204999 +struct CThostFtdcTransferQryDetailReqField +{ + ///ڻʽ˻ + TThostFtdcAccountIDType FutureAccount; +}; + +///ѯнϸӦ +struct CThostFtdcTransferQryDetailRspField +{ + /// + TThostFtdcDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///״ + TThostFtdcTradeCodeType TradeCode; + ///ڻˮ + TThostFtdcTradeSerialNoType FutureSerial; + ///ڻ˾ + TThostFtdcFutureIDType FutureID; + ///ʽʺ + TThostFtdcFutureAccountType FutureAccount; + ///ˮ + TThostFtdcTradeSerialNoType BankSerial; + ///д + TThostFtdcBankIDType BankID; + ///зĴ + TThostFtdcBankBrchIDType BankBrchID; + ///˺ + TThostFtdcBankAccountType BankAccount; + ///֤ + TThostFtdcCertCodeType CertCode; + ///Ҵ + TThostFtdcCurrencyCodeType CurrencyCode; + /// + TThostFtdcMoneyType TxAmount; + ///Ч־ + TThostFtdcTransferValidFlagType Flag; +}; + +///ӦϢ +struct CThostFtdcRspInfoField +{ + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +/// +struct CThostFtdcExchangeField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcExchangeNameType ExchangeName; + /// + TThostFtdcExchangePropertyType ExchangeProperty; +}; + +///Ʒ +struct CThostFtdcProductField +{ + ///Ʒ + TThostFtdcInstrumentIDType ProductID; + ///Ʒ + TThostFtdcProductNameType ProductName; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ʒ + TThostFtdcProductClassType ProductClass; + ///Լ + TThostFtdcVolumeMultipleType VolumeMultiple; + ///С䶯λ + TThostFtdcPriceType PriceTick; + ///м۵µ + TThostFtdcVolumeType MaxMarketOrderVolume; + ///м۵Сµ + TThostFtdcVolumeType MinMarketOrderVolume; + ///޼۵µ + TThostFtdcVolumeType MaxLimitOrderVolume; + ///޼۵Сµ + TThostFtdcVolumeType MinLimitOrderVolume; + ///ֲ + TThostFtdcPositionTypeType PositionType; + ///ֲ + TThostFtdcPositionDateTypeType PositionDateType; + ///ƽִ + TThostFtdcCloseDealTypeType CloseDealType; + ///ױ + TThostFtdcCurrencyIDType TradeCurrencyID; + ///Ѻʽ÷Χ + TThostFtdcMortgageFundUseRangeType MortgageFundUseRange; + ///Ʒ + TThostFtdcInstrumentIDType ExchangeProductID; + ///ԼƷ + TThostFtdcUnderlyingMultipleType UnderlyingMultiple; +}; + +///Լ +struct CThostFtdcInstrumentField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Լ + TThostFtdcInstrumentNameType InstrumentName; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ʒ + TThostFtdcInstrumentIDType ProductID; + ///Ʒ + TThostFtdcProductClassType ProductClass; + /// + TThostFtdcYearType DeliveryYear; + /// + TThostFtdcMonthType DeliveryMonth; + ///м۵µ + TThostFtdcVolumeType MaxMarketOrderVolume; + ///м۵Сµ + TThostFtdcVolumeType MinMarketOrderVolume; + ///޼۵µ + TThostFtdcVolumeType MaxLimitOrderVolume; + ///޼۵Сµ + TThostFtdcVolumeType MinLimitOrderVolume; + ///Լ + TThostFtdcVolumeMultipleType VolumeMultiple; + ///С䶯λ + TThostFtdcPriceType PriceTick; + /// + TThostFtdcDateType CreateDate; + /// + TThostFtdcDateType OpenDate; + /// + TThostFtdcDateType ExpireDate; + ///ʼ + TThostFtdcDateType StartDelivDate; + /// + TThostFtdcDateType EndDelivDate; + ///Լ״̬ + TThostFtdcInstLifePhaseType InstLifePhase; + ///ǰǷ + TThostFtdcBoolType IsTrading; + ///ֲ + TThostFtdcPositionTypeType PositionType; + ///ֲ + TThostFtdcPositionDateTypeType PositionDateType; + ///ͷ֤ + TThostFtdcRatioType LongMarginRatio; + ///ͷ֤ + TThostFtdcRatioType ShortMarginRatio; + ///Ƿʹô֤߱㷨 + TThostFtdcMaxMarginSideAlgorithmType MaxMarginSideAlgorithm; + ///Ʒ + TThostFtdcInstrumentIDType UnderlyingInstrID; + ///ִм + TThostFtdcPriceType StrikePrice; + ///Ȩ + TThostFtdcOptionsTypeType OptionsType; + ///ԼƷ + TThostFtdcUnderlyingMultipleType UnderlyingMultiple; + /// + TThostFtdcCombinationTypeType CombinationType; +}; + +///͹˾ +struct CThostFtdcBrokerField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///͹˾ + TThostFtdcBrokerAbbrType BrokerAbbr; + ///͹˾ + TThostFtdcBrokerNameType BrokerName; + ///ǷԾ + TThostFtdcBoolType IsActive; +}; + +///Ա +struct CThostFtdcTraderField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + /// + TThostFtdcPasswordType Password; + ///װ + TThostFtdcInstallCountType InstallCount; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; +}; + +///Ͷ +struct CThostFtdcInvestorField +{ + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷ߷ + TThostFtdcInvestorIDType InvestorGroupID; + ///Ͷ + TThostFtdcPartyNameType InvestorName; + ///֤ + TThostFtdcIdCardTypeType IdentifiedCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ǷԾ + TThostFtdcBoolType IsActive; + ///ϵ绰 + TThostFtdcTelephoneType Telephone; + ///ͨѶַ + TThostFtdcAddressType Address; + /// + TThostFtdcDateType OpenDate; + ///ֻ + TThostFtdcMobileType Mobile; + ///ģ + TThostFtdcInvestorIDType CommModelID; + ///֤ģ + TThostFtdcInvestorIDType MarginModelID; +}; + +///ױ +struct CThostFtdcTradingCodeField +{ + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ǷԾ + TThostFtdcBoolType IsActive; + ///ױ + TThostFtdcClientIDTypeType ClientIDType; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ҵ + TThostFtdcBizTypeType BizType; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///Ա;͹˾ձ +struct CThostFtdcPartBrokerField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ǷԾ + TThostFtdcBoolType IsActive; +}; + +///û +struct CThostFtdcSuperUserField +{ + ///û + TThostFtdcUserIDType UserID; + ///û + TThostFtdcUserNameType UserName; + /// + TThostFtdcPasswordType Password; + ///ǷԾ + TThostFtdcBoolType IsActive; +}; + +///ûȨ +struct CThostFtdcSuperUserFunctionField +{ + ///û + TThostFtdcUserIDType UserID; + ///ܴ + TThostFtdcFunctionCodeType FunctionCode; +}; + +///Ͷ +struct CThostFtdcInvestorGroupField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷ߷ + TThostFtdcInvestorIDType InvestorGroupID; + ///Ͷ߷ + TThostFtdcInvestorGroupNameType InvestorGroupName; +}; + +///ʽ˻ +struct CThostFtdcTradingAccountField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ϴѺ + TThostFtdcMoneyType PreMortgage; + ///ϴö + TThostFtdcMoneyType PreCredit; + ///ϴδ + TThostFtdcMoneyType PreDeposit; + ///ϴν׼ + TThostFtdcMoneyType PreBalance; + ///ϴռõı֤ + TThostFtdcMoneyType PreMargin; + ///Ϣ + TThostFtdcMoneyType InterestBase; + ///Ϣ + TThostFtdcMoneyType Interest; + /// + TThostFtdcMoneyType Deposit; + /// + TThostFtdcMoneyType Withdraw; + ///ı֤ + TThostFtdcMoneyType FrozenMargin; + ///ʽ + TThostFtdcMoneyType FrozenCash; + /// + TThostFtdcMoneyType FrozenCommission; + ///ǰ֤ܶ + TThostFtdcMoneyType CurrMargin; + ///ʽ + TThostFtdcMoneyType CashIn; + /// + TThostFtdcMoneyType Commission; + ///ƽӯ + TThostFtdcMoneyType CloseProfit; + ///ֲӯ + TThostFtdcMoneyType PositionProfit; + ///ڻ׼ + TThostFtdcMoneyType Balance; + ///ʽ + TThostFtdcMoneyType Available; + ///ȡʽ + TThostFtdcMoneyType WithdrawQuota; + ///׼ + TThostFtdcMoneyType Reserve; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///ö + TThostFtdcMoneyType Credit; + ///Ѻ + TThostFtdcMoneyType Mortgage; + ///֤ + TThostFtdcMoneyType ExchangeMargin; + ///Ͷ߽֤ + TThostFtdcMoneyType DeliveryMargin; + ///֤ + TThostFtdcMoneyType ExchangeDeliveryMargin; + ///ڻ׼ + TThostFtdcMoneyType ReserveBalance; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ϴλ + TThostFtdcMoneyType PreFundMortgageIn; + ///ϴλʳ + TThostFtdcMoneyType PreFundMortgageOut; + /// + TThostFtdcMoneyType FundMortgageIn; + ///ʳ + TThostFtdcMoneyType FundMortgageOut; + ///Ѻ + TThostFtdcMoneyType FundMortgageAvailable; + ///Ѻҽ + TThostFtdcMoneyType MortgageableFund; + ///Ʒռñ֤ + TThostFtdcMoneyType SpecProductMargin; + ///Ʒᱣ֤ + TThostFtdcMoneyType SpecProductFrozenMargin; + ///Ʒ + TThostFtdcMoneyType SpecProductCommission; + ///Ʒ + TThostFtdcMoneyType SpecProductFrozenCommission; + ///Ʒֲӯ + TThostFtdcMoneyType SpecProductPositionProfit; + ///Ʒƽӯ + TThostFtdcMoneyType SpecProductCloseProfit; + ///ݳֲӯ㷨Ʒֲӯ + TThostFtdcMoneyType SpecProductPositionProfitByAlg; + ///Ʒ֤ + TThostFtdcMoneyType SpecProductExchangeMargin; + ///ҵ + TThostFtdcBizTypeType BizType; + ///ʱ㶳 + TThostFtdcMoneyType FrozenSwap; + ///ʣ໻ + TThostFtdcMoneyType RemainSwap; +}; + +///Ͷֲ߳ +struct CThostFtdcInvestorPositionField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ֲֶշ + TThostFtdcPosiDirectionType PosiDirection; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ֲ + TThostFtdcPositionDateType PositionDate; + ///ճֲ + TThostFtdcVolumeType YdPosition; + ///ճֲ + TThostFtdcVolumeType Position; + ///ͷ + TThostFtdcVolumeType LongFrozen; + ///ͷ + TThostFtdcVolumeType ShortFrozen; + ///ֶ + TThostFtdcMoneyType LongFrozenAmount; + ///ֶ + TThostFtdcMoneyType ShortFrozenAmount; + /// + TThostFtdcVolumeType OpenVolume; + ///ƽ + TThostFtdcVolumeType CloseVolume; + ///ֽ + TThostFtdcMoneyType OpenAmount; + ///ƽֽ + TThostFtdcMoneyType CloseAmount; + ///ֲֳɱ + TThostFtdcMoneyType PositionCost; + ///ϴռõı֤ + TThostFtdcMoneyType PreMargin; + ///ռõı֤ + TThostFtdcMoneyType UseMargin; + ///ı֤ + TThostFtdcMoneyType FrozenMargin; + ///ʽ + TThostFtdcMoneyType FrozenCash; + /// + TThostFtdcMoneyType FrozenCommission; + ///ʽ + TThostFtdcMoneyType CashIn; + /// + TThostFtdcMoneyType Commission; + ///ƽӯ + TThostFtdcMoneyType CloseProfit; + ///ֲӯ + TThostFtdcMoneyType PositionProfit; + ///ϴν + TThostFtdcPriceType PreSettlementPrice; + ///ν + TThostFtdcPriceType SettlementPrice; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///ֳɱ + TThostFtdcMoneyType OpenCost; + ///֤ + TThostFtdcMoneyType ExchangeMargin; + ///ϳɽγɵijֲ + TThostFtdcVolumeType CombPosition; + ///϶ͷ + TThostFtdcVolumeType CombLongFrozen; + ///Ͽͷ + TThostFtdcVolumeType CombShortFrozen; + ///նƽӯ + TThostFtdcMoneyType CloseProfitByDate; + ///ʶԳƽӯ + TThostFtdcMoneyType CloseProfitByTrade; + ///ճֲ + TThostFtdcVolumeType TodayPosition; + ///֤ + TThostFtdcRatioType MarginRateByMoney; + ///֤() + TThostFtdcRatioType MarginRateByVolume; + ///ִж + TThostFtdcVolumeType StrikeFrozen; + ///ִж + TThostFtdcMoneyType StrikeFrozenAmount; + ///ִж + TThostFtdcVolumeType AbandonFrozen; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ִж + TThostFtdcVolumeType YdStrikeFrozen; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ֲֳɱֵֻдʹ + TThostFtdcMoneyType PositionCostOffset; +}; + +///Լ֤ +struct CThostFtdcInstrumentMarginRateField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ͷ֤ + TThostFtdcRatioType LongMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType LongMarginRatioByVolume; + ///ͷ֤ + TThostFtdcRatioType ShortMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType ShortMarginRatioByVolume; + ///ǷԽȡ + TThostFtdcBoolType IsRelative; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///Լ +struct CThostFtdcInstrumentCommissionRateField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcRatioType OpenRatioByMoney; + /// + TThostFtdcRatioType OpenRatioByVolume; + ///ƽ + TThostFtdcRatioType CloseRatioByMoney; + ///ƽ + TThostFtdcRatioType CloseRatioByVolume; + ///ƽ + TThostFtdcRatioType CloseTodayRatioByMoney; + ///ƽ + TThostFtdcRatioType CloseTodayRatioByVolume; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ҵ + TThostFtdcBizTypeType BizType; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +/// +struct CThostFtdcDepthMarketDataField +{ + /// + TThostFtdcDateType TradingDay; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///¼ + TThostFtdcPriceType LastPrice; + ///ϴν + TThostFtdcPriceType PreSettlementPrice; + /// + TThostFtdcPriceType PreClosePrice; + ///ֲ + TThostFtdcLargeVolumeType PreOpenInterest; + /// + TThostFtdcPriceType OpenPrice; + ///߼ + TThostFtdcPriceType HighestPrice; + ///ͼ + TThostFtdcPriceType LowestPrice; + /// + TThostFtdcVolumeType Volume; + ///ɽ + TThostFtdcMoneyType Turnover; + ///ֲ + TThostFtdcLargeVolumeType OpenInterest; + /// + TThostFtdcPriceType ClosePrice; + ///ν + TThostFtdcPriceType SettlementPrice; + ///ͣ + TThostFtdcPriceType UpperLimitPrice; + ///ͣ + TThostFtdcPriceType LowerLimitPrice; + ///ʵ + TThostFtdcRatioType PreDelta; + ///ʵ + TThostFtdcRatioType CurrDelta; + ///޸ʱ + TThostFtdcTimeType UpdateTime; + ///޸ĺ + TThostFtdcMillisecType UpdateMillisec; + ///һ + TThostFtdcPriceType BidPrice1; + ///һ + TThostFtdcVolumeType BidVolume1; + ///һ + TThostFtdcPriceType AskPrice1; + ///һ + TThostFtdcVolumeType AskVolume1; + ///۶ + TThostFtdcPriceType BidPrice2; + /// + TThostFtdcVolumeType BidVolume2; + ///۶ + TThostFtdcPriceType AskPrice2; + /// + TThostFtdcVolumeType AskVolume2; + /// + TThostFtdcPriceType BidPrice3; + /// + TThostFtdcVolumeType BidVolume3; + /// + TThostFtdcPriceType AskPrice3; + /// + TThostFtdcVolumeType AskVolume3; + /// + TThostFtdcPriceType BidPrice4; + /// + TThostFtdcVolumeType BidVolume4; + /// + TThostFtdcPriceType AskPrice4; + /// + TThostFtdcVolumeType AskVolume4; + /// + TThostFtdcPriceType BidPrice5; + /// + TThostFtdcVolumeType BidVolume5; + /// + TThostFtdcPriceType AskPrice5; + /// + TThostFtdcVolumeType AskVolume5; + ///վ + TThostFtdcPriceType AveragePrice; + ///ҵ + TThostFtdcDateType ActionDay; +}; + +///ͶߺԼȨ +struct CThostFtdcInstrumentTradingRightField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ȩ + TThostFtdcTradingRightType TradingRight; +}; + +///͹˾û +struct CThostFtdcBrokerUserField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///û + TThostFtdcUserNameType UserName; + ///û + TThostFtdcUserTypeType UserType; + ///ǷԾ + TThostFtdcBoolType IsActive; + ///Ƿʹ + TThostFtdcBoolType IsUsingOTP; + ///Ƿǿն֤ + TThostFtdcBoolType IsAuthForce; +}; + +///͹˾û +struct CThostFtdcBrokerUserPasswordField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcPasswordType Password; + ///ϴ޸ʱ + TThostFtdcDateTimeType LastUpdateTime; + ///ϴε½ʱ + TThostFtdcDateTimeType LastLoginTime; + ///ʱ + TThostFtdcDateType ExpireDate; + ///ʱ + TThostFtdcDateType WeakExpireDate; +}; + +///͹˾ûȨ +struct CThostFtdcBrokerUserFunctionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///͹˾ܴ + TThostFtdcBrokerFunctionCodeType BrokerFunctionCode; +}; + +///Ա̻ +struct CThostFtdcTraderOfferField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + /// + TThostFtdcPasswordType Password; + ///װ + TThostFtdcInstallIDType InstallID; + ///ر + TThostFtdcOrderLocalIDType OrderLocalID; + ///Ա״̬ + TThostFtdcTraderConnectStatusType TraderConnectStatus; + /// + TThostFtdcDateType ConnectRequestDate; + ///ʱ + TThostFtdcTimeType ConnectRequestTime; + ///ϴα + TThostFtdcDateType LastReportDate; + ///ϴαʱ + TThostFtdcTimeType LastReportTime; + /// + TThostFtdcDateType ConnectDate; + ///ʱ + TThostFtdcTimeType ConnectTime; + /// + TThostFtdcDateType StartDate; + ///ʱ + TThostFtdcTimeType StartTime; + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///ϯλɽ + TThostFtdcTradeIDType MaxTradeID; + ///ϯλ󱨵 + TThostFtdcReturnCodeType MaxOrderMessageReference; +}; + +///Ͷ߽ +struct CThostFtdcSettlementInfoField +{ + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///Ϣ + TThostFtdcContentType Content; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///Լ֤ʵ +struct CThostFtdcInstrumentMarginRateAdjustField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ͷ֤ + TThostFtdcRatioType LongMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType LongMarginRatioByVolume; + ///ͷ֤ + TThostFtdcRatioType ShortMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType ShortMarginRatioByVolume; + ///ǷԽȡ + TThostFtdcBoolType IsRelative; +}; + +///֤ +struct CThostFtdcExchangeMarginRateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ͷ֤ + TThostFtdcRatioType LongMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType LongMarginRatioByVolume; + ///ͷ֤ + TThostFtdcRatioType ShortMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType ShortMarginRatioByVolume; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///֤ʵ +struct CThostFtdcExchangeMarginRateAdjustField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///潻Ͷ߶ͷ֤ + TThostFtdcRatioType LongMarginRatioByMoney; + ///潻Ͷ߶ͷ֤ + TThostFtdcMoneyType LongMarginRatioByVolume; + ///潻Ͷ߿ͷ֤ + TThostFtdcRatioType ShortMarginRatioByMoney; + ///潻Ͷ߿ͷ֤ + TThostFtdcMoneyType ShortMarginRatioByVolume; + ///ͷ֤ + TThostFtdcRatioType ExchLongMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType ExchLongMarginRatioByVolume; + ///ͷ֤ + TThostFtdcRatioType ExchShortMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType ExchShortMarginRatioByVolume; + ///潻Ͷ߶ͷ֤ + TThostFtdcRatioType NoLongMarginRatioByMoney; + ///潻Ͷ߶ͷ֤ + TThostFtdcMoneyType NoLongMarginRatioByVolume; + ///潻Ͷ߿ͷ֤ + TThostFtdcRatioType NoShortMarginRatioByMoney; + ///潻Ͷ߿ͷ֤ + TThostFtdcMoneyType NoShortMarginRatioByVolume; +}; + +/// +struct CThostFtdcExchangeRateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Դ + TThostFtdcCurrencyIDType FromCurrencyID; + ///Դֵλ + TThostFtdcCurrencyUnitType FromCurrencyUnit; + ///Ŀ + TThostFtdcCurrencyIDType ToCurrencyID; + /// + TThostFtdcExchangeRateType ExchangeRate; +}; + +/// +struct CThostFtdcSettlementRefField +{ + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; +}; + +///ǰʱ +struct CThostFtdcCurrentTimeField +{ + ///ǰ + TThostFtdcDateType CurrDate; + ///ǰʱ + TThostFtdcTimeType CurrTime; + ///ǰʱ䣨룩 + TThostFtdcMillisecType CurrMillisec; + ///ҵ + TThostFtdcDateType ActionDay; +}; + +///ͨѶ׶ +struct CThostFtdcCommPhaseField +{ + /// + TThostFtdcDateType TradingDay; + ///ͨѶʱα + TThostFtdcCommPhaseNoType CommPhaseNo; + ///ϵͳ + TThostFtdcSystemIDType SystemID; +}; + +///¼Ϣ +struct CThostFtdcLoginInfoField +{ + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///¼ + TThostFtdcDateType LoginDate; + ///¼ʱ + TThostFtdcTimeType LoginTime; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///ӿڶ˲ƷϢ + TThostFtdcProductInfoType InterfaceProductInfo; + ///ЭϢ + TThostFtdcProtocolInfoType ProtocolInfo; + ///ϵͳ + TThostFtdcSystemNameType SystemName; + ///, + TThostFtdcPasswordType PasswordDeprecated; + ///󱨵 + TThostFtdcOrderRefType MaxOrderRef; + ///ʱ + TThostFtdcTimeType SHFETime; + ///ʱ + TThostFtdcTimeType DCETime; + ///֣ʱ + TThostFtdcTimeType CZCETime; + ///нʱ + TThostFtdcTimeType FFEXTime; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///̬ + TThostFtdcPasswordType OneTimePassword; + ///Դʱ + TThostFtdcTimeType INETime; + ///ѯʱǷҪ + TThostFtdcBoolType IsQryControl; + ///¼ע + TThostFtdcLoginRemarkType LoginRemark; + /// + TThostFtdcPasswordType Password; +}; + +///¼Ϣ +struct CThostFtdcLogoutAllField +{ + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ϵͳ + TThostFtdcSystemNameType SystemName; +}; + +///ǰ״̬ +struct CThostFtdcFrontStatusField +{ + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///ϴα + TThostFtdcDateType LastReportDate; + ///ϴαʱ + TThostFtdcTimeType LastReportTime; + ///ǷԾ + TThostFtdcBoolType IsActive; +}; + +///û +struct CThostFtdcUserPasswordUpdateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///ԭĿ + TThostFtdcPasswordType OldPassword; + ///µĿ + TThostFtdcPasswordType NewPassword; +}; + +///뱨 +struct CThostFtdcInputOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcOrderRefType OrderRef; + ///û + TThostFtdcUserIDType UserID; + ///۸ + TThostFtdcOrderPriceTypeType OrderPriceType; + /// + TThostFtdcDirectionType Direction; + ///Ͽƽ־ + TThostFtdcCombOffsetFlagType CombOffsetFlag; + ///Ͷױ־ + TThostFtdcCombHedgeFlagType CombHedgeFlag; + ///۸ + TThostFtdcPriceType LimitPrice; + /// + TThostFtdcVolumeType VolumeTotalOriginal; + ///Ч + TThostFtdcTimeConditionType TimeCondition; + ///GTD + TThostFtdcDateType GTDDate; + ///ɽ + TThostFtdcVolumeConditionType VolumeCondition; + ///Сɽ + TThostFtdcVolumeType MinVolume; + /// + TThostFtdcContingentConditionType ContingentCondition; + ///ֹ + TThostFtdcPriceType StopPrice; + ///ǿƽԭ + TThostFtdcForceCloseReasonType ForceCloseReason; + ///Զ־ + TThostFtdcBoolType IsAutoSuspend; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + /// + TThostFtdcRequestIDType RequestID; + ///ûǿ־ + TThostFtdcBoolType UserForceClose; + ///־ + TThostFtdcBoolType IsSwapOrder; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ױ + TThostFtdcClientIDType ClientID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +/// +struct CThostFtdcOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcOrderRefType OrderRef; + ///û + TThostFtdcUserIDType UserID; + ///۸ + TThostFtdcOrderPriceTypeType OrderPriceType; + /// + TThostFtdcDirectionType Direction; + ///Ͽƽ־ + TThostFtdcCombOffsetFlagType CombOffsetFlag; + ///Ͷױ־ + TThostFtdcCombHedgeFlagType CombHedgeFlag; + ///۸ + TThostFtdcPriceType LimitPrice; + /// + TThostFtdcVolumeType VolumeTotalOriginal; + ///Ч + TThostFtdcTimeConditionType TimeCondition; + ///GTD + TThostFtdcDateType GTDDate; + ///ɽ + TThostFtdcVolumeConditionType VolumeCondition; + ///Сɽ + TThostFtdcVolumeType MinVolume; + /// + TThostFtdcContingentConditionType ContingentCondition; + ///ֹ + TThostFtdcPriceType StopPrice; + ///ǿƽԭ + TThostFtdcForceCloseReasonType ForceCloseReason; + ///Զ־ + TThostFtdcBoolType IsAutoSuspend; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + /// + TThostFtdcRequestIDType RequestID; + ///ر + TThostFtdcOrderLocalIDType OrderLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ύ״̬ + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///Դ + TThostFtdcOrderSourceType OrderSource; + ///״̬ + TThostFtdcOrderStatusType OrderStatus; + /// + TThostFtdcOrderTypeType OrderType; + ///ɽ + TThostFtdcVolumeType VolumeTraded; + ///ʣ + TThostFtdcVolumeType VolumeTotal; + /// + TThostFtdcDateType InsertDate; + ///ίʱ + TThostFtdcTimeType InsertTime; + ///ʱ + TThostFtdcTimeType ActiveTime; + ///ʱ + TThostFtdcTimeType SuspendTime; + ///޸ʱ + TThostFtdcTimeType UpdateTime; + ///ʱ + TThostFtdcTimeType CancelTime; + ///޸ĽԱ + TThostFtdcTraderIDType ActiveTraderID; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///ûǿ־ + TThostFtdcBoolType UserForceClose; + ///û + TThostFtdcUserIDType ActiveUserID; + ///͹˾ + TThostFtdcSequenceNoType BrokerOrderSeq; + ///ر + TThostFtdcOrderSysIDType RelativeOrderSysID; + ///֣ɽ + TThostFtdcVolumeType ZCETotalTradedVolume; + ///־ + TThostFtdcBoolType IsSwapOrder; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +/// +struct CThostFtdcExchangeOrderField +{ + ///۸ + TThostFtdcOrderPriceTypeType OrderPriceType; + /// + TThostFtdcDirectionType Direction; + ///Ͽƽ־ + TThostFtdcCombOffsetFlagType CombOffsetFlag; + ///Ͷױ־ + TThostFtdcCombHedgeFlagType CombHedgeFlag; + ///۸ + TThostFtdcPriceType LimitPrice; + /// + TThostFtdcVolumeType VolumeTotalOriginal; + ///Ч + TThostFtdcTimeConditionType TimeCondition; + ///GTD + TThostFtdcDateType GTDDate; + ///ɽ + TThostFtdcVolumeConditionType VolumeCondition; + ///Сɽ + TThostFtdcVolumeType MinVolume; + /// + TThostFtdcContingentConditionType ContingentCondition; + ///ֹ + TThostFtdcPriceType StopPrice; + ///ǿƽԭ + TThostFtdcForceCloseReasonType ForceCloseReason; + ///Զ־ + TThostFtdcBoolType IsAutoSuspend; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + /// + TThostFtdcRequestIDType RequestID; + ///ر + TThostFtdcOrderLocalIDType OrderLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ύ״̬ + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///Դ + TThostFtdcOrderSourceType OrderSource; + ///״̬ + TThostFtdcOrderStatusType OrderStatus; + /// + TThostFtdcOrderTypeType OrderType; + ///ɽ + TThostFtdcVolumeType VolumeTraded; + ///ʣ + TThostFtdcVolumeType VolumeTotal; + /// + TThostFtdcDateType InsertDate; + ///ίʱ + TThostFtdcTimeType InsertTime; + ///ʱ + TThostFtdcTimeType ActiveTime; + ///ʱ + TThostFtdcTimeType SuspendTime; + ///޸ʱ + TThostFtdcTimeType UpdateTime; + ///ʱ + TThostFtdcTimeType CancelTime; + ///޸ĽԱ + TThostFtdcTraderIDType ActiveTraderID; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ʧ +struct CThostFtdcExchangeOrderInsertErrorField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ر + TThostFtdcOrderLocalIDType OrderLocalID; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +///뱨 +struct CThostFtdcInputOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcOrderActionRefType OrderActionRef; + /// + TThostFtdcOrderRefType OrderRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + ///۸ + TThostFtdcPriceType LimitPrice; + ///仯 + TThostFtdcVolumeType VolumeChange; + ///û + TThostFtdcUserIDType UserID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +/// +struct CThostFtdcOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcOrderActionRefType OrderActionRef; + /// + TThostFtdcOrderRefType OrderRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + ///۸ + TThostFtdcPriceType LimitPrice; + ///仯 + TThostFtdcVolumeType VolumeChange; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ر + TThostFtdcOrderLocalIDType OrderLocalID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +/// +struct CThostFtdcExchangeOrderActionField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + ///۸ + TThostFtdcPriceType LimitPrice; + ///仯 + TThostFtdcVolumeType VolumeChange; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ر + TThostFtdcOrderLocalIDType OrderLocalID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ʧ +struct CThostFtdcExchangeOrderActionErrorField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ر + TThostFtdcOrderLocalIDType OrderLocalID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +///ɽ +struct CThostFtdcExchangeTradeField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///ɽ + TThostFtdcTradeIDType TradeID; + /// + TThostFtdcDirectionType Direction; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///׽ɫ + TThostFtdcTradingRoleType TradingRole; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///ƽ־ + TThostFtdcOffsetFlagType OffsetFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///۸ + TThostFtdcPriceType Price; + /// + TThostFtdcVolumeType Volume; + ///ɽʱ + TThostFtdcDateType TradeDate; + ///ɽʱ + TThostFtdcTimeType TradeTime; + ///ɽ + TThostFtdcTradeTypeType TradeType; + ///ɽԴ + TThostFtdcPriceSourceType PriceSource; + ///Ա + TThostFtdcTraderIDType TraderID; + ///ر + TThostFtdcOrderLocalIDType OrderLocalID; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + /// + TThostFtdcSequenceNoType SequenceNo; + ///ɽԴ + TThostFtdcTradeSourceType TradeSource; +}; + +///ɽ +struct CThostFtdcTradeField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcOrderRefType OrderRef; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ɽ + TThostFtdcTradeIDType TradeID; + /// + TThostFtdcDirectionType Direction; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///׽ɫ + TThostFtdcTradingRoleType TradingRole; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///ƽ־ + TThostFtdcOffsetFlagType OffsetFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///۸ + TThostFtdcPriceType Price; + /// + TThostFtdcVolumeType Volume; + ///ɽʱ + TThostFtdcDateType TradeDate; + ///ɽʱ + TThostFtdcTimeType TradeTime; + ///ɽ + TThostFtdcTradeTypeType TradeType; + ///ɽԴ + TThostFtdcPriceSourceType PriceSource; + ///Ա + TThostFtdcTraderIDType TraderID; + ///ر + TThostFtdcOrderLocalIDType OrderLocalID; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + /// + TThostFtdcSequenceNoType SequenceNo; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///͹˾ + TThostFtdcSequenceNoType BrokerOrderSeq; + ///ɽԴ + TThostFtdcTradeSourceType TradeSource; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ûỰ +struct CThostFtdcUserSessionField +{ + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///¼ + TThostFtdcDateType LoginDate; + ///¼ʱ + TThostFtdcTimeType LoginTime; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///ӿڶ˲ƷϢ + TThostFtdcProductInfoType InterfaceProductInfo; + ///ЭϢ + TThostFtdcProtocolInfoType ProtocolInfo; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///¼ע + TThostFtdcLoginRemarkType LoginRemark; +}; + +///ѯ󱨵 +struct CThostFtdcQueryMaxOrderVolumeField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcDirectionType Direction; + ///ƽ־ + TThostFtdcOffsetFlagType OffsetFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcVolumeType MaxVolume; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///Ͷ߽ȷϢ +struct CThostFtdcSettlementInfoConfirmField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ȷ + TThostFtdcDateType ConfirmDate; + ///ȷʱ + TThostFtdcTimeType ConfirmTime; + /// + TThostFtdcSettlementIDType SettlementID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///ͬ +struct CThostFtdcSyncDepositField +{ + ///ˮ + TThostFtdcDepositSeqNoType DepositSeqNo; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcMoneyType Deposit; + ///Ƿǿƽ + TThostFtdcBoolType IsForce; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///Ѻͬ +struct CThostFtdcSyncFundMortgageField +{ + ///Ѻˮ + TThostFtdcDepositSeqNoType MortgageSeqNo; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Դ + TThostFtdcCurrencyIDType FromCurrencyID; + ///Ѻ + TThostFtdcMoneyType MortgageAmount; + ///Ŀ + TThostFtdcCurrencyIDType ToCurrencyID; +}; + +///͹˾ͬ +struct CThostFtdcBrokerSyncField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; +}; + +///ͬеͶ +struct CThostFtdcSyncingInvestorField +{ + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷ߷ + TThostFtdcInvestorIDType InvestorGroupID; + ///Ͷ + TThostFtdcPartyNameType InvestorName; + ///֤ + TThostFtdcIdCardTypeType IdentifiedCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ǷԾ + TThostFtdcBoolType IsActive; + ///ϵ绰 + TThostFtdcTelephoneType Telephone; + ///ͨѶַ + TThostFtdcAddressType Address; + /// + TThostFtdcDateType OpenDate; + ///ֻ + TThostFtdcMobileType Mobile; + ///ģ + TThostFtdcInvestorIDType CommModelID; + ///֤ģ + TThostFtdcInvestorIDType MarginModelID; +}; + +///ͬеĽ״ +struct CThostFtdcSyncingTradingCodeField +{ + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ǷԾ + TThostFtdcBoolType IsActive; + ///ױ + TThostFtdcClientIDTypeType ClientIDType; +}; + +///ͬеͶ߷ +struct CThostFtdcSyncingInvestorGroupField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷ߷ + TThostFtdcInvestorIDType InvestorGroupID; + ///Ͷ߷ + TThostFtdcInvestorGroupNameType InvestorGroupName; +}; + +///ͬеĽ˺ +struct CThostFtdcSyncingTradingAccountField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ϴѺ + TThostFtdcMoneyType PreMortgage; + ///ϴö + TThostFtdcMoneyType PreCredit; + ///ϴδ + TThostFtdcMoneyType PreDeposit; + ///ϴν׼ + TThostFtdcMoneyType PreBalance; + ///ϴռõı֤ + TThostFtdcMoneyType PreMargin; + ///Ϣ + TThostFtdcMoneyType InterestBase; + ///Ϣ + TThostFtdcMoneyType Interest; + /// + TThostFtdcMoneyType Deposit; + /// + TThostFtdcMoneyType Withdraw; + ///ı֤ + TThostFtdcMoneyType FrozenMargin; + ///ʽ + TThostFtdcMoneyType FrozenCash; + /// + TThostFtdcMoneyType FrozenCommission; + ///ǰ֤ܶ + TThostFtdcMoneyType CurrMargin; + ///ʽ + TThostFtdcMoneyType CashIn; + /// + TThostFtdcMoneyType Commission; + ///ƽӯ + TThostFtdcMoneyType CloseProfit; + ///ֲӯ + TThostFtdcMoneyType PositionProfit; + ///ڻ׼ + TThostFtdcMoneyType Balance; + ///ʽ + TThostFtdcMoneyType Available; + ///ȡʽ + TThostFtdcMoneyType WithdrawQuota; + ///׼ + TThostFtdcMoneyType Reserve; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///ö + TThostFtdcMoneyType Credit; + ///Ѻ + TThostFtdcMoneyType Mortgage; + ///֤ + TThostFtdcMoneyType ExchangeMargin; + ///Ͷ߽֤ + TThostFtdcMoneyType DeliveryMargin; + ///֤ + TThostFtdcMoneyType ExchangeDeliveryMargin; + ///ڻ׼ + TThostFtdcMoneyType ReserveBalance; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ϴλ + TThostFtdcMoneyType PreFundMortgageIn; + ///ϴλʳ + TThostFtdcMoneyType PreFundMortgageOut; + /// + TThostFtdcMoneyType FundMortgageIn; + ///ʳ + TThostFtdcMoneyType FundMortgageOut; + ///Ѻ + TThostFtdcMoneyType FundMortgageAvailable; + ///Ѻҽ + TThostFtdcMoneyType MortgageableFund; + ///Ʒռñ֤ + TThostFtdcMoneyType SpecProductMargin; + ///Ʒᱣ֤ + TThostFtdcMoneyType SpecProductFrozenMargin; + ///Ʒ + TThostFtdcMoneyType SpecProductCommission; + ///Ʒ + TThostFtdcMoneyType SpecProductFrozenCommission; + ///Ʒֲӯ + TThostFtdcMoneyType SpecProductPositionProfit; + ///Ʒƽӯ + TThostFtdcMoneyType SpecProductCloseProfit; + ///ݳֲӯ㷨Ʒֲӯ + TThostFtdcMoneyType SpecProductPositionProfitByAlg; + ///Ʒ֤ + TThostFtdcMoneyType SpecProductExchangeMargin; + ///ʱ㶳 + TThostFtdcMoneyType FrozenSwap; + ///ʣ໻ + TThostFtdcMoneyType RemainSwap; +}; + +///ͬеͶֲ߳ +struct CThostFtdcSyncingInvestorPositionField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ֲֶշ + TThostFtdcPosiDirectionType PosiDirection; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ֲ + TThostFtdcPositionDateType PositionDate; + ///ճֲ + TThostFtdcVolumeType YdPosition; + ///ճֲ + TThostFtdcVolumeType Position; + ///ͷ + TThostFtdcVolumeType LongFrozen; + ///ͷ + TThostFtdcVolumeType ShortFrozen; + ///ֶ + TThostFtdcMoneyType LongFrozenAmount; + ///ֶ + TThostFtdcMoneyType ShortFrozenAmount; + /// + TThostFtdcVolumeType OpenVolume; + ///ƽ + TThostFtdcVolumeType CloseVolume; + ///ֽ + TThostFtdcMoneyType OpenAmount; + ///ƽֽ + TThostFtdcMoneyType CloseAmount; + ///ֲֳɱ + TThostFtdcMoneyType PositionCost; + ///ϴռõı֤ + TThostFtdcMoneyType PreMargin; + ///ռõı֤ + TThostFtdcMoneyType UseMargin; + ///ı֤ + TThostFtdcMoneyType FrozenMargin; + ///ʽ + TThostFtdcMoneyType FrozenCash; + /// + TThostFtdcMoneyType FrozenCommission; + ///ʽ + TThostFtdcMoneyType CashIn; + /// + TThostFtdcMoneyType Commission; + ///ƽӯ + TThostFtdcMoneyType CloseProfit; + ///ֲӯ + TThostFtdcMoneyType PositionProfit; + ///ϴν + TThostFtdcPriceType PreSettlementPrice; + ///ν + TThostFtdcPriceType SettlementPrice; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///ֳɱ + TThostFtdcMoneyType OpenCost; + ///֤ + TThostFtdcMoneyType ExchangeMargin; + ///ϳɽγɵijֲ + TThostFtdcVolumeType CombPosition; + ///϶ͷ + TThostFtdcVolumeType CombLongFrozen; + ///Ͽͷ + TThostFtdcVolumeType CombShortFrozen; + ///նƽӯ + TThostFtdcMoneyType CloseProfitByDate; + ///ʶԳƽӯ + TThostFtdcMoneyType CloseProfitByTrade; + ///ճֲ + TThostFtdcVolumeType TodayPosition; + ///֤ + TThostFtdcRatioType MarginRateByMoney; + ///֤() + TThostFtdcRatioType MarginRateByVolume; + ///ִж + TThostFtdcVolumeType StrikeFrozen; + ///ִж + TThostFtdcMoneyType StrikeFrozenAmount; + ///ִж + TThostFtdcVolumeType AbandonFrozen; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ִж + TThostFtdcVolumeType YdStrikeFrozen; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ֲֳɱֵֻдʹ + TThostFtdcMoneyType PositionCostOffset; +}; + +///ͬеĺԼ֤ +struct CThostFtdcSyncingInstrumentMarginRateField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ͷ֤ + TThostFtdcRatioType LongMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType LongMarginRatioByVolume; + ///ͷ֤ + TThostFtdcRatioType ShortMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType ShortMarginRatioByVolume; + ///ǷԽȡ + TThostFtdcBoolType IsRelative; +}; + +///ͬеĺԼ +struct CThostFtdcSyncingInstrumentCommissionRateField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcRatioType OpenRatioByMoney; + /// + TThostFtdcRatioType OpenRatioByVolume; + ///ƽ + TThostFtdcRatioType CloseRatioByMoney; + ///ƽ + TThostFtdcRatioType CloseRatioByVolume; + ///ƽ + TThostFtdcRatioType CloseTodayRatioByMoney; + ///ƽ + TThostFtdcRatioType CloseTodayRatioByVolume; +}; + +///ͬеĺԼȨ +struct CThostFtdcSyncingInstrumentTradingRightField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ȩ + TThostFtdcTradingRightType TradingRight; +}; + +///ѯ +struct CThostFtdcQryOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///ʼʱ + TThostFtdcTimeType InsertTimeStart; + ///ʱ + TThostFtdcTimeType InsertTimeEnd; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯɽ +struct CThostFtdcQryTradeField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ɽ + TThostFtdcTradeIDType TradeID; + ///ʼʱ + TThostFtdcTimeType TradeTimeStart; + ///ʱ + TThostFtdcTimeType TradeTimeEnd; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯͶֲ߳ +struct CThostFtdcQryInvestorPositionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯʽ˻ +struct CThostFtdcQryTradingAccountField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ҵ + TThostFtdcBizTypeType BizType; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; +}; + +///ѯͶ +struct CThostFtdcQryInvestorField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; +}; + +///ѯױ +struct CThostFtdcQryTradingCodeField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ױ + TThostFtdcClientIDTypeType ClientIDType; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯͶ +struct CThostFtdcQryInvestorGroupField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; +}; + +///ѯԼ֤ +struct CThostFtdcQryInstrumentMarginRateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯ +struct CThostFtdcQryInstrumentCommissionRateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯԼȨ +struct CThostFtdcQryInstrumentTradingRightField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; +}; + +///ѯ͹˾ +struct CThostFtdcQryBrokerField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; +}; + +///ѯԱ +struct CThostFtdcQryTraderField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///Ա + TThostFtdcTraderIDType TraderID; +}; + +///ѯûȨ +struct CThostFtdcQrySuperUserFunctionField +{ + ///û + TThostFtdcUserIDType UserID; +}; + +///ѯûỰ +struct CThostFtdcQryUserSessionField +{ + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///ѯ͹˾Ա +struct CThostFtdcQryPartBrokerField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; +}; + +///ѯǰ״̬ +struct CThostFtdcQryFrontStatusField +{ + ///ǰñ + TThostFtdcFrontIDType FrontID; +}; + +///ѯ +struct CThostFtdcQryExchangeOrderField +{ + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcTraderIDType TraderID; +}; + +///ѯ +struct CThostFtdcQryOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ѯ +struct CThostFtdcQryExchangeOrderActionField +{ + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcTraderIDType TraderID; +}; + +///ѯû +struct CThostFtdcQrySuperUserField +{ + ///û + TThostFtdcUserIDType UserID; +}; + +///ѯ +struct CThostFtdcQryExchangeField +{ + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ѯƷ +struct CThostFtdcQryProductField +{ + ///Ʒ + TThostFtdcInstrumentIDType ProductID; + ///Ʒ + TThostFtdcProductClassType ProductClass; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ѯԼ +struct CThostFtdcQryInstrumentField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ʒ + TThostFtdcInstrumentIDType ProductID; +}; + +///ѯ +struct CThostFtdcQryDepthMarketDataField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ѯ͹˾û +struct CThostFtdcQryBrokerUserField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///ѯ͹˾ûȨ +struct CThostFtdcQryBrokerUserFunctionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///ѯԱ̻ +struct CThostFtdcQryTraderOfferField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///Ա + TThostFtdcTraderIDType TraderID; +}; + +///ѯˮ +struct CThostFtdcQrySyncDepositField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///ˮ + TThostFtdcDepositSeqNoType DepositSeqNo; +}; + +///ѯͶ߽ +struct CThostFtdcQrySettlementInfoField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcDateType TradingDay; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///ѯ֤ +struct CThostFtdcQryExchangeMarginRateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ѯ֤ +struct CThostFtdcQryExchangeMarginRateAdjustField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; +}; + +///ѯ +struct CThostFtdcQryExchangeRateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Դ + TThostFtdcCurrencyIDType FromCurrencyID; + ///Ŀ + TThostFtdcCurrencyIDType ToCurrencyID; +}; + +///ѯѺˮ +struct CThostFtdcQrySyncFundMortgageField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ѻˮ + TThostFtdcDepositSeqNoType MortgageSeqNo; +}; + +///ѯ +struct CThostFtdcQryHisOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///ʼʱ + TThostFtdcTimeType InsertTimeStart; + ///ʱ + TThostFtdcTimeType InsertTimeEnd; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; +}; + +///ǰȨԼС֤ +struct CThostFtdcOptionInstrMiniMarginField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///λ֣ȨԼС֤ + TThostFtdcMoneyType MinMargin; + ///ȡֵʽ + TThostFtdcValueMethodType ValueMethod; + ///Ƿ潻ȡ + TThostFtdcBoolType IsRelative; +}; + +///ǰȨԼ֤ϵ +struct CThostFtdcOptionInstrMarginAdjustField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ͷͷ֤ϵ + TThostFtdcRatioType SShortMarginRatioByMoney; + ///Ͷͷ֤ϵ + TThostFtdcMoneyType SShortMarginRatioByVolume; + ///ֵͷ֤ϵ + TThostFtdcRatioType HShortMarginRatioByMoney; + ///ֵͷ֤ϵ + TThostFtdcMoneyType HShortMarginRatioByVolume; + ///ͷ֤ϵ + TThostFtdcRatioType AShortMarginRatioByMoney; + ///ͷ֤ϵ + TThostFtdcMoneyType AShortMarginRatioByVolume; + ///Ƿ潻ȡ + TThostFtdcBoolType IsRelative; + ///̿ͷ֤ϵ + TThostFtdcRatioType MShortMarginRatioByMoney; + ///̿ͷ֤ϵ + TThostFtdcMoneyType MShortMarginRatioByVolume; +}; + +///ǰȨԼѵϸ +struct CThostFtdcOptionInstrCommRateField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcRatioType OpenRatioByMoney; + /// + TThostFtdcRatioType OpenRatioByVolume; + ///ƽ + TThostFtdcRatioType CloseRatioByMoney; + ///ƽ + TThostFtdcRatioType CloseRatioByVolume; + ///ƽ + TThostFtdcRatioType CloseTodayRatioByMoney; + ///ƽ + TThostFtdcRatioType CloseTodayRatioByVolume; + ///ִ + TThostFtdcRatioType StrikeRatioByMoney; + ///ִ + TThostFtdcRatioType StrikeRatioByVolume; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///Ȩ׳ɱ +struct CThostFtdcOptionInstrTradeCostField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ȨԼ֤𲻱䲿 + TThostFtdcMoneyType FixedMargin; + ///ȨԼС֤ + TThostFtdcMoneyType MiniMargin; + ///ȨԼȨ + TThostFtdcMoneyType Royalty; + ///ȨԼ֤𲻱䲿 + TThostFtdcMoneyType ExchFixedMargin; + ///ȨԼС֤ + TThostFtdcMoneyType ExchMiniMargin; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///Ȩ׳ɱѯ +struct CThostFtdcQryOptionInstrTradeCostField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ȨԼ + TThostFtdcPriceType InputPrice; + ///ļ۸,0 + TThostFtdcPriceType UnderlyingPrice; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///Ȩʲѯ +struct CThostFtdcQryOptionInstrCommRateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ָָֻ +struct CThostFtdcIndexPriceField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ָֻ̼ + TThostFtdcPriceType ClosePrice; +}; + +///ִ +struct CThostFtdcInputExecOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ִ + TThostFtdcOrderRefType ExecOrderRef; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcVolumeType Volume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///ƽ־ + TThostFtdcOffsetFlagType OffsetFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ִ + TThostFtdcActionTypeType ActionType; + ///ͷijֲַ + TThostFtdcPosiDirectionType PosiDirection; + ///ȨȨǷڻͷı,ֶѷ + TThostFtdcExecOrderPositionFlagType ReservePositionFlag; + ///ȨȨɵͷǷԶƽ + TThostFtdcExecOrderCloseFlagType CloseFlag; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ױ + TThostFtdcClientIDType ClientID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ִ +struct CThostFtdcInputExecOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ִ + TThostFtdcOrderActionRefType ExecOrderActionRef; + ///ִ + TThostFtdcOrderRefType ExecOrderRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ִ + TThostFtdcExecOrderSysIDType ExecOrderSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + ///û + TThostFtdcUserIDType UserID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ִ +struct CThostFtdcExecOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ִ + TThostFtdcOrderRefType ExecOrderRef; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcVolumeType Volume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///ƽ־ + TThostFtdcOffsetFlagType OffsetFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ִ + TThostFtdcActionTypeType ActionType; + ///ͷijֲַ + TThostFtdcPosiDirectionType PosiDirection; + ///ȨȨǷڻͷı,ֶѷ + TThostFtdcExecOrderPositionFlagType ReservePositionFlag; + ///ȨȨɵͷǷԶƽ + TThostFtdcExecOrderCloseFlagType CloseFlag; + ///ִ + TThostFtdcOrderLocalIDType ExecOrderLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ִύ״̬ + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///ִ + TThostFtdcExecOrderSysIDType ExecOrderSysID; + /// + TThostFtdcDateType InsertDate; + ///ʱ + TThostFtdcTimeType InsertTime; + ///ʱ + TThostFtdcTimeType CancelTime; + ///ִн + TThostFtdcExecResultType ExecResult; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///û + TThostFtdcUserIDType ActiveUserID; + ///͹˾ + TThostFtdcSequenceNoType BrokerExecOrderSeq; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ִ +struct CThostFtdcExecOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ִ + TThostFtdcOrderActionRefType ExecOrderActionRef; + ///ִ + TThostFtdcOrderRefType ExecOrderRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ִ + TThostFtdcExecOrderSysIDType ExecOrderSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ִ + TThostFtdcOrderLocalIDType ExecOrderLocalID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///ִ + TThostFtdcActionTypeType ActionType; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ִѯ +struct CThostFtdcQryExecOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ִ + TThostFtdcExecOrderSysIDType ExecOrderSysID; + ///ʼʱ + TThostFtdcTimeType InsertTimeStart; + ///ʱ + TThostFtdcTimeType InsertTimeEnd; +}; + +///ִϢ +struct CThostFtdcExchangeExecOrderField +{ + /// + TThostFtdcVolumeType Volume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///ƽ־ + TThostFtdcOffsetFlagType OffsetFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ִ + TThostFtdcActionTypeType ActionType; + ///ͷijֲַ + TThostFtdcPosiDirectionType PosiDirection; + ///ȨȨǷڻͷı,ֶѷ + TThostFtdcExecOrderPositionFlagType ReservePositionFlag; + ///ȨȨɵͷǷԶƽ + TThostFtdcExecOrderCloseFlagType CloseFlag; + ///ִ + TThostFtdcOrderLocalIDType ExecOrderLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ִύ״̬ + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///ִ + TThostFtdcExecOrderSysIDType ExecOrderSysID; + /// + TThostFtdcDateType InsertDate; + ///ʱ + TThostFtdcTimeType InsertTime; + ///ʱ + TThostFtdcTimeType CancelTime; + ///ִн + TThostFtdcExecResultType ExecResult; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ִѯ +struct CThostFtdcQryExchangeExecOrderField +{ + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcTraderIDType TraderID; +}; + +///ִѯ +struct CThostFtdcQryExecOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ִ +struct CThostFtdcExchangeExecOrderActionField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///ִ + TThostFtdcExecOrderSysIDType ExecOrderSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ִ + TThostFtdcOrderLocalIDType ExecOrderLocalID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///ִ + TThostFtdcActionTypeType ActionType; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + /// + TThostFtdcVolumeType Volume; +}; + +///ִѯ +struct CThostFtdcQryExchangeExecOrderActionField +{ + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcTraderIDType TraderID; +}; + +///ִ +struct CThostFtdcErrExecOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ִ + TThostFtdcOrderRefType ExecOrderRef; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcVolumeType Volume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///ƽ־ + TThostFtdcOffsetFlagType OffsetFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ִ + TThostFtdcActionTypeType ActionType; + ///ͷijֲַ + TThostFtdcPosiDirectionType PosiDirection; + ///ȨȨǷڻͷı,ֶѷ + TThostFtdcExecOrderPositionFlagType ReservePositionFlag; + ///ȨȨɵͷǷԶƽ + TThostFtdcExecOrderCloseFlagType CloseFlag; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ױ + TThostFtdcClientIDType ClientID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +///ѯִ +struct CThostFtdcQryErrExecOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; +}; + +///ִ +struct CThostFtdcErrExecOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ִ + TThostFtdcOrderActionRefType ExecOrderActionRef; + ///ִ + TThostFtdcOrderRefType ExecOrderRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ִ + TThostFtdcExecOrderSysIDType ExecOrderSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + ///û + TThostFtdcUserIDType UserID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +///ѯִ +struct CThostFtdcQryErrExecOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; +}; + +///ͶȨԼȨ +struct CThostFtdcOptionInstrTradingRightField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcDirectionType Direction; + ///Ȩ + TThostFtdcTradingRightType TradingRight; +}; + +///ѯȨԼȨ +struct CThostFtdcQryOptionInstrTradingRightField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcDirectionType Direction; +}; + +///ѯ +struct CThostFtdcInputForQuoteField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ѯ + TThostFtdcOrderRefType ForQuoteRef; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ѯ +struct CThostFtdcForQuoteField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ѯ + TThostFtdcOrderRefType ForQuoteRef; + ///û + TThostFtdcUserIDType UserID; + ///ѯ۱ + TThostFtdcOrderLocalIDType ForQuoteLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + /// + TThostFtdcDateType InsertDate; + ///ʱ + TThostFtdcTimeType InsertTime; + ///ѯ״̬ + TThostFtdcForQuoteStatusType ForQuoteStatus; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///û + TThostFtdcUserIDType ActiveUserID; + ///͹˾ѯ۱ + TThostFtdcSequenceNoType BrokerForQutoSeq; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ѯ۲ѯ +struct CThostFtdcQryForQuoteField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ʼʱ + TThostFtdcTimeType InsertTimeStart; + ///ʱ + TThostFtdcTimeType InsertTimeEnd; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯϢ +struct CThostFtdcExchangeForQuoteField +{ + ///ѯ۱ + TThostFtdcOrderLocalIDType ForQuoteLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + /// + TThostFtdcDateType InsertDate; + ///ʱ + TThostFtdcTimeType InsertTime; + ///ѯ״̬ + TThostFtdcForQuoteStatusType ForQuoteStatus; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ѯ۲ѯ +struct CThostFtdcQryExchangeForQuoteField +{ + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcTraderIDType TraderID; +}; + +///ı +struct CThostFtdcInputQuoteField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcOrderRefType QuoteRef; + ///û + TThostFtdcUserIDType UserID; + ///۸ + TThostFtdcPriceType AskPrice; + ///۸ + TThostFtdcPriceType BidPrice; + /// + TThostFtdcVolumeType AskVolume; + /// + TThostFtdcVolumeType BidVolume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///ƽ־ + TThostFtdcOffsetFlagType AskOffsetFlag; + ///ƽ־ + TThostFtdcOffsetFlagType BidOffsetFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType AskHedgeFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType BidHedgeFlag; + /// + TThostFtdcOrderRefType AskOrderRef; + ///򱨵 + TThostFtdcOrderRefType BidOrderRef; + ///Ӧ۱ + TThostFtdcOrderSysIDType ForQuoteSysID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ױ + TThostFtdcClientIDType ClientID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///뱨۲ +struct CThostFtdcInputQuoteActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///۲ + TThostFtdcOrderActionRefType QuoteActionRef; + /// + TThostFtdcOrderRefType QuoteRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///۲ + TThostFtdcOrderSysIDType QuoteSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + ///û + TThostFtdcUserIDType UserID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ױ + TThostFtdcClientIDType ClientID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +/// +struct CThostFtdcQuoteField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcOrderRefType QuoteRef; + ///û + TThostFtdcUserIDType UserID; + ///۸ + TThostFtdcPriceType AskPrice; + ///۸ + TThostFtdcPriceType BidPrice; + /// + TThostFtdcVolumeType AskVolume; + /// + TThostFtdcVolumeType BidVolume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///ƽ־ + TThostFtdcOffsetFlagType AskOffsetFlag; + ///ƽ־ + TThostFtdcOffsetFlagType BidOffsetFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType AskHedgeFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType BidHedgeFlag; + ///ر۱ + TThostFtdcOrderLocalIDType QuoteLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + ///ύ״̬ + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///۱ + TThostFtdcOrderSysIDType QuoteSysID; + /// + TThostFtdcDateType InsertDate; + ///ʱ + TThostFtdcTimeType InsertTime; + ///ʱ + TThostFtdcTimeType CancelTime; + ///״̬ + TThostFtdcOrderStatusType QuoteStatus; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + /// + TThostFtdcSequenceNoType SequenceNo; + /// + TThostFtdcOrderSysIDType AskOrderSysID; + ///򷽱 + TThostFtdcOrderSysIDType BidOrderSysID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///û + TThostFtdcUserIDType ActiveUserID; + ///͹˾۱ + TThostFtdcSequenceNoType BrokerQuoteSeq; + /// + TThostFtdcOrderRefType AskOrderRef; + ///򱨵 + TThostFtdcOrderRefType BidOrderRef; + ///Ӧ۱ + TThostFtdcOrderSysIDType ForQuoteSysID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///۲ +struct CThostFtdcQuoteActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///۲ + TThostFtdcOrderActionRefType QuoteActionRef; + /// + TThostFtdcOrderRefType QuoteRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///۲ + TThostFtdcOrderSysIDType QuoteSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ر۱ + TThostFtdcOrderLocalIDType QuoteLocalID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///۲ѯ +struct CThostFtdcQryQuoteField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///۱ + TThostFtdcOrderSysIDType QuoteSysID; + ///ʼʱ + TThostFtdcTimeType InsertTimeStart; + ///ʱ + TThostFtdcTimeType InsertTimeEnd; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///Ϣ +struct CThostFtdcExchangeQuoteField +{ + ///۸ + TThostFtdcPriceType AskPrice; + ///۸ + TThostFtdcPriceType BidPrice; + /// + TThostFtdcVolumeType AskVolume; + /// + TThostFtdcVolumeType BidVolume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///ƽ־ + TThostFtdcOffsetFlagType AskOffsetFlag; + ///ƽ־ + TThostFtdcOffsetFlagType BidOffsetFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType AskHedgeFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType BidHedgeFlag; + ///ر۱ + TThostFtdcOrderLocalIDType QuoteLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + ///ύ״̬ + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///۱ + TThostFtdcOrderSysIDType QuoteSysID; + /// + TThostFtdcDateType InsertDate; + ///ʱ + TThostFtdcTimeType InsertTime; + ///ʱ + TThostFtdcTimeType CancelTime; + ///״̬ + TThostFtdcOrderStatusType QuoteStatus; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + /// + TThostFtdcSequenceNoType SequenceNo; + /// + TThostFtdcOrderSysIDType AskOrderSysID; + ///򷽱 + TThostFtdcOrderSysIDType BidOrderSysID; + ///Ӧ۱ + TThostFtdcOrderSysIDType ForQuoteSysID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///۲ѯ +struct CThostFtdcQryExchangeQuoteField +{ + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcTraderIDType TraderID; +}; + +///۲ѯ +struct CThostFtdcQryQuoteActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///۲ +struct CThostFtdcExchangeQuoteActionField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///۲ + TThostFtdcOrderSysIDType QuoteSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ر۱ + TThostFtdcOrderLocalIDType QuoteLocalID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///۲ѯ +struct CThostFtdcQryExchangeQuoteActionField +{ + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcTraderIDType TraderID; +}; + +///ȨԼdeltaֵ +struct CThostFtdcOptionInstrDeltaField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Deltaֵ + TThostFtdcRatioType Delta; +}; + +///̵ѯ +struct CThostFtdcForQuoteRspField +{ + /// + TThostFtdcDateType TradingDay; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ѯ۱ + TThostFtdcOrderSysIDType ForQuoteSysID; + ///ѯʱ + TThostFtdcTimeType ForQuoteTime; + ///ҵ + TThostFtdcDateType ActionDay; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ǰȨԼִƫֵϸ +struct CThostFtdcStrikeOffsetField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ִƫֵ + TThostFtdcMoneyType Offset; + ///ִƫ + TThostFtdcStrikeOffsetTypeType OffsetType; +}; + +///Ȩִƫֵѯ +struct CThostFtdcQryStrikeOffsetField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// +struct CThostFtdcInputBatchOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcOrderActionRefType OrderActionRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///û + TThostFtdcUserIDType UserID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +/// +struct CThostFtdcBatchOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcOrderActionRefType OrderActionRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +/// +struct CThostFtdcExchangeBatchOrderActionField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ѯ +struct CThostFtdcQryBatchOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ϺԼȫϵ +struct CThostFtdcCombInstrumentGuardField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcRatioType GuarantRatio; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ϺԼȫϵѯ +struct CThostFtdcQryCombInstrumentGuardField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +/// +struct CThostFtdcInputCombActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcOrderRefType CombActionRef; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcDirectionType Direction; + /// + TThostFtdcVolumeType Volume; + ///ָ + TThostFtdcCombDirectionType CombDirection; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcExchangeIDType ExchangeID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +/// +struct CThostFtdcCombActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcOrderRefType CombActionRef; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcDirectionType Direction; + /// + TThostFtdcVolumeType Volume; + ///ָ + TThostFtdcCombDirectionType CombDirection; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ϱ + TThostFtdcOrderLocalIDType ActionLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///״̬ + TThostFtdcOrderActionStatusType ActionStatus; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///ϱ + TThostFtdcTradeIDType ComTradeID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ϲѯ +struct CThostFtdcQryCombActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///Ϣ +struct CThostFtdcExchangeCombActionField +{ + /// + TThostFtdcDirectionType Direction; + /// + TThostFtdcVolumeType Volume; + ///ָ + TThostFtdcCombDirectionType CombDirection; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ϱ + TThostFtdcOrderLocalIDType ActionLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///״̬ + TThostFtdcOrderActionStatusType ActionStatus; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///ϱ + TThostFtdcTradeIDType ComTradeID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; +}; + +///ϲѯ +struct CThostFtdcQryExchangeCombActionField +{ + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcTraderIDType TraderID; +}; + +///Ʒۻ +struct CThostFtdcProductExchRateField +{ + ///Ʒ + TThostFtdcInstrumentIDType ProductID; + ///۱ + TThostFtdcCurrencyIDType QuoteCurrencyID; + /// + TThostFtdcExchangeRateType ExchangeRate; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///Ʒۻʲѯ +struct CThostFtdcQryProductExchRateField +{ + ///Ʒ + TThostFtdcInstrumentIDType ProductID; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ѯѯۼ۲ +struct CThostFtdcQryForQuoteParamField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ѯۼ۲ +struct CThostFtdcForQuoteParamField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///¼ + TThostFtdcPriceType LastPrice; + ///۲ + TThostFtdcPriceType PriceInterval; +}; + +///ǰȨԼѵϸ +struct CThostFtdcMMOptionInstrCommRateField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcRatioType OpenRatioByMoney; + /// + TThostFtdcRatioType OpenRatioByVolume; + ///ƽ + TThostFtdcRatioType CloseRatioByMoney; + ///ƽ + TThostFtdcRatioType CloseRatioByVolume; + ///ƽ + TThostFtdcRatioType CloseTodayRatioByMoney; + ///ƽ + TThostFtdcRatioType CloseTodayRatioByVolume; + ///ִ + TThostFtdcRatioType StrikeRatioByMoney; + ///ִ + TThostFtdcRatioType StrikeRatioByVolume; +}; + +///Ȩʲѯ +struct CThostFtdcQryMMOptionInstrCommRateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; +}; + +///̺Լ +struct CThostFtdcMMInstrumentCommissionRateField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcRatioType OpenRatioByMoney; + /// + TThostFtdcRatioType OpenRatioByVolume; + ///ƽ + TThostFtdcRatioType CloseRatioByMoney; + ///ƽ + TThostFtdcRatioType CloseRatioByVolume; + ///ƽ + TThostFtdcRatioType CloseTodayRatioByMoney; + ///ƽ + TThostFtdcRatioType CloseTodayRatioByVolume; +}; + +///ѯ̺Լ +struct CThostFtdcQryMMInstrumentCommissionRateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; +}; + +///ǰѵϸ +struct CThostFtdcInstrumentOrderCommRateField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcRatioType OrderCommByVolume; + /// + TThostFtdcRatioType OrderActionCommByVolume; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ʲѯ +struct CThostFtdcQryInstrumentOrderCommRateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; +}; + +///ײ +struct CThostFtdcTradeParamField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + /// + TThostFtdcTradeParamIDType TradeParamID; + ///ֵ + TThostFtdcSettlementParamValueType TradeParamValue; + ///ע + TThostFtdcMemoType Memo; +}; + +///Լ֤ʵ +struct CThostFtdcInstrumentMarginRateULField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ͷ֤ + TThostFtdcRatioType LongMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType LongMarginRatioByVolume; + ///ͷ֤ + TThostFtdcRatioType ShortMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType ShortMarginRatioByVolume; +}; + +///ڻֲƲ +struct CThostFtdcFutureLimitPosiParamField +{ + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ʒ + TThostFtdcInstrumentIDType ProductID; + ///Ͷ + TThostFtdcVolumeType SpecOpenVolume; + /// + TThostFtdcVolumeType ArbiOpenVolume; + ///Ͷ+ + TThostFtdcVolumeType OpenVolume; +}; + +///ֹ¼IP +struct CThostFtdcLoginForbiddenIPField +{ + ///IPַ + TThostFtdcIPAddressType IPAddress; +}; + +///IPб +struct CThostFtdcIPListField +{ + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Ƿ + TThostFtdcBoolType IsWhite; +}; + +///ȨԶԳ +struct CThostFtdcInputOptionSelfCloseField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ȨԶԳ + TThostFtdcOrderRefType OptionSelfCloseRef; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcVolumeType Volume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ȨȨͷǷԶԳ + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ױ + TThostFtdcClientIDType ClientID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ȨԶԳ +struct CThostFtdcInputOptionSelfCloseActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ȨԶԳ + TThostFtdcOrderActionRefType OptionSelfCloseActionRef; + ///ȨԶԳ + TThostFtdcOrderRefType OptionSelfCloseRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ȨԶԳ + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + ///û + TThostFtdcUserIDType UserID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ȨԶԳ +struct CThostFtdcOptionSelfCloseField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ȨԶԳ + TThostFtdcOrderRefType OptionSelfCloseRef; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcVolumeType Volume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ȨȨͷǷԶԳ + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + ///ȨԶԳ + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ȨԶԳύ״̬ + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///ȨԶԳ + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + /// + TThostFtdcDateType InsertDate; + ///ʱ + TThostFtdcTimeType InsertTime; + ///ʱ + TThostFtdcTimeType CancelTime; + ///ԶԳ + TThostFtdcExecResultType ExecResult; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///û + TThostFtdcUserIDType ActiveUserID; + ///͹˾ + TThostFtdcSequenceNoType BrokerOptionSelfCloseSeq; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ȨԶԳ +struct CThostFtdcOptionSelfCloseActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ȨԶԳ + TThostFtdcOrderActionRefType OptionSelfCloseActionRef; + ///ȨԶԳ + TThostFtdcOrderRefType OptionSelfCloseRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ȨԶԳ + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ȨԶԳ + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ȨԶԳѯ +struct CThostFtdcQryOptionSelfCloseField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ȨԶԳ + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///ʼʱ + TThostFtdcTimeType InsertTimeStart; + ///ʱ + TThostFtdcTimeType InsertTimeEnd; +}; + +///ȨԶԳϢ +struct CThostFtdcExchangeOptionSelfCloseField +{ + /// + TThostFtdcVolumeType Volume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ȨȨͷǷԶԳ + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + ///ȨԶԳ + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ȨԶԳύ״̬ + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///ȨԶԳ + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + /// + TThostFtdcDateType InsertDate; + ///ʱ + TThostFtdcTimeType InsertTime; + ///ʱ + TThostFtdcTimeType CancelTime; + ///ԶԳ + TThostFtdcExecResultType ExecResult; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ȨԶԳѯ +struct CThostFtdcQryOptionSelfCloseActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ȨԶԳ +struct CThostFtdcExchangeOptionSelfCloseActionField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///ȨԶԳ + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ȨԶԳ + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///ȨȨͷǷԶԳ + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; +}; + +///ʱͬ +struct CThostFtdcSyncDelaySwapField +{ + ///ˮ + TThostFtdcDepositSeqNoType DelaySwapSeqNo; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Դ + TThostFtdcCurrencyIDType FromCurrencyID; + ///Դ + TThostFtdcMoneyType FromAmount; + ///Դ㶳(ö) + TThostFtdcMoneyType FromFrozenSwap; + ///Դʣ໻(ᶳ) + TThostFtdcMoneyType FromRemainSwap; + ///Ŀ + TThostFtdcCurrencyIDType ToCurrencyID; + ///Ŀ + TThostFtdcMoneyType ToAmount; +}; + +///ѯʱͬ +struct CThostFtdcQrySyncDelaySwapField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///ʱˮ + TThostFtdcDepositSeqNoType DelaySwapSeqNo; +}; + +///ͶʵԪ +struct CThostFtdcInvestUnitField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ͶߵԪ + TThostFtdcPartyNameType InvestorUnitName; + ///Ͷ߷ + TThostFtdcInvestorIDType InvestorGroupID; + ///ģ + TThostFtdcInvestorIDType CommModelID; + ///֤ģ + TThostFtdcInvestorIDType MarginModelID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///ѯͶʵԪ +struct CThostFtdcQryInvestUnitField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ʽУģʽ +struct CThostFtdcSecAgentCheckModeField +{ + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + /// + TThostFtdcCurrencyIDType CurrencyID; + ///нʽʺ + TThostFtdcAccountIDType BrokerSecAgentID; + ///ǷҪУԼʽ˻ + TThostFtdcBoolType CheckSelfAccount; +}; + +///Ϣ +struct CThostFtdcSecAgentTradeInfoField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///нʽʺ + TThostFtdcAccountIDType BrokerSecAgentID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///г +struct CThostFtdcMarketDataField +{ + /// + TThostFtdcDateType TradingDay; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///¼ + TThostFtdcPriceType LastPrice; + ///ϴν + TThostFtdcPriceType PreSettlementPrice; + /// + TThostFtdcPriceType PreClosePrice; + ///ֲ + TThostFtdcLargeVolumeType PreOpenInterest; + /// + TThostFtdcPriceType OpenPrice; + ///߼ + TThostFtdcPriceType HighestPrice; + ///ͼ + TThostFtdcPriceType LowestPrice; + /// + TThostFtdcVolumeType Volume; + ///ɽ + TThostFtdcMoneyType Turnover; + ///ֲ + TThostFtdcLargeVolumeType OpenInterest; + /// + TThostFtdcPriceType ClosePrice; + ///ν + TThostFtdcPriceType SettlementPrice; + ///ͣ + TThostFtdcPriceType UpperLimitPrice; + ///ͣ + TThostFtdcPriceType LowerLimitPrice; + ///ʵ + TThostFtdcRatioType PreDelta; + ///ʵ + TThostFtdcRatioType CurrDelta; + ///޸ʱ + TThostFtdcTimeType UpdateTime; + ///޸ĺ + TThostFtdcMillisecType UpdateMillisec; + ///ҵ + TThostFtdcDateType ActionDay; +}; + +/// +struct CThostFtdcMarketDataBaseField +{ + /// + TThostFtdcDateType TradingDay; + ///ϴν + TThostFtdcPriceType PreSettlementPrice; + /// + TThostFtdcPriceType PreClosePrice; + ///ֲ + TThostFtdcLargeVolumeType PreOpenInterest; + ///ʵ + TThostFtdcRatioType PreDelta; +}; + +///龲̬ +struct CThostFtdcMarketDataStaticField +{ + /// + TThostFtdcPriceType OpenPrice; + ///߼ + TThostFtdcPriceType HighestPrice; + ///ͼ + TThostFtdcPriceType LowestPrice; + /// + TThostFtdcPriceType ClosePrice; + ///ͣ + TThostFtdcPriceType UpperLimitPrice; + ///ͣ + TThostFtdcPriceType LowerLimitPrice; + ///ν + TThostFtdcPriceType SettlementPrice; + ///ʵ + TThostFtdcRatioType CurrDelta; +}; + +///³ɽ +struct CThostFtdcMarketDataLastMatchField +{ + ///¼ + TThostFtdcPriceType LastPrice; + /// + TThostFtdcVolumeType Volume; + ///ɽ + TThostFtdcMoneyType Turnover; + ///ֲ + TThostFtdcLargeVolumeType OpenInterest; +}; + +///ż +struct CThostFtdcMarketDataBestPriceField +{ + ///һ + TThostFtdcPriceType BidPrice1; + ///һ + TThostFtdcVolumeType BidVolume1; + ///һ + TThostFtdcPriceType AskPrice1; + ///һ + TThostFtdcVolumeType AskVolume1; +}; + +/// +struct CThostFtdcMarketDataBid23Field +{ + ///۶ + TThostFtdcPriceType BidPrice2; + /// + TThostFtdcVolumeType BidVolume2; + /// + TThostFtdcPriceType BidPrice3; + /// + TThostFtdcVolumeType BidVolume3; +}; + +/// +struct CThostFtdcMarketDataAsk23Field +{ + ///۶ + TThostFtdcPriceType AskPrice2; + /// + TThostFtdcVolumeType AskVolume2; + /// + TThostFtdcPriceType AskPrice3; + /// + TThostFtdcVolumeType AskVolume3; +}; + +///ġ +struct CThostFtdcMarketDataBid45Field +{ + /// + TThostFtdcPriceType BidPrice4; + /// + TThostFtdcVolumeType BidVolume4; + /// + TThostFtdcPriceType BidPrice5; + /// + TThostFtdcVolumeType BidVolume5; +}; + +///ġ +struct CThostFtdcMarketDataAsk45Field +{ + /// + TThostFtdcPriceType AskPrice4; + /// + TThostFtdcVolumeType AskVolume4; + /// + TThostFtdcPriceType AskPrice5; + /// + TThostFtdcVolumeType AskVolume5; +}; + +///ʱ +struct CThostFtdcMarketDataUpdateTimeField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///޸ʱ + TThostFtdcTimeType UpdateTime; + ///޸ĺ + TThostFtdcMillisecType UpdateMillisec; + ///ҵ + TThostFtdcDateType ActionDay; +}; + +///齻 +struct CThostFtdcMarketDataExchangeField +{ + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ָĺԼ +struct CThostFtdcSpecificInstrumentField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; +}; + +///Լ״̬ +struct CThostFtdcInstrumentStatusField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + /// + TThostFtdcSettlementGroupIDType SettlementGroupID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Լ״̬ + TThostFtdcInstrumentStatusType InstrumentStatus; + ///׽׶α + TThostFtdcTradingSegmentSNType TradingSegmentSN; + ///뱾״̬ʱ + TThostFtdcTimeType EnterTime; + ///뱾״̬ԭ + TThostFtdcInstStatusEnterReasonType EnterReason; +}; + +///ѯԼ״̬ +struct CThostFtdcQryInstrumentStatusField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; +}; + +///Ͷ˻ +struct CThostFtdcInvestorAccountField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///ӯ㷨 +struct CThostFtdcPositionProfitAlgorithmField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ӯ㷨 + TThostFtdcAlgorithmType Algorithm; + ///ע + TThostFtdcMemoType Memo; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///Աʽۿ +struct CThostFtdcDiscountField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ʽۿ۱ + TThostFtdcRatioType Discount; +}; + +///ѯת +struct CThostFtdcQryTransferBankField +{ + ///д + TThostFtdcBankIDType BankID; + ///зĴ + TThostFtdcBankBrchIDType BankBrchID; +}; + +///ת +struct CThostFtdcTransferBankField +{ + ///д + TThostFtdcBankIDType BankID; + ///зĴ + TThostFtdcBankBrchIDType BankBrchID; + /// + TThostFtdcBankNameType BankName; + ///ǷԾ + TThostFtdcBoolType IsActive; +}; + +///ѯͶֲ߳ϸ +struct CThostFtdcQryInvestorPositionDetailField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///Ͷֲ߳ϸ +struct CThostFtdcInvestorPositionDetailField +{ + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcDirectionType Direction; + /// + TThostFtdcDateType OpenDate; + ///ɽ + TThostFtdcTradeIDType TradeID; + /// + TThostFtdcVolumeType Volume; + ///ּ + TThostFtdcPriceType OpenPrice; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///ɽ + TThostFtdcTradeTypeType TradeType; + ///ϺԼ + TThostFtdcInstrumentIDType CombInstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///նƽӯ + TThostFtdcMoneyType CloseProfitByDate; + ///ʶԳƽӯ + TThostFtdcMoneyType CloseProfitByTrade; + ///նгֲӯ + TThostFtdcMoneyType PositionProfitByDate; + ///ʶԳֲӯ + TThostFtdcMoneyType PositionProfitByTrade; + ///Ͷ֤߱ + TThostFtdcMoneyType Margin; + ///֤ + TThostFtdcMoneyType ExchMargin; + ///֤ + TThostFtdcRatioType MarginRateByMoney; + ///֤() + TThostFtdcRatioType MarginRateByVolume; + /// + TThostFtdcPriceType LastSettlementPrice; + /// + TThostFtdcPriceType SettlementPrice; + ///ƽ + TThostFtdcVolumeType CloseVolume; + ///ƽֽ + TThostFtdcMoneyType CloseAmount; + ///ʱ˳ƽֵı,ר + TThostFtdcVolumeType TimeFirstVolume; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ʽ˻ +struct CThostFtdcTradingAccountPasswordField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + /// + TThostFtdcPasswordType Password; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///鱨̻ +struct CThostFtdcMDTraderOfferField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + /// + TThostFtdcPasswordType Password; + ///װ + TThostFtdcInstallIDType InstallID; + ///ر + TThostFtdcOrderLocalIDType OrderLocalID; + ///Ա״̬ + TThostFtdcTraderConnectStatusType TraderConnectStatus; + /// + TThostFtdcDateType ConnectRequestDate; + ///ʱ + TThostFtdcTimeType ConnectRequestTime; + ///ϴα + TThostFtdcDateType LastReportDate; + ///ϴαʱ + TThostFtdcTimeType LastReportTime; + /// + TThostFtdcDateType ConnectDate; + ///ʱ + TThostFtdcTimeType ConnectTime; + /// + TThostFtdcDateType StartDate; + ///ʱ + TThostFtdcTimeType StartTime; + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///ϯλɽ + TThostFtdcTradeIDType MaxTradeID; + ///ϯλ󱨵 + TThostFtdcReturnCodeType MaxOrderMessageReference; +}; + +///ѯ鱨̻ +struct CThostFtdcQryMDTraderOfferField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///Ա + TThostFtdcTraderIDType TraderID; +}; + +///ѯͻ֪ͨ +struct CThostFtdcQryNoticeField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; +}; + +///ͻ֪ͨ +struct CThostFtdcNoticeField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ϣ + TThostFtdcContentType Content; + ///͹˾֪ͨк + TThostFtdcSequenceLabelType SequenceLabel; +}; + +///ûȨ +struct CThostFtdcUserRightField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///ͻȨ + TThostFtdcUserRightTypeType UserRightType; + ///Ƿֹ + TThostFtdcBoolType IsForbidden; +}; + +///ѯϢȷ +struct CThostFtdcQrySettlementInfoConfirmField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///װؽϢ +struct CThostFtdcLoadSettlementInfoField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; +}; + +///͹˾ʽ㷨 +struct CThostFtdcBrokerWithdrawAlgorithmField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///ʽ㷨 + TThostFtdcAlgorithmType WithdrawAlgorithm; + ///ʽʹ + TThostFtdcRatioType UsingRatio; + ///Ƿƽӯ + TThostFtdcIncludeCloseProfitType IncludeCloseProfit; + ///޲޳ɽͻǷܿ + TThostFtdcAllWithoutTradeType AllWithoutTrade; + ///Ƿƽӯ + TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit; + ///Ƿû¼ + TThostFtdcBoolType IsBrokerUserEvent; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///Ѻ + TThostFtdcRatioType FundMortgageRatio; + ///Ȩ㷨 + TThostFtdcBalanceAlgorithmType BalanceAlgorithm; +}; + +///ʽ˻ +struct CThostFtdcTradingAccountPasswordUpdateV1Field +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ԭĿ + TThostFtdcPasswordType OldPassword; + ///µĿ + TThostFtdcPasswordType NewPassword; +}; + +///ʽ˻ +struct CThostFtdcTradingAccountPasswordUpdateField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ԭĿ + TThostFtdcPasswordType OldPassword; + ///µĿ + TThostFtdcPasswordType NewPassword; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///ѯϺԼ +struct CThostFtdcQryCombinationLegField +{ + ///ϺԼ + TThostFtdcInstrumentIDType CombInstrumentID; + ///ȱ + TThostFtdcLegIDType LegID; + ///ȺԼ + TThostFtdcInstrumentIDType LegInstrumentID; +}; + +///ѯϺԼ +struct CThostFtdcQrySyncStatusField +{ + /// + TThostFtdcDateType TradingDay; +}; + +///Ͻ׺Լĵ +struct CThostFtdcCombinationLegField +{ + ///ϺԼ + TThostFtdcInstrumentIDType CombInstrumentID; + ///ȱ + TThostFtdcLegIDType LegID; + ///ȺԼ + TThostFtdcInstrumentIDType LegInstrumentID; + /// + TThostFtdcDirectionType Direction; + ///ȳ + TThostFtdcLegMultipleType LegMultiple; + /// + TThostFtdcImplyLevelType ImplyLevel; +}; + +///ͬ״̬ +struct CThostFtdcSyncStatusField +{ + /// + TThostFtdcDateType TradingDay; + ///ͬ״̬ + TThostFtdcDataSyncStatusType DataSyncStatus; +}; + +///ѯϵ +struct CThostFtdcQryLinkManField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; +}; + +///ϵ +struct CThostFtdcLinkManField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ϵ + TThostFtdcPersonTypeType PersonType; + ///֤ + TThostFtdcIdCardTypeType IdentifiedCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + /// + TThostFtdcPartyNameType PersonName; + ///ϵ绰 + TThostFtdcTelephoneType Telephone; + ///ͨѶַ + TThostFtdcAddressType Address; + /// + TThostFtdcZipCodeType ZipCode; + ///ȼ + TThostFtdcPriorityType Priority; + /// + TThostFtdcUOAZipCodeType UOAZipCode; + ///ȫ + TThostFtdcInvestorFullNameType PersonFullName; +}; + +///ѯ͹˾û¼ +struct CThostFtdcQryBrokerUserEventField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///û¼ + TThostFtdcUserEventTypeType UserEventType; +}; + +///ѯ͹˾û¼ +struct CThostFtdcBrokerUserEventField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///û¼ + TThostFtdcUserEventTypeType UserEventType; + ///û¼ + TThostFtdcSequenceNoType EventSequenceNo; + ///¼ + TThostFtdcDateType EventDate; + ///¼ʱ + TThostFtdcTimeType EventTime; + ///û¼Ϣ + TThostFtdcUserEventInfoType UserEventInfo; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; +}; + +///ѯǩԼ +struct CThostFtdcQryContractBankField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///д + TThostFtdcBankIDType BankID; + ///зĴ + TThostFtdcBankBrchIDType BankBrchID; +}; + +///ѯǩԼӦ +struct CThostFtdcContractBankField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///д + TThostFtdcBankIDType BankID; + ///зĴ + TThostFtdcBankBrchIDType BankBrchID; + /// + TThostFtdcBankNameType BankName; +}; + +///Ͷϳֲϸ +struct CThostFtdcInvestorPositionCombineDetailField +{ + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcDateType OpenDate; + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcSettlementIDType SettlementID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ϱ + TThostFtdcTradeIDType ComTradeID; + ///ϱ + TThostFtdcTradeIDType TradeID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcDirectionType Direction; + ///ֲ + TThostFtdcVolumeType TotalAmt; + ///Ͷ֤߱ + TThostFtdcMoneyType Margin; + ///֤ + TThostFtdcMoneyType ExchMargin; + ///֤ + TThostFtdcRatioType MarginRateByMoney; + ///֤() + TThostFtdcRatioType MarginRateByVolume; + ///ȱ + TThostFtdcLegIDType LegID; + ///ȳ + TThostFtdcLegMultipleType LegMultiple; + ///ϳֲֺԼ + TThostFtdcInstrumentIDType CombInstrumentID; + ///ɽ + TThostFtdcTradeGroupIDType TradeGroupID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///Ԥ +struct CThostFtdcParkedOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcOrderRefType OrderRef; + ///û + TThostFtdcUserIDType UserID; + ///۸ + TThostFtdcOrderPriceTypeType OrderPriceType; + /// + TThostFtdcDirectionType Direction; + ///Ͽƽ־ + TThostFtdcCombOffsetFlagType CombOffsetFlag; + ///Ͷױ־ + TThostFtdcCombHedgeFlagType CombHedgeFlag; + ///۸ + TThostFtdcPriceType LimitPrice; + /// + TThostFtdcVolumeType VolumeTotalOriginal; + ///Ч + TThostFtdcTimeConditionType TimeCondition; + ///GTD + TThostFtdcDateType GTDDate; + ///ɽ + TThostFtdcVolumeConditionType VolumeCondition; + ///Сɽ + TThostFtdcVolumeType MinVolume; + /// + TThostFtdcContingentConditionType ContingentCondition; + ///ֹ + TThostFtdcPriceType StopPrice; + ///ǿƽԭ + TThostFtdcForceCloseReasonType ForceCloseReason; + ///Զ־ + TThostFtdcBoolType IsAutoSuspend; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + /// + TThostFtdcRequestIDType RequestID; + ///ûǿ־ + TThostFtdcBoolType UserForceClose; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ԥ񱨵 + TThostFtdcParkedOrderIDType ParkedOrderID; + ///û + TThostFtdcUserTypeType UserType; + ///Ԥ״̬ + TThostFtdcParkedOrderStatusType Status; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///־ + TThostFtdcBoolType IsSwapOrder; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ױ + TThostFtdcClientIDType ClientID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///Ԥ񵥲 +struct CThostFtdcParkedOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcOrderActionRefType OrderActionRef; + /// + TThostFtdcOrderRefType OrderRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + ///۸ + TThostFtdcPriceType LimitPrice; + ///仯 + TThostFtdcVolumeType VolumeChange; + ///û + TThostFtdcUserIDType UserID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ԥ񳷵 + TThostFtdcParkedOrderActionIDType ParkedOrderActionID; + ///û + TThostFtdcUserTypeType UserType; + ///Ԥ񳷵״̬ + TThostFtdcParkedOrderStatusType Status; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ѯԤ +struct CThostFtdcQryParkedOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯԤ񳷵 +struct CThostFtdcQryParkedOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ɾԤ +struct CThostFtdcRemoveParkedOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ԥ񱨵 + TThostFtdcParkedOrderIDType ParkedOrderID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ɾԤ񳷵 +struct CThostFtdcRemoveParkedOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ԥ񳷵 + TThostFtdcParkedOrderActionIDType ParkedOrderActionID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///͹˾ʽ㷨 +struct CThostFtdcInvestorWithdrawAlgorithmField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ʽ + TThostFtdcRatioType UsingRatio; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///Ѻ + TThostFtdcRatioType FundMortgageRatio; +}; + +///ѯϳֲϸ +struct CThostFtdcQryInvestorPositionCombineDetailField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ϳֲֺԼ + TThostFtdcInstrumentIDType CombInstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ɽ +struct CThostFtdcMarketDataAveragePriceField +{ + ///վ + TThostFtdcPriceType AveragePrice; +}; + +///УͶ +struct CThostFtdcVerifyInvestorPasswordField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcPasswordType Password; +}; + +///ûIP +struct CThostFtdcUserIPField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///IPַ + TThostFtdcIPAddressType IPMask; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///û¼֪ͨϢ +struct CThostFtdcTradingNoticeInfoField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ʱ + TThostFtdcTimeType SendTime; + ///Ϣ + TThostFtdcContentType FieldContent; + ///ϵк + TThostFtdcSequenceSeriesType SequenceSeries; + ///к + TThostFtdcSequenceNoType SequenceNo; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///û¼֪ͨ +struct CThostFtdcTradingNoticeField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ϵк + TThostFtdcSequenceSeriesType SequenceSeries; + ///û + TThostFtdcUserIDType UserID; + ///ʱ + TThostFtdcTimeType SendTime; + ///к + TThostFtdcSequenceNoType SequenceNo; + ///Ϣ + TThostFtdcContentType FieldContent; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯ¼֪ͨ +struct CThostFtdcQryTradingNoticeField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯ󱨵 +struct CThostFtdcQryErrOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; +}; + +///󱨵 +struct CThostFtdcErrOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcOrderRefType OrderRef; + ///û + TThostFtdcUserIDType UserID; + ///۸ + TThostFtdcOrderPriceTypeType OrderPriceType; + /// + TThostFtdcDirectionType Direction; + ///Ͽƽ־ + TThostFtdcCombOffsetFlagType CombOffsetFlag; + ///Ͷױ־ + TThostFtdcCombHedgeFlagType CombHedgeFlag; + ///۸ + TThostFtdcPriceType LimitPrice; + /// + TThostFtdcVolumeType VolumeTotalOriginal; + ///Ч + TThostFtdcTimeConditionType TimeCondition; + ///GTD + TThostFtdcDateType GTDDate; + ///ɽ + TThostFtdcVolumeConditionType VolumeCondition; + ///Сɽ + TThostFtdcVolumeType MinVolume; + /// + TThostFtdcContingentConditionType ContingentCondition; + ///ֹ + TThostFtdcPriceType StopPrice; + ///ǿƽԭ + TThostFtdcForceCloseReasonType ForceCloseReason; + ///Զ־ + TThostFtdcBoolType IsAutoSuspend; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + /// + TThostFtdcRequestIDType RequestID; + ///ûǿ־ + TThostFtdcBoolType UserForceClose; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///־ + TThostFtdcBoolType IsSwapOrder; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ױ + TThostFtdcClientIDType ClientID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ѯ󱨵 +struct CThostFtdcErrorConditionalOrderField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcOrderRefType OrderRef; + ///û + TThostFtdcUserIDType UserID; + ///۸ + TThostFtdcOrderPriceTypeType OrderPriceType; + /// + TThostFtdcDirectionType Direction; + ///Ͽƽ־ + TThostFtdcCombOffsetFlagType CombOffsetFlag; + ///Ͷױ־ + TThostFtdcCombHedgeFlagType CombHedgeFlag; + ///۸ + TThostFtdcPriceType LimitPrice; + /// + TThostFtdcVolumeType VolumeTotalOriginal; + ///Ч + TThostFtdcTimeConditionType TimeCondition; + ///GTD + TThostFtdcDateType GTDDate; + ///ɽ + TThostFtdcVolumeConditionType VolumeCondition; + ///Сɽ + TThostFtdcVolumeType MinVolume; + /// + TThostFtdcContingentConditionType ContingentCondition; + ///ֹ + TThostFtdcPriceType StopPrice; + ///ǿƽԭ + TThostFtdcForceCloseReasonType ForceCloseReason; + ///Զ־ + TThostFtdcBoolType IsAutoSuspend; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + /// + TThostFtdcRequestIDType RequestID; + ///ر + TThostFtdcOrderLocalIDType OrderLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ύ״̬ + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///Դ + TThostFtdcOrderSourceType OrderSource; + ///״̬ + TThostFtdcOrderStatusType OrderStatus; + /// + TThostFtdcOrderTypeType OrderType; + ///ɽ + TThostFtdcVolumeType VolumeTraded; + ///ʣ + TThostFtdcVolumeType VolumeTotal; + /// + TThostFtdcDateType InsertDate; + ///ίʱ + TThostFtdcTimeType InsertTime; + ///ʱ + TThostFtdcTimeType ActiveTime; + ///ʱ + TThostFtdcTimeType SuspendTime; + ///޸ʱ + TThostFtdcTimeType UpdateTime; + ///ʱ + TThostFtdcTimeType CancelTime; + ///޸ĽԱ + TThostFtdcTraderIDType ActiveTraderID; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///ûǿ־ + TThostFtdcBoolType UserForceClose; + ///û + TThostFtdcUserIDType ActiveUserID; + ///͹˾ + TThostFtdcSequenceNoType BrokerOrderSeq; + ///ر + TThostFtdcOrderSysIDType RelativeOrderSysID; + ///֣ɽ + TThostFtdcVolumeType ZCETotalTradedVolume; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///־ + TThostFtdcBoolType IsSwapOrder; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ѯ󱨵 +struct CThostFtdcQryErrOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; +}; + +///󱨵 +struct CThostFtdcErrOrderActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcOrderActionRefType OrderActionRef; + /// + TThostFtdcOrderRefType OrderRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcOrderSysIDType OrderSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + ///۸ + TThostFtdcPriceType LimitPrice; + ///仯 + TThostFtdcVolumeType VolumeChange; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ر + TThostFtdcOrderLocalIDType OrderLocalID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +///ѯ״̬ +struct CThostFtdcQryExchangeSequenceField +{ + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///״̬ +struct CThostFtdcExchangeSequenceField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///Լ״̬ + TThostFtdcInstrumentStatusType MarketStatus; +}; + +///ݼ۸ѯ󱨵 +struct CThostFtdcQueryMaxOrderVolumeWithPriceField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcDirectionType Direction; + ///ƽ־ + TThostFtdcOffsetFlagType OffsetFlag; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcVolumeType MaxVolume; + ///۸ + TThostFtdcPriceType Price; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯ͹˾ײ +struct CThostFtdcQryBrokerTradingParamsField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; +}; + +///͹˾ײ +struct CThostFtdcBrokerTradingParamsField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///֤۸ + TThostFtdcMarginPriceTypeType MarginPriceType; + ///ӯ㷨 + TThostFtdcAlgorithmType Algorithm; + ///Ƿƽӯ + TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ȨȨ۸ + TThostFtdcOptionRoyaltyPriceTypeType OptionRoyaltyPriceType; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; +}; + +///ѯ͹˾㷨 +struct CThostFtdcQryBrokerTradingAlgosField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; +}; + +///͹˾㷨 +struct CThostFtdcBrokerTradingAlgosField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ֲִ㷨 + TThostFtdcHandlePositionAlgoIDType HandlePositionAlgoID; + ///Ѱұ֤㷨 + TThostFtdcFindMarginRateAlgoIDType FindMarginRateAlgoID; + ///ʽ㷨 + TThostFtdcHandleTradingAccountAlgoIDType HandleTradingAccountAlgoID; +}; + +///ѯ͹˾ʽ +struct CThostFtdcQueryBrokerDepositField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///͹˾ʽ +struct CThostFtdcBrokerDepositField +{ + /// + TThostFtdcTradeDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ϴν׼ + TThostFtdcMoneyType PreBalance; + ///ǰ֤ܶ + TThostFtdcMoneyType CurrMargin; + ///ƽӯ + TThostFtdcMoneyType CloseProfit; + ///ڻ׼ + TThostFtdcMoneyType Balance; + /// + TThostFtdcMoneyType Deposit; + /// + TThostFtdcMoneyType Withdraw; + ///ʽ + TThostFtdcMoneyType Available; + ///׼ + TThostFtdcMoneyType Reserve; + ///ı֤ + TThostFtdcMoneyType FrozenMargin; +}; + +///ѯ֤ϵͳ͹˾Կ +struct CThostFtdcQryCFMMCBrokerKeyField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; +}; + +///֤ϵͳ͹˾Կ +struct CThostFtdcCFMMCBrokerKeyField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///͹˾ͳһ + TThostFtdcParticipantIDType ParticipantID; + ///Կ + TThostFtdcDateType CreateDate; + ///Կʱ + TThostFtdcTimeType CreateTime; + ///Կ + TThostFtdcSequenceNoType KeyID; + ///̬Կ + TThostFtdcCFMMCKeyType CurrentKey; + ///̬Կ + TThostFtdcCFMMCKeyKindType KeyKind; +}; + +///֤ϵͳ͹˾ʽ˻Կ +struct CThostFtdcCFMMCTradingAccountKeyField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///͹˾ͳһ + TThostFtdcParticipantIDType ParticipantID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///Կ + TThostFtdcSequenceNoType KeyID; + ///̬Կ + TThostFtdcCFMMCKeyType CurrentKey; +}; + +///ѯ֤ϵͳ͹˾ʽ˻Կ +struct CThostFtdcQryCFMMCTradingAccountKeyField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; +}; + +///û̬Ʋ +struct CThostFtdcBrokerUserOTPParamField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///̬ṩ + TThostFtdcOTPVendorsIDType OTPVendorsID; + ///̬к + TThostFtdcSerialNumberType SerialNumber; + ///Կ + TThostFtdcAuthKeyType AuthKey; + ///Ưֵ + TThostFtdcLastDriftType LastDrift; + ///ɹֵ + TThostFtdcLastSuccessType LastSuccess; + ///̬ + TThostFtdcOTPTypeType OTPType; +}; + +///ֹͬû̬ +struct CThostFtdcManualSyncBrokerUserOTPField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///̬ + TThostFtdcOTPTypeType OTPType; + ///һ̬ + TThostFtdcPasswordType FirstOTP; + ///ڶ̬ + TThostFtdcPasswordType SecondOTP; +}; + +///Ͷģ +struct CThostFtdcCommRateModelField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///ģ + TThostFtdcInvestorIDType CommModelID; + ///ģ + TThostFtdcCommModelNameType CommModelName; +}; + +///ѯͶģ +struct CThostFtdcQryCommRateModelField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///ģ + TThostFtdcInvestorIDType CommModelID; +}; + +///Ͷ֤߱ģ +struct CThostFtdcMarginModelField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///֤ģ + TThostFtdcInvestorIDType MarginModelID; + ///ģ + TThostFtdcCommModelNameType MarginModelName; +}; + +///ѯͶ֤߱ģ +struct CThostFtdcQryMarginModelField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///֤ģ + TThostFtdcInvestorIDType MarginModelID; +}; + +///ֵ۵Ϣ +struct CThostFtdcEWarrantOffsetField +{ + /// + TThostFtdcTradeDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcDirectionType Direction; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcVolumeType Volume; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯֵ۵Ϣ +struct CThostFtdcQryEWarrantOffsetField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯͶƷ/Ʒֱ֤ +struct CThostFtdcQryInvestorProductGroupMarginField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ʒ/Ʒֱʾ + TThostFtdcInstrumentIDType ProductGroupID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ͶƷ/Ʒֱ֤ +struct CThostFtdcInvestorProductGroupMarginField +{ + ///Ʒ/Ʒֱʾ + TThostFtdcInstrumentIDType ProductGroupID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///ı֤ + TThostFtdcMoneyType FrozenMargin; + ///ͷı֤ + TThostFtdcMoneyType LongFrozenMargin; + ///ͷı֤ + TThostFtdcMoneyType ShortFrozenMargin; + ///ռõı֤ + TThostFtdcMoneyType UseMargin; + ///ͷ֤ + TThostFtdcMoneyType LongUseMargin; + ///ͷ֤ + TThostFtdcMoneyType ShortUseMargin; + ///֤ + TThostFtdcMoneyType ExchMargin; + ///ͷ֤ + TThostFtdcMoneyType LongExchMargin; + ///ͷ֤ + TThostFtdcMoneyType ShortExchMargin; + ///ƽӯ + TThostFtdcMoneyType CloseProfit; + /// + TThostFtdcMoneyType FrozenCommission; + /// + TThostFtdcMoneyType Commission; + ///ʽ + TThostFtdcMoneyType FrozenCash; + ///ʽ + TThostFtdcMoneyType CashIn; + ///ֲӯ + TThostFtdcMoneyType PositionProfit; + ///۵ܽ + TThostFtdcMoneyType OffsetAmount; + ///ͷ۵ܽ + TThostFtdcMoneyType LongOffsetAmount; + ///ͷ۵ܽ + TThostFtdcMoneyType ShortOffsetAmount; + ///۵ܽ + TThostFtdcMoneyType ExchOffsetAmount; + ///ͷ۵ܽ + TThostFtdcMoneyType LongExchOffsetAmount; + ///ͷ۵ܽ + TThostFtdcMoneyType ShortExchOffsetAmount; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ѯû +struct CThostFtdcQueryCFMMCTradingAccountTokenField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///û +struct CThostFtdcCFMMCTradingAccountTokenField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///͹˾ͳһ + TThostFtdcParticipantIDType ParticipantID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///Կ + TThostFtdcSequenceNoType KeyID; + ///̬ + TThostFtdcCFMMCTokenType Token; +}; + +///ѯƷ +struct CThostFtdcQryProductGroupField +{ + ///Ʒ + TThostFtdcInstrumentIDType ProductID; + /// + TThostFtdcExchangeIDType ExchangeID; +}; + +///ͶƷ/Ʒֱ֤Ʒ +struct CThostFtdcProductGroupField +{ + ///Ʒ + TThostFtdcInstrumentIDType ProductID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ʒ + TThostFtdcInstrumentIDType ProductGroupID; +}; + +/// +struct CThostFtdcBulletinField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcBulletinIDType BulletinID; + ///к + TThostFtdcSequenceNoType SequenceNo; + /// + TThostFtdcNewsTypeType NewsType; + ///̶ + TThostFtdcNewsUrgencyType NewsUrgency; + ///ʱ + TThostFtdcTimeType SendTime; + ///ϢժҪ + TThostFtdcAbstractType Abstract; + ///ϢԴ + TThostFtdcComeFromType ComeFrom; + ///Ϣ + TThostFtdcContentType Content; + ///WEBַ + TThostFtdcURLLinkType URLLink; + ///г + TThostFtdcMarketIDType MarketID; +}; + +///ѯ +struct CThostFtdcQryBulletinField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + /// + TThostFtdcBulletinIDType BulletinID; + ///к + TThostFtdcSequenceNoType SequenceNo; + /// + TThostFtdcNewsTypeType NewsType; + ///̶ + TThostFtdcNewsUrgencyType NewsUrgency; +}; + +///תʿ +struct CThostFtdcReqOpenAccountField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///Ա + TThostFtdcGenderType Gender; + ///Ҵ + TThostFtdcCountryCodeType CountryCode; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ַ + TThostFtdcAddressType Address; + ///ʱ + TThostFtdcZipCodeType ZipCode; + ///绰 + TThostFtdcTelephoneType Telephone; + ///ֻ + TThostFtdcMobilePhoneType MobilePhone; + /// + TThostFtdcFaxType Fax; + ///ʼ + TThostFtdcEMailType EMail; + ///ʽ˻״̬ + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///װ + TThostFtdcInstallIDType InstallID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///㳮־ + TThostFtdcCashExchangeCodeType CashExchangeCode; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻλʺ + TThostFtdcBankAccTypeType BankSecuAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ڻλʺ + TThostFtdcBankAccountType BankSecuAcc; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///׹Ա + TThostFtdcOperNoType OperNo; + ///ID + TThostFtdcTIDType TID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///ת +struct CThostFtdcReqCancelAccountField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///Ա + TThostFtdcGenderType Gender; + ///Ҵ + TThostFtdcCountryCodeType CountryCode; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ַ + TThostFtdcAddressType Address; + ///ʱ + TThostFtdcZipCodeType ZipCode; + ///绰 + TThostFtdcTelephoneType Telephone; + ///ֻ + TThostFtdcMobilePhoneType MobilePhone; + /// + TThostFtdcFaxType Fax; + ///ʼ + TThostFtdcEMailType EMail; + ///ʽ˻״̬ + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///װ + TThostFtdcInstallIDType InstallID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///㳮־ + TThostFtdcCashExchangeCodeType CashExchangeCode; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻλʺ + TThostFtdcBankAccTypeType BankSecuAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ڻλʺ + TThostFtdcBankAccountType BankSecuAcc; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///׹Ա + TThostFtdcOperNoType OperNo; + ///ID + TThostFtdcTIDType TID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///˻ +struct CThostFtdcReqChangeAccountField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///Ա + TThostFtdcGenderType Gender; + ///Ҵ + TThostFtdcCountryCodeType CountryCode; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ַ + TThostFtdcAddressType Address; + ///ʱ + TThostFtdcZipCodeType ZipCode; + ///绰 + TThostFtdcTelephoneType Telephone; + ///ֻ + TThostFtdcMobilePhoneType MobilePhone; + /// + TThostFtdcFaxType Fax; + ///ʼ + TThostFtdcEMailType EMail; + ///ʽ˻״̬ + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///ʺ + TThostFtdcBankAccountType NewBankAccount; + /// + TThostFtdcPasswordType NewBankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///װ + TThostFtdcInstallIDType InstallID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///ID + TThostFtdcTIDType TID; + ///ժҪ + TThostFtdcDigestType Digest; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///ת +struct CThostFtdcReqTransferField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///װ + TThostFtdcInstallIDType InstallID; + ///ڻ˾ˮ + TThostFtdcFutureSerialType FutureSerial; + ///ûʶ + TThostFtdcUserIDType UserID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///תʽ + TThostFtdcTradeAmountType TradeAmount; + ///ڻȡ + TThostFtdcTradeAmountType FutureFetchAmount; + ///֧־ + TThostFtdcFeePayFlagType FeePayFlag; + ///Ӧտͻ + TThostFtdcCustFeeType CustFee; + ///Ӧڻ˾ + TThostFtdcFutureFeeType BrokerFee; + ///ͷշϢ + TThostFtdcAddInfoType Message; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻλʺ + TThostFtdcBankAccTypeType BankSecuAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ڻλʺ + TThostFtdcBankAccountType BankSecuAcc; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + ///ת˽״̬ + TThostFtdcTransferStatusType TransferStatus; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///зʽתڻӦ +struct CThostFtdcRspTransferField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///װ + TThostFtdcInstallIDType InstallID; + ///ڻ˾ˮ + TThostFtdcFutureSerialType FutureSerial; + ///ûʶ + TThostFtdcUserIDType UserID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///תʽ + TThostFtdcTradeAmountType TradeAmount; + ///ڻȡ + TThostFtdcTradeAmountType FutureFetchAmount; + ///֧־ + TThostFtdcFeePayFlagType FeePayFlag; + ///Ӧտͻ + TThostFtdcCustFeeType CustFee; + ///Ӧڻ˾ + TThostFtdcFutureFeeType BrokerFee; + ///ͷշϢ + TThostFtdcAddInfoType Message; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻλʺ + TThostFtdcBankAccTypeType BankSecuAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ڻλʺ + TThostFtdcBankAccountType BankSecuAcc; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + ///ת˽״̬ + TThostFtdcTransferStatusType TransferStatus; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +/// +struct CThostFtdcReqRepealField +{ + ///ʱ + TThostFtdcRepealTimeIntervalType RepealTimeInterval; + ///Ѿ + TThostFtdcRepealedTimesType RepealedTimes; + ///г־ + TThostFtdcBankRepealFlagType BankRepealFlag; + ///̳־ + TThostFtdcBrokerRepealFlagType BrokerRepealFlag; + ///ƽ̨ˮ + TThostFtdcPlateSerialType PlateRepealSerial; + ///ˮ + TThostFtdcBankSerialType BankRepealSerial; + ///ڻˮ + TThostFtdcFutureSerialType FutureRepealSerial; + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///װ + TThostFtdcInstallIDType InstallID; + ///ڻ˾ˮ + TThostFtdcFutureSerialType FutureSerial; + ///ûʶ + TThostFtdcUserIDType UserID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///תʽ + TThostFtdcTradeAmountType TradeAmount; + ///ڻȡ + TThostFtdcTradeAmountType FutureFetchAmount; + ///֧־ + TThostFtdcFeePayFlagType FeePayFlag; + ///Ӧտͻ + TThostFtdcCustFeeType CustFee; + ///Ӧڻ˾ + TThostFtdcFutureFeeType BrokerFee; + ///ͷշϢ + TThostFtdcAddInfoType Message; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻλʺ + TThostFtdcBankAccTypeType BankSecuAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ڻλʺ + TThostFtdcBankAccountType BankSecuAcc; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + ///ת˽״̬ + TThostFtdcTransferStatusType TransferStatus; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///Ӧ +struct CThostFtdcRspRepealField +{ + ///ʱ + TThostFtdcRepealTimeIntervalType RepealTimeInterval; + ///Ѿ + TThostFtdcRepealedTimesType RepealedTimes; + ///г־ + TThostFtdcBankRepealFlagType BankRepealFlag; + ///̳־ + TThostFtdcBrokerRepealFlagType BrokerRepealFlag; + ///ƽ̨ˮ + TThostFtdcPlateSerialType PlateRepealSerial; + ///ˮ + TThostFtdcBankSerialType BankRepealSerial; + ///ڻˮ + TThostFtdcFutureSerialType FutureRepealSerial; + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///װ + TThostFtdcInstallIDType InstallID; + ///ڻ˾ˮ + TThostFtdcFutureSerialType FutureSerial; + ///ûʶ + TThostFtdcUserIDType UserID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///תʽ + TThostFtdcTradeAmountType TradeAmount; + ///ڻȡ + TThostFtdcTradeAmountType FutureFetchAmount; + ///֧־ + TThostFtdcFeePayFlagType FeePayFlag; + ///Ӧտͻ + TThostFtdcCustFeeType CustFee; + ///Ӧڻ˾ + TThostFtdcFutureFeeType BrokerFee; + ///ͷշϢ + TThostFtdcAddInfoType Message; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻλʺ + TThostFtdcBankAccTypeType BankSecuAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ڻλʺ + TThostFtdcBankAccountType BankSecuAcc; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + ///ת˽״̬ + TThostFtdcTransferStatusType TransferStatus; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///ѯ˻Ϣ +struct CThostFtdcReqQueryAccountField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///ڻ˾ˮ + TThostFtdcFutureSerialType FutureSerial; + ///װ + TThostFtdcInstallIDType InstallID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻλʺ + TThostFtdcBankAccTypeType BankSecuAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ڻλʺ + TThostFtdcBankAccountType BankSecuAcc; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///ѯ˻ϢӦ +struct CThostFtdcRspQueryAccountField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///ڻ˾ˮ + TThostFtdcFutureSerialType FutureSerial; + ///װ + TThostFtdcInstallIDType InstallID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻλʺ + TThostFtdcBankAccTypeType BankSecuAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ڻλʺ + TThostFtdcBankAccountType BankSecuAcc; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + ///пý + TThostFtdcTradeAmountType BankUseAmount; + ///пȡ + TThostFtdcTradeAmountType BankFetchAmount; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///ǩǩ +struct CThostFtdcFutureSignIOField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///ժҪ + TThostFtdcDigestType Digest; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; +}; + +///ǩӦ +struct CThostFtdcRspFutureSignInField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///ժҪ + TThostFtdcDigestType Digest; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///PINԿ + TThostFtdcPasswordKeyType PinKey; + ///MACԿ + TThostFtdcPasswordKeyType MacKey; +}; + +///ǩ +struct CThostFtdcReqFutureSignOutField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///ժҪ + TThostFtdcDigestType Digest; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; +}; + +///ǩӦ +struct CThostFtdcRspFutureSignOutField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///ժҪ + TThostFtdcDigestType Digest; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +///ѯָˮŵĽ׽ +struct CThostFtdcReqQueryTradeResultBySerialField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ˮ + TThostFtdcSerialType Reference; + ///ˮŷߵĻ + TThostFtdcInstitutionTypeType RefrenceIssureType; + ///ˮŷ߻ + TThostFtdcOrganCodeType RefrenceIssure; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///תʽ + TThostFtdcTradeAmountType TradeAmount; + ///ժҪ + TThostFtdcDigestType Digest; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///ѯָˮŵĽ׽Ӧ +struct CThostFtdcRspQueryTradeResultBySerialField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///ˮ + TThostFtdcSerialType Reference; + ///ˮŷߵĻ + TThostFtdcInstitutionTypeType RefrenceIssureType; + ///ˮŷ߻ + TThostFtdcOrganCodeType RefrenceIssure; + ///ԭʼش + TThostFtdcReturnCodeType OriginReturnCode; + ///ԭʼ + TThostFtdcDescrInfoForReturnCodeType OriginDescrInfoForReturnCode; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///תʽ + TThostFtdcTradeAmountType TradeAmount; + ///ժҪ + TThostFtdcDigestType Digest; +}; + +///ļ +struct CThostFtdcReqDayEndFileReadyField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ļҵ + TThostFtdcFileBusinessCodeType FileBusinessCode; + ///ժҪ + TThostFtdcDigestType Digest; +}; + +///ؽ +struct CThostFtdcReturnResultField +{ + ///ش + TThostFtdcReturnCodeType ReturnCode; + /// + TThostFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode; +}; + +///֤ڻʽ +struct CThostFtdcVerifyFuturePasswordField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///װ + TThostFtdcInstallIDType InstallID; + ///ID + TThostFtdcTIDType TID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///֤ͻϢ +struct CThostFtdcVerifyCustInfoField +{ + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///֤ڻʽͿͻϢ +struct CThostFtdcVerifyFuturePasswordAndCustInfoField +{ + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ͻ + TThostFtdcCustTypeType CustType; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///֤ڻʽͿͻϢ +struct CThostFtdcDepositResultInformField +{ + ///ˮţˮΪڱ̷صˮ + TThostFtdcDepositSeqNoType DepositSeqNo; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcMoneyType Deposit; + /// + TThostFtdcRequestIDType RequestID; + ///ش + TThostFtdcReturnCodeType ReturnCode; + /// + TThostFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode; +}; + +///׺ڱ̷Կͬ +struct CThostFtdcReqSyncKeyField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///׺ĸڱ̵Ϣ + TThostFtdcAddInfoType Message; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; +}; + +///׺ڱ̷ԿͬӦ +struct CThostFtdcRspSyncKeyField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///׺ĸڱ̵Ϣ + TThostFtdcAddInfoType Message; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +///ѯ˻Ϣ֪ͨ +struct CThostFtdcNotifyQueryAccountField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///ڻ˾ˮ + TThostFtdcFutureSerialType FutureSerial; + ///װ + TThostFtdcInstallIDType InstallID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻλʺ + TThostFtdcBankAccTypeType BankSecuAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ڻλʺ + TThostFtdcBankAccountType BankSecuAcc; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + ///пý + TThostFtdcTradeAmountType BankUseAmount; + ///пȡ + TThostFtdcTradeAmountType BankFetchAmount; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///ת˽ˮ +struct CThostFtdcTransferSerialField +{ + ///ƽ̨ˮ + TThostFtdcPlateSerialType PlateSerial; + ///׷ + TThostFtdcTradeDateType TradeDate; + /// + TThostFtdcDateType TradingDay; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///״ + TThostFtdcTradeCodeType TradeCode; + ///Ự + TThostFtdcSessionIDType SessionID; + ///б + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///ʺ + TThostFtdcBankAccountType BankAccount; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ڻ˾ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + ///ڻ˾ʺ + TThostFtdcFutureAccTypeType FutureAccType; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ڻ˾ˮ + TThostFtdcFutureSerialType FutureSerial; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///׽ + TThostFtdcTradeAmountType TradeAmount; + ///Ӧտͻ + TThostFtdcCustFeeType CustFee; + ///Ӧڻ˾ + TThostFtdcFutureFeeType BrokerFee; + ///Ч־ + TThostFtdcAvailabilityFlagType AvailabilityFlag; + ///Ա + TThostFtdcOperatorCodeType OperatorCode; + ///ʺ + TThostFtdcBankAccountType BankNewAccount; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +///ѯתˮ +struct CThostFtdcQryTransferSerialField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///б + TThostFtdcBankIDType BankID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///ǩ֪ͨ +struct CThostFtdcNotifyFutureSignInField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///ժҪ + TThostFtdcDigestType Digest; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///PINԿ + TThostFtdcPasswordKeyType PinKey; + ///MACԿ + TThostFtdcPasswordKeyType MacKey; +}; + +///ǩ֪ͨ +struct CThostFtdcNotifyFutureSignOutField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///ժҪ + TThostFtdcDigestType Digest; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +///׺ڱ̷Կ֪ͬͨ +struct CThostFtdcNotifySyncKeyField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ûʶ + TThostFtdcUserIDType UserID; + ///׺ĸڱ̵Ϣ + TThostFtdcAddInfoType Message; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///׹Ա + TThostFtdcOperNoType OperNo; + /// + TThostFtdcRequestIDType RequestID; + ///ID + TThostFtdcTIDType TID; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +///ѯǩԼϵ +struct CThostFtdcQryAccountregisterField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///б + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///ͻϢ +struct CThostFtdcAccountregisterField +{ + /// + TThostFtdcTradeDateType TradeDay; + ///б + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///ʺ + TThostFtdcBankAccountType BankAccount; + ///ڻ˾ + TThostFtdcBrokerIDType BrokerID; + ///ڻ˾֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + /// + TThostFtdcOpenOrDestroyType OpenOrDestroy; + ///ǩԼ + TThostFtdcTradeDateType RegDate; + ///Լ + TThostFtdcTradeDateType OutDate; + ///ID + TThostFtdcTIDType TID; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///ڿϢ +struct CThostFtdcOpenAccountField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///Ա + TThostFtdcGenderType Gender; + ///Ҵ + TThostFtdcCountryCodeType CountryCode; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ַ + TThostFtdcAddressType Address; + ///ʱ + TThostFtdcZipCodeType ZipCode; + ///绰 + TThostFtdcTelephoneType Telephone; + ///ֻ + TThostFtdcMobilePhoneType MobilePhone; + /// + TThostFtdcFaxType Fax; + ///ʼ + TThostFtdcEMailType EMail; + ///ʽ˻״̬ + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///װ + TThostFtdcInstallIDType InstallID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///㳮־ + TThostFtdcCashExchangeCodeType CashExchangeCode; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻλʺ + TThostFtdcBankAccTypeType BankSecuAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ڻλʺ + TThostFtdcBankAccountType BankSecuAcc; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///׹Ա + TThostFtdcOperNoType OperNo; + ///ID + TThostFtdcTIDType TID; + ///ûʶ + TThostFtdcUserIDType UserID; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///Ϣ +struct CThostFtdcCancelAccountField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///Ա + TThostFtdcGenderType Gender; + ///Ҵ + TThostFtdcCountryCodeType CountryCode; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ַ + TThostFtdcAddressType Address; + ///ʱ + TThostFtdcZipCodeType ZipCode; + ///绰 + TThostFtdcTelephoneType Telephone; + ///ֻ + TThostFtdcMobilePhoneType MobilePhone; + /// + TThostFtdcFaxType Fax; + ///ʼ + TThostFtdcEMailType EMail; + ///ʽ˻״̬ + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///װ + TThostFtdcInstallIDType InstallID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///㳮־ + TThostFtdcCashExchangeCodeType CashExchangeCode; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///־ + TThostFtdcDeviceIDType DeviceID; + ///ڻλʺ + TThostFtdcBankAccTypeType BankSecuAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ڻλʺ + TThostFtdcBankAccountType BankSecuAcc; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///׹Ա + TThostFtdcOperNoType OperNo; + ///ID + TThostFtdcTIDType TID; + ///ûʶ + TThostFtdcUserIDType UserID; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///ڱ˺Ϣ +struct CThostFtdcChangeAccountField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///Ա + TThostFtdcGenderType Gender; + ///Ҵ + TThostFtdcCountryCodeType CountryCode; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ַ + TThostFtdcAddressType Address; + ///ʱ + TThostFtdcZipCodeType ZipCode; + ///绰 + TThostFtdcTelephoneType Telephone; + ///ֻ + TThostFtdcMobilePhoneType MobilePhone; + /// + TThostFtdcFaxType Fax; + ///ʼ + TThostFtdcEMailType EMail; + ///ʽ˻״̬ + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///ʺ + TThostFtdcBankAccountType NewBankAccount; + /// + TThostFtdcPasswordType NewBankPassWord; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///װ + TThostFtdcInstallIDType InstallID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///־ + TThostFtdcPwdFlagType BankPwdFlag; + ///ڻʽ˶Ա־ + TThostFtdcPwdFlagType SecuPwdFlag; + ///ID + TThostFtdcTIDType TID; + ///ժҪ + TThostFtdcDigestType Digest; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; + ///ͻ + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///ԱȨ +struct CThostFtdcSecAgentACIDMapField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///ʽ˻ + TThostFtdcAccountIDType AccountID; + /// + TThostFtdcCurrencyIDType CurrencyID; + ///нʽʺ + TThostFtdcAccountIDType BrokerSecAgentID; +}; + +///ԱȨ޲ѯ +struct CThostFtdcQrySecAgentACIDMapField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///ʽ˻ + TThostFtdcAccountIDType AccountID; + /// + TThostFtdcCurrencyIDType CurrencyID; +}; + +///ֱĽȨ +struct CThostFtdcUserRightsAssignField +{ + ///ӦõԪ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///Ĵ + TThostFtdcDRIdentityIDType DRIdentityID; +}; + +///ù˾ǷڱʾĽȨ +struct CThostFtdcBrokerUserRightAssignField +{ + ///ӦõԪ + TThostFtdcBrokerIDType BrokerID; + ///Ĵ + TThostFtdcDRIdentityIDType DRIdentityID; + ///ܷ + TThostFtdcBoolType Tradeable; +}; + +///ֱת +struct CThostFtdcDRTransferField +{ + ///ԭĴ + TThostFtdcDRIdentityIDType OrigDRIdentityID; + ///Ŀ꽻Ĵ + TThostFtdcDRIdentityIDType DestDRIdentityID; + ///ԭӦõԪ + TThostFtdcBrokerIDType OrigBrokerID; + ///ĿõԪ + TThostFtdcBrokerIDType DestBrokerID; +}; + +///FensûϢ +struct CThostFtdcFensUserInfoField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///¼ģʽ + TThostFtdcLoginModeType LoginMode; +}; + +///ǰ +struct CThostFtdcCurrTransferIdentityField +{ + ///Ĵ + TThostFtdcDRIdentityIDType IdentityID; +}; + +///ֹ¼û +struct CThostFtdcLoginForbiddenUserField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///IPַ + TThostFtdcIPAddressType IPAddress; +}; + +///ѯֹ¼û +struct CThostFtdcQryLoginForbiddenUserField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///UDP鲥Ϣ +struct CThostFtdcMulticastGroupInfoField +{ + ///鲥IPַ + TThostFtdcIPAddressType GroupIP; + ///鲥IP˿ + TThostFtdcIPPortType GroupPort; + ///Դַ + TThostFtdcIPAddressType SourceIP; +}; + +///ʽ˻׼ +struct CThostFtdcTradingAccountReserveField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///׼ + TThostFtdcMoneyType Reserve; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///ѯֹ¼IP +struct CThostFtdcQryLoginForbiddenIPField +{ + ///IPַ + TThostFtdcIPAddressType IPAddress; +}; + +///ѯIPб +struct CThostFtdcQryIPListField +{ + ///IPַ + TThostFtdcIPAddressType IPAddress; +}; + +///ѯûµȨ޷ +struct CThostFtdcQryUserRightsAssignField +{ + ///ӦõԪ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///ԤԼȷ +struct CThostFtdcReserveOpenAccountConfirmField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcLongIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///Ա + TThostFtdcGenderType Gender; + ///Ҵ + TThostFtdcCountryCodeType CountryCode; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ַ + TThostFtdcAddressType Address; + ///ʱ + TThostFtdcZipCodeType ZipCode; + ///绰 + TThostFtdcTelephoneType Telephone; + ///ֻ + TThostFtdcMobilePhoneType MobilePhone; + /// + TThostFtdcFaxType Fax; + ///ʼ + TThostFtdcEMailType EMail; + ///ʽ˻״̬ + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///װ + TThostFtdcInstallIDType InstallID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ID + TThostFtdcTIDType TID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ڻ + TThostFtdcPasswordType Password; + ///ԤԼˮ + TThostFtdcBankSerialType BankReserveOpenSeq; + ///ԤԼ + TThostFtdcTradeDateType BookDate; + ///ԤԼ֤ + TThostFtdcPasswordType BookPsw; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +///ԤԼ +struct CThostFtdcReserveOpenAccountField +{ + ///ҵ + TThostFtdcTradeCodeType TradeCode; + ///д + TThostFtdcBankIDType BankID; + ///з֧ + TThostFtdcBankBrchIDType BankBranchID; + ///̴ + TThostFtdcBrokerIDType BrokerID; + ///̷֧ + TThostFtdcFutureBranchIDType BrokerBranchID; + /// + TThostFtdcTradeDateType TradeDate; + ///ʱ + TThostFtdcTradeTimeType TradeTime; + ///ˮ + TThostFtdcBankSerialType BankSerial; + ///ϵͳ + TThostFtdcTradeDateType TradingDay; + ///ƽ̨Ϣˮ + TThostFtdcSerialType PlateSerial; + ///Ƭ־ + TThostFtdcLastFragmentType LastFragment; + ///Ự + TThostFtdcSessionIDType SessionID; + ///ͻ + TThostFtdcLongIndividualNameType CustomerName; + ///֤ + TThostFtdcIdCardTypeType IdCardType; + ///֤ + TThostFtdcIdentifiedCardNoType IdentifiedCardNo; + ///Ա + TThostFtdcGenderType Gender; + ///Ҵ + TThostFtdcCountryCodeType CountryCode; + ///ͻ + TThostFtdcCustTypeType CustType; + ///ַ + TThostFtdcAddressType Address; + ///ʱ + TThostFtdcZipCodeType ZipCode; + ///绰 + TThostFtdcTelephoneType Telephone; + ///ֻ + TThostFtdcMobilePhoneType MobilePhone; + /// + TThostFtdcFaxType Fax; + ///ʼ + TThostFtdcEMailType EMail; + ///ʽ˻״̬ + TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + ///ʺ + TThostFtdcBankAccountType BankAccount; + /// + TThostFtdcPasswordType BankPassWord; + ///װ + TThostFtdcInstallIDType InstallID; + ///֤ͻ֤־ + TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ժҪ + TThostFtdcDigestType Digest; + ///ʺ + TThostFtdcBankAccTypeType BankAccType; + ///ڻ˾б + TThostFtdcBankCodingForFutureType BrokerIDByBank; + ///ID + TThostFtdcTIDType TID; + ///ԤԼ״̬ + TThostFtdcReserveOpenAccStasType ReserveOpenAccStas; + /// + TThostFtdcErrorIDType ErrorID; + ///Ϣ + TThostFtdcErrorMsgType ErrorMsg; +}; + +///˻ +struct CThostFtdcAccountPropertyField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ͳһʶ + TThostFtdcBankIDType BankID; + ///˻ + TThostFtdcBankAccountType BankAccount; + ///˻Ŀ + TThostFtdcInvestorFullNameType OpenName; + ///˻Ŀ + TThostFtdcOpenBankType OpenBank; + ///ǷԾ + TThostFtdcBoolType IsActive; + ///˻Դ + TThostFtdcAccountSourceTypeType AccountSourceType; + /// + TThostFtdcDateType OpenDate; + ///ע + TThostFtdcDateType CancelDate; + ///¼Ա + TThostFtdcOperatorIDType OperatorID; + ///¼ + TThostFtdcDateType OperateDate; + ///¼ʱ + TThostFtdcTimeType OperateTime; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///ѯǰ +struct CThostFtdcQryCurrDRIdentityField +{ + ///Ĵ + TThostFtdcDRIdentityIDType DRIdentityID; +}; + +///ǰ +struct CThostFtdcCurrDRIdentityField +{ + ///Ĵ + TThostFtdcDRIdentityIDType DRIdentityID; +}; + +///ѯʽУģʽ +struct CThostFtdcQrySecAgentCheckModeField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; +}; + +///ѯϢ +struct CThostFtdcQrySecAgentTradeInfoField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///нʽʺ + TThostFtdcAccountIDType BrokerSecAgentID; +}; + +///ûϵͳϢ +struct CThostFtdcUserSystemInfoField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///ûϵͳڲϢ + TThostFtdcSystemInfoLenType ClientSystemInfoLen; + ///ûϵͳڲϢ + TThostFtdcClientSystemInfoType ClientSystemInfo; + ///ûIP + TThostFtdcIPAddressType ClientPublicIP; + ///նIP˿ + TThostFtdcIPPortType ClientIPPort; + ///¼ɹʱ + TThostFtdcTimeType ClientLoginTime; + ///App + TThostFtdcAppIDType ClientAppID; +}; + +///ûȡȫȫ½ +struct CThostFtdcReqUserAuthMethodField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///ûȡȫȫ½ظ +struct CThostFtdcRspUserAuthMethodField +{ + ///ǰõ֤ģʽ + TThostFtdcCurrentAuthMethodType UsableAuthMethod; +}; + +///ûȡȫȫ½ +struct CThostFtdcReqGenUserCaptchaField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///ɵͼƬ֤Ϣ +struct CThostFtdcRspGenUserCaptchaField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///ͼƬϢ + TThostFtdcCaptchaInfoLenType CaptchaInfoLen; + ///ͼƬϢ + TThostFtdcCaptchaInfoType CaptchaInfo; +}; + +///ûȡȫȫ½ +struct CThostFtdcReqGenUserTextField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///֤ɵĻظ +struct CThostFtdcRspGenUserTextField +{ + ///֤ + TThostFtdcUserTextSeqType UserTextSeq; +}; + +///ûͼ֤ĵ¼ +struct CThostFtdcReqUserLoginWithCaptchaField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcPasswordType Password; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///ӿڶ˲ƷϢ + TThostFtdcProductInfoType InterfaceProductInfo; + ///ЭϢ + TThostFtdcProtocolInfoType ProtocolInfo; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///նIPַ + TThostFtdcIPAddressType ClientIPAddress; + ///¼ע + TThostFtdcLoginRemarkType LoginRemark; + ///ͼ֤ + TThostFtdcPasswordType Captcha; + ///նIP˿ + TThostFtdcIPPortType ClientIPPort; +}; + +///û֤ĵ¼ +struct CThostFtdcReqUserLoginWithTextField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcPasswordType Password; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///ӿڶ˲ƷϢ + TThostFtdcProductInfoType InterfaceProductInfo; + ///ЭϢ + TThostFtdcProtocolInfoType ProtocolInfo; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///նIPַ + TThostFtdcIPAddressType ClientIPAddress; + ///¼ע + TThostFtdcLoginRemarkType LoginRemark; + ///֤ + TThostFtdcPasswordType Text; + ///նIP˿ + TThostFtdcIPPortType ClientIPPort; +}; + +///û̬֤ĵ¼ +struct CThostFtdcReqUserLoginWithOTPField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcPasswordType Password; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///ӿڶ˲ƷϢ + TThostFtdcProductInfoType InterfaceProductInfo; + ///ЭϢ + TThostFtdcProtocolInfoType ProtocolInfo; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///նIPַ + TThostFtdcIPAddressType ClientIPAddress; + ///¼ע + TThostFtdcLoginRemarkType LoginRemark; + ///OTP + TThostFtdcPasswordType OTPPassword; + ///նIP˿ + TThostFtdcIPPortType ClientIPPort; +}; + +///api +struct CThostFtdcReqApiHandshakeField +{ + ///apifrontͨԿ汾 + TThostFtdcCryptoKeyVersionType CryptoKeyVersion; +}; + +///frontapiֻظ +struct CThostFtdcRspApiHandshakeField +{ + ///ֻظݳ + TThostFtdcHandshakeDataLenType FrontHandshakeDataLen; + ///ֻظ + TThostFtdcHandshakeDataType FrontHandshakeData; + ///API֤Ƿ + TThostFtdcBoolType IsApiAuthEnabled; +}; + +///apifront֤key +struct CThostFtdcReqVerifyApiKeyField +{ + ///ֻظݳ + TThostFtdcHandshakeDataLenType ApiHandshakeDataLen; + ///ֻظ + TThostFtdcHandshakeDataType ApiHandshakeData; +}; + +///Աܹ֯ϵ +struct CThostFtdcDepartmentUserField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///Ͷ߷Χ + TThostFtdcDepartmentRangeType InvestorRange; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; +}; + +///ѯƵʣÿѯ +struct CThostFtdcQueryFreqField +{ + ///ѯƵ + TThostFtdcQueryFreqType QueryFreq; +}; + + + +#endif diff --git a/v6.3.6_20160606_tradeapi64_windows/error.dtd b/v6.3.15_20190220_tradeapi64_se_windows/error.dtd similarity index 100% rename from v6.3.6_20160606_tradeapi64_windows/error.dtd rename to v6.3.15_20190220_tradeapi64_se_windows/error.dtd diff --git a/v6.3.6_20160606_tradeapi_windows/error.xml b/v6.3.15_20190220_tradeapi64_se_windows/error.xml similarity index 87% rename from v6.3.6_20160606_tradeapi_windows/error.xml rename to v6.3.15_20190220_tradeapi64_se_windows/error.xml index 1fe5915..9944a87 100644 --- a/v6.3.6_20160606_tradeapi_windows/error.xml +++ b/v6.3.15_20190220_tradeapi64_se_windows/error.xml @@ -57,7 +57,7 @@ - + @@ -96,6 +96,7 @@ + @@ -104,6 +105,14 @@ + + + + + + + + @@ -147,6 +156,8 @@ + + @@ -188,4 +199,18 @@ + + + + + + + + + + + + + + diff --git a/v6.3.15_20190220_tradeapi64_se_windows/thostmduserapi_se.dll b/v6.3.15_20190220_tradeapi64_se_windows/thostmduserapi_se.dll new file mode 100644 index 0000000..f71079a Binary files /dev/null and b/v6.3.15_20190220_tradeapi64_se_windows/thostmduserapi_se.dll differ diff --git a/v6.3.15_20190220_tradeapi64_se_windows/thostmduserapi_se.lib b/v6.3.15_20190220_tradeapi64_se_windows/thostmduserapi_se.lib new file mode 100644 index 0000000..3647730 Binary files /dev/null and b/v6.3.15_20190220_tradeapi64_se_windows/thostmduserapi_se.lib differ diff --git a/v6.3.15_20190220_tradeapi64_se_windows/thosttraderapi_se.dll b/v6.3.15_20190220_tradeapi64_se_windows/thosttraderapi_se.dll new file mode 100644 index 0000000..d046833 Binary files /dev/null and b/v6.3.15_20190220_tradeapi64_se_windows/thosttraderapi_se.dll differ diff --git a/v6.3.15_20190220_tradeapi64_se_windows/thosttraderapi_se.lib b/v6.3.15_20190220_tradeapi64_se_windows/thosttraderapi_se.lib new file mode 100644 index 0000000..d58511c Binary files /dev/null and b/v6.3.15_20190220_tradeapi64_se_windows/thosttraderapi_se.lib differ diff --git a/v6.3.6_20160606_tradeapi64_windows/ThostFtdcMdApi.h b/v6.3.15_20190220_tradeapi_se_windows/ThostFtdcMdApi.h similarity index 100% rename from v6.3.6_20160606_tradeapi64_windows/ThostFtdcMdApi.h rename to v6.3.15_20190220_tradeapi_se_windows/ThostFtdcMdApi.h diff --git a/v6.3.6_20160606_tradeapi_windows/ThostFtdcTraderApi.h b/v6.3.15_20190220_tradeapi_se_windows/ThostFtdcTraderApi.h similarity index 85% rename from v6.3.6_20160606_tradeapi_windows/ThostFtdcTraderApi.h rename to v6.3.15_20190220_tradeapi_se_windows/ThostFtdcTraderApi.h index a874ca9..4f69946 100644 --- a/v6.3.6_20160606_tradeapi_windows/ThostFtdcTraderApi.h +++ b/v6.3.15_20190220_tradeapi_se_windows/ThostFtdcTraderApi.h @@ -61,6 +61,15 @@ class CThostFtdcTraderSpi ///资金账户口令更新请求响应 virtual void OnRspTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + ///查询用户当前支持的认证模式的回复 + virtual void OnRspUserAuthMethod(CThostFtdcRspUserAuthMethodField *pRspUserAuthMethod, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///获取图形验证码请求的回复 + virtual void OnRspGenUserCaptcha(CThostFtdcRspGenUserCaptchaField *pRspGenUserCaptcha, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///获取短信验证码请求的回复 + virtual void OnRspGenUserText(CThostFtdcRspGenUserTextField *pRspGenUserText, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + ///报单录入请求响应 virtual void OnRspOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; @@ -103,6 +112,12 @@ class CThostFtdcTraderSpi ///批量报单操作请求响应 virtual void OnRspBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + ///期权自对冲录入请求响应 + virtual void OnRspOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///期权自对冲操作请求响应 + virtual void OnRspOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField *pInputOptionSelfCloseAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + ///申请组合录入请求响应 virtual void OnRspCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; @@ -196,6 +211,15 @@ class CThostFtdcTraderSpi ///请求查询报单手续费响应 virtual void OnRspQryInstrumentOrderCommRate(CThostFtdcInstrumentOrderCommRateField *pInstrumentOrderCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + ///请求查询资金账户响应 + virtual void OnRspQrySecAgentTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询二级代理商资金校验模式响应 + virtual void OnRspQrySecAgentCheckMode(CThostFtdcSecAgentCheckModeField *pSecAgentCheckMode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询二级代理商信息响应 + virtual void OnRspQrySecAgentTradeInfo(CThostFtdcSecAgentTradeInfoField *pSecAgentTradeInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + ///请求查询期权交易成本响应 virtual void OnRspQryOptionInstrTradeCost(CThostFtdcOptionInstrTradeCostField *pOptionInstrTradeCost, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; @@ -211,6 +235,12 @@ class CThostFtdcTraderSpi ///请求查询报价响应 virtual void OnRspQryQuote(CThostFtdcQuoteField *pQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + ///请求查询期权自对冲响应 + virtual void OnRspQryOptionSelfClose(CThostFtdcOptionSelfCloseField *pOptionSelfClose, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + + ///请求查询投资单元响应 + virtual void OnRspQryInvestUnit(CThostFtdcInvestUnitField *pInvestUnit, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; + ///请求查询组合合约安全系数响应 virtual void OnRspQryCombInstrumentGuard(CThostFtdcCombInstrumentGuardField *pCombInstrumentGuard, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; @@ -280,6 +310,15 @@ class CThostFtdcTraderSpi ///批量报单操作错误回报 virtual void OnErrRtnBatchOrderAction(CThostFtdcBatchOrderActionField *pBatchOrderAction, CThostFtdcRspInfoField *pRspInfo) {}; + ///期权自对冲通知 + virtual void OnRtnOptionSelfClose(CThostFtdcOptionSelfCloseField *pOptionSelfClose) {}; + + ///期权自对冲录入错误回报 + virtual void OnErrRtnOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, CThostFtdcRspInfoField *pRspInfo) {}; + + ///期权自对冲操作错误回报 + virtual void OnErrRtnOptionSelfCloseAction(CThostFtdcOptionSelfCloseActionField *pOptionSelfCloseAction, CThostFtdcRspInfoField *pRspInfo) {}; + ///申请组合通知 virtual void OnRtnCombAction(CThostFtdcCombActionField *pCombAction) {}; @@ -443,9 +482,16 @@ class TRADER_API_EXPORT CThostFtdcTraderApi ///客户端认证请求 virtual int ReqAuthenticate(CThostFtdcReqAuthenticateField *pReqAuthenticateField, int nRequestID) = 0; + ///注册用户终端信息,用于中继服务器多连接模式 + ///需要在终端认证成功后,用户登录前调用该接口 + virtual int RegisterUserSystemInfo(CThostFtdcUserSystemInfoField *pUserSystemInfo) = 0; + + ///上报用户终端信息,用于中继服务器操作员登录模式 + ///操作员登录后,可以多次调用该接口上报客户信息 + virtual int SubmitUserSystemInfo(CThostFtdcUserSystemInfoField *pUserSystemInfo) = 0; + ///用户登录请求 virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0; - ///登出请求 virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0; @@ -456,6 +502,24 @@ class TRADER_API_EXPORT CThostFtdcTraderApi ///资金账户口令更新请求 virtual int ReqTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, int nRequestID) = 0; + ///查询用户当前支持的认证模式 + virtual int ReqUserAuthMethod(CThostFtdcReqUserAuthMethodField *pReqUserAuthMethod, int nRequestID) = 0; + + ///用户发出获取图形验证码请求 + virtual int ReqGenUserCaptcha(CThostFtdcReqGenUserCaptchaField *pReqGenUserCaptcha, int nRequestID) = 0; + + ///用户发出获取短信验证码请求 + virtual int ReqGenUserText(CThostFtdcReqGenUserTextField *pReqGenUserText, int nRequestID) = 0; + + ///用户发出带有图片验证码的登陆请求 + virtual int ReqUserLoginWithCaptcha(CThostFtdcReqUserLoginWithCaptchaField *pReqUserLoginWithCaptcha, int nRequestID) = 0; + + ///用户发出带有短信验证码的登陆请求 + virtual int ReqUserLoginWithText(CThostFtdcReqUserLoginWithTextField *pReqUserLoginWithText, int nRequestID) = 0; + + ///用户发出带有动态口令的登陆请求 + virtual int ReqUserLoginWithOTP(CThostFtdcReqUserLoginWithOTPField *pReqUserLoginWithOTP, int nRequestID) = 0; + ///报单录入请求 virtual int ReqOrderInsert(CThostFtdcInputOrderField *pInputOrder, int nRequestID) = 0; @@ -498,6 +562,12 @@ class TRADER_API_EXPORT CThostFtdcTraderApi ///批量报单操作请求 virtual int ReqBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, int nRequestID) = 0; + ///期权自对冲录入请求 + virtual int ReqOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, int nRequestID) = 0; + + ///期权自对冲操作请求 + virtual int ReqOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField *pInputOptionSelfCloseAction, int nRequestID) = 0; + ///申请组合录入请求 virtual int ReqCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, int nRequestID) = 0; @@ -591,6 +661,15 @@ class TRADER_API_EXPORT CThostFtdcTraderApi ///请求查询报单手续费 virtual int ReqQryInstrumentOrderCommRate(CThostFtdcQryInstrumentOrderCommRateField *pQryInstrumentOrderCommRate, int nRequestID) = 0; + ///请求查询资金账户 + virtual int ReqQrySecAgentTradingAccount(CThostFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0; + + ///请求查询二级代理商资金校验模式 + virtual int ReqQrySecAgentCheckMode(CThostFtdcQrySecAgentCheckModeField *pQrySecAgentCheckMode, int nRequestID) = 0; + + ///请求查询二级代理商信息 + virtual int ReqQrySecAgentTradeInfo(CThostFtdcQrySecAgentTradeInfoField *pQrySecAgentTradeInfo, int nRequestID) = 0; + ///请求查询期权交易成本 virtual int ReqQryOptionInstrTradeCost(CThostFtdcQryOptionInstrTradeCostField *pQryOptionInstrTradeCost, int nRequestID) = 0; @@ -606,6 +685,12 @@ class TRADER_API_EXPORT CThostFtdcTraderApi ///请求查询报价 virtual int ReqQryQuote(CThostFtdcQryQuoteField *pQryQuote, int nRequestID) = 0; + ///请求查询期权自对冲 + virtual int ReqQryOptionSelfClose(CThostFtdcQryOptionSelfCloseField *pQryOptionSelfClose, int nRequestID) = 0; + + ///请求查询投资单元 + virtual int ReqQryInvestUnit(CThostFtdcQryInvestUnitField *pQryInvestUnit, int nRequestID) = 0; + ///请求查询组合合约安全系数 virtual int ReqQryCombInstrumentGuard(CThostFtdcQryCombInstrumentGuardField *pQryCombInstrumentGuard, int nRequestID) = 0; diff --git a/v6.3.6_20160606_tradeapi64_windows/ThostFtdcUserApiDataType.h b/v6.3.15_20190220_tradeapi_se_windows/ThostFtdcUserApiDataType.h similarity index 93% rename from v6.3.6_20160606_tradeapi64_windows/ThostFtdcUserApiDataType.h rename to v6.3.15_20190220_tradeapi_se_windows/ThostFtdcUserApiDataType.h index 87eaf5d..9a3ca7e 100644 --- a/v6.3.6_20160606_tradeapi64_windows/ThostFtdcUserApiDataType.h +++ b/v6.3.15_20190220_tradeapi_se_windows/ThostFtdcUserApiDataType.h @@ -1,4 +1,4 @@ -///////////////////////////////////////////////////////////////////////// +///////////////////////////////////////////////////////////////////////// ///@system 新一代交易所系统 ///@company 上海期货信息技术有限公司 ///@file ThostFtdcUserApiDataType.h @@ -77,6 +77,11 @@ typedef char TThostFtdcClientIDType[11]; ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInstrumentIDType[31]; +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentCodeType是一个合约标识码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentCodeType[31]; + ///////////////////////////////////////////////////////////////////////// ///TFtdcMarketIDType是一个市场代码类型 ///////////////////////////////////////////////////////////////////////// @@ -243,6 +248,10 @@ typedef char TThostFtdcIdentifiedCardNoType[51]; #define THOST_FTDC_ICT_HKMCIDCard 'I' ///人行开户许可证 #define THOST_FTDC_ICT_AccountsPermits 'J' +///外国人永久居留证 +#define THOST_FTDC_ICT_FrgPrmtRdCard 'K' +///资管产品备案函 +#define THOST_FTDC_ICT_CptMngPrdLetter 'L' ///其他证件 #define THOST_FTDC_ICT_OtherCard 'x' @@ -489,6 +498,26 @@ typedef char TThostFtdcFunctionCodeType; #define THOST_FTDC_BFC_ParkedOrderAction 'L' ///资金不够仍允许行权 #define THOST_FTDC_BFC_ExecOrderNoCheck 'M' +///指定 +#define THOST_FTDC_BFC_Designate 'N' +///证券处置 +#define THOST_FTDC_BFC_StockDisposal 'O' +///席位资金预警 +#define THOST_FTDC_BFC_BrokerDepositWarn 'Q' +///备兑不足预警 +#define THOST_FTDC_BFC_CoverWarn 'S' +///行权试算 +#define THOST_FTDC_BFC_PreExecOrder 'T' +///行权交收风险 +#define THOST_FTDC_BFC_ExecOrderRisk 'P' +///持仓限额预警 +#define THOST_FTDC_BFC_PosiLimitWarn 'U' +///持仓限额查询 +#define THOST_FTDC_BFC_QryPosiLimit 'V' +///银期签到签退 +#define THOST_FTDC_BFC_FBSign 'W' +///银期签约解约 +#define THOST_FTDC_BFC_FBAccount 'X' typedef char TThostFtdcBrokerFunctionCodeType; @@ -681,6 +710,10 @@ typedef char TThostFtdcRatioAttrType; #define THOST_FTDC_HF_Hedge '3' ///做市商 #define THOST_FTDC_HF_MarketMaker '5' +///第一腿投机第二腿套保 大商所专用 +#define THOST_FTDC_HF_SpecHedge '6' +///第一腿套保第二腿投机 大商所专用 +#define THOST_FTDC_HF_HedgeSpec '7' typedef char TThostFtdcHedgeFlagType; @@ -805,6 +838,10 @@ typedef char TThostFtdcForceCloseReasonType; #define THOST_FTDC_ORDT_ConditionalOrder '4' ///互换单 #define THOST_FTDC_ORDT_Swap '5' +///大宗交易成交衍生 +#define THOST_FTDC_ORDT_DeriveFromBlockTrade '6' +///期转现成交衍生 +#define THOST_FTDC_ORDT_DeriveFromEFPTrade '7' typedef char TThostFtdcOrderTypeType; @@ -923,6 +960,8 @@ typedef char TThostFtdcOrderSourceType; #define THOST_FTDC_TRDT_EFPDerived '3' ///组合衍生成交 #define THOST_FTDC_TRDT_CombinationDerived '4' +///大宗交易成交 +#define THOST_FTDC_TRDT_BlockTrade '5' typedef char TThostFtdcTradeTypeType; @@ -935,6 +974,8 @@ typedef char TThostFtdcTradeTypeType; #define THOST_FTDC_PSRC_Buy '1' ///卖委托价 #define THOST_FTDC_PSRC_Sell '2' +///场外成交价 +#define THOST_FTDC_PSRC_OTC '3' typedef char TThostFtdcPriceSourceType; @@ -1414,6 +1455,20 @@ typedef char TThostFtdcSystemParamIDType; #define THOST_FTDC_TPID_IsFutureOrderFreq 'C' ///行权冻结是否计算盈利 #define THOST_FTDC_TPID_IsExecOrderProfit 'H' +///银期开户是否验证开户银行卡号是否是预留银行账户 +#define THOST_FTDC_TPID_IsCheckBankAcc 'I' +///弱密码最后修改日期 +#define THOST_FTDC_TPID_PasswordDeadLine 'J' +///强密码校验 +#define THOST_FTDC_TPID_IsStrongPassword 'K' +///自有资金质押比 +#define THOST_FTDC_TPID_BalanceMorgage 'a' +///最小密码长度 +#define THOST_FTDC_TPID_MinPwdLen 'O' +///IP当日最大登陆失败次数 +#define THOST_FTDC_TPID_LoginFailMaxNumForIP 'U' +///密码有效期 +#define THOST_FTDC_TPID_PasswordPeriod 'V' typedef char TThostFtdcTradeParamIDType; @@ -5368,6 +5423,8 @@ typedef char TThostFtdcCloseDealTypeType; #define THOST_FTDC_MFUR_Margin '1' ///用于手续费、盈亏、保证金 #define THOST_FTDC_MFUR_All '2' +///人民币方案3 +#define THOST_FTDC_MFUR_CNY3 '3' typedef char TThostFtdcMortgageFundUseRangeType; @@ -6138,6 +6195,34 @@ typedef char TThostFtdcStrikeTimeType[13]; typedef char TThostFtdcCombinationTypeType; +///////////////////////////////////////////////////////////////////////// +///TFtdcDceCombinationTypeType是一个组合类型类型 +///////////////////////////////////////////////////////////////////////// +///期货对锁组合 +#define THOST_FTDC_DCECOMBT_SPL '0' +///期权对锁组合 +#define THOST_FTDC_DCECOMBT_OPL '1' +///期货跨期组合 +#define THOST_FTDC_DCECOMBT_SP '2' +///期货跨品种组合 +#define THOST_FTDC_DCECOMBT_SPC '3' +///买入期权垂直价差组合 +#define THOST_FTDC_DCECOMBT_BLS '4' +///卖出期权垂直价差组合 +#define THOST_FTDC_DCECOMBT_BES '5' +///期权日历价差组合 +#define THOST_FTDC_DCECOMBT_CAS '6' +///期权跨式组合 +#define THOST_FTDC_DCECOMBT_STD '7' +///期权宽跨式组合 +#define THOST_FTDC_DCECOMBT_STG '8' +///买入期货期权组合 +#define THOST_FTDC_DCECOMBT_BFO '9' +///卖出期货期权组合 +#define THOST_FTDC_DCECOMBT_SFO 'a' + +typedef char TThostFtdcDceCombinationTypeType; + ///////////////////////////////////////////////////////////////////////// ///TFtdcOptionRoyaltyPriceTypeType是一个期权权利金价格类型类型 ///////////////////////////////////////////////////////////////////////// @@ -6145,6 +6230,8 @@ typedef char TThostFtdcCombinationTypeType; #define THOST_FTDC_ORPT_PreSettlementPrice '1' ///开仓价 #define THOST_FTDC_ORPT_OpenPrice '4' +///最新价与昨结算价较大值 +#define THOST_FTDC_ORPT_MaxPreSettlementPrice '5' typedef char TThostFtdcOptionRoyaltyPriceTypeType; @@ -6375,4 +6462,202 @@ typedef char TThostFtdcURLLinkType[201]; ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcLongIndividualNameType[161]; +///////////////////////////////////////////////////////////////////////// +///TFtdcLongFBEBankAccountNameType是一个长换汇银行账户名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongFBEBankAccountNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateTimeType是一个日期时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateTimeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWeakPasswordSourceType是一个弱密码来源类型 +///////////////////////////////////////////////////////////////////////// +///弱密码库 +#define THOST_FTDC_WPSR_Lib '1' +///手工录入 +#define THOST_FTDC_WPSR_Manual '2' + +typedef char TThostFtdcWeakPasswordSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRandomStringType是一个随机串类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRandomStringType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptSelfCloseFlagType是一个期权行权的头寸是否自对冲类型 +///////////////////////////////////////////////////////////////////////// +///自对冲期权仓位 +#define THOST_FTDC_OSCF_CloseSelfOptionPosition '1' +///保留期权仓位 +#define THOST_FTDC_OSCF_ReserveOptionPosition '2' +///自对冲卖方履约后的期货仓位 +#define THOST_FTDC_OSCF_SellCloseSelfFuturePosition '3' +///保留卖方履约后的期货仓位 +#define THOST_FTDC_OSCF_ReserveFuturePosition '4' + +typedef char TThostFtdcOptSelfCloseFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBizTypeType是一个业务类型类型 +///////////////////////////////////////////////////////////////////////// +///期货 +#define THOST_FTDC_BZTP_Future '1' +///证券 +#define THOST_FTDC_BZTP_Stock '2' + +typedef char TThostFtdcBizTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAppTypeType是一个用户App类型类型 +///////////////////////////////////////////////////////////////////////// +///直连的投资者 +#define THOST_FTDC_APP_TYPE_Investor '1' +///为每个投资者都创建连接的中继 +#define THOST_FTDC_APP_TYPE_InvestorRelay '2' +///所有投资者共享一个操作员连接的中继 +#define THOST_FTDC_APP_TYPE_OperatorRelay '3' +///未知 +#define THOST_FTDC_APP_TYPE_UnKnown '4' + +typedef char TThostFtdcAppTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAppIDType是一个App代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAppIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemInfoLenType是一个系统信息长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSystemInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdditionalInfoLenType是一个补充信息长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcAdditionalInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientSystemInfoType是一个交易终端系统信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientSystemInfoType[273]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdditionalInfoType是一个系统外部信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAdditionalInfoType[261]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBase64ClientSystemInfoType是一个base64交易终端系统信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBase64ClientSystemInfoType[365]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBase64AdditionalInfoType是一个base64系统外部信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBase64AdditionalInfoType[349]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrentAuthMethodType是一个当前可用的认证模式,0代表无需认证模式 A从低位开始最后一位代表图片验证码,倒数第二位代表动态口令,倒数第三位代表短信验证码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCurrentAuthMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCaptchaInfoLenType是一个图片验证信息长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCaptchaInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCaptchaInfoType是一个图片验证信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCaptchaInfoType[2561]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserTextSeqType是一个用户短信验证码的编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcUserTextSeqType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandshakeDataType是一个握手数据内容类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcHandshakeDataType[301]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandshakeDataLenType是一个握手数据内容长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcHandshakeDataLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCryptoKeyVersionType是一个api与front通信密钥版本号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCryptoKeyVersionType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRsaKeyVersionType是一个公钥版本号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRsaKeyVersionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSoftwareProviderIDType是一个交易软件商ID类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSoftwareProviderIDType[22]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCollectTimeType是一个信息采集时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCollectTimeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryFreqType是一个查询频率类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcQueryFreqType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcResponseValueType是一个应答类型类型 +///////////////////////////////////////////////////////////////////////// +///检查成功 +#define THOST_FTDC_RV_Right '0' +///检查失败 +#define THOST_FTDC_RV_Refuse '1' + +typedef char TThostFtdcResponseValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTCTradeTypeType是一个OTC成交类型类型 +///////////////////////////////////////////////////////////////////////// +///大宗交易 +#define THOST_FTDC_OTC_TRDT_Block '0' +///期转现 +#define THOST_FTDC_OTC_TRDT_EFP '1' + +typedef char TThostFtdcOTCTradeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMatchTypeType是一个期现风险匹配方式类型 +///////////////////////////////////////////////////////////////////////// +///基点价值 +#define THOST_FTDC_OTC_MT_DV01 '1' +///面值 +#define THOST_FTDC_OTC_MT_ParValue '2' + +typedef char TThostFtdcMatchTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTCTraderIDType是一个OTC交易员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTCTraderIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskValueType是一个期货风险值类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcRiskValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIDBNameType是一个握手数据内容类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIDBNameType[100]; + #endif diff --git a/v6.3.6_20160606_tradeapi64_windows/ThostFtdcUserApiStruct.h b/v6.3.15_20190220_tradeapi_se_windows/ThostFtdcUserApiStruct.h similarity index 60% rename from v6.3.6_20160606_tradeapi64_windows/ThostFtdcUserApiStruct.h rename to v6.3.15_20190220_tradeapi_se_windows/ThostFtdcUserApiStruct.h index dcea8d6..74d5a99 100644 --- a/v6.3.6_20160606_tradeapi64_windows/ThostFtdcUserApiStruct.h +++ b/v6.3.15_20190220_tradeapi_se_windows/ThostFtdcUserApiStruct.h @@ -1,10 +1,10 @@ -///////////////////////////////////////////////////////////////////////// -///@system 新一代交易所系统 -///@company 上海期货信息技术有限公司 +///////////////////////////////////////////////////////////////////////// +///@system һϵͳ +///@company ϺڻϢ޹˾ ///@file ThostFtdcUserApiStruct.h -///@brief 定义了客户端接口使用的业务数据结构 +///@brief ˿ͻ˽ӿʹõҵݽṹ ///@history -///20060106 赵鸿昊 创建该文件 +///20060106 Ժ ļ ///////////////////////////////////////////////////////////////////////// #if !defined(THOST_FTDCSTRUCT_H) @@ -16,8408 +16,9477 @@ #include "ThostFtdcUserApiDataType.h" -///信息分发 +///Ϣַ struct CThostFtdcDisseminationField { - ///序列系列号 + ///ϵк TThostFtdcSequenceSeriesType SequenceSeries; - ///序列号 + ///к TThostFtdcSequenceNoType SequenceNo; }; -///用户登录请求 +///û¼ struct CThostFtdcReqUserLoginField { - ///交易日 + /// TThostFtdcDateType TradingDay; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///密码 + /// TThostFtdcPasswordType Password; - ///用户端产品信息 + ///û˲ƷϢ TThostFtdcProductInfoType UserProductInfo; - ///接口端产品信息 + ///ӿڶ˲ƷϢ TThostFtdcProductInfoType InterfaceProductInfo; - ///协议信息 + ///ЭϢ TThostFtdcProtocolInfoType ProtocolInfo; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; - ///动态密码 + ///̬ TThostFtdcPasswordType OneTimePassword; - ///终端IP地址 + ///նIPַ TThostFtdcIPAddressType ClientIPAddress; - ///登录备注 + ///¼ע TThostFtdcLoginRemarkType LoginRemark; + ///նIP˿ + TThostFtdcIPPortType ClientIPPort; }; -///用户登录应答 +///û¼Ӧ struct CThostFtdcRspUserLoginField { - ///交易日 + /// TThostFtdcDateType TradingDay; - ///登录成功时间 + ///¼ɹʱ TThostFtdcTimeType LoginTime; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///交易系统名称 + ///ϵͳ TThostFtdcSystemNameType SystemName; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///最大报单引用 + ///󱨵 TThostFtdcOrderRefType MaxOrderRef; - ///上期所时间 + ///ʱ TThostFtdcTimeType SHFETime; - ///大商所时间 + ///ʱ TThostFtdcTimeType DCETime; - ///郑商所时间 + ///֣ʱ TThostFtdcTimeType CZCETime; - ///中金所时间 + ///нʱ TThostFtdcTimeType FFEXTime; - ///能源中心时间 + ///Դʱ TThostFtdcTimeType INETime; }; -///用户登出请求 +///ûdz struct CThostFtdcUserLogoutField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; }; -///强制交易员退出 +///ǿƽԱ˳ struct CThostFtdcForceUserLogoutField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; }; -///客户端认证请求 +///ͻ֤ struct CThostFtdcReqAuthenticateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///用户端产品信息 + ///û˲ƷϢ TThostFtdcProductInfoType UserProductInfo; - ///认证码 + ///֤ TThostFtdcAuthCodeType AuthCode; + ///App + TThostFtdcAppIDType AppID; }; -///客户端认证响应 +///ͻ֤Ӧ struct CThostFtdcRspAuthenticateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///用户端产品信息 + ///û˲ƷϢ TThostFtdcProductInfoType UserProductInfo; + ///App + TThostFtdcAppIDType AppID; + ///App + TThostFtdcAppTypeType AppType; }; -///客户端认证信息 +///ͻ֤Ϣ struct CThostFtdcAuthenticationInfoField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///用户端产品信息 + ///û˲ƷϢ TThostFtdcProductInfoType UserProductInfo; - ///认证信息 + ///֤Ϣ TThostFtdcAuthInfoType AuthInfo; - ///是否为认证结果 + ///ǷΪ֤ TThostFtdcBoolType IsResult; + ///App + TThostFtdcAppIDType AppID; + ///App + TThostFtdcAppTypeType AppType; +}; + +///û¼Ӧ2 +struct CThostFtdcRspUserLogin2Field +{ + /// + TThostFtdcDateType TradingDay; + ///¼ɹʱ + TThostFtdcTimeType LoginTime; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///ϵͳ + TThostFtdcSystemNameType SystemName; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///󱨵 + TThostFtdcOrderRefType MaxOrderRef; + ///ʱ + TThostFtdcTimeType SHFETime; + ///ʱ + TThostFtdcTimeType DCETime; + ///֣ʱ + TThostFtdcTimeType CZCETime; + ///нʱ + TThostFtdcTimeType FFEXTime; + ///Դʱ + TThostFtdcTimeType INETime; + /// + TThostFtdcRandomStringType RandomString; }; -///银期转帐报文头 +///תʱͷ struct CThostFtdcTransferHeaderField { - ///版本号,常量,1.0 + ///汾ţ1.0 TThostFtdcVersionType Version; - ///交易代码,必填 + ///״룬 TThostFtdcTradeCodeType TradeCode; - ///交易日期,必填,格式:yyyymmdd + ///ڣʽyyyymmdd TThostFtdcTradeDateType TradeDate; - ///交易时间,必填,格式:hhmmss + ///ʱ䣬ʽhhmmss TThostFtdcTradeTimeType TradeTime; - ///发起方流水号,N/A + ///ˮţN/A TThostFtdcTradeSerialType TradeSerial; - ///期货公司代码,必填 + ///ڻ˾룬 TThostFtdcFutureIDType FutureID; - ///银行代码,根据查询银行得到,必填 + ///д룬ݲѯеõ TThostFtdcBankIDType BankID; - ///银行分中心代码,根据查询银行得到,必填 + ///зĴ룬ݲѯеõ TThostFtdcBankBrchIDType BankBrchID; - ///操作员,N/A + ///ԱN/A TThostFtdcOperNoType OperNo; - ///交易设备类型,N/A + ///豸ͣN/A TThostFtdcDeviceIDType DeviceID; - ///记录数,N/A + ///¼N/A TThostFtdcRecordNumType RecordNum; - ///会话编号,N/A + ///ỰţN/A TThostFtdcSessionIDType SessionID; - ///请求编号,N/A + ///ţN/A TThostFtdcRequestIDType RequestID; }; -///银行资金转期货请求,TradeCode=202001 +///ʽתڻTradeCode=202001 struct CThostFtdcTransferBankToFutureReqField { - ///期货资金账户 + ///ڻʽ˻ TThostFtdcAccountIDType FutureAccount; - ///密码标志 + ///־ TThostFtdcFuturePwdFlagType FuturePwdFlag; - ///密码 + /// TThostFtdcFutureAccPwdType FutureAccPwd; - ///转账金额 + ///ת˽ TThostFtdcMoneyType TradeAmt; - ///客户手续费 + ///ͻ TThostFtdcMoneyType CustFee; - ///币种:RMB-人民币 USD-美圆 HKD-港元 + ///֣RMB- USD-Բ HKD-Ԫ TThostFtdcCurrencyCodeType CurrencyCode; }; -///银行资金转期货请求响应 +///ʽתڻӦ struct CThostFtdcTransferBankToFutureRspField { - ///响应代码 + ///Ӧ TThostFtdcRetCodeType RetCode; - ///响应信息 + ///ӦϢ TThostFtdcRetInfoType RetInfo; - ///资金账户 + ///ʽ˻ TThostFtdcAccountIDType FutureAccount; - ///转帐金额 + ///תʽ TThostFtdcMoneyType TradeAmt; - ///应收客户手续费 + ///Ӧտͻ TThostFtdcMoneyType CustFee; - ///币种 + /// TThostFtdcCurrencyCodeType CurrencyCode; }; -///期货资金转银行请求,TradeCode=202002 +///ڻʽתTradeCode=202002 struct CThostFtdcTransferFutureToBankReqField { - ///期货资金账户 + ///ڻʽ˻ TThostFtdcAccountIDType FutureAccount; - ///密码标志 + ///־ TThostFtdcFuturePwdFlagType FuturePwdFlag; - ///密码 + /// TThostFtdcFutureAccPwdType FutureAccPwd; - ///转账金额 + ///ת˽ TThostFtdcMoneyType TradeAmt; - ///客户手续费 + ///ͻ TThostFtdcMoneyType CustFee; - ///币种:RMB-人民币 USD-美圆 HKD-港元 + ///֣RMB- USD-Բ HKD-Ԫ TThostFtdcCurrencyCodeType CurrencyCode; }; -///期货资金转银行请求响应 +///ڻʽתӦ struct CThostFtdcTransferFutureToBankRspField { - ///响应代码 + ///Ӧ TThostFtdcRetCodeType RetCode; - ///响应信息 + ///ӦϢ TThostFtdcRetInfoType RetInfo; - ///资金账户 + ///ʽ˻ TThostFtdcAccountIDType FutureAccount; - ///转帐金额 + ///תʽ TThostFtdcMoneyType TradeAmt; - ///应收客户手续费 + ///Ӧտͻ TThostFtdcMoneyType CustFee; - ///币种 + /// TThostFtdcCurrencyCodeType CurrencyCode; }; -///查询银行资金请求,TradeCode=204002 +///ѯʽTradeCode=204002 struct CThostFtdcTransferQryBankReqField { - ///期货资金账户 + ///ڻʽ˻ TThostFtdcAccountIDType FutureAccount; - ///密码标志 + ///־ TThostFtdcFuturePwdFlagType FuturePwdFlag; - ///密码 + /// TThostFtdcFutureAccPwdType FutureAccPwd; - ///币种:RMB-人民币 USD-美圆 HKD-港元 + ///֣RMB- USD-Բ HKD-Ԫ TThostFtdcCurrencyCodeType CurrencyCode; }; -///查询银行资金请求响应 +///ѯʽӦ struct CThostFtdcTransferQryBankRspField { - ///响应代码 + ///Ӧ TThostFtdcRetCodeType RetCode; - ///响应信息 + ///ӦϢ TThostFtdcRetInfoType RetInfo; - ///资金账户 + ///ʽ˻ TThostFtdcAccountIDType FutureAccount; - ///银行余额 + /// TThostFtdcMoneyType TradeAmt; - ///银行可用余额 + ///п TThostFtdcMoneyType UseAmt; - ///银行可取余额 + ///пȡ TThostFtdcMoneyType FetchAmt; - ///币种 + /// TThostFtdcCurrencyCodeType CurrencyCode; }; -///查询银行交易明细请求,TradeCode=204999 +///ѯнϸTradeCode=204999 struct CThostFtdcTransferQryDetailReqField { - ///期货资金账户 + ///ڻʽ˻ TThostFtdcAccountIDType FutureAccount; }; -///查询银行交易明细请求响应 +///ѯнϸӦ struct CThostFtdcTransferQryDetailRspField { - ///交易日期 + /// TThostFtdcDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///交易代码 + ///״ TThostFtdcTradeCodeType TradeCode; - ///期货流水号 + ///ڻˮ TThostFtdcTradeSerialNoType FutureSerial; - ///期货公司代码 + ///ڻ˾ TThostFtdcFutureIDType FutureID; - ///资金帐号 + ///ʽʺ TThostFtdcFutureAccountType FutureAccount; - ///银行流水号 + ///ˮ TThostFtdcTradeSerialNoType BankSerial; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分中心代码 + ///зĴ TThostFtdcBankBrchIDType BankBrchID; - ///银行账号 + ///˺ TThostFtdcBankAccountType BankAccount; - ///证件号码 + ///֤ TThostFtdcCertCodeType CertCode; - ///货币代码 + ///Ҵ TThostFtdcCurrencyCodeType CurrencyCode; - ///发生金额 + /// TThostFtdcMoneyType TxAmount; - ///有效标志 + ///Ч־ TThostFtdcTransferValidFlagType Flag; }; -///响应信息 +///ӦϢ struct CThostFtdcRspInfoField { - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; -///交易所 +/// struct CThostFtdcExchangeField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易所名称 + /// TThostFtdcExchangeNameType ExchangeName; - ///交易所属性 + /// TThostFtdcExchangePropertyType ExchangeProperty; }; -///产品 +///Ʒ struct CThostFtdcProductField { - ///产品代码 + ///Ʒ TThostFtdcInstrumentIDType ProductID; - ///产品名称 + ///Ʒ TThostFtdcProductNameType ProductName; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///产品类型 + ///Ʒ TThostFtdcProductClassType ProductClass; - ///合约数量乘数 + ///Լ TThostFtdcVolumeMultipleType VolumeMultiple; - ///最小变动价位 + ///С䶯λ TThostFtdcPriceType PriceTick; - ///市价单最大下单量 + ///м۵µ TThostFtdcVolumeType MaxMarketOrderVolume; - ///市价单最小下单量 + ///м۵Сµ TThostFtdcVolumeType MinMarketOrderVolume; - ///限价单最大下单量 + ///޼۵µ TThostFtdcVolumeType MaxLimitOrderVolume; - ///限价单最小下单量 + ///޼۵Сµ TThostFtdcVolumeType MinLimitOrderVolume; - ///持仓类型 + ///ֲ TThostFtdcPositionTypeType PositionType; - ///持仓日期类型 + ///ֲ TThostFtdcPositionDateTypeType PositionDateType; - ///平仓处理类型 + ///ƽִ TThostFtdcCloseDealTypeType CloseDealType; - ///交易币种类型 + ///ױ TThostFtdcCurrencyIDType TradeCurrencyID; - ///质押资金可用范围 + ///Ѻʽ÷Χ TThostFtdcMortgageFundUseRangeType MortgageFundUseRange; - ///交易所产品代码 + ///Ʒ TThostFtdcInstrumentIDType ExchangeProductID; - ///合约基础商品乘数 + ///ԼƷ TThostFtdcUnderlyingMultipleType UnderlyingMultiple; }; -///合约 +///Լ struct CThostFtdcInstrumentField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///合约名称 + ///Լ TThostFtdcInstrumentNameType InstrumentName; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///产品代码 + ///Ʒ TThostFtdcInstrumentIDType ProductID; - ///产品类型 + ///Ʒ TThostFtdcProductClassType ProductClass; - ///交割年份 + /// TThostFtdcYearType DeliveryYear; - ///交割月 + /// TThostFtdcMonthType DeliveryMonth; - ///市价单最大下单量 + ///м۵µ TThostFtdcVolumeType MaxMarketOrderVolume; - ///市价单最小下单量 + ///м۵Сµ TThostFtdcVolumeType MinMarketOrderVolume; - ///限价单最大下单量 + ///޼۵µ TThostFtdcVolumeType MaxLimitOrderVolume; - ///限价单最小下单量 + ///޼۵Сµ TThostFtdcVolumeType MinLimitOrderVolume; - ///合约数量乘数 + ///Լ TThostFtdcVolumeMultipleType VolumeMultiple; - ///最小变动价位 + ///С䶯λ TThostFtdcPriceType PriceTick; - ///创建日 + /// TThostFtdcDateType CreateDate; - ///上市日 + /// TThostFtdcDateType OpenDate; - ///到期日 + /// TThostFtdcDateType ExpireDate; - ///开始交割日 + ///ʼ TThostFtdcDateType StartDelivDate; - ///结束交割日 + /// TThostFtdcDateType EndDelivDate; - ///合约生命周期状态 + ///Լ״̬ TThostFtdcInstLifePhaseType InstLifePhase; - ///当前是否交易 + ///ǰǷ TThostFtdcBoolType IsTrading; - ///持仓类型 + ///ֲ TThostFtdcPositionTypeType PositionType; - ///持仓日期类型 + ///ֲ TThostFtdcPositionDateTypeType PositionDateType; - ///多头保证金率 + ///ͷ֤ TThostFtdcRatioType LongMarginRatio; - ///空头保证金率 + ///ͷ֤ TThostFtdcRatioType ShortMarginRatio; - ///是否使用大额单边保证金算法 + ///Ƿʹô֤߱㷨 TThostFtdcMaxMarginSideAlgorithmType MaxMarginSideAlgorithm; - ///基础商品代码 + ///Ʒ TThostFtdcInstrumentIDType UnderlyingInstrID; - ///执行价 + ///ִм TThostFtdcPriceType StrikePrice; - ///期权类型 + ///Ȩ TThostFtdcOptionsTypeType OptionsType; - ///合约基础商品乘数 + ///ԼƷ TThostFtdcUnderlyingMultipleType UnderlyingMultiple; - ///组合类型 + /// TThostFtdcCombinationTypeType CombinationType; }; -///经纪公司 +///͹˾ struct CThostFtdcBrokerField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///经纪公司简称 + ///͹˾ TThostFtdcBrokerAbbrType BrokerAbbr; - ///经纪公司名称 + ///͹˾ TThostFtdcBrokerNameType BrokerName; - ///是否活跃 + ///ǷԾ TThostFtdcBoolType IsActive; }; -///交易所交易员 +///Ա struct CThostFtdcTraderField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///密码 + /// TThostFtdcPasswordType Password; - ///安装数量 + ///װ TThostFtdcInstallCountType InstallCount; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; }; -///投资者 +///Ͷ struct CThostFtdcInvestorField { - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者分组代码 + ///Ͷ߷ TThostFtdcInvestorIDType InvestorGroupID; - ///投资者名称 + ///Ͷ TThostFtdcPartyNameType InvestorName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdentifiedCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///是否活跃 + ///ǷԾ TThostFtdcBoolType IsActive; - ///联系电话 + ///ϵ绰 TThostFtdcTelephoneType Telephone; - ///通讯地址 + ///ͨѶַ TThostFtdcAddressType Address; - ///开户日期 + /// TThostFtdcDateType OpenDate; - ///手机 + ///ֻ TThostFtdcMobileType Mobile; - ///手续费率模板代码 + ///ģ TThostFtdcInvestorIDType CommModelID; - ///保证金率模板代码 + ///֤ģ TThostFtdcInvestorIDType MarginModelID; }; -///交易编码 +///ױ struct CThostFtdcTradingCodeField { - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///是否活跃 + ///ǷԾ TThostFtdcBoolType IsActive; - ///交易编码类型 + ///ױ TThostFtdcClientIDTypeType ClientIDType; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ҵ + TThostFtdcBizTypeType BizType; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///会员编码和经纪公司编码对照表 +///Ա;͹˾ձ struct CThostFtdcPartBrokerField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///是否活跃 + ///ǷԾ TThostFtdcBoolType IsActive; }; -///管理用户 +///û struct CThostFtdcSuperUserField { - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///用户名称 + ///û TThostFtdcUserNameType UserName; - ///密码 + /// TThostFtdcPasswordType Password; - ///是否活跃 + ///ǷԾ TThostFtdcBoolType IsActive; }; -///管理用户功能权限 +///ûȨ struct CThostFtdcSuperUserFunctionField { - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///功能代码 + ///ܴ TThostFtdcFunctionCodeType FunctionCode; }; -///投资者组 +///Ͷ struct CThostFtdcInvestorGroupField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者分组代码 + ///Ͷ߷ TThostFtdcInvestorIDType InvestorGroupID; - ///投资者分组名称 + ///Ͷ߷ TThostFtdcInvestorGroupNameType InvestorGroupName; }; -///资金账户 +///ʽ˻ struct CThostFtdcTradingAccountField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///上次质押金额 + ///ϴѺ TThostFtdcMoneyType PreMortgage; - ///上次信用额度 + ///ϴö TThostFtdcMoneyType PreCredit; - ///上次存款额 + ///ϴδ TThostFtdcMoneyType PreDeposit; - ///上次结算准备金 + ///ϴν׼ TThostFtdcMoneyType PreBalance; - ///上次占用的保证金 + ///ϴռõı֤ TThostFtdcMoneyType PreMargin; - ///利息基数 + ///Ϣ TThostFtdcMoneyType InterestBase; - ///利息收入 + ///Ϣ TThostFtdcMoneyType Interest; - ///入金金额 + /// TThostFtdcMoneyType Deposit; - ///出金金额 + /// TThostFtdcMoneyType Withdraw; - ///冻结的保证金 + ///ı֤ TThostFtdcMoneyType FrozenMargin; - ///冻结的资金 + ///ʽ TThostFtdcMoneyType FrozenCash; - ///冻结的手续费 + /// TThostFtdcMoneyType FrozenCommission; - ///当前保证金总额 + ///ǰ֤ܶ TThostFtdcMoneyType CurrMargin; - ///资金差额 + ///ʽ TThostFtdcMoneyType CashIn; - ///手续费 + /// TThostFtdcMoneyType Commission; - ///平仓盈亏 + ///ƽӯ TThostFtdcMoneyType CloseProfit; - ///持仓盈亏 + ///ֲӯ TThostFtdcMoneyType PositionProfit; - ///期货结算准备金 + ///ڻ׼ TThostFtdcMoneyType Balance; - ///可用资金 + ///ʽ TThostFtdcMoneyType Available; - ///可取资金 + ///ȡʽ TThostFtdcMoneyType WithdrawQuota; - ///基本准备金 + ///׼ TThostFtdcMoneyType Reserve; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///信用额度 + ///ö TThostFtdcMoneyType Credit; - ///质押金额 + ///Ѻ TThostFtdcMoneyType Mortgage; - ///交易所保证金 + ///֤ TThostFtdcMoneyType ExchangeMargin; - ///投资者交割保证金 + ///Ͷ߽֤ TThostFtdcMoneyType DeliveryMargin; - ///交易所交割保证金 + ///֤ TThostFtdcMoneyType ExchangeDeliveryMargin; - ///保底期货结算准备金 + ///ڻ׼ TThostFtdcMoneyType ReserveBalance; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///上次货币质入金额 + ///ϴλ TThostFtdcMoneyType PreFundMortgageIn; - ///上次货币质出金额 + ///ϴλʳ TThostFtdcMoneyType PreFundMortgageOut; - ///货币质入金额 + /// TThostFtdcMoneyType FundMortgageIn; - ///货币质出金额 + ///ʳ TThostFtdcMoneyType FundMortgageOut; - ///货币质押余额 + ///Ѻ TThostFtdcMoneyType FundMortgageAvailable; - ///可质押货币金额 + ///Ѻҽ TThostFtdcMoneyType MortgageableFund; - ///特殊产品占用保证金 + ///Ʒռñ֤ TThostFtdcMoneyType SpecProductMargin; - ///特殊产品冻结保证金 + ///Ʒᱣ֤ TThostFtdcMoneyType SpecProductFrozenMargin; - ///特殊产品手续费 + ///Ʒ TThostFtdcMoneyType SpecProductCommission; - ///特殊产品冻结手续费 + ///Ʒ TThostFtdcMoneyType SpecProductFrozenCommission; - ///特殊产品持仓盈亏 + ///Ʒֲӯ TThostFtdcMoneyType SpecProductPositionProfit; - ///特殊产品平仓盈亏 + ///Ʒƽӯ TThostFtdcMoneyType SpecProductCloseProfit; - ///根据持仓盈亏算法计算的特殊产品持仓盈亏 + ///ݳֲӯ㷨Ʒֲӯ TThostFtdcMoneyType SpecProductPositionProfitByAlg; - ///特殊产品交易所保证金 + ///Ʒ֤ TThostFtdcMoneyType SpecProductExchangeMargin; + ///ҵ + TThostFtdcBizTypeType BizType; + ///ʱ㶳 + TThostFtdcMoneyType FrozenSwap; + ///ʣ໻ + TThostFtdcMoneyType RemainSwap; }; -///投资者持仓 +///Ͷֲ߳ struct CThostFtdcInvestorPositionField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///持仓多空方向 + ///ֲֶշ TThostFtdcPosiDirectionType PosiDirection; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///持仓日期 + ///ֲ TThostFtdcPositionDateType PositionDate; - ///上日持仓 + ///ճֲ TThostFtdcVolumeType YdPosition; - ///今日持仓 + ///ճֲ TThostFtdcVolumeType Position; - ///多头冻结 + ///ͷ TThostFtdcVolumeType LongFrozen; - ///空头冻结 + ///ͷ TThostFtdcVolumeType ShortFrozen; - ///开仓冻结金额 + ///ֶ TThostFtdcMoneyType LongFrozenAmount; - ///开仓冻结金额 + ///ֶ TThostFtdcMoneyType ShortFrozenAmount; - ///开仓量 + /// TThostFtdcVolumeType OpenVolume; - ///平仓量 + ///ƽ TThostFtdcVolumeType CloseVolume; - ///开仓金额 + ///ֽ TThostFtdcMoneyType OpenAmount; - ///平仓金额 + ///ƽֽ TThostFtdcMoneyType CloseAmount; - ///持仓成本 + ///ֲֳɱ TThostFtdcMoneyType PositionCost; - ///上次占用的保证金 + ///ϴռõı֤ TThostFtdcMoneyType PreMargin; - ///占用的保证金 + ///ռõı֤ TThostFtdcMoneyType UseMargin; - ///冻结的保证金 + ///ı֤ TThostFtdcMoneyType FrozenMargin; - ///冻结的资金 + ///ʽ TThostFtdcMoneyType FrozenCash; - ///冻结的手续费 + /// TThostFtdcMoneyType FrozenCommission; - ///资金差额 + ///ʽ TThostFtdcMoneyType CashIn; - ///手续费 + /// TThostFtdcMoneyType Commission; - ///平仓盈亏 + ///ƽӯ TThostFtdcMoneyType CloseProfit; - ///持仓盈亏 + ///ֲӯ TThostFtdcMoneyType PositionProfit; - ///上次结算价 + ///ϴν TThostFtdcPriceType PreSettlementPrice; - ///本次结算价 + ///ν TThostFtdcPriceType SettlementPrice; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///开仓成本 + ///ֳɱ TThostFtdcMoneyType OpenCost; - ///交易所保证金 + ///֤ TThostFtdcMoneyType ExchangeMargin; - ///组合成交形成的持仓 + ///ϳɽγɵijֲ TThostFtdcVolumeType CombPosition; - ///组合多头冻结 + ///϶ͷ TThostFtdcVolumeType CombLongFrozen; - ///组合空头冻结 + ///Ͽͷ TThostFtdcVolumeType CombShortFrozen; - ///逐日盯市平仓盈亏 + ///նƽӯ TThostFtdcMoneyType CloseProfitByDate; - ///逐笔对冲平仓盈亏 + ///ʶԳƽӯ TThostFtdcMoneyType CloseProfitByTrade; - ///今日持仓 + ///ճֲ TThostFtdcVolumeType TodayPosition; - ///保证金率 + ///֤ TThostFtdcRatioType MarginRateByMoney; - ///保证金率(按手数) + ///֤() TThostFtdcRatioType MarginRateByVolume; - ///执行冻结 + ///ִж TThostFtdcVolumeType StrikeFrozen; - ///执行冻结金额 + ///ִж TThostFtdcMoneyType StrikeFrozenAmount; - ///放弃执行冻结 + ///ִж TThostFtdcVolumeType AbandonFrozen; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ִж + TThostFtdcVolumeType YdStrikeFrozen; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ֲֳɱֵֻдʹ + TThostFtdcMoneyType PositionCostOffset; }; -///合约保证金率 +///Լ֤ struct CThostFtdcInstrumentMarginRateField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///多头保证金率 + ///ͷ֤ TThostFtdcRatioType LongMarginRatioByMoney; - ///多头保证金费 + ///ͷ֤ TThostFtdcMoneyType LongMarginRatioByVolume; - ///空头保证金率 + ///ͷ֤ TThostFtdcRatioType ShortMarginRatioByMoney; - ///空头保证金费 + ///ͷ֤ TThostFtdcMoneyType ShortMarginRatioByVolume; - ///是否相对交易所收取 + ///ǷԽȡ TThostFtdcBoolType IsRelative; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///合约手续费率 +///Լ struct CThostFtdcInstrumentCommissionRateField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///开仓手续费率 + /// TThostFtdcRatioType OpenRatioByMoney; - ///开仓手续费 + /// TThostFtdcRatioType OpenRatioByVolume; - ///平仓手续费率 + ///ƽ TThostFtdcRatioType CloseRatioByMoney; - ///平仓手续费 + ///ƽ TThostFtdcRatioType CloseRatioByVolume; - ///平今手续费率 + ///ƽ TThostFtdcRatioType CloseTodayRatioByMoney; - ///平今手续费 + ///ƽ TThostFtdcRatioType CloseTodayRatioByVolume; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ҵ + TThostFtdcBizTypeType BizType; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///深度行情 +/// struct CThostFtdcDepthMarketDataField { - ///交易日 + /// TThostFtdcDateType TradingDay; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///最新价 + ///¼ TThostFtdcPriceType LastPrice; - ///上次结算价 + ///ϴν TThostFtdcPriceType PreSettlementPrice; - ///昨收盘 + /// TThostFtdcPriceType PreClosePrice; - ///昨持仓量 + ///ֲ TThostFtdcLargeVolumeType PreOpenInterest; - ///今开盘 + /// TThostFtdcPriceType OpenPrice; - ///最高价 + ///߼ TThostFtdcPriceType HighestPrice; - ///最低价 + ///ͼ TThostFtdcPriceType LowestPrice; - ///数量 + /// TThostFtdcVolumeType Volume; - ///成交金额 + ///ɽ TThostFtdcMoneyType Turnover; - ///持仓量 + ///ֲ TThostFtdcLargeVolumeType OpenInterest; - ///今收盘 + /// TThostFtdcPriceType ClosePrice; - ///本次结算价 + ///ν TThostFtdcPriceType SettlementPrice; - ///涨停板价 + ///ͣ TThostFtdcPriceType UpperLimitPrice; - ///跌停板价 + ///ͣ TThostFtdcPriceType LowerLimitPrice; - ///昨虚实度 + ///ʵ TThostFtdcRatioType PreDelta; - ///今虚实度 + ///ʵ TThostFtdcRatioType CurrDelta; - ///最后修改时间 + ///޸ʱ TThostFtdcTimeType UpdateTime; - ///最后修改毫秒 + ///޸ĺ TThostFtdcMillisecType UpdateMillisec; - ///申买价一 + ///һ TThostFtdcPriceType BidPrice1; - ///申买量一 + ///һ TThostFtdcVolumeType BidVolume1; - ///申卖价一 + ///һ TThostFtdcPriceType AskPrice1; - ///申卖量一 + ///һ TThostFtdcVolumeType AskVolume1; - ///申买价二 + ///۶ TThostFtdcPriceType BidPrice2; - ///申买量二 + /// TThostFtdcVolumeType BidVolume2; - ///申卖价二 + ///۶ TThostFtdcPriceType AskPrice2; - ///申卖量二 + /// TThostFtdcVolumeType AskVolume2; - ///申买价三 + /// TThostFtdcPriceType BidPrice3; - ///申买量三 + /// TThostFtdcVolumeType BidVolume3; - ///申卖价三 + /// TThostFtdcPriceType AskPrice3; - ///申卖量三 + /// TThostFtdcVolumeType AskVolume3; - ///申买价四 + /// TThostFtdcPriceType BidPrice4; - ///申买量四 + /// TThostFtdcVolumeType BidVolume4; - ///申卖价四 + /// TThostFtdcPriceType AskPrice4; - ///申卖量四 + /// TThostFtdcVolumeType AskVolume4; - ///申买价五 + /// TThostFtdcPriceType BidPrice5; - ///申买量五 + /// TThostFtdcVolumeType BidVolume5; - ///申卖价五 + /// TThostFtdcPriceType AskPrice5; - ///申卖量五 + /// TThostFtdcVolumeType AskVolume5; - ///当日均价 + ///վ TThostFtdcPriceType AveragePrice; - ///业务日期 + ///ҵ TThostFtdcDateType ActionDay; }; -///投资者合约交易权限 +///ͶߺԼȨ struct CThostFtdcInstrumentTradingRightField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///交易权限 + ///Ȩ TThostFtdcTradingRightType TradingRight; }; -///经纪公司用户 +///͹˾û struct CThostFtdcBrokerUserField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///用户名称 + ///û TThostFtdcUserNameType UserName; - ///用户类型 + ///û TThostFtdcUserTypeType UserType; - ///是否活跃 + ///ǷԾ TThostFtdcBoolType IsActive; - ///是否使用令牌 + ///Ƿʹ TThostFtdcBoolType IsUsingOTP; + ///Ƿǿն֤ + TThostFtdcBoolType IsAuthForce; }; -///经纪公司用户口令 +///͹˾û struct CThostFtdcBrokerUserPasswordField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///密码 + /// TThostFtdcPasswordType Password; + ///ϴ޸ʱ + TThostFtdcDateTimeType LastUpdateTime; + ///ϴε½ʱ + TThostFtdcDateTimeType LastLoginTime; + ///ʱ + TThostFtdcDateType ExpireDate; + ///ʱ + TThostFtdcDateType WeakExpireDate; }; -///经纪公司用户功能权限 +///͹˾ûȨ struct CThostFtdcBrokerUserFunctionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///经纪公司功能代码 + ///͹˾ܴ TThostFtdcBrokerFunctionCodeType BrokerFunctionCode; }; -///交易所交易员报盘机 +///Ա̻ struct CThostFtdcTraderOfferField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///密码 + /// TThostFtdcPasswordType Password; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///本地报单编号 + ///ر TThostFtdcOrderLocalIDType OrderLocalID; - ///交易所交易员连接状态 + ///Ա״̬ TThostFtdcTraderConnectStatusType TraderConnectStatus; - ///发出连接请求的日期 + /// TThostFtdcDateType ConnectRequestDate; - ///发出连接请求的时间 + ///ʱ TThostFtdcTimeType ConnectRequestTime; - ///上次报告日期 + ///ϴα TThostFtdcDateType LastReportDate; - ///上次报告时间 + ///ϴαʱ TThostFtdcTimeType LastReportTime; - ///完成连接日期 + /// TThostFtdcDateType ConnectDate; - ///完成连接时间 + ///ʱ TThostFtdcTimeType ConnectTime; - ///启动日期 + /// TThostFtdcDateType StartDate; - ///启动时间 + ///ʱ TThostFtdcTimeType StartTime; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///本席位最大成交编号 + ///ϯλɽ TThostFtdcTradeIDType MaxTradeID; - ///本席位最大报单备拷 + ///ϯλ󱨵 TThostFtdcReturnCodeType MaxOrderMessageReference; }; -///投资者结算结果 +///Ͷ߽ struct CThostFtdcSettlementInfoField { - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///消息正文 + ///Ϣ TThostFtdcContentType Content; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; }; -///合约保证金率调整 +///Լ֤ʵ struct CThostFtdcInstrumentMarginRateAdjustField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///多头保证金率 + ///ͷ֤ TThostFtdcRatioType LongMarginRatioByMoney; - ///多头保证金费 + ///ͷ֤ TThostFtdcMoneyType LongMarginRatioByVolume; - ///空头保证金率 + ///ͷ֤ TThostFtdcRatioType ShortMarginRatioByMoney; - ///空头保证金费 + ///ͷ֤ TThostFtdcMoneyType ShortMarginRatioByVolume; - ///是否相对交易所收取 + ///ǷԽȡ TThostFtdcBoolType IsRelative; }; -///交易所保证金率 +///֤ struct CThostFtdcExchangeMarginRateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///多头保证金率 + ///ͷ֤ TThostFtdcRatioType LongMarginRatioByMoney; - ///多头保证金费 + ///ͷ֤ TThostFtdcMoneyType LongMarginRatioByVolume; - ///空头保证金率 + ///ͷ֤ TThostFtdcRatioType ShortMarginRatioByMoney; - ///空头保证金费 + ///ͷ֤ TThostFtdcMoneyType ShortMarginRatioByVolume; + /// + TThostFtdcExchangeIDType ExchangeID; }; -///交易所保证金率调整 +///֤ʵ struct CThostFtdcExchangeMarginRateAdjustField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///跟随交易所投资者多头保证金率 + ///潻Ͷ߶ͷ֤ TThostFtdcRatioType LongMarginRatioByMoney; - ///跟随交易所投资者多头保证金费 + ///潻Ͷ߶ͷ֤ TThostFtdcMoneyType LongMarginRatioByVolume; - ///跟随交易所投资者空头保证金率 + ///潻Ͷ߿ͷ֤ TThostFtdcRatioType ShortMarginRatioByMoney; - ///跟随交易所投资者空头保证金费 + ///潻Ͷ߿ͷ֤ TThostFtdcMoneyType ShortMarginRatioByVolume; - ///交易所多头保证金率 + ///ͷ֤ TThostFtdcRatioType ExchLongMarginRatioByMoney; - ///交易所多头保证金费 + ///ͷ֤ TThostFtdcMoneyType ExchLongMarginRatioByVolume; - ///交易所空头保证金率 + ///ͷ֤ TThostFtdcRatioType ExchShortMarginRatioByMoney; - ///交易所空头保证金费 + ///ͷ֤ TThostFtdcMoneyType ExchShortMarginRatioByVolume; - ///不跟随交易所投资者多头保证金率 + ///潻Ͷ߶ͷ֤ TThostFtdcRatioType NoLongMarginRatioByMoney; - ///不跟随交易所投资者多头保证金费 + ///潻Ͷ߶ͷ֤ TThostFtdcMoneyType NoLongMarginRatioByVolume; - ///不跟随交易所投资者空头保证金率 + ///潻Ͷ߿ͷ֤ TThostFtdcRatioType NoShortMarginRatioByMoney; - ///不跟随交易所投资者空头保证金费 + ///潻Ͷ߿ͷ֤ TThostFtdcMoneyType NoShortMarginRatioByVolume; }; -///汇率 +/// struct CThostFtdcExchangeRateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///源币种 + ///Դ TThostFtdcCurrencyIDType FromCurrencyID; - ///源币种单位数量 + ///Դֵλ TThostFtdcCurrencyUnitType FromCurrencyUnit; - ///目标币种 + ///Ŀ TThostFtdcCurrencyIDType ToCurrencyID; - ///汇率 + /// TThostFtdcExchangeRateType ExchangeRate; }; -///结算引用 +/// struct CThostFtdcSettlementRefField { - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; }; -///当前时间 +///ǰʱ struct CThostFtdcCurrentTimeField { - ///当前日期 + ///ǰ TThostFtdcDateType CurrDate; - ///当前时间 + ///ǰʱ TThostFtdcTimeType CurrTime; - ///当前时间(毫秒) + ///ǰʱ䣨룩 TThostFtdcMillisecType CurrMillisec; - ///业务日期 + ///ҵ TThostFtdcDateType ActionDay; }; -///通讯阶段 +///ͨѶ׶ struct CThostFtdcCommPhaseField { - ///交易日 + /// TThostFtdcDateType TradingDay; - ///通讯时段编号 + ///ͨѶʱα TThostFtdcCommPhaseNoType CommPhaseNo; - ///系统编号 + ///ϵͳ TThostFtdcSystemIDType SystemID; }; -///登录信息 +///¼Ϣ struct CThostFtdcLoginInfoField { - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///登录日期 + ///¼ TThostFtdcDateType LoginDate; - ///登录时间 + ///¼ʱ TThostFtdcTimeType LoginTime; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///用户端产品信息 + ///û˲ƷϢ TThostFtdcProductInfoType UserProductInfo; - ///接口端产品信息 + ///ӿڶ˲ƷϢ TThostFtdcProductInfoType InterfaceProductInfo; - ///协议信息 + ///ЭϢ TThostFtdcProtocolInfoType ProtocolInfo; - ///系统名称 + ///ϵͳ TThostFtdcSystemNameType SystemName; - ///密码 - TThostFtdcPasswordType Password; - ///最大报单引用 + ///, + TThostFtdcPasswordType PasswordDeprecated; + ///󱨵 TThostFtdcOrderRefType MaxOrderRef; - ///上期所时间 + ///ʱ TThostFtdcTimeType SHFETime; - ///大商所时间 + ///ʱ TThostFtdcTimeType DCETime; - ///郑商所时间 + ///֣ʱ TThostFtdcTimeType CZCETime; - ///中金所时间 + ///нʱ TThostFtdcTimeType FFEXTime; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; - ///动态密码 + ///̬ TThostFtdcPasswordType OneTimePassword; - ///能源中心时间 + ///Դʱ TThostFtdcTimeType INETime; - ///查询时是否需要流控 + ///ѯʱǷҪ TThostFtdcBoolType IsQryControl; - ///登录备注 + ///¼ע TThostFtdcLoginRemarkType LoginRemark; + /// + TThostFtdcPasswordType Password; }; -///登录信息 +///¼Ϣ struct CThostFtdcLogoutAllField { - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///系统名称 + ///ϵͳ TThostFtdcSystemNameType SystemName; }; -///前置状态 +///ǰ״̬ struct CThostFtdcFrontStatusField { - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///上次报告日期 + ///ϴα TThostFtdcDateType LastReportDate; - ///上次报告时间 + ///ϴαʱ TThostFtdcTimeType LastReportTime; - ///是否活跃 + ///ǷԾ TThostFtdcBoolType IsActive; }; -///用户口令变更 +///û struct CThostFtdcUserPasswordUpdateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///原来的口令 + ///ԭĿ TThostFtdcPasswordType OldPassword; - ///新的口令 + ///µĿ TThostFtdcPasswordType NewPassword; }; -///输入报单 +///뱨 struct CThostFtdcInputOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///报单引用 + /// TThostFtdcOrderRefType OrderRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///报单价格条件 + ///۸ TThostFtdcOrderPriceTypeType OrderPriceType; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///组合开平标志 + ///Ͽƽ־ TThostFtdcCombOffsetFlagType CombOffsetFlag; - ///组合投机套保标志 + ///Ͷױ־ TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///价格 + ///۸ TThostFtdcPriceType LimitPrice; - ///数量 + /// TThostFtdcVolumeType VolumeTotalOriginal; - ///有效期类型 + ///Ч TThostFtdcTimeConditionType TimeCondition; - ///GTD日期 + ///GTD TThostFtdcDateType GTDDate; - ///成交量类型 + ///ɽ TThostFtdcVolumeConditionType VolumeCondition; - ///最小成交量 + ///Сɽ TThostFtdcVolumeType MinVolume; - ///触发条件 + /// TThostFtdcContingentConditionType ContingentCondition; - ///止损价 + ///ֹ TThostFtdcPriceType StopPrice; - ///强平原因 + ///ǿƽԭ TThostFtdcForceCloseReasonType ForceCloseReason; - ///自动挂起标志 + ///Զ־ TThostFtdcBoolType IsAutoSuspend; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///用户强评标志 + ///ûǿ־ TThostFtdcBoolType UserForceClose; - ///互换单标志 + ///־ TThostFtdcBoolType IsSwapOrder; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 + ///ʽ˺ TThostFtdcAccountIDType AccountID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///交易编码 + ///ױ TThostFtdcClientIDType ClientID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///报单 +/// struct CThostFtdcOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///报单引用 + /// TThostFtdcOrderRefType OrderRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///报单价格条件 + ///۸ TThostFtdcOrderPriceTypeType OrderPriceType; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///组合开平标志 + ///Ͽƽ־ TThostFtdcCombOffsetFlagType CombOffsetFlag; - ///组合投机套保标志 + ///Ͷױ־ TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///价格 + ///۸ TThostFtdcPriceType LimitPrice; - ///数量 + /// TThostFtdcVolumeType VolumeTotalOriginal; - ///有效期类型 + ///Ч TThostFtdcTimeConditionType TimeCondition; - ///GTD日期 + ///GTD TThostFtdcDateType GTDDate; - ///成交量类型 + ///ɽ TThostFtdcVolumeConditionType VolumeCondition; - ///最小成交量 + ///Сɽ TThostFtdcVolumeType MinVolume; - ///触发条件 + /// TThostFtdcContingentConditionType ContingentCondition; - ///止损价 + ///ֹ TThostFtdcPriceType StopPrice; - ///强平原因 + ///ǿƽԭ TThostFtdcForceCloseReasonType ForceCloseReason; - ///自动挂起标志 + ///Զ־ TThostFtdcBoolType IsAutoSuspend; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///本地报单编号 + ///ر TThostFtdcOrderLocalIDType OrderLocalID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///报单提交状态 + ///ύ״̬ TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///报单提示序号 + ///ʾ TThostFtdcSequenceNoType NotifySequence; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///报单来源 + ///Դ TThostFtdcOrderSourceType OrderSource; - ///报单状态 + ///״̬ TThostFtdcOrderStatusType OrderStatus; - ///报单类型 + /// TThostFtdcOrderTypeType OrderType; - ///今成交数量 + ///ɽ TThostFtdcVolumeType VolumeTraded; - ///剩余数量 + ///ʣ TThostFtdcVolumeType VolumeTotal; - ///报单日期 + /// TThostFtdcDateType InsertDate; - ///委托时间 + ///ίʱ TThostFtdcTimeType InsertTime; - ///激活时间 + ///ʱ TThostFtdcTimeType ActiveTime; - ///挂起时间 + ///ʱ TThostFtdcTimeType SuspendTime; - ///最后修改时间 + ///޸ʱ TThostFtdcTimeType UpdateTime; - ///撤销时间 + ///ʱ TThostFtdcTimeType CancelTime; - ///最后修改交易所交易员代码 + ///޸ĽԱ TThostFtdcTraderIDType ActiveTraderID; - ///结算会员编号 + ///Ա TThostFtdcParticipantIDType ClearingPartID; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///用户端产品信息 + ///û˲ƷϢ TThostFtdcProductInfoType UserProductInfo; - ///状态信息 + ///״̬Ϣ TThostFtdcErrorMsgType StatusMsg; - ///用户强评标志 + ///ûǿ־ TThostFtdcBoolType UserForceClose; - ///操作用户代码 + ///û TThostFtdcUserIDType ActiveUserID; - ///经纪公司报单编号 + ///͹˾ TThostFtdcSequenceNoType BrokerOrderSeq; - ///相关报单 + ///ر TThostFtdcOrderSysIDType RelativeOrderSysID; - ///郑商所成交数量 + ///֣ɽ TThostFtdcVolumeType ZCETotalTradedVolume; - ///互换单标志 + ///־ TThostFtdcBoolType IsSwapOrder; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 + ///ʽ˺ TThostFtdcAccountIDType AccountID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///交易所报单 +/// struct CThostFtdcExchangeOrderField { - ///报单价格条件 + ///۸ TThostFtdcOrderPriceTypeType OrderPriceType; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///组合开平标志 + ///Ͽƽ־ TThostFtdcCombOffsetFlagType CombOffsetFlag; - ///组合投机套保标志 + ///Ͷױ־ TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///价格 + ///۸ TThostFtdcPriceType LimitPrice; - ///数量 + /// TThostFtdcVolumeType VolumeTotalOriginal; - ///有效期类型 + ///Ч TThostFtdcTimeConditionType TimeCondition; - ///GTD日期 + ///GTD TThostFtdcDateType GTDDate; - ///成交量类型 + ///ɽ TThostFtdcVolumeConditionType VolumeCondition; - ///最小成交量 + ///Сɽ TThostFtdcVolumeType MinVolume; - ///触发条件 + /// TThostFtdcContingentConditionType ContingentCondition; - ///止损价 + ///ֹ TThostFtdcPriceType StopPrice; - ///强平原因 + ///ǿƽԭ TThostFtdcForceCloseReasonType ForceCloseReason; - ///自动挂起标志 + ///Զ־ TThostFtdcBoolType IsAutoSuspend; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///本地报单编号 + ///ر TThostFtdcOrderLocalIDType OrderLocalID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///报单提交状态 + ///ύ״̬ TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///报单提示序号 + ///ʾ TThostFtdcSequenceNoType NotifySequence; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///报单来源 + ///Դ TThostFtdcOrderSourceType OrderSource; - ///报单状态 + ///״̬ TThostFtdcOrderStatusType OrderStatus; - ///报单类型 + /// TThostFtdcOrderTypeType OrderType; - ///今成交数量 + ///ɽ TThostFtdcVolumeType VolumeTraded; - ///剩余数量 + ///ʣ TThostFtdcVolumeType VolumeTotal; - ///报单日期 + /// TThostFtdcDateType InsertDate; - ///委托时间 + ///ίʱ TThostFtdcTimeType InsertTime; - ///激活时间 + ///ʱ TThostFtdcTimeType ActiveTime; - ///挂起时间 + ///ʱ TThostFtdcTimeType SuspendTime; - ///最后修改时间 + ///޸ʱ TThostFtdcTimeType UpdateTime; - ///撤销时间 + ///ʱ TThostFtdcTimeType CancelTime; - ///最后修改交易所交易员代码 + ///޸ĽԱ TThostFtdcTraderIDType ActiveTraderID; - ///结算会员编号 + ///Ա TThostFtdcParticipantIDType ClearingPartID; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///交易所报单插入失败 +///ʧ struct CThostFtdcExchangeOrderInsertErrorField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///本地报单编号 + ///ر TThostFtdcOrderLocalIDType OrderLocalID; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; -///输入报单操作 +///뱨 struct CThostFtdcInputOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///报单操作引用 + /// TThostFtdcOrderActionRefType OrderActionRef; - ///报单引用 + /// TThostFtdcOrderRefType OrderRef; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///操作标志 + ///־ TThostFtdcActionFlagType ActionFlag; - ///价格 + ///۸ TThostFtdcPriceType LimitPrice; - ///数量变化 + ///仯 TThostFtdcVolumeType VolumeChange; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///报单操作 +/// struct CThostFtdcOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///报单操作引用 + /// TThostFtdcOrderActionRefType OrderActionRef; - ///报单引用 + /// TThostFtdcOrderRefType OrderRef; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///操作标志 + ///־ TThostFtdcActionFlagType ActionFlag; - ///价格 + ///۸ TThostFtdcPriceType LimitPrice; - ///数量变化 + ///仯 TThostFtdcVolumeType VolumeChange; - ///操作日期 + /// TThostFtdcDateType ActionDate; - ///操作时间 + ///ʱ TThostFtdcTimeType ActionTime; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///本地报单编号 + ///ر TThostFtdcOrderLocalIDType OrderLocalID; - ///操作本地编号 + ///ر TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 + ///״̬ TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///状态信息 + ///״̬Ϣ TThostFtdcErrorMsgType StatusMsg; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///交易所报单操作 +/// struct CThostFtdcExchangeOrderActionField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///操作标志 + ///־ TThostFtdcActionFlagType ActionFlag; - ///价格 + ///۸ TThostFtdcPriceType LimitPrice; - ///数量变化 + ///仯 TThostFtdcVolumeType VolumeChange; - ///操作日期 + /// TThostFtdcDateType ActionDate; - ///操作时间 + ///ʱ TThostFtdcTimeType ActionTime; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///本地报单编号 + ///ر TThostFtdcOrderLocalIDType OrderLocalID; - ///操作本地编号 + ///ر TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 + ///״̬ TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///交易所报单操作失败 +///ʧ struct CThostFtdcExchangeOrderActionErrorField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///本地报单编号 + ///ر TThostFtdcOrderLocalIDType OrderLocalID; - ///操作本地编号 + ///ر TThostFtdcOrderLocalIDType ActionLocalID; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; -///交易所成交 +///ɽ struct CThostFtdcExchangeTradeField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///成交编号 + ///ɽ TThostFtdcTradeIDType TradeID; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///交易角色 + ///׽ɫ TThostFtdcTradingRoleType TradingRole; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///开平标志 + ///ƽ־ TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///价格 + ///۸ TThostFtdcPriceType Price; - ///数量 + /// TThostFtdcVolumeType Volume; - ///成交时期 + ///ɽʱ TThostFtdcDateType TradeDate; - ///成交时间 + ///ɽʱ TThostFtdcTimeType TradeTime; - ///成交类型 + ///ɽ TThostFtdcTradeTypeType TradeType; - ///成交价来源 + ///ɽԴ TThostFtdcPriceSourceType PriceSource; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///本地报单编号 + ///ر TThostFtdcOrderLocalIDType OrderLocalID; - ///结算会员编号 + ///Ա TThostFtdcParticipantIDType ClearingPartID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///成交来源 + ///ɽԴ TThostFtdcTradeSourceType TradeSource; }; -///成交 +///ɽ struct CThostFtdcTradeField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///报单引用 + /// TThostFtdcOrderRefType OrderRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///成交编号 + ///ɽ TThostFtdcTradeIDType TradeID; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///交易角色 + ///׽ɫ TThostFtdcTradingRoleType TradingRole; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///开平标志 + ///ƽ־ TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///价格 + ///۸ TThostFtdcPriceType Price; - ///数量 + /// TThostFtdcVolumeType Volume; - ///成交时期 + ///ɽʱ TThostFtdcDateType TradeDate; - ///成交时间 + ///ɽʱ TThostFtdcTimeType TradeTime; - ///成交类型 + ///ɽ TThostFtdcTradeTypeType TradeType; - ///成交价来源 + ///ɽԴ TThostFtdcPriceSourceType PriceSource; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///本地报单编号 + ///ر TThostFtdcOrderLocalIDType OrderLocalID; - ///结算会员编号 + ///Ա TThostFtdcParticipantIDType ClearingPartID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///经纪公司报单编号 + ///͹˾ TThostFtdcSequenceNoType BrokerOrderSeq; - ///成交来源 + ///ɽԴ TThostFtdcTradeSourceType TradeSource; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///用户会话 +///ûỰ struct CThostFtdcUserSessionField { - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///登录日期 + ///¼ TThostFtdcDateType LoginDate; - ///登录时间 + ///¼ʱ TThostFtdcTimeType LoginTime; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///用户端产品信息 + ///û˲ƷϢ TThostFtdcProductInfoType UserProductInfo; - ///接口端产品信息 + ///ӿڶ˲ƷϢ TThostFtdcProductInfoType InterfaceProductInfo; - ///协议信息 + ///ЭϢ TThostFtdcProtocolInfoType ProtocolInfo; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; - ///登录备注 + ///¼ע TThostFtdcLoginRemarkType LoginRemark; }; -///查询最大报单数量 +///ѯ󱨵 struct CThostFtdcQueryMaxOrderVolumeField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///开平标志 + ///ƽ־ TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///最大允许报单数量 + /// TThostFtdcVolumeType MaxVolume; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///投资者结算结果确认信息 +///Ͷ߽ȷϢ struct CThostFtdcSettlementInfoConfirmField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///确认日期 + ///ȷ TThostFtdcDateType ConfirmDate; - ///确认时间 + ///ȷʱ TThostFtdcTimeType ConfirmTime; + /// + TThostFtdcSettlementIDType SettlementID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; }; -///出入金同步 +///ͬ struct CThostFtdcSyncDepositField { - ///出入金流水号 + ///ˮ TThostFtdcDepositSeqNoType DepositSeqNo; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///入金金额 + /// TThostFtdcMoneyType Deposit; - ///是否强制进行 + ///Ƿǿƽ TThostFtdcBoolType IsForce; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; }; -///货币质押同步 +///Ѻͬ struct CThostFtdcSyncFundMortgageField { - ///货币质押流水号 + ///Ѻˮ TThostFtdcDepositSeqNoType MortgageSeqNo; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///源币种 + ///Դ TThostFtdcCurrencyIDType FromCurrencyID; - ///质押金额 + ///Ѻ TThostFtdcMoneyType MortgageAmount; - ///目标币种 + ///Ŀ TThostFtdcCurrencyIDType ToCurrencyID; }; -///经纪公司同步 +///͹˾ͬ struct CThostFtdcBrokerSyncField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; }; -///正在同步中的投资者 +///ͬеͶ struct CThostFtdcSyncingInvestorField { - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者分组代码 + ///Ͷ߷ TThostFtdcInvestorIDType InvestorGroupID; - ///投资者名称 + ///Ͷ TThostFtdcPartyNameType InvestorName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdentifiedCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///是否活跃 + ///ǷԾ TThostFtdcBoolType IsActive; - ///联系电话 + ///ϵ绰 TThostFtdcTelephoneType Telephone; - ///通讯地址 + ///ͨѶַ TThostFtdcAddressType Address; - ///开户日期 + /// TThostFtdcDateType OpenDate; - ///手机 + ///ֻ TThostFtdcMobileType Mobile; - ///手续费率模板代码 + ///ģ TThostFtdcInvestorIDType CommModelID; - ///保证金率模板代码 + ///֤ģ TThostFtdcInvestorIDType MarginModelID; }; -///正在同步中的交易代码 +///ͬеĽ״ struct CThostFtdcSyncingTradingCodeField { - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///是否活跃 + ///ǷԾ TThostFtdcBoolType IsActive; - ///交易编码类型 + ///ױ TThostFtdcClientIDTypeType ClientIDType; }; -///正在同步中的投资者分组 +///ͬеͶ߷ struct CThostFtdcSyncingInvestorGroupField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者分组代码 + ///Ͷ߷ TThostFtdcInvestorIDType InvestorGroupID; - ///投资者分组名称 + ///Ͷ߷ TThostFtdcInvestorGroupNameType InvestorGroupName; }; -///正在同步中的交易账号 +///ͬеĽ˺ struct CThostFtdcSyncingTradingAccountField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///上次质押金额 + ///ϴѺ TThostFtdcMoneyType PreMortgage; - ///上次信用额度 + ///ϴö TThostFtdcMoneyType PreCredit; - ///上次存款额 + ///ϴδ TThostFtdcMoneyType PreDeposit; - ///上次结算准备金 + ///ϴν׼ TThostFtdcMoneyType PreBalance; - ///上次占用的保证金 + ///ϴռõı֤ TThostFtdcMoneyType PreMargin; - ///利息基数 + ///Ϣ TThostFtdcMoneyType InterestBase; - ///利息收入 + ///Ϣ TThostFtdcMoneyType Interest; - ///入金金额 + /// TThostFtdcMoneyType Deposit; - ///出金金额 + /// TThostFtdcMoneyType Withdraw; - ///冻结的保证金 + ///ı֤ TThostFtdcMoneyType FrozenMargin; - ///冻结的资金 + ///ʽ TThostFtdcMoneyType FrozenCash; - ///冻结的手续费 + /// TThostFtdcMoneyType FrozenCommission; - ///当前保证金总额 + ///ǰ֤ܶ TThostFtdcMoneyType CurrMargin; - ///资金差额 + ///ʽ TThostFtdcMoneyType CashIn; - ///手续费 + /// TThostFtdcMoneyType Commission; - ///平仓盈亏 + ///ƽӯ TThostFtdcMoneyType CloseProfit; - ///持仓盈亏 + ///ֲӯ TThostFtdcMoneyType PositionProfit; - ///期货结算准备金 + ///ڻ׼ TThostFtdcMoneyType Balance; - ///可用资金 + ///ʽ TThostFtdcMoneyType Available; - ///可取资金 + ///ȡʽ TThostFtdcMoneyType WithdrawQuota; - ///基本准备金 + ///׼ TThostFtdcMoneyType Reserve; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///信用额度 + ///ö TThostFtdcMoneyType Credit; - ///质押金额 + ///Ѻ TThostFtdcMoneyType Mortgage; - ///交易所保证金 + ///֤ TThostFtdcMoneyType ExchangeMargin; - ///投资者交割保证金 + ///Ͷ߽֤ TThostFtdcMoneyType DeliveryMargin; - ///交易所交割保证金 + ///֤ TThostFtdcMoneyType ExchangeDeliveryMargin; - ///保底期货结算准备金 + ///ڻ׼ TThostFtdcMoneyType ReserveBalance; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///上次货币质入金额 + ///ϴλ TThostFtdcMoneyType PreFundMortgageIn; - ///上次货币质出金额 + ///ϴλʳ TThostFtdcMoneyType PreFundMortgageOut; - ///货币质入金额 + /// TThostFtdcMoneyType FundMortgageIn; - ///货币质出金额 + ///ʳ TThostFtdcMoneyType FundMortgageOut; - ///货币质押余额 + ///Ѻ TThostFtdcMoneyType FundMortgageAvailable; - ///可质押货币金额 + ///Ѻҽ TThostFtdcMoneyType MortgageableFund; - ///特殊产品占用保证金 + ///Ʒռñ֤ TThostFtdcMoneyType SpecProductMargin; - ///特殊产品冻结保证金 + ///Ʒᱣ֤ TThostFtdcMoneyType SpecProductFrozenMargin; - ///特殊产品手续费 + ///Ʒ TThostFtdcMoneyType SpecProductCommission; - ///特殊产品冻结手续费 + ///Ʒ TThostFtdcMoneyType SpecProductFrozenCommission; - ///特殊产品持仓盈亏 + ///Ʒֲӯ TThostFtdcMoneyType SpecProductPositionProfit; - ///特殊产品平仓盈亏 + ///Ʒƽӯ TThostFtdcMoneyType SpecProductCloseProfit; - ///根据持仓盈亏算法计算的特殊产品持仓盈亏 + ///ݳֲӯ㷨Ʒֲӯ TThostFtdcMoneyType SpecProductPositionProfitByAlg; - ///特殊产品交易所保证金 + ///Ʒ֤ TThostFtdcMoneyType SpecProductExchangeMargin; + ///ʱ㶳 + TThostFtdcMoneyType FrozenSwap; + ///ʣ໻ + TThostFtdcMoneyType RemainSwap; }; -///正在同步中的投资者持仓 +///ͬеͶֲ߳ struct CThostFtdcSyncingInvestorPositionField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///持仓多空方向 + ///ֲֶշ TThostFtdcPosiDirectionType PosiDirection; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///持仓日期 + ///ֲ TThostFtdcPositionDateType PositionDate; - ///上日持仓 + ///ճֲ TThostFtdcVolumeType YdPosition; - ///今日持仓 + ///ճֲ TThostFtdcVolumeType Position; - ///多头冻结 + ///ͷ TThostFtdcVolumeType LongFrozen; - ///空头冻结 + ///ͷ TThostFtdcVolumeType ShortFrozen; - ///开仓冻结金额 + ///ֶ TThostFtdcMoneyType LongFrozenAmount; - ///开仓冻结金额 + ///ֶ TThostFtdcMoneyType ShortFrozenAmount; - ///开仓量 + /// TThostFtdcVolumeType OpenVolume; - ///平仓量 + ///ƽ TThostFtdcVolumeType CloseVolume; - ///开仓金额 + ///ֽ TThostFtdcMoneyType OpenAmount; - ///平仓金额 + ///ƽֽ TThostFtdcMoneyType CloseAmount; - ///持仓成本 + ///ֲֳɱ TThostFtdcMoneyType PositionCost; - ///上次占用的保证金 + ///ϴռõı֤ TThostFtdcMoneyType PreMargin; - ///占用的保证金 + ///ռõı֤ TThostFtdcMoneyType UseMargin; - ///冻结的保证金 + ///ı֤ TThostFtdcMoneyType FrozenMargin; - ///冻结的资金 + ///ʽ TThostFtdcMoneyType FrozenCash; - ///冻结的手续费 + /// TThostFtdcMoneyType FrozenCommission; - ///资金差额 + ///ʽ TThostFtdcMoneyType CashIn; - ///手续费 + /// TThostFtdcMoneyType Commission; - ///平仓盈亏 + ///ƽӯ TThostFtdcMoneyType CloseProfit; - ///持仓盈亏 + ///ֲӯ TThostFtdcMoneyType PositionProfit; - ///上次结算价 + ///ϴν TThostFtdcPriceType PreSettlementPrice; - ///本次结算价 + ///ν TThostFtdcPriceType SettlementPrice; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///开仓成本 + ///ֳɱ TThostFtdcMoneyType OpenCost; - ///交易所保证金 + ///֤ TThostFtdcMoneyType ExchangeMargin; - ///组合成交形成的持仓 + ///ϳɽγɵijֲ TThostFtdcVolumeType CombPosition; - ///组合多头冻结 + ///϶ͷ TThostFtdcVolumeType CombLongFrozen; - ///组合空头冻结 + ///Ͽͷ TThostFtdcVolumeType CombShortFrozen; - ///逐日盯市平仓盈亏 + ///նƽӯ TThostFtdcMoneyType CloseProfitByDate; - ///逐笔对冲平仓盈亏 + ///ʶԳƽӯ TThostFtdcMoneyType CloseProfitByTrade; - ///今日持仓 + ///ճֲ TThostFtdcVolumeType TodayPosition; - ///保证金率 + ///֤ TThostFtdcRatioType MarginRateByMoney; - ///保证金率(按手数) + ///֤() TThostFtdcRatioType MarginRateByVolume; - ///执行冻结 + ///ִж TThostFtdcVolumeType StrikeFrozen; - ///执行冻结金额 + ///ִж TThostFtdcMoneyType StrikeFrozenAmount; - ///放弃执行冻结 + ///ִж TThostFtdcVolumeType AbandonFrozen; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ִж + TThostFtdcVolumeType YdStrikeFrozen; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ֲֳɱֵֻдʹ + TThostFtdcMoneyType PositionCostOffset; }; -///正在同步中的合约保证金率 +///ͬеĺԼ֤ struct CThostFtdcSyncingInstrumentMarginRateField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///多头保证金率 + ///ͷ֤ TThostFtdcRatioType LongMarginRatioByMoney; - ///多头保证金费 + ///ͷ֤ TThostFtdcMoneyType LongMarginRatioByVolume; - ///空头保证金率 + ///ͷ֤ TThostFtdcRatioType ShortMarginRatioByMoney; - ///空头保证金费 + ///ͷ֤ TThostFtdcMoneyType ShortMarginRatioByVolume; - ///是否相对交易所收取 + ///ǷԽȡ TThostFtdcBoolType IsRelative; }; -///正在同步中的合约手续费率 +///ͬеĺԼ struct CThostFtdcSyncingInstrumentCommissionRateField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///开仓手续费率 + /// TThostFtdcRatioType OpenRatioByMoney; - ///开仓手续费 + /// TThostFtdcRatioType OpenRatioByVolume; - ///平仓手续费率 + ///ƽ TThostFtdcRatioType CloseRatioByMoney; - ///平仓手续费 + ///ƽ TThostFtdcRatioType CloseRatioByVolume; - ///平今手续费率 + ///ƽ TThostFtdcRatioType CloseTodayRatioByMoney; - ///平今手续费 + ///ƽ TThostFtdcRatioType CloseTodayRatioByVolume; }; -///正在同步中的合约交易权限 +///ͬеĺԼȨ struct CThostFtdcSyncingInstrumentTradingRightField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///交易权限 + ///Ȩ TThostFtdcTradingRightType TradingRight; }; -///查询报单 +///ѯ struct CThostFtdcQryOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///开始时间 + ///ʼʱ TThostFtdcTimeType InsertTimeStart; - ///结束时间 + ///ʱ TThostFtdcTimeType InsertTimeEnd; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询成交 +///ѯɽ struct CThostFtdcQryTradeField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///成交编号 + ///ɽ TThostFtdcTradeIDType TradeID; - ///开始时间 + ///ʼʱ TThostFtdcTimeType TradeTimeStart; - ///结束时间 + ///ʱ TThostFtdcTimeType TradeTimeEnd; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询投资者持仓 +///ѯͶֲ߳ struct CThostFtdcQryInvestorPositionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询资金账户 +///ѯʽ˻ struct CThostFtdcQryTradingAccountField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; + ///ҵ + TThostFtdcBizTypeType BizType; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; }; -///查询投资者 +///ѯͶ struct CThostFtdcQryInvestorField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; }; -///查询交易编码 +///ѯױ struct CThostFtdcQryTradingCodeField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///交易编码类型 + ///ױ TThostFtdcClientIDTypeType ClientIDType; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询投资者组 +///ѯͶ struct CThostFtdcQryInvestorGroupField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; }; -///查询合约保证金率 +///ѯԼ֤ struct CThostFtdcQryInstrumentMarginRateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询手续费率 +///ѯ struct CThostFtdcQryInstrumentCommissionRateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询合约交易权限 +///ѯԼȨ struct CThostFtdcQryInstrumentTradingRightField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; }; -///查询经纪公司 +///ѯ͹˾ struct CThostFtdcQryBrokerField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; }; -///查询交易员 +///ѯԱ struct CThostFtdcQryTraderField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; }; -///查询管理用户功能权限 +///ѯûȨ struct CThostFtdcQrySuperUserFunctionField { - ///用户代码 + ///û TThostFtdcUserIDType UserID; }; -///查询用户会话 +///ѯûỰ struct CThostFtdcQryUserSessionField { - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; }; -///查询经纪公司会员代码 +///ѯ͹˾Ա struct CThostFtdcQryPartBrokerField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; }; -///查询前置状态 +///ѯǰ״̬ struct CThostFtdcQryFrontStatusField { - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; }; -///查询交易所报单 +///ѯ struct CThostFtdcQryExchangeOrderField { - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; }; -///查询报单操作 +///ѯ struct CThostFtdcQryOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; }; -///查询交易所报单操作 +///ѯ struct CThostFtdcQryExchangeOrderActionField { - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; }; -///查询管理用户 +///ѯû struct CThostFtdcQrySuperUserField { - ///用户代码 + ///û TThostFtdcUserIDType UserID; }; -///查询交易所 +///ѯ struct CThostFtdcQryExchangeField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; }; -///查询产品 +///ѯƷ struct CThostFtdcQryProductField { - ///产品代码 + ///Ʒ TThostFtdcInstrumentIDType ProductID; - ///产品类型 + ///Ʒ TThostFtdcProductClassType ProductClass; + /// + TThostFtdcExchangeIDType ExchangeID; }; -///查询合约 +///ѯԼ struct CThostFtdcQryInstrumentField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///产品代码 + ///Ʒ TThostFtdcInstrumentIDType ProductID; }; -///查询行情 +///ѯ struct CThostFtdcQryDepthMarketDataField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; }; -///查询经纪公司用户 +///ѯ͹˾û struct CThostFtdcQryBrokerUserField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; }; -///查询经纪公司用户权限 +///ѯ͹˾ûȨ struct CThostFtdcQryBrokerUserFunctionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; }; -///查询交易员报盘机 +///ѯԱ̻ struct CThostFtdcQryTraderOfferField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; }; -///查询出入金流水 +///ѯˮ struct CThostFtdcQrySyncDepositField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///出入金流水号 + ///ˮ TThostFtdcDepositSeqNoType DepositSeqNo; }; -///查询投资者结算结果 +///ѯͶ߽ struct CThostFtdcQrySettlementInfoField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///交易日 + /// TThostFtdcDateType TradingDay; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; }; -///查询交易所保证金率 +///ѯ֤ struct CThostFtdcQryExchangeMarginRateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcExchangeIDType ExchangeID; }; -///查询交易所调整保证金率 +///ѯ֤ struct CThostFtdcQryExchangeMarginRateAdjustField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; }; -///查询汇率 +///ѯ struct CThostFtdcQryExchangeRateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///源币种 + ///Դ TThostFtdcCurrencyIDType FromCurrencyID; - ///目标币种 + ///Ŀ TThostFtdcCurrencyIDType ToCurrencyID; }; -///查询货币质押流水 +///ѯѺˮ struct CThostFtdcQrySyncFundMortgageField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///货币质押流水号 + ///Ѻˮ TThostFtdcDepositSeqNoType MortgageSeqNo; }; -///查询报单 +///ѯ struct CThostFtdcQryHisOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///开始时间 + ///ʼʱ TThostFtdcTimeType InsertTimeStart; - ///结束时间 + ///ʱ TThostFtdcTimeType InsertTimeEnd; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; }; -///当前期权合约最小保证金 +///ǰȨԼС֤ struct CThostFtdcOptionInstrMiniMarginField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///单位(手)期权合约最小保证金 + ///λ֣ȨԼС֤ TThostFtdcMoneyType MinMargin; - ///取值方式 + ///ȡֵʽ TThostFtdcValueMethodType ValueMethod; - ///是否跟随交易所收取 + ///Ƿ潻ȡ TThostFtdcBoolType IsRelative; }; -///当前期权合约保证金调整系数 +///ǰȨԼ֤ϵ struct CThostFtdcOptionInstrMarginAdjustField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///投机空头保证金调整系数 + ///Ͷͷ֤ϵ TThostFtdcRatioType SShortMarginRatioByMoney; - ///投机空头保证金调整系数 + ///Ͷͷ֤ϵ TThostFtdcMoneyType SShortMarginRatioByVolume; - ///保值空头保证金调整系数 + ///ֵͷ֤ϵ TThostFtdcRatioType HShortMarginRatioByMoney; - ///保值空头保证金调整系数 + ///ֵͷ֤ϵ TThostFtdcMoneyType HShortMarginRatioByVolume; - ///套利空头保证金调整系数 + ///ͷ֤ϵ TThostFtdcRatioType AShortMarginRatioByMoney; - ///套利空头保证金调整系数 + ///ͷ֤ϵ TThostFtdcMoneyType AShortMarginRatioByVolume; - ///是否跟随交易所收取 + ///Ƿ潻ȡ TThostFtdcBoolType IsRelative; - ///做市商空头保证金调整系数 + ///̿ͷ֤ϵ TThostFtdcRatioType MShortMarginRatioByMoney; - ///做市商空头保证金调整系数 + ///̿ͷ֤ϵ TThostFtdcMoneyType MShortMarginRatioByVolume; }; -///当前期权合约手续费的详细内容 +///ǰȨԼѵϸ struct CThostFtdcOptionInstrCommRateField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///开仓手续费率 + /// TThostFtdcRatioType OpenRatioByMoney; - ///开仓手续费 + /// TThostFtdcRatioType OpenRatioByVolume; - ///平仓手续费率 + ///ƽ TThostFtdcRatioType CloseRatioByMoney; - ///平仓手续费 + ///ƽ TThostFtdcRatioType CloseRatioByVolume; - ///平今手续费率 + ///ƽ TThostFtdcRatioType CloseTodayRatioByMoney; - ///平今手续费 + ///ƽ TThostFtdcRatioType CloseTodayRatioByVolume; - ///执行手续费率 + ///ִ TThostFtdcRatioType StrikeRatioByMoney; - ///执行手续费 + ///ִ TThostFtdcRatioType StrikeRatioByVolume; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///期权交易成本 +///Ȩ׳ɱ struct CThostFtdcOptionInstrTradeCostField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///期权合约保证金不变部分 + ///ȨԼ֤𲻱䲿 TThostFtdcMoneyType FixedMargin; - ///期权合约最小保证金 + ///ȨԼС֤ TThostFtdcMoneyType MiniMargin; - ///期权合约权利金 + ///ȨԼȨ TThostFtdcMoneyType Royalty; - ///交易所期权合约保证金不变部分 + ///ȨԼ֤𲻱䲿 TThostFtdcMoneyType ExchFixedMargin; - ///交易所期权合约最小保证金 + ///ȨԼС֤ TThostFtdcMoneyType ExchMiniMargin; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///期权交易成本查询 +///Ȩ׳ɱѯ struct CThostFtdcQryOptionInstrTradeCostField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///期权合约报价 + ///ȨԼ TThostFtdcPriceType InputPrice; - ///标的价格,填0则用昨结算价 + ///ļ۸,0 TThostFtdcPriceType UnderlyingPrice; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///期权手续费率查询 +///Ȩʲѯ struct CThostFtdcQryOptionInstrCommRateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///股指现货指数 +///ָָֻ struct CThostFtdcIndexPriceField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///指数现货收盘价 + ///ָֻ̼ TThostFtdcPriceType ClosePrice; }; -///输入的执行宣告 +///ִ struct CThostFtdcInputExecOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///执行宣告引用 + ///ִ TThostFtdcOrderRefType ExecOrderRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///数量 + /// TThostFtdcVolumeType Volume; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///开平标志 + ///ƽ־ TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///执行类型 + ///ִ TThostFtdcActionTypeType ActionType; - ///保留头寸申请的持仓方向 + ///ͷijֲַ TThostFtdcPosiDirectionType PosiDirection; - ///期权行权后是否保留期货头寸的标记 + ///ȨȨǷڻͷı,ֶѷ TThostFtdcExecOrderPositionFlagType ReservePositionFlag; - ///期权行权后生成的头寸是否自动平仓 + ///ȨȨɵͷǷԶƽ TThostFtdcExecOrderCloseFlagType CloseFlag; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 + ///ʽ˺ TThostFtdcAccountIDType AccountID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///交易编码 + ///ױ TThostFtdcClientIDType ClientID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///输入执行宣告操作 +///ִ struct CThostFtdcInputExecOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///执行宣告操作引用 + ///ִ TThostFtdcOrderActionRefType ExecOrderActionRef; - ///执行宣告引用 + ///ִ TThostFtdcOrderRefType ExecOrderRef; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///执行宣告操作编号 + ///ִ TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///操作标志 + ///־ TThostFtdcActionFlagType ActionFlag; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///执行宣告 +///ִ struct CThostFtdcExecOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///执行宣告引用 + ///ִ TThostFtdcOrderRefType ExecOrderRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///数量 + /// TThostFtdcVolumeType Volume; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///开平标志 + ///ƽ־ TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///执行类型 + ///ִ TThostFtdcActionTypeType ActionType; - ///保留头寸申请的持仓方向 + ///ͷijֲַ TThostFtdcPosiDirectionType PosiDirection; - ///期权行权后是否保留期货头寸的标记 + ///ȨȨǷڻͷı,ֶѷ TThostFtdcExecOrderPositionFlagType ReservePositionFlag; - ///期权行权后生成的头寸是否自动平仓 + ///ȨȨɵͷǷԶƽ TThostFtdcExecOrderCloseFlagType CloseFlag; - ///本地执行宣告编号 + ///ִ TThostFtdcOrderLocalIDType ExecOrderLocalID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///执行宣告提交状态 + ///ִύ״̬ TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///报单提示序号 + ///ʾ TThostFtdcSequenceNoType NotifySequence; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///执行宣告编号 + ///ִ TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///报单日期 + /// TThostFtdcDateType InsertDate; - ///插入时间 + ///ʱ TThostFtdcTimeType InsertTime; - ///撤销时间 + ///ʱ TThostFtdcTimeType CancelTime; - ///执行结果 + ///ִн TThostFtdcExecResultType ExecResult; - ///结算会员编号 + ///Ա TThostFtdcParticipantIDType ClearingPartID; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///用户端产品信息 + ///û˲ƷϢ TThostFtdcProductInfoType UserProductInfo; - ///状态信息 + ///״̬Ϣ TThostFtdcErrorMsgType StatusMsg; - ///操作用户代码 + ///û TThostFtdcUserIDType ActiveUserID; - ///经纪公司报单编号 + ///͹˾ TThostFtdcSequenceNoType BrokerExecOrderSeq; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 + ///ʽ˺ TThostFtdcAccountIDType AccountID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///执行宣告操作 +///ִ struct CThostFtdcExecOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///执行宣告操作引用 + ///ִ TThostFtdcOrderActionRefType ExecOrderActionRef; - ///执行宣告引用 + ///ִ TThostFtdcOrderRefType ExecOrderRef; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///执行宣告操作编号 + ///ִ TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///操作标志 + ///־ TThostFtdcActionFlagType ActionFlag; - ///操作日期 + /// TThostFtdcDateType ActionDate; - ///操作时间 + ///ʱ TThostFtdcTimeType ActionTime; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///本地执行宣告编号 + ///ִ TThostFtdcOrderLocalIDType ExecOrderLocalID; - ///操作本地编号 + ///ر TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 + ///״̬ TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///执行类型 + ///ִ TThostFtdcActionTypeType ActionType; - ///状态信息 + ///״̬Ϣ TThostFtdcErrorMsgType StatusMsg; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///执行宣告查询 +///ִѯ struct CThostFtdcQryExecOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///执行宣告编号 + ///ִ TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///开始时间 + ///ʼʱ TThostFtdcTimeType InsertTimeStart; - ///结束时间 + ///ʱ TThostFtdcTimeType InsertTimeEnd; }; -///交易所执行宣告信息 +///ִϢ struct CThostFtdcExchangeExecOrderField { - ///数量 + /// TThostFtdcVolumeType Volume; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///开平标志 + ///ƽ־ TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///执行类型 + ///ִ TThostFtdcActionTypeType ActionType; - ///保留头寸申请的持仓方向 + ///ͷijֲַ TThostFtdcPosiDirectionType PosiDirection; - ///期权行权后是否保留期货头寸的标记 + ///ȨȨǷڻͷı,ֶѷ TThostFtdcExecOrderPositionFlagType ReservePositionFlag; - ///期权行权后生成的头寸是否自动平仓 + ///ȨȨɵͷǷԶƽ TThostFtdcExecOrderCloseFlagType CloseFlag; - ///本地执行宣告编号 + ///ִ TThostFtdcOrderLocalIDType ExecOrderLocalID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///执行宣告提交状态 + ///ִύ״̬ TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///报单提示序号 + ///ʾ TThostFtdcSequenceNoType NotifySequence; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///执行宣告编号 + ///ִ TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///报单日期 + /// TThostFtdcDateType InsertDate; - ///插入时间 + ///ʱ TThostFtdcTimeType InsertTime; - ///撤销时间 + ///ʱ TThostFtdcTimeType CancelTime; - ///执行结果 + ///ִн TThostFtdcExecResultType ExecResult; - ///结算会员编号 + ///Ա TThostFtdcParticipantIDType ClearingPartID; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///交易所执行宣告查询 +///ִѯ struct CThostFtdcQryExchangeExecOrderField { - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; }; -///执行宣告操作查询 +///ִѯ struct CThostFtdcQryExecOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; }; -///交易所执行宣告操作 +///ִ struct CThostFtdcExchangeExecOrderActionField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///执行宣告操作编号 + ///ִ TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///操作标志 + ///־ TThostFtdcActionFlagType ActionFlag; - ///操作日期 + /// TThostFtdcDateType ActionDate; - ///操作时间 + ///ʱ TThostFtdcTimeType ActionTime; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///本地执行宣告编号 + ///ִ TThostFtdcOrderLocalIDType ExecOrderLocalID; - ///操作本地编号 + ///ر TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 + ///״̬ TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///执行类型 + ///ִ TThostFtdcActionTypeType ActionType; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + /// + TThostFtdcVolumeType Volume; }; -///交易所执行宣告操作查询 +///ִѯ struct CThostFtdcQryExchangeExecOrderActionField { - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; }; -///错误执行宣告 +///ִ struct CThostFtdcErrExecOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///执行宣告引用 + ///ִ TThostFtdcOrderRefType ExecOrderRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///数量 + /// TThostFtdcVolumeType Volume; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///开平标志 + ///ƽ־ TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///执行类型 + ///ִ TThostFtdcActionTypeType ActionType; - ///保留头寸申请的持仓方向 + ///ͷijֲַ TThostFtdcPosiDirectionType PosiDirection; - ///期权行权后是否保留期货头寸的标记 + ///ȨȨǷڻͷı,ֶѷ TThostFtdcExecOrderPositionFlagType ReservePositionFlag; - ///期权行权后生成的头寸是否自动平仓 + ///ȨȨɵͷǷԶƽ TThostFtdcExecOrderCloseFlagType CloseFlag; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 + ///ʽ˺ TThostFtdcAccountIDType AccountID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///交易编码 + ///ױ TThostFtdcClientIDType ClientID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; -///查询错误执行宣告 +///ѯִ struct CThostFtdcQryErrExecOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; }; -///错误执行宣告操作 +///ִ struct CThostFtdcErrExecOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///执行宣告操作引用 + ///ִ TThostFtdcOrderActionRefType ExecOrderActionRef; - ///执行宣告引用 + ///ִ TThostFtdcOrderRefType ExecOrderRef; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///执行宣告操作编号 + ///ִ TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///操作标志 + ///־ TThostFtdcActionFlagType ActionFlag; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; -///查询错误执行宣告操作 +///ѯִ struct CThostFtdcQryErrExecOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; }; -///投资者期权合约交易权限 +///ͶȨԼȨ struct CThostFtdcOptionInstrTradingRightField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///交易权限 + ///Ȩ TThostFtdcTradingRightType TradingRight; }; -///查询期权合约交易权限 +///ѯȨԼȨ struct CThostFtdcQryOptionInstrTradingRightField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///买卖方向 + /// TThostFtdcDirectionType Direction; }; -///输入的询价 +///ѯ struct CThostFtdcInputForQuoteField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///询价引用 + ///ѯ TThostFtdcOrderRefType ForQuoteRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///询价 +///ѯ struct CThostFtdcForQuoteField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///询价引用 + ///ѯ TThostFtdcOrderRefType ForQuoteRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///本地询价编号 + ///ѯ۱ TThostFtdcOrderLocalIDType ForQuoteLocalID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///报单日期 + /// TThostFtdcDateType InsertDate; - ///插入时间 + ///ʱ TThostFtdcTimeType InsertTime; - ///询价状态 + ///ѯ״̬ TThostFtdcForQuoteStatusType ForQuoteStatus; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///状态信息 + ///״̬Ϣ TThostFtdcErrorMsgType StatusMsg; - ///操作用户代码 + ///û TThostFtdcUserIDType ActiveUserID; - ///经纪公司询价编号 + ///͹˾ѯ۱ TThostFtdcSequenceNoType BrokerForQutoSeq; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///询价查询 +///ѯ۲ѯ struct CThostFtdcQryForQuoteField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///开始时间 + ///ʼʱ TThostFtdcTimeType InsertTimeStart; - ///结束时间 + ///ʱ TThostFtdcTimeType InsertTimeEnd; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///交易所询价信息 +///ѯϢ struct CThostFtdcExchangeForQuoteField { - ///本地询价编号 + ///ѯ۱ TThostFtdcOrderLocalIDType ForQuoteLocalID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///报单日期 + /// TThostFtdcDateType InsertDate; - ///插入时间 + ///ʱ TThostFtdcTimeType InsertTime; - ///询价状态 + ///ѯ״̬ TThostFtdcForQuoteStatusType ForQuoteStatus; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///交易所询价查询 +///ѯ۲ѯ struct CThostFtdcQryExchangeForQuoteField { - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; }; -///输入的报价 +///ı struct CThostFtdcInputQuoteField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///报价引用 + /// TThostFtdcOrderRefType QuoteRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///卖价格 + ///۸ TThostFtdcPriceType AskPrice; - ///买价格 + ///۸ TThostFtdcPriceType BidPrice; - ///卖数量 + /// TThostFtdcVolumeType AskVolume; - ///买数量 + /// TThostFtdcVolumeType BidVolume; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///卖开平标志 + ///ƽ־ TThostFtdcOffsetFlagType AskOffsetFlag; - ///买开平标志 + ///ƽ־ TThostFtdcOffsetFlagType BidOffsetFlag; - ///卖投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType AskHedgeFlag; - ///买投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType BidHedgeFlag; - ///衍生卖报单引用 + /// TThostFtdcOrderRefType AskOrderRef; - ///衍生买报单引用 + ///򱨵 TThostFtdcOrderRefType BidOrderRef; - ///应价编号 + ///Ӧ۱ TThostFtdcOrderSysIDType ForQuoteSysID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///交易编码 + ///ױ TThostFtdcClientIDType ClientID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///输入报价操作 +///뱨۲ struct CThostFtdcInputQuoteActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///报价操作引用 + ///۲ TThostFtdcOrderActionRefType QuoteActionRef; - ///报价引用 + /// TThostFtdcOrderRefType QuoteRef; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///报价操作编号 + ///۲ TThostFtdcOrderSysIDType QuoteSysID; - ///操作标志 + ///־ TThostFtdcActionFlagType ActionFlag; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///交易编码 + ///ױ TThostFtdcClientIDType ClientID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///报价 +/// struct CThostFtdcQuoteField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///报价引用 + /// TThostFtdcOrderRefType QuoteRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///卖价格 + ///۸ TThostFtdcPriceType AskPrice; - ///买价格 + ///۸ TThostFtdcPriceType BidPrice; - ///卖数量 + /// TThostFtdcVolumeType AskVolume; - ///买数量 + /// TThostFtdcVolumeType BidVolume; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///卖开平标志 + ///ƽ־ TThostFtdcOffsetFlagType AskOffsetFlag; - ///买开平标志 + ///ƽ־ TThostFtdcOffsetFlagType BidOffsetFlag; - ///卖投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType AskHedgeFlag; - ///买投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType BidHedgeFlag; - ///本地报价编号 + ///ر۱ TThostFtdcOrderLocalIDType QuoteLocalID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///报价提示序号 + ///ʾ TThostFtdcSequenceNoType NotifySequence; - ///报价提交状态 + ///ύ״̬ TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///报价编号 + ///۱ TThostFtdcOrderSysIDType QuoteSysID; - ///报单日期 + /// TThostFtdcDateType InsertDate; - ///插入时间 + ///ʱ TThostFtdcTimeType InsertTime; - ///撤销时间 + ///ʱ TThostFtdcTimeType CancelTime; - ///报价状态 + ///״̬ TThostFtdcOrderStatusType QuoteStatus; - ///结算会员编号 + ///Ա TThostFtdcParticipantIDType ClearingPartID; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///卖方报单编号 + /// TThostFtdcOrderSysIDType AskOrderSysID; - ///买方报单编号 + ///򷽱 TThostFtdcOrderSysIDType BidOrderSysID; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///用户端产品信息 + ///û˲ƷϢ TThostFtdcProductInfoType UserProductInfo; - ///状态信息 + ///״̬Ϣ TThostFtdcErrorMsgType StatusMsg; - ///操作用户代码 + ///û TThostFtdcUserIDType ActiveUserID; - ///经纪公司报价编号 + ///͹˾۱ TThostFtdcSequenceNoType BrokerQuoteSeq; - ///衍生卖报单引用 + /// TThostFtdcOrderRefType AskOrderRef; - ///衍生买报单引用 + ///򱨵 TThostFtdcOrderRefType BidOrderRef; - ///应价编号 + ///Ӧ۱ TThostFtdcOrderSysIDType ForQuoteSysID; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 + ///ʽ˺ TThostFtdcAccountIDType AccountID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///报价操作 +///۲ struct CThostFtdcQuoteActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///报价操作引用 + ///۲ TThostFtdcOrderActionRefType QuoteActionRef; - ///报价引用 + /// TThostFtdcOrderRefType QuoteRef; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///报价操作编号 + ///۲ TThostFtdcOrderSysIDType QuoteSysID; - ///操作标志 + ///־ TThostFtdcActionFlagType ActionFlag; - ///操作日期 + /// TThostFtdcDateType ActionDate; - ///操作时间 + ///ʱ TThostFtdcTimeType ActionTime; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///本地报价编号 + ///ر۱ TThostFtdcOrderLocalIDType QuoteLocalID; - ///操作本地编号 + ///ر TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 + ///״̬ TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///状态信息 + ///״̬Ϣ TThostFtdcErrorMsgType StatusMsg; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///报价查询 +///۲ѯ struct CThostFtdcQryQuoteField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///报价编号 + ///۱ TThostFtdcOrderSysIDType QuoteSysID; - ///开始时间 + ///ʼʱ TThostFtdcTimeType InsertTimeStart; - ///结束时间 + ///ʱ TThostFtdcTimeType InsertTimeEnd; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///交易所报价信息 +///Ϣ struct CThostFtdcExchangeQuoteField { - ///卖价格 + ///۸ TThostFtdcPriceType AskPrice; - ///买价格 + ///۸ TThostFtdcPriceType BidPrice; - ///卖数量 + /// TThostFtdcVolumeType AskVolume; - ///买数量 + /// TThostFtdcVolumeType BidVolume; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///卖开平标志 + ///ƽ־ TThostFtdcOffsetFlagType AskOffsetFlag; - ///买开平标志 + ///ƽ־ TThostFtdcOffsetFlagType BidOffsetFlag; - ///卖投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType AskHedgeFlag; - ///买投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType BidHedgeFlag; - ///本地报价编号 + ///ر۱ TThostFtdcOrderLocalIDType QuoteLocalID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///报价提示序号 + ///ʾ TThostFtdcSequenceNoType NotifySequence; - ///报价提交状态 + ///ύ״̬ TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///报价编号 + ///۱ TThostFtdcOrderSysIDType QuoteSysID; - ///报单日期 + /// TThostFtdcDateType InsertDate; - ///插入时间 + ///ʱ TThostFtdcTimeType InsertTime; - ///撤销时间 + ///ʱ TThostFtdcTimeType CancelTime; - ///报价状态 + ///״̬ TThostFtdcOrderStatusType QuoteStatus; - ///结算会员编号 + ///Ա TThostFtdcParticipantIDType ClearingPartID; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///卖方报单编号 + /// TThostFtdcOrderSysIDType AskOrderSysID; - ///买方报单编号 + ///򷽱 TThostFtdcOrderSysIDType BidOrderSysID; - ///应价编号 + ///Ӧ۱ TThostFtdcOrderSysIDType ForQuoteSysID; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///交易所报价查询 +///۲ѯ struct CThostFtdcQryExchangeQuoteField { - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; }; -///报价操作查询 +///۲ѯ struct CThostFtdcQryQuoteActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; }; -///交易所报价操作 +///۲ struct CThostFtdcExchangeQuoteActionField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///报价操作编号 + ///۲ TThostFtdcOrderSysIDType QuoteSysID; - ///操作标志 + ///־ TThostFtdcActionFlagType ActionFlag; - ///操作日期 + /// TThostFtdcDateType ActionDate; - ///操作时间 + ///ʱ TThostFtdcTimeType ActionTime; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///本地报价编号 + ///ر۱ TThostFtdcOrderLocalIDType QuoteLocalID; - ///操作本地编号 + ///ر TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 + ///״̬ TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///交易所报价操作查询 +///۲ѯ struct CThostFtdcQryExchangeQuoteActionField { - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; }; -///期权合约delta值 +///ȨԼdeltaֵ struct CThostFtdcOptionInstrDeltaField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///Delta值 + ///Deltaֵ TThostFtdcRatioType Delta; }; -///发给做市商的询价请求 +///̵ѯ struct CThostFtdcForQuoteRspField { - ///交易日 + /// TThostFtdcDateType TradingDay; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///询价编号 + ///ѯ۱ TThostFtdcOrderSysIDType ForQuoteSysID; - ///询价时间 + ///ѯʱ TThostFtdcTimeType ForQuoteTime; - ///业务日期 + ///ҵ TThostFtdcDateType ActionDay; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; }; -///当前期权合约执行偏移值的详细内容 +///ǰȨԼִƫֵϸ struct CThostFtdcStrikeOffsetField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///执行偏移值 + ///ִƫֵ TThostFtdcMoneyType Offset; - ///执行偏移类型 + ///ִƫ TThostFtdcStrikeOffsetTypeType OffsetType; }; -///期权执行偏移值查询 +///Ȩִƫֵѯ struct CThostFtdcQryStrikeOffsetField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; }; -///输入批量报单操作 +/// struct CThostFtdcInputBatchOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///报单操作引用 + /// TThostFtdcOrderActionRefType OrderActionRef; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///批量报单操作 +/// struct CThostFtdcBatchOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///报单操作引用 + /// TThostFtdcOrderActionRefType OrderActionRef; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///操作日期 + /// TThostFtdcDateType ActionDate; - ///操作时间 + ///ʱ TThostFtdcTimeType ActionTime; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///操作本地编号 + ///ر TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 + ///״̬ TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///状态信息 + ///״̬Ϣ TThostFtdcErrorMsgType StatusMsg; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///交易所批量报单操作 +/// struct CThostFtdcExchangeBatchOrderActionField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///操作日期 + /// TThostFtdcDateType ActionDate; - ///操作时间 + ///ʱ TThostFtdcTimeType ActionTime; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///操作本地编号 + ///ر TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 + ///״̬ TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///查询批量报单操作 +///ѯ struct CThostFtdcQryBatchOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; }; -///组合合约安全系数 +///ϺԼȫϵ struct CThostFtdcCombInstrumentGuardField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; /// TThostFtdcRatioType GuarantRatio; + /// + TThostFtdcExchangeIDType ExchangeID; }; -///组合合约安全系数查询 +///ϺԼȫϵѯ struct CThostFtdcQryCombInstrumentGuardField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; }; -///输入的申请组合 +/// struct CThostFtdcInputCombActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///组合引用 + /// TThostFtdcOrderRefType CombActionRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///数量 + /// TThostFtdcVolumeType Volume; - ///组合指令方向 + ///ָ TThostFtdcCombDirectionType CombDirection; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///申请组合 +/// struct CThostFtdcCombActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///组合引用 + /// TThostFtdcOrderRefType CombActionRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///数量 + /// TThostFtdcVolumeType Volume; - ///组合指令方向 + ///ָ TThostFtdcCombDirectionType CombDirection; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///本地申请组合编号 + ///ϱ TThostFtdcOrderLocalIDType ActionLocalID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///组合状态 + ///״̬ TThostFtdcOrderActionStatusType ActionStatus; - ///报单提示序号 + ///ʾ TThostFtdcSequenceNoType NotifySequence; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///用户端产品信息 + ///û˲ƷϢ TThostFtdcProductInfoType UserProductInfo; - ///状态信息 + ///״̬Ϣ TThostFtdcErrorMsgType StatusMsg; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; + ///ϱ + TThostFtdcTradeIDType ComTradeID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///申请组合查询 +///ϲѯ struct CThostFtdcQryCombActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///交易所申请组合信息 +///Ϣ struct CThostFtdcExchangeCombActionField { - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///数量 + /// TThostFtdcVolumeType Volume; - ///组合指令方向 + ///ָ TThostFtdcCombDirectionType CombDirection; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///本地申请组合编号 + ///ϱ TThostFtdcOrderLocalIDType ActionLocalID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///组合状态 + ///״̬ TThostFtdcOrderActionStatusType ActionStatus; - ///报单提示序号 + ///ʾ TThostFtdcSequenceNoType NotifySequence; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; + ///ϱ + TThostFtdcTradeIDType ComTradeID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; }; -///交易所申请组合查询 +///ϲѯ struct CThostFtdcQryExchangeCombActionField { - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; }; -///产品报价汇率 +///Ʒۻ struct CThostFtdcProductExchRateField { - ///产品代码 + ///Ʒ TThostFtdcInstrumentIDType ProductID; - ///报价币种类型 + ///۱ TThostFtdcCurrencyIDType QuoteCurrencyID; - ///汇率 + /// TThostFtdcExchangeRateType ExchangeRate; + /// + TThostFtdcExchangeIDType ExchangeID; }; -///产品报价汇率查询 +///Ʒۻʲѯ struct CThostFtdcQryProductExchRateField { - ///产品代码 + ///Ʒ TThostFtdcInstrumentIDType ProductID; + /// + TThostFtdcExchangeIDType ExchangeID; }; -///查询询价价差参数 +///ѯѯۼ۲ struct CThostFtdcQryForQuoteParamField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; }; -///询价价差参数 +///ѯۼ۲ struct CThostFtdcForQuoteParamField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///最新价 + ///¼ TThostFtdcPriceType LastPrice; - ///价差 + ///۲ TThostFtdcPriceType PriceInterval; }; -///当前做市商期权合约手续费的详细内容 +///ǰȨԼѵϸ struct CThostFtdcMMOptionInstrCommRateField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///开仓手续费率 + /// TThostFtdcRatioType OpenRatioByMoney; - ///开仓手续费 + /// TThostFtdcRatioType OpenRatioByVolume; - ///平仓手续费率 + ///ƽ TThostFtdcRatioType CloseRatioByMoney; - ///平仓手续费 + ///ƽ TThostFtdcRatioType CloseRatioByVolume; - ///平今手续费率 + ///ƽ TThostFtdcRatioType CloseTodayRatioByMoney; - ///平今手续费 + ///ƽ TThostFtdcRatioType CloseTodayRatioByVolume; - ///执行手续费率 + ///ִ TThostFtdcRatioType StrikeRatioByMoney; - ///执行手续费 + ///ִ TThostFtdcRatioType StrikeRatioByVolume; }; -///做市商期权手续费率查询 +///Ȩʲѯ struct CThostFtdcQryMMOptionInstrCommRateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; }; -///做市商合约手续费率 +///̺Լ struct CThostFtdcMMInstrumentCommissionRateField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///开仓手续费率 + /// TThostFtdcRatioType OpenRatioByMoney; - ///开仓手续费 + /// TThostFtdcRatioType OpenRatioByVolume; - ///平仓手续费率 + ///ƽ TThostFtdcRatioType CloseRatioByMoney; - ///平仓手续费 + ///ƽ TThostFtdcRatioType CloseRatioByVolume; - ///平今手续费率 + ///ƽ TThostFtdcRatioType CloseTodayRatioByMoney; - ///平今手续费 + ///ƽ TThostFtdcRatioType CloseTodayRatioByVolume; }; -///查询做市商合约手续费率 +///ѯ̺Լ struct CThostFtdcQryMMInstrumentCommissionRateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; }; -///当前报单手续费的详细内容 +///ǰѵϸ struct CThostFtdcInstrumentOrderCommRateField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///报单手续费 + /// TThostFtdcRatioType OrderCommByVolume; - ///撤单手续费 + /// TThostFtdcRatioType OrderActionCommByVolume; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///报单手续费率查询 +///ʲѯ struct CThostFtdcQryInstrumentOrderCommRateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ + TThostFtdcInstrumentIDType InstrumentID; +}; + +///ײ +struct CThostFtdcTradeParamField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + /// + TThostFtdcTradeParamIDType TradeParamID; + ///ֵ + TThostFtdcSettlementParamValueType TradeParamValue; + ///ע + TThostFtdcMemoType Memo; +}; + +///Լ֤ʵ +struct CThostFtdcInstrumentMarginRateULField +{ + ///Լ TThostFtdcInstrumentIDType InstrumentID; + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ͷ֤ + TThostFtdcRatioType LongMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType LongMarginRatioByVolume; + ///ͷ֤ + TThostFtdcRatioType ShortMarginRatioByMoney; + ///ͷ֤ + TThostFtdcMoneyType ShortMarginRatioByVolume; +}; + +///ڻֲƲ +struct CThostFtdcFutureLimitPosiParamField +{ + ///Ͷ߷Χ + TThostFtdcInvestorRangeType InvestorRange; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Ʒ + TThostFtdcInstrumentIDType ProductID; + ///Ͷ + TThostFtdcVolumeType SpecOpenVolume; + /// + TThostFtdcVolumeType ArbiOpenVolume; + ///Ͷ+ + TThostFtdcVolumeType OpenVolume; +}; + +///ֹ¼IP +struct CThostFtdcLoginForbiddenIPField +{ + ///IPַ + TThostFtdcIPAddressType IPAddress; +}; + +///IPб +struct CThostFtdcIPListField +{ + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Ƿ + TThostFtdcBoolType IsWhite; +}; + +///ȨԶԳ +struct CThostFtdcInputOptionSelfCloseField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ȨԶԳ + TThostFtdcOrderRefType OptionSelfCloseRef; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcVolumeType Volume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ȨȨͷǷԶԳ + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///ױ + TThostFtdcClientIDType ClientID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ȨԶԳ +struct CThostFtdcInputOptionSelfCloseActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ȨԶԳ + TThostFtdcOrderActionRefType OptionSelfCloseActionRef; + ///ȨԶԳ + TThostFtdcOrderRefType OptionSelfCloseRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ȨԶԳ + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + ///û + TThostFtdcUserIDType UserID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ȨԶԳ +struct CThostFtdcOptionSelfCloseField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///ȨԶԳ + TThostFtdcOrderRefType OptionSelfCloseRef; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcVolumeType Volume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ȨȨͷǷԶԳ + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + ///ȨԶԳ + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ȨԶԳύ״̬ + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///ȨԶԳ + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + /// + TThostFtdcDateType InsertDate; + ///ʱ + TThostFtdcTimeType InsertTime; + ///ʱ + TThostFtdcTimeType CancelTime; + ///ԶԳ + TThostFtdcExecResultType ExecResult; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///û + TThostFtdcUserIDType ActiveUserID; + ///͹˾ + TThostFtdcSequenceNoType BrokerOptionSelfCloseSeq; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ȨԶԳ +struct CThostFtdcOptionSelfCloseActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ȨԶԳ + TThostFtdcOrderActionRefType OptionSelfCloseActionRef; + ///ȨԶԳ + TThostFtdcOrderRefType OptionSelfCloseRef; + /// + TThostFtdcRequestIDType RequestID; + ///ǰñ + TThostFtdcFrontIDType FrontID; + ///Ự + TThostFtdcSessionIDType SessionID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ȨԶԳ + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ȨԶԳ + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///״̬Ϣ + TThostFtdcErrorMsgType StatusMsg; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ȨԶԳѯ +struct CThostFtdcQryOptionSelfCloseField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Լ + TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ȨԶԳ + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///ʼʱ + TThostFtdcTimeType InsertTimeStart; + ///ʱ + TThostFtdcTimeType InsertTimeEnd; +}; + +///ȨԶԳϢ +struct CThostFtdcExchangeOptionSelfCloseField +{ + /// + TThostFtdcVolumeType Volume; + /// + TThostFtdcRequestIDType RequestID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///Ͷױ־ + TThostFtdcHedgeFlagType HedgeFlag; + ///ȨȨͷǷԶԳ + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + ///ȨԶԳ + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ȨԶԳύ״̬ + TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + ///ʾ + TThostFtdcSequenceNoType NotifySequence; + /// + TThostFtdcDateType TradingDay; + /// + TThostFtdcSettlementIDType SettlementID; + ///ȨԶԳ + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + /// + TThostFtdcDateType InsertDate; + ///ʱ + TThostFtdcTimeType InsertTime; + ///ʱ + TThostFtdcTimeType CancelTime; + ///ԶԳ + TThostFtdcExecResultType ExecResult; + ///Ա + TThostFtdcParticipantIDType ClearingPartID; + /// + TThostFtdcSequenceNoType SequenceNo; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; +}; + +///ȨԶԳѯ +struct CThostFtdcQryOptionSelfCloseActionField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcExchangeIDType ExchangeID; }; -///市场行情 +///ȨԶԳ +struct CThostFtdcExchangeOptionSelfCloseActionField +{ + /// + TThostFtdcExchangeIDType ExchangeID; + ///ȨԶԳ + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + ///־ + TThostFtdcActionFlagType ActionFlag; + /// + TThostFtdcDateType ActionDate; + ///ʱ + TThostFtdcTimeType ActionTime; + ///Ա + TThostFtdcTraderIDType TraderID; + ///װ + TThostFtdcInstallIDType InstallID; + ///ȨԶԳ + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + ///ر + TThostFtdcOrderLocalIDType ActionLocalID; + ///Ա + TThostFtdcParticipantIDType ParticipantID; + ///ͻ + TThostFtdcClientIDType ClientID; + ///ҵԪ + TThostFtdcBusinessUnitType BusinessUnit; + ///״̬ + TThostFtdcOrderActionStatusType OrderActionStatus; + ///û + TThostFtdcUserIDType UserID; + ///Ӫҵ + TThostFtdcBranchIDType BranchID; + ///IPַ + TThostFtdcIPAddressType IPAddress; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///ԼڽĴ + TThostFtdcExchangeInstIDType ExchangeInstID; + ///ȨȨͷǷԶԳ + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; +}; + +///ʱͬ +struct CThostFtdcSyncDelaySwapField +{ + ///ˮ + TThostFtdcDepositSeqNoType DelaySwapSeqNo; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///Դ + TThostFtdcCurrencyIDType FromCurrencyID; + ///Դ + TThostFtdcMoneyType FromAmount; + ///Դ㶳(ö) + TThostFtdcMoneyType FromFrozenSwap; + ///Դʣ໻(ᶳ) + TThostFtdcMoneyType FromRemainSwap; + ///Ŀ + TThostFtdcCurrencyIDType ToCurrencyID; + ///Ŀ + TThostFtdcMoneyType ToAmount; +}; + +///ѯʱͬ +struct CThostFtdcQrySyncDelaySwapField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///ʱˮ + TThostFtdcDepositSeqNoType DelaySwapSeqNo; +}; + +///ͶʵԪ +struct CThostFtdcInvestUnitField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; + ///ͶߵԪ + TThostFtdcPartyNameType InvestorUnitName; + ///Ͷ߷ + TThostFtdcInvestorIDType InvestorGroupID; + ///ģ + TThostFtdcInvestorIDType CommModelID; + ///֤ģ + TThostFtdcInvestorIDType MarginModelID; + ///ʽ˺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///ѯͶʵԪ +struct CThostFtdcQryInvestUnitField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +///ʽУģʽ +struct CThostFtdcSecAgentCheckModeField +{ + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + /// + TThostFtdcCurrencyIDType CurrencyID; + ///нʽʺ + TThostFtdcAccountIDType BrokerSecAgentID; + ///ǷҪУԼʽ˻ + TThostFtdcBoolType CheckSelfAccount; +}; + +///Ϣ +struct CThostFtdcSecAgentTradeInfoField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///нʽʺ + TThostFtdcAccountIDType BrokerSecAgentID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; + /// + TThostFtdcLongIndividualNameType LongCustomerName; +}; + +///г struct CThostFtdcMarketDataField { - ///交易日 + /// TThostFtdcDateType TradingDay; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///最新价 + ///¼ TThostFtdcPriceType LastPrice; - ///上次结算价 + ///ϴν TThostFtdcPriceType PreSettlementPrice; - ///昨收盘 + /// TThostFtdcPriceType PreClosePrice; - ///昨持仓量 + ///ֲ TThostFtdcLargeVolumeType PreOpenInterest; - ///今开盘 + /// TThostFtdcPriceType OpenPrice; - ///最高价 + ///߼ TThostFtdcPriceType HighestPrice; - ///最低价 + ///ͼ TThostFtdcPriceType LowestPrice; - ///数量 + /// TThostFtdcVolumeType Volume; - ///成交金额 + ///ɽ TThostFtdcMoneyType Turnover; - ///持仓量 + ///ֲ TThostFtdcLargeVolumeType OpenInterest; - ///今收盘 + /// TThostFtdcPriceType ClosePrice; - ///本次结算价 + ///ν TThostFtdcPriceType SettlementPrice; - ///涨停板价 + ///ͣ TThostFtdcPriceType UpperLimitPrice; - ///跌停板价 + ///ͣ TThostFtdcPriceType LowerLimitPrice; - ///昨虚实度 + ///ʵ TThostFtdcRatioType PreDelta; - ///今虚实度 + ///ʵ TThostFtdcRatioType CurrDelta; - ///最后修改时间 + ///޸ʱ TThostFtdcTimeType UpdateTime; - ///最后修改毫秒 + ///޸ĺ TThostFtdcMillisecType UpdateMillisec; - ///业务日期 + ///ҵ TThostFtdcDateType ActionDay; }; -///行情基础属性 +/// struct CThostFtdcMarketDataBaseField { - ///交易日 + /// TThostFtdcDateType TradingDay; - ///上次结算价 + ///ϴν TThostFtdcPriceType PreSettlementPrice; - ///昨收盘 + /// TThostFtdcPriceType PreClosePrice; - ///昨持仓量 + ///ֲ TThostFtdcLargeVolumeType PreOpenInterest; - ///昨虚实度 + ///ʵ TThostFtdcRatioType PreDelta; }; -///行情静态属性 +///龲̬ struct CThostFtdcMarketDataStaticField { - ///今开盘 + /// TThostFtdcPriceType OpenPrice; - ///最高价 + ///߼ TThostFtdcPriceType HighestPrice; - ///最低价 + ///ͼ TThostFtdcPriceType LowestPrice; - ///今收盘 + /// TThostFtdcPriceType ClosePrice; - ///涨停板价 + ///ͣ TThostFtdcPriceType UpperLimitPrice; - ///跌停板价 + ///ͣ TThostFtdcPriceType LowerLimitPrice; - ///本次结算价 + ///ν TThostFtdcPriceType SettlementPrice; - ///今虚实度 + ///ʵ TThostFtdcRatioType CurrDelta; }; -///行情最新成交属性 +///³ɽ struct CThostFtdcMarketDataLastMatchField { - ///最新价 + ///¼ TThostFtdcPriceType LastPrice; - ///数量 + /// TThostFtdcVolumeType Volume; - ///成交金额 + ///ɽ TThostFtdcMoneyType Turnover; - ///持仓量 + ///ֲ TThostFtdcLargeVolumeType OpenInterest; }; -///行情最优价属性 +///ż struct CThostFtdcMarketDataBestPriceField { - ///申买价一 + ///һ TThostFtdcPriceType BidPrice1; - ///申买量一 + ///һ TThostFtdcVolumeType BidVolume1; - ///申卖价一 + ///һ TThostFtdcPriceType AskPrice1; - ///申卖量一 + ///һ TThostFtdcVolumeType AskVolume1; }; -///行情申买二、三属性 +/// struct CThostFtdcMarketDataBid23Field { - ///申买价二 + ///۶ TThostFtdcPriceType BidPrice2; - ///申买量二 + /// TThostFtdcVolumeType BidVolume2; - ///申买价三 + /// TThostFtdcPriceType BidPrice3; - ///申买量三 + /// TThostFtdcVolumeType BidVolume3; }; -///行情申卖二、三属性 +/// struct CThostFtdcMarketDataAsk23Field { - ///申卖价二 + ///۶ TThostFtdcPriceType AskPrice2; - ///申卖量二 + /// TThostFtdcVolumeType AskVolume2; - ///申卖价三 + /// TThostFtdcPriceType AskPrice3; - ///申卖量三 + /// TThostFtdcVolumeType AskVolume3; }; -///行情申买四、五属性 +///ġ struct CThostFtdcMarketDataBid45Field { - ///申买价四 + /// TThostFtdcPriceType BidPrice4; - ///申买量四 + /// TThostFtdcVolumeType BidVolume4; - ///申买价五 + /// TThostFtdcPriceType BidPrice5; - ///申买量五 + /// TThostFtdcVolumeType BidVolume5; }; -///行情申卖四、五属性 +///ġ struct CThostFtdcMarketDataAsk45Field { - ///申卖价四 + /// TThostFtdcPriceType AskPrice4; - ///申卖量四 + /// TThostFtdcVolumeType AskVolume4; - ///申卖价五 + /// TThostFtdcPriceType AskPrice5; - ///申卖量五 + /// TThostFtdcVolumeType AskVolume5; }; -///行情更新时间属性 +///ʱ struct CThostFtdcMarketDataUpdateTimeField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///最后修改时间 + ///޸ʱ TThostFtdcTimeType UpdateTime; - ///最后修改毫秒 + ///޸ĺ TThostFtdcMillisecType UpdateMillisec; - ///业务日期 + ///ҵ TThostFtdcDateType ActionDay; }; -///行情交易所代码属性 +///齻 struct CThostFtdcMarketDataExchangeField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; }; -///指定的合约 +///ָĺԼ struct CThostFtdcSpecificInstrumentField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; }; -///合约状态 +///Լ״̬ struct CThostFtdcInstrumentStatusField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///结算组代码 + /// TThostFtdcSettlementGroupIDType SettlementGroupID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///合约交易状态 + ///Լ״̬ TThostFtdcInstrumentStatusType InstrumentStatus; - ///交易阶段编号 + ///׽׶α TThostFtdcTradingSegmentSNType TradingSegmentSN; - ///进入本状态时间 + ///뱾״̬ʱ TThostFtdcTimeType EnterTime; - ///进入本状态原因 + ///뱾״̬ԭ TThostFtdcInstStatusEnterReasonType EnterReason; }; -///查询合约状态 +///ѯԼ״̬ struct CThostFtdcQryInstrumentStatusField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; }; -///投资者账户 +///Ͷ˻ struct CThostFtdcInvestorAccountField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; }; -///浮动盈亏算法 +///ӯ㷨 struct CThostFtdcPositionProfitAlgorithmField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///盈亏算法 + ///ӯ㷨 TThostFtdcAlgorithmType Algorithm; - ///备注 + ///ע TThostFtdcMemoType Memo; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; }; -///会员资金折扣 +///Աʽۿ struct CThostFtdcDiscountField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///资金折扣比例 + ///ʽۿ۱ TThostFtdcRatioType Discount; }; -///查询转帐银行 +///ѯת struct CThostFtdcQryTransferBankField { - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分中心代码 + ///зĴ TThostFtdcBankBrchIDType BankBrchID; }; -///转帐银行 +///ת struct CThostFtdcTransferBankField { - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分中心代码 + ///зĴ TThostFtdcBankBrchIDType BankBrchID; - ///银行名称 + /// TThostFtdcBankNameType BankName; - ///是否活跃 + ///ǷԾ TThostFtdcBoolType IsActive; }; -///查询投资者持仓明细 +///ѯͶֲ߳ϸ struct CThostFtdcQryInvestorPositionDetailField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///投资者持仓明细 +///Ͷֲ߳ϸ struct CThostFtdcInvestorPositionDetailField { - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///买卖 + /// TThostFtdcDirectionType Direction; - ///开仓日期 + /// TThostFtdcDateType OpenDate; - ///成交编号 + ///ɽ TThostFtdcTradeIDType TradeID; - ///数量 + /// TThostFtdcVolumeType Volume; - ///开仓价 + ///ּ TThostFtdcPriceType OpenPrice; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///成交类型 + ///ɽ TThostFtdcTradeTypeType TradeType; - ///组合合约代码 + ///ϺԼ TThostFtdcInstrumentIDType CombInstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///逐日盯市平仓盈亏 + ///նƽӯ TThostFtdcMoneyType CloseProfitByDate; - ///逐笔对冲平仓盈亏 + ///ʶԳƽӯ TThostFtdcMoneyType CloseProfitByTrade; - ///逐日盯市持仓盈亏 + ///նгֲӯ TThostFtdcMoneyType PositionProfitByDate; - ///逐笔对冲持仓盈亏 + ///ʶԳֲӯ TThostFtdcMoneyType PositionProfitByTrade; - ///投资者保证金 + ///Ͷ֤߱ TThostFtdcMoneyType Margin; - ///交易所保证金 + ///֤ TThostFtdcMoneyType ExchMargin; - ///保证金率 + ///֤ TThostFtdcRatioType MarginRateByMoney; - ///保证金率(按手数) + ///֤() TThostFtdcRatioType MarginRateByVolume; - ///昨结算价 + /// TThostFtdcPriceType LastSettlementPrice; - ///结算价 + /// TThostFtdcPriceType SettlementPrice; - ///平仓量 + ///ƽ TThostFtdcVolumeType CloseVolume; - ///平仓金额 + ///ƽֽ TThostFtdcMoneyType CloseAmount; + ///ʱ˳ƽֵı,ר + TThostFtdcVolumeType TimeFirstVolume; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///资金账户口令域 +///ʽ˻ struct CThostFtdcTradingAccountPasswordField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///密码 + /// TThostFtdcPasswordType Password; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; }; -///交易所行情报盘机 +///鱨̻ struct CThostFtdcMDTraderOfferField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///密码 + /// TThostFtdcPasswordType Password; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///本地报单编号 + ///ر TThostFtdcOrderLocalIDType OrderLocalID; - ///交易所交易员连接状态 + ///Ա״̬ TThostFtdcTraderConnectStatusType TraderConnectStatus; - ///发出连接请求的日期 + /// TThostFtdcDateType ConnectRequestDate; - ///发出连接请求的时间 + ///ʱ TThostFtdcTimeType ConnectRequestTime; - ///上次报告日期 + ///ϴα TThostFtdcDateType LastReportDate; - ///上次报告时间 + ///ϴαʱ TThostFtdcTimeType LastReportTime; - ///完成连接日期 + /// TThostFtdcDateType ConnectDate; - ///完成连接时间 + ///ʱ TThostFtdcTimeType ConnectTime; - ///启动日期 + /// TThostFtdcDateType StartDate; - ///启动时间 + ///ʱ TThostFtdcTimeType StartTime; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///本席位最大成交编号 + ///ϯλɽ TThostFtdcTradeIDType MaxTradeID; - ///本席位最大报单备拷 + ///ϯλ󱨵 TThostFtdcReturnCodeType MaxOrderMessageReference; }; -///查询行情报盘机 +///ѯ鱨̻ struct CThostFtdcQryMDTraderOfferField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; }; -///查询客户通知 +///ѯͻ֪ͨ struct CThostFtdcQryNoticeField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; }; -///客户通知 +///ͻ֪ͨ struct CThostFtdcNoticeField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///消息正文 + ///Ϣ TThostFtdcContentType Content; - ///经纪公司通知内容序列号 + ///͹˾֪ͨк TThostFtdcSequenceLabelType SequenceLabel; }; -///用户权限 +///ûȨ struct CThostFtdcUserRightField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///客户权限类型 + ///ͻȨ TThostFtdcUserRightTypeType UserRightType; - ///是否禁止 + ///Ƿֹ TThostFtdcBoolType IsForbidden; }; -///查询结算信息确认域 +///ѯϢȷ struct CThostFtdcQrySettlementInfoConfirmField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; }; -///装载结算信息 +///װؽϢ struct CThostFtdcLoadSettlementInfoField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; }; -///经纪公司可提资金算法表 +///͹˾ʽ㷨 struct CThostFtdcBrokerWithdrawAlgorithmField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///可提资金算法 + ///ʽ㷨 TThostFtdcAlgorithmType WithdrawAlgorithm; - ///资金使用率 + ///ʽʹ TThostFtdcRatioType UsingRatio; - ///可提是否包含平仓盈利 + ///Ƿƽӯ TThostFtdcIncludeCloseProfitType IncludeCloseProfit; - ///本日无仓且无成交客户是否受可提比例限制 + ///޲޳ɽͻǷܿ TThostFtdcAllWithoutTradeType AllWithoutTrade; - ///可用是否包含平仓盈利 + ///Ƿƽӯ TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit; - ///是否启用用户事件 + ///Ƿû¼ TThostFtdcBoolType IsBrokerUserEvent; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///货币质押比率 + ///Ѻ TThostFtdcRatioType FundMortgageRatio; - ///权益算法 + ///Ȩ㷨 TThostFtdcBalanceAlgorithmType BalanceAlgorithm; }; -///资金账户口令变更域 +///ʽ˻ struct CThostFtdcTradingAccountPasswordUpdateV1Field { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///原来的口令 + ///ԭĿ TThostFtdcPasswordType OldPassword; - ///新的口令 + ///µĿ TThostFtdcPasswordType NewPassword; }; -///资金账户口令变更域 +///ʽ˻ struct CThostFtdcTradingAccountPasswordUpdateField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///原来的口令 + ///ԭĿ TThostFtdcPasswordType OldPassword; - ///新的口令 + ///µĿ TThostFtdcPasswordType NewPassword; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; }; -///查询组合合约分腿 +///ѯϺԼ struct CThostFtdcQryCombinationLegField { - ///组合合约代码 + ///ϺԼ TThostFtdcInstrumentIDType CombInstrumentID; - ///单腿编号 + ///ȱ TThostFtdcLegIDType LegID; - ///单腿合约代码 + ///ȺԼ TThostFtdcInstrumentIDType LegInstrumentID; }; -///查询组合合约分腿 +///ѯϺԼ struct CThostFtdcQrySyncStatusField { - ///交易日 + /// TThostFtdcDateType TradingDay; }; -///组合交易合约的单腿 +///Ͻ׺Լĵ struct CThostFtdcCombinationLegField { - ///组合合约代码 + ///ϺԼ TThostFtdcInstrumentIDType CombInstrumentID; - ///单腿编号 + ///ȱ TThostFtdcLegIDType LegID; - ///单腿合约代码 + ///ȺԼ TThostFtdcInstrumentIDType LegInstrumentID; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///单腿乘数 + ///ȳ TThostFtdcLegMultipleType LegMultiple; - ///派生层数 + /// TThostFtdcImplyLevelType ImplyLevel; }; -///数据同步状态 +///ͬ״̬ struct CThostFtdcSyncStatusField { - ///交易日 + /// TThostFtdcDateType TradingDay; - ///数据同步状态 + ///ͬ״̬ TThostFtdcDataSyncStatusType DataSyncStatus; }; -///查询联系人 +///ѯϵ struct CThostFtdcQryLinkManField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; }; -///联系人 +///ϵ struct CThostFtdcLinkManField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///联系人类型 + ///ϵ TThostFtdcPersonTypeType PersonType; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdentifiedCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///名称 + /// TThostFtdcPartyNameType PersonName; - ///联系电话 + ///ϵ绰 TThostFtdcTelephoneType Telephone; - ///通讯地址 + ///ͨѶַ TThostFtdcAddressType Address; - ///邮政编码 + /// TThostFtdcZipCodeType ZipCode; - ///优先级 + ///ȼ TThostFtdcPriorityType Priority; - ///开户邮政编码 + /// TThostFtdcUOAZipCodeType UOAZipCode; - ///全称 + ///ȫ TThostFtdcInvestorFullNameType PersonFullName; }; -///查询经纪公司用户事件 +///ѯ͹˾û¼ struct CThostFtdcQryBrokerUserEventField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///用户事件类型 + ///û¼ TThostFtdcUserEventTypeType UserEventType; }; -///查询经纪公司用户事件 +///ѯ͹˾û¼ struct CThostFtdcBrokerUserEventField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///用户事件类型 + ///û¼ TThostFtdcUserEventTypeType UserEventType; - ///用户事件序号 + ///û¼ TThostFtdcSequenceNoType EventSequenceNo; - ///事件发生日期 + ///¼ TThostFtdcDateType EventDate; - ///事件发生时间 + ///¼ʱ TThostFtdcTimeType EventTime; - ///用户事件信息 + ///û¼Ϣ TThostFtdcUserEventInfoType UserEventInfo; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; }; -///查询签约银行请求 +///ѯǩԼ struct CThostFtdcQryContractBankField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分中心代码 + ///зĴ TThostFtdcBankBrchIDType BankBrchID; }; -///查询签约银行响应 +///ѯǩԼӦ struct CThostFtdcContractBankField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分中心代码 + ///зĴ TThostFtdcBankBrchIDType BankBrchID; - ///银行名称 + /// TThostFtdcBankNameType BankName; }; -///投资者组合持仓明细 +///Ͷϳֲϸ struct CThostFtdcInvestorPositionCombineDetailField { - ///交易日 + /// TThostFtdcDateType TradingDay; - ///开仓日期 + /// TThostFtdcDateType OpenDate; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///组合编号 + ///ϱ TThostFtdcTradeIDType ComTradeID; - ///撮合编号 + ///ϱ TThostFtdcTradeIDType TradeID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///买卖 + /// TThostFtdcDirectionType Direction; - ///持仓量 + ///ֲ TThostFtdcVolumeType TotalAmt; - ///投资者保证金 + ///Ͷ֤߱ TThostFtdcMoneyType Margin; - ///交易所保证金 + ///֤ TThostFtdcMoneyType ExchMargin; - ///保证金率 + ///֤ TThostFtdcRatioType MarginRateByMoney; - ///保证金率(按手数) + ///֤() TThostFtdcRatioType MarginRateByVolume; - ///单腿编号 + ///ȱ TThostFtdcLegIDType LegID; - ///单腿乘数 + ///ȳ TThostFtdcLegMultipleType LegMultiple; - ///组合持仓合约编码 + ///ϳֲֺԼ TThostFtdcInstrumentIDType CombInstrumentID; - ///成交组号 + ///ɽ TThostFtdcTradeGroupIDType TradeGroupID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///预埋单 +///Ԥ struct CThostFtdcParkedOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///报单引用 + /// TThostFtdcOrderRefType OrderRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///报单价格条件 + ///۸ TThostFtdcOrderPriceTypeType OrderPriceType; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///组合开平标志 + ///Ͽƽ־ TThostFtdcCombOffsetFlagType CombOffsetFlag; - ///组合投机套保标志 + ///Ͷױ־ TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///价格 + ///۸ TThostFtdcPriceType LimitPrice; - ///数量 + /// TThostFtdcVolumeType VolumeTotalOriginal; - ///有效期类型 + ///Ч TThostFtdcTimeConditionType TimeCondition; - ///GTD日期 + ///GTD TThostFtdcDateType GTDDate; - ///成交量类型 + ///ɽ TThostFtdcVolumeConditionType VolumeCondition; - ///最小成交量 + ///Сɽ TThostFtdcVolumeType MinVolume; - ///触发条件 + /// TThostFtdcContingentConditionType ContingentCondition; - ///止损价 + ///ֹ TThostFtdcPriceType StopPrice; - ///强平原因 + ///ǿƽԭ TThostFtdcForceCloseReasonType ForceCloseReason; - ///自动挂起标志 + ///Զ־ TThostFtdcBoolType IsAutoSuspend; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///用户强评标志 + ///ûǿ־ TThostFtdcBoolType UserForceClose; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///预埋报单编号 + ///Ԥ񱨵 TThostFtdcParkedOrderIDType ParkedOrderID; - ///用户类型 + ///û TThostFtdcUserTypeType UserType; - ///预埋单状态 + ///Ԥ״̬ TThostFtdcParkedOrderStatusType Status; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///互换单标志 + ///־ TThostFtdcBoolType IsSwapOrder; - ///资金账号 + ///ʽ˺ TThostFtdcAccountIDType AccountID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///交易编码 + ///ױ TThostFtdcClientIDType ClientID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///输入预埋单操作 +///Ԥ񵥲 struct CThostFtdcParkedOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///报单操作引用 + /// TThostFtdcOrderActionRefType OrderActionRef; - ///报单引用 + /// TThostFtdcOrderRefType OrderRef; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///操作标志 + ///־ TThostFtdcActionFlagType ActionFlag; - ///价格 + ///۸ TThostFtdcPriceType LimitPrice; - ///数量变化 + ///仯 TThostFtdcVolumeType VolumeChange; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///预埋撤单单编号 + ///Ԥ񳷵 TThostFtdcParkedOrderActionIDType ParkedOrderActionID; - ///用户类型 + ///û TThostFtdcUserTypeType UserType; - ///预埋撤单状态 + ///Ԥ񳷵״̬ TThostFtdcParkedOrderStatusType Status; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///查询预埋单 +///ѯԤ struct CThostFtdcQryParkedOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询预埋撤单 +///ѯԤ񳷵 struct CThostFtdcQryParkedOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///删除预埋单 +///ɾԤ struct CThostFtdcRemoveParkedOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///预埋报单编号 + ///Ԥ񱨵 TThostFtdcParkedOrderIDType ParkedOrderID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///删除预埋撤单 +///ɾԤ񳷵 struct CThostFtdcRemoveParkedOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///预埋撤单编号 + ///Ԥ񳷵 TThostFtdcParkedOrderActionIDType ParkedOrderActionID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///经纪公司可提资金算法表 +///͹˾ʽ㷨 struct CThostFtdcInvestorWithdrawAlgorithmField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///可提资金比例 + ///ʽ TThostFtdcRatioType UsingRatio; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///货币质押比率 + ///Ѻ TThostFtdcRatioType FundMortgageRatio; }; -///查询组合持仓明细 +///ѯϳֲϸ struct CThostFtdcQryInvestorPositionCombineDetailField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///组合持仓合约编码 + ///ϳֲֺԼ TThostFtdcInstrumentIDType CombInstrumentID; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///成交均价 +///ɽ struct CThostFtdcMarketDataAveragePriceField { - ///当日均价 + ///վ TThostFtdcPriceType AveragePrice; }; -///校验投资者密码 +///УͶ struct CThostFtdcVerifyInvestorPasswordField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///密码 + /// TThostFtdcPasswordType Password; }; -///用户IP +///ûIP struct CThostFtdcUserIPField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///IP地址掩码 + ///IPַ TThostFtdcIPAddressType IPMask; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///用户事件通知信息 +///û¼֪ͨϢ struct CThostFtdcTradingNoticeInfoField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///发送时间 + ///ʱ TThostFtdcTimeType SendTime; - ///消息正文 + ///Ϣ TThostFtdcContentType FieldContent; - ///序列系列号 + ///ϵк TThostFtdcSequenceSeriesType SequenceSeries; - ///序列号 + ///к TThostFtdcSequenceNoType SequenceNo; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///用户事件通知 +///û¼֪ͨ struct CThostFtdcTradingNoticeField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者范围 + ///Ͷ߷Χ TThostFtdcInvestorRangeType InvestorRange; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///序列系列号 + ///ϵк TThostFtdcSequenceSeriesType SequenceSeries; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///发送时间 + ///ʱ TThostFtdcTimeType SendTime; - ///序列号 + ///к TThostFtdcSequenceNoType SequenceNo; - ///消息正文 + ///Ϣ TThostFtdcContentType FieldContent; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询交易事件通知 +///ѯ¼֪ͨ struct CThostFtdcQryTradingNoticeField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询错误报单 +///ѯ󱨵 struct CThostFtdcQryErrOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; }; -///错误报单 +///󱨵 struct CThostFtdcErrOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///报单引用 + /// TThostFtdcOrderRefType OrderRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///报单价格条件 + ///۸ TThostFtdcOrderPriceTypeType OrderPriceType; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///组合开平标志 + ///Ͽƽ־ TThostFtdcCombOffsetFlagType CombOffsetFlag; - ///组合投机套保标志 + ///Ͷױ־ TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///价格 + ///۸ TThostFtdcPriceType LimitPrice; - ///数量 + /// TThostFtdcVolumeType VolumeTotalOriginal; - ///有效期类型 + ///Ч TThostFtdcTimeConditionType TimeCondition; - ///GTD日期 + ///GTD TThostFtdcDateType GTDDate; - ///成交量类型 + ///ɽ TThostFtdcVolumeConditionType VolumeCondition; - ///最小成交量 + ///Сɽ TThostFtdcVolumeType MinVolume; - ///触发条件 + /// TThostFtdcContingentConditionType ContingentCondition; - ///止损价 + ///ֹ TThostFtdcPriceType StopPrice; - ///强平原因 + ///ǿƽԭ TThostFtdcForceCloseReasonType ForceCloseReason; - ///自动挂起标志 + ///Զ־ TThostFtdcBoolType IsAutoSuspend; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///用户强评标志 + ///ûǿ־ TThostFtdcBoolType UserForceClose; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///互换单标志 + ///־ TThostFtdcBoolType IsSwapOrder; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 + ///ʽ˺ TThostFtdcAccountIDType AccountID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///交易编码 + ///ױ TThostFtdcClientIDType ClientID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///查询错误报单操作 +///ѯ󱨵 struct CThostFtdcErrorConditionalOrderField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///报单引用 + /// TThostFtdcOrderRefType OrderRef; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///报单价格条件 + ///۸ TThostFtdcOrderPriceTypeType OrderPriceType; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///组合开平标志 + ///Ͽƽ־ TThostFtdcCombOffsetFlagType CombOffsetFlag; - ///组合投机套保标志 + ///Ͷױ־ TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///价格 + ///۸ TThostFtdcPriceType LimitPrice; - ///数量 + /// TThostFtdcVolumeType VolumeTotalOriginal; - ///有效期类型 + ///Ч TThostFtdcTimeConditionType TimeCondition; - ///GTD日期 + ///GTD TThostFtdcDateType GTDDate; - ///成交量类型 + ///ɽ TThostFtdcVolumeConditionType VolumeCondition; - ///最小成交量 + ///Сɽ TThostFtdcVolumeType MinVolume; - ///触发条件 + /// TThostFtdcContingentConditionType ContingentCondition; - ///止损价 + ///ֹ TThostFtdcPriceType StopPrice; - ///强平原因 + ///ǿƽԭ TThostFtdcForceCloseReasonType ForceCloseReason; - ///自动挂起标志 + ///Զ־ TThostFtdcBoolType IsAutoSuspend; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///本地报单编号 + ///ر TThostFtdcOrderLocalIDType OrderLocalID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///合约在交易所的代码 + ///ԼڽĴ TThostFtdcExchangeInstIDType ExchangeInstID; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///报单提交状态 + ///ύ״̬ TThostFtdcOrderSubmitStatusType OrderSubmitStatus; - ///报单提示序号 + ///ʾ TThostFtdcSequenceNoType NotifySequence; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///报单来源 + ///Դ TThostFtdcOrderSourceType OrderSource; - ///报单状态 + ///״̬ TThostFtdcOrderStatusType OrderStatus; - ///报单类型 + /// TThostFtdcOrderTypeType OrderType; - ///今成交数量 + ///ɽ TThostFtdcVolumeType VolumeTraded; - ///剩余数量 + ///ʣ TThostFtdcVolumeType VolumeTotal; - ///报单日期 + /// TThostFtdcDateType InsertDate; - ///委托时间 + ///ίʱ TThostFtdcTimeType InsertTime; - ///激活时间 + ///ʱ TThostFtdcTimeType ActiveTime; - ///挂起时间 + ///ʱ TThostFtdcTimeType SuspendTime; - ///最后修改时间 + ///޸ʱ TThostFtdcTimeType UpdateTime; - ///撤销时间 + ///ʱ TThostFtdcTimeType CancelTime; - ///最后修改交易所交易员代码 + ///޸ĽԱ TThostFtdcTraderIDType ActiveTraderID; - ///结算会员编号 + ///Ա TThostFtdcParticipantIDType ClearingPartID; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///用户端产品信息 + ///û˲ƷϢ TThostFtdcProductInfoType UserProductInfo; - ///状态信息 + ///״̬Ϣ TThostFtdcErrorMsgType StatusMsg; - ///用户强评标志 + ///ûǿ־ TThostFtdcBoolType UserForceClose; - ///操作用户代码 + ///û TThostFtdcUserIDType ActiveUserID; - ///经纪公司报单编号 + ///͹˾ TThostFtdcSequenceNoType BrokerOrderSeq; - ///相关报单 + ///ر TThostFtdcOrderSysIDType RelativeOrderSysID; - ///郑商所成交数量 + ///֣ɽ TThostFtdcVolumeType ZCETotalTradedVolume; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///互换单标志 + ///־ TThostFtdcBoolType IsSwapOrder; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///资金账号 + ///ʽ˺ TThostFtdcAccountIDType AccountID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; }; -///查询错误报单操作 +///ѯ󱨵 struct CThostFtdcQryErrOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; }; -///错误报单操作 +///󱨵 struct CThostFtdcErrOrderActionField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///报单操作引用 + /// TThostFtdcOrderActionRefType OrderActionRef; - ///报单引用 + /// TThostFtdcOrderRefType OrderRef; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///前置编号 + ///ǰñ TThostFtdcFrontIDType FrontID; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///报单编号 + /// TThostFtdcOrderSysIDType OrderSysID; - ///操作标志 + ///־ TThostFtdcActionFlagType ActionFlag; - ///价格 + ///۸ TThostFtdcPriceType LimitPrice; - ///数量变化 + ///仯 TThostFtdcVolumeType VolumeChange; - ///操作日期 + /// TThostFtdcDateType ActionDate; - ///操作时间 + ///ʱ TThostFtdcTimeType ActionTime; - ///交易所交易员代码 + ///Ա TThostFtdcTraderIDType TraderID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///本地报单编号 + ///ر TThostFtdcOrderLocalIDType OrderLocalID; - ///操作本地编号 + ///ر TThostFtdcOrderLocalIDType ActionLocalID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///客户代码 + ///ͻ TThostFtdcClientIDType ClientID; - ///业务单元 + ///ҵԪ TThostFtdcBusinessUnitType BusinessUnit; - ///报单操作状态 + ///״̬ TThostFtdcOrderActionStatusType OrderActionStatus; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///状态信息 + ///״̬Ϣ TThostFtdcErrorMsgType StatusMsg; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///营业部编号 + ///Ӫҵ TThostFtdcBranchIDType BranchID; - ///投资单元代码 + ///ͶʵԪ TThostFtdcInvestUnitIDType InvestUnitID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; - ///Mac地址 + ///Macַ TThostFtdcMacAddressType MacAddress; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; -///查询交易所状态 +///ѯ״̬ struct CThostFtdcQryExchangeSequenceField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; }; -///交易所状态 +///״̬ struct CThostFtdcExchangeSequenceField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///序号 + /// TThostFtdcSequenceNoType SequenceNo; - ///合约交易状态 + ///Լ״̬ TThostFtdcInstrumentStatusType MarketStatus; }; -///根据价格查询最大报单数量 +///ݼ۸ѯ󱨵 struct CThostFtdcQueryMaxOrderVolumeWithPriceField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///开平标志 + ///ƽ־ TThostFtdcOffsetFlagType OffsetFlag; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///最大允许报单数量 + /// TThostFtdcVolumeType MaxVolume; - ///报单价格 + ///۸ TThostFtdcPriceType Price; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询经纪公司交易参数 +///ѯ͹˾ײ struct CThostFtdcQryBrokerTradingParamsField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; }; -///经纪公司交易参数 +///͹˾ײ struct CThostFtdcBrokerTradingParamsField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///保证金价格类型 + ///֤۸ TThostFtdcMarginPriceTypeType MarginPriceType; - ///盈亏算法 + ///ӯ㷨 TThostFtdcAlgorithmType Algorithm; - ///可用是否包含平仓盈利 + ///Ƿƽӯ TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///期权权利金价格类型 + ///ȨȨ۸ TThostFtdcOptionRoyaltyPriceTypeType OptionRoyaltyPriceType; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; }; -///查询经纪公司交易算法 +///ѯ͹˾㷨 struct CThostFtdcQryBrokerTradingAlgosField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; }; -///经纪公司交易算法 +///͹˾㷨 struct CThostFtdcBrokerTradingAlgosField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///持仓处理算法编号 + ///ֲִ㷨 TThostFtdcHandlePositionAlgoIDType HandlePositionAlgoID; - ///寻找保证金率算法编号 + ///Ѱұ֤㷨 TThostFtdcFindMarginRateAlgoIDType FindMarginRateAlgoID; - ///资金处理算法编号 + ///ʽ㷨 TThostFtdcHandleTradingAccountAlgoIDType HandleTradingAccountAlgoID; }; -///查询经纪公司资金 +///ѯ͹˾ʽ struct CThostFtdcQueryBrokerDepositField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; }; -///经纪公司资金 +///͹˾ʽ struct CThostFtdcBrokerDepositField { - ///交易日期 + /// TThostFtdcTradeDateType TradingDay; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///会员代码 + ///Ա TThostFtdcParticipantIDType ParticipantID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///上次结算准备金 + ///ϴν׼ TThostFtdcMoneyType PreBalance; - ///当前保证金总额 + ///ǰ֤ܶ TThostFtdcMoneyType CurrMargin; - ///平仓盈亏 + ///ƽӯ TThostFtdcMoneyType CloseProfit; - ///期货结算准备金 + ///ڻ׼ TThostFtdcMoneyType Balance; - ///入金金额 + /// TThostFtdcMoneyType Deposit; - ///出金金额 + /// TThostFtdcMoneyType Withdraw; - ///可提资金 + ///ʽ TThostFtdcMoneyType Available; - ///基本准备金 + ///׼ TThostFtdcMoneyType Reserve; - ///冻结的保证金 + ///ı֤ TThostFtdcMoneyType FrozenMargin; }; -///查询保证金监管系统经纪公司密钥 +///ѯ֤ϵͳ͹˾Կ struct CThostFtdcQryCFMMCBrokerKeyField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; }; -///保证金监管系统经纪公司密钥 +///֤ϵͳ͹˾Կ struct CThostFtdcCFMMCBrokerKeyField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///经纪公司统一编码 + ///͹˾ͳһ TThostFtdcParticipantIDType ParticipantID; - ///密钥生成日期 + ///Կ TThostFtdcDateType CreateDate; - ///密钥生成时间 + ///Կʱ TThostFtdcTimeType CreateTime; - ///密钥编号 + ///Կ TThostFtdcSequenceNoType KeyID; - ///动态密钥 + ///̬Կ TThostFtdcCFMMCKeyType CurrentKey; - ///动态密钥类型 + ///̬Կ TThostFtdcCFMMCKeyKindType KeyKind; }; -///保证金监管系统经纪公司资金账户密钥 +///֤ϵͳ͹˾ʽ˻Կ struct CThostFtdcCFMMCTradingAccountKeyField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///经纪公司统一编码 + ///͹˾ͳһ TThostFtdcParticipantIDType ParticipantID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///密钥编号 + ///Կ TThostFtdcSequenceNoType KeyID; - ///动态密钥 + ///̬Կ TThostFtdcCFMMCKeyType CurrentKey; }; -///请求查询保证金监管系统经纪公司资金账户密钥 +///ѯ֤ϵͳ͹˾ʽ˻Կ struct CThostFtdcQryCFMMCTradingAccountKeyField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; }; -///用户动态令牌参数 +///û̬Ʋ struct CThostFtdcBrokerUserOTPParamField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///动态令牌提供商 + ///̬ṩ TThostFtdcOTPVendorsIDType OTPVendorsID; - ///动态令牌序列号 + ///̬к TThostFtdcSerialNumberType SerialNumber; - ///令牌密钥 + ///Կ TThostFtdcAuthKeyType AuthKey; - ///漂移值 + ///Ưֵ TThostFtdcLastDriftType LastDrift; - ///成功值 + ///ɹֵ TThostFtdcLastSuccessType LastSuccess; - ///动态令牌类型 + ///̬ TThostFtdcOTPTypeType OTPType; }; -///手工同步用户动态令牌 +///ֹͬû̬ struct CThostFtdcManualSyncBrokerUserOTPField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///动态令牌类型 + ///̬ TThostFtdcOTPTypeType OTPType; - ///第一个动态密码 + ///һ̬ TThostFtdcPasswordType FirstOTP; - ///第二个动态密码 + ///ڶ̬ TThostFtdcPasswordType SecondOTP; }; -///投资者手续费率模板 +///Ͷģ struct CThostFtdcCommRateModelField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///手续费率模板代码 + ///ģ TThostFtdcInvestorIDType CommModelID; - ///模板名称 + ///ģ TThostFtdcCommModelNameType CommModelName; }; -///请求查询投资者手续费率模板 +///ѯͶģ struct CThostFtdcQryCommRateModelField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///手续费率模板代码 + ///ģ TThostFtdcInvestorIDType CommModelID; }; -///投资者保证金率模板 +///Ͷ֤߱ģ struct CThostFtdcMarginModelField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///保证金率模板代码 + ///֤ģ TThostFtdcInvestorIDType MarginModelID; - ///模板名称 + ///ģ TThostFtdcCommModelNameType MarginModelName; }; -///请求查询投资者保证金率模板 +///ѯͶ֤߱ģ struct CThostFtdcQryMarginModelField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///保证金率模板代码 + ///֤ģ TThostFtdcInvestorIDType MarginModelID; }; -///仓单折抵信息 +///ֵ۵Ϣ struct CThostFtdcEWarrantOffsetField { - ///交易日期 + /// TThostFtdcTradeDateType TradingDay; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; - ///买卖方向 + /// TThostFtdcDirectionType Direction; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; - ///数量 + /// TThostFtdcVolumeType Volume; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询仓单折抵信息 +///ѯֵ۵Ϣ struct CThostFtdcQryEWarrantOffsetField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///合约代码 + ///Լ TThostFtdcInstrumentIDType InstrumentID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询投资者品种/跨品种保证金 +///ѯͶƷ/Ʒֱ֤ struct CThostFtdcQryInvestorProductGroupMarginField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///品种/跨品种标示 + ///Ʒ/Ʒֱʾ TThostFtdcInstrumentIDType ProductGroupID; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///投资者品种/跨品种保证金 +///ͶƷ/Ʒֱ֤ struct CThostFtdcInvestorProductGroupMarginField { - ///品种/跨品种标示 + ///Ʒ/Ʒֱʾ TThostFtdcInstrumentIDType ProductGroupID; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///结算编号 + /// TThostFtdcSettlementIDType SettlementID; - ///冻结的保证金 + ///ı֤ TThostFtdcMoneyType FrozenMargin; - ///多头冻结的保证金 + ///ͷı֤ TThostFtdcMoneyType LongFrozenMargin; - ///空头冻结的保证金 + ///ͷı֤ TThostFtdcMoneyType ShortFrozenMargin; - ///占用的保证金 + ///ռõı֤ TThostFtdcMoneyType UseMargin; - ///多头保证金 + ///ͷ֤ TThostFtdcMoneyType LongUseMargin; - ///空头保证金 + ///ͷ֤ TThostFtdcMoneyType ShortUseMargin; - ///交易所保证金 + ///֤ TThostFtdcMoneyType ExchMargin; - ///交易所多头保证金 + ///ͷ֤ TThostFtdcMoneyType LongExchMargin; - ///交易所空头保证金 + ///ͷ֤ TThostFtdcMoneyType ShortExchMargin; - ///平仓盈亏 + ///ƽӯ TThostFtdcMoneyType CloseProfit; - ///冻结的手续费 + /// TThostFtdcMoneyType FrozenCommission; - ///手续费 + /// TThostFtdcMoneyType Commission; - ///冻结的资金 + ///ʽ TThostFtdcMoneyType FrozenCash; - ///资金差额 + ///ʽ TThostFtdcMoneyType CashIn; - ///持仓盈亏 + ///ֲӯ TThostFtdcMoneyType PositionProfit; - ///折抵总金额 + ///۵ܽ TThostFtdcMoneyType OffsetAmount; - ///多头折抵总金额 + ///ͷ۵ܽ TThostFtdcMoneyType LongOffsetAmount; - ///空头折抵总金额 + ///ͷ۵ܽ TThostFtdcMoneyType ShortOffsetAmount; - ///交易所折抵总金额 + ///۵ܽ TThostFtdcMoneyType ExchOffsetAmount; - ///交易所多头折抵总金额 + ///ͷ۵ܽ TThostFtdcMoneyType LongExchOffsetAmount; - ///交易所空头折抵总金额 + ///ͷ۵ܽ TThostFtdcMoneyType ShortExchOffsetAmount; - ///投机套保标志 + ///Ͷױ־ TThostFtdcHedgeFlagType HedgeFlag; + /// + TThostFtdcExchangeIDType ExchangeID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///查询监控中心用户令牌 +///ѯû struct CThostFtdcQueryCFMMCTradingAccountTokenField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; + ///ͶʵԪ + TThostFtdcInvestUnitIDType InvestUnitID; }; -///监控中心用户令牌 +///û struct CThostFtdcCFMMCTradingAccountTokenField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///经纪公司统一编码 + ///͹˾ͳһ TThostFtdcParticipantIDType ParticipantID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///密钥编号 + ///Կ TThostFtdcSequenceNoType KeyID; - ///动态令牌 + ///̬ TThostFtdcCFMMCTokenType Token; }; -///查询产品组 +///ѯƷ struct CThostFtdcQryProductGroupField { - ///产品代码 + ///Ʒ TThostFtdcInstrumentIDType ProductID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; }; -///投资者品种/跨品种保证金产品组 +///ͶƷ/Ʒֱ֤Ʒ struct CThostFtdcProductGroupField { - ///产品代码 + ///Ʒ TThostFtdcInstrumentIDType ProductID; - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///产品组代码 + ///Ʒ TThostFtdcInstrumentIDType ProductGroupID; }; -///交易所公告 +/// struct CThostFtdcBulletinField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///交易日 + /// TThostFtdcDateType TradingDay; - ///公告编号 + /// TThostFtdcBulletinIDType BulletinID; - ///序列号 + ///к TThostFtdcSequenceNoType SequenceNo; - ///公告类型 + /// TThostFtdcNewsTypeType NewsType; - ///紧急程度 + ///̶ TThostFtdcNewsUrgencyType NewsUrgency; - ///发送时间 + ///ʱ TThostFtdcTimeType SendTime; - ///消息摘要 + ///ϢժҪ TThostFtdcAbstractType Abstract; - ///消息来源 + ///ϢԴ TThostFtdcComeFromType ComeFrom; - ///消息正文 + ///Ϣ TThostFtdcContentType Content; - ///WEB地址 + ///WEBַ TThostFtdcURLLinkType URLLink; - ///市场代码 + ///г TThostFtdcMarketIDType MarketID; }; -///查询交易所公告 +///ѯ struct CThostFtdcQryBulletinField { - ///交易所代码 + /// TThostFtdcExchangeIDType ExchangeID; - ///公告编号 + /// TThostFtdcBulletinIDType BulletinID; - ///序列号 + ///к TThostFtdcSequenceNoType SequenceNo; - ///公告类型 + /// TThostFtdcNewsTypeType NewsType; - ///紧急程度 + ///̶ TThostFtdcNewsUrgencyType NewsUrgency; }; -///转帐开户请求 +///תʿ struct CThostFtdcReqOpenAccountField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 + ///Ա TThostFtdcGenderType Gender; - ///国家代码 + ///Ҵ TThostFtdcCountryCodeType CountryCode; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///地址 + ///ַ TThostFtdcAddressType Address; - ///邮编 + ///ʱ TThostFtdcZipCodeType ZipCode; - ///电话号码 + ///绰 TThostFtdcTelephoneType Telephone; - ///手机 + ///ֻ TThostFtdcMobilePhoneType MobilePhone; - ///传真 + /// TThostFtdcFaxType Fax; - ///电子邮件 + ///ʼ TThostFtdcEMailType EMail; - ///资金账户状态 + ///ʽ˻״̬ TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///汇钞标志 + ///㳮־ TThostFtdcCashExchangeCodeType CashExchangeCode; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 + ///ڻλʺ TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 + ///ڻλʺ TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///转帐销户请求 +///ת struct CThostFtdcReqCancelAccountField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 + ///Ա TThostFtdcGenderType Gender; - ///国家代码 + ///Ҵ TThostFtdcCountryCodeType CountryCode; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///地址 + ///ַ TThostFtdcAddressType Address; - ///邮编 + ///ʱ TThostFtdcZipCodeType ZipCode; - ///电话号码 + ///绰 TThostFtdcTelephoneType Telephone; - ///手机 + ///ֻ TThostFtdcMobilePhoneType MobilePhone; - ///传真 + /// TThostFtdcFaxType Fax; - ///电子邮件 + ///ʼ TThostFtdcEMailType EMail; - ///资金账户状态 + ///ʽ˻״̬ TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///汇钞标志 + ///㳮־ TThostFtdcCashExchangeCodeType CashExchangeCode; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 + ///ڻλʺ TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 + ///ڻλʺ TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///变更银行账户请求 +///˻ struct CThostFtdcReqChangeAccountField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 + ///Ա TThostFtdcGenderType Gender; - ///国家代码 + ///Ҵ TThostFtdcCountryCodeType CountryCode; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///地址 + ///ַ TThostFtdcAddressType Address; - ///邮编 + ///ʱ TThostFtdcZipCodeType ZipCode; - ///电话号码 + ///绰 TThostFtdcTelephoneType Telephone; - ///手机 + ///ֻ TThostFtdcMobilePhoneType MobilePhone; - ///传真 + /// TThostFtdcFaxType Fax; - ///电子邮件 + ///ʼ TThostFtdcEMailType EMail; - ///资金账户状态 + ///ʽ˻״̬ TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///新银行帐号 + ///ʺ TThostFtdcBankAccountType NewBankAccount; - ///新银行密码 + /// TThostFtdcPasswordType NewBankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///转账请求 +///ת struct CThostFtdcReqTransferField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///期货公司流水号 + ///ڻ˾ˮ TThostFtdcFutureSerialType FutureSerial; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///转帐金额 + ///תʽ TThostFtdcTradeAmountType TradeAmount; - ///期货可取金额 + ///ڻȡ TThostFtdcTradeAmountType FutureFetchAmount; - ///费用支付标志 + ///֧־ TThostFtdcFeePayFlagType FeePayFlag; - ///应收客户费用 + ///Ӧտͻ TThostFtdcCustFeeType CustFee; - ///应收期货公司费用 + ///Ӧڻ˾ TThostFtdcFutureFeeType BrokerFee; - ///发送方给接收方的消息 + ///ͷշϢ TThostFtdcAddInfoType Message; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 + ///ڻλʺ TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 + ///ڻλʺ TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///转账交易状态 + ///ת˽״̬ TThostFtdcTransferStatusType TransferStatus; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///银行发起银行资金转期货响应 +///зʽתڻӦ struct CThostFtdcRspTransferField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///期货公司流水号 + ///ڻ˾ˮ TThostFtdcFutureSerialType FutureSerial; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///转帐金额 + ///תʽ TThostFtdcTradeAmountType TradeAmount; - ///期货可取金额 + ///ڻȡ TThostFtdcTradeAmountType FutureFetchAmount; - ///费用支付标志 + ///֧־ TThostFtdcFeePayFlagType FeePayFlag; - ///应收客户费用 + ///Ӧտͻ TThostFtdcCustFeeType CustFee; - ///应收期货公司费用 + ///Ӧڻ˾ TThostFtdcFutureFeeType BrokerFee; - ///发送方给接收方的消息 + ///ͷշϢ TThostFtdcAddInfoType Message; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 + ///ڻλʺ TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 + ///ڻλʺ TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///转账交易状态 + ///ת˽״̬ TThostFtdcTransferStatusType TransferStatus; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///冲正请求 +/// struct CThostFtdcReqRepealField { - ///冲正时间间隔 + ///ʱ TThostFtdcRepealTimeIntervalType RepealTimeInterval; - ///已经冲正次数 + ///Ѿ TThostFtdcRepealedTimesType RepealedTimes; - ///银行冲正标志 + ///г־ TThostFtdcBankRepealFlagType BankRepealFlag; - ///期商冲正标志 + ///̳־ TThostFtdcBrokerRepealFlagType BrokerRepealFlag; - ///被冲正平台流水号 + ///ƽ̨ˮ TThostFtdcPlateSerialType PlateRepealSerial; - ///被冲正银行流水号 + ///ˮ TThostFtdcBankSerialType BankRepealSerial; - ///被冲正期货流水号 + ///ڻˮ TThostFtdcFutureSerialType FutureRepealSerial; - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///期货公司流水号 + ///ڻ˾ˮ TThostFtdcFutureSerialType FutureSerial; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///转帐金额 + ///תʽ TThostFtdcTradeAmountType TradeAmount; - ///期货可取金额 + ///ڻȡ TThostFtdcTradeAmountType FutureFetchAmount; - ///费用支付标志 + ///֧־ TThostFtdcFeePayFlagType FeePayFlag; - ///应收客户费用 + ///Ӧտͻ TThostFtdcCustFeeType CustFee; - ///应收期货公司费用 + ///Ӧڻ˾ TThostFtdcFutureFeeType BrokerFee; - ///发送方给接收方的消息 + ///ͷշϢ TThostFtdcAddInfoType Message; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 + ///ڻλʺ TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 + ///ڻλʺ TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///转账交易状态 + ///ת˽״̬ TThostFtdcTransferStatusType TransferStatus; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///冲正响应 +///Ӧ struct CThostFtdcRspRepealField { - ///冲正时间间隔 + ///ʱ TThostFtdcRepealTimeIntervalType RepealTimeInterval; - ///已经冲正次数 + ///Ѿ TThostFtdcRepealedTimesType RepealedTimes; - ///银行冲正标志 + ///г־ TThostFtdcBankRepealFlagType BankRepealFlag; - ///期商冲正标志 + ///̳־ TThostFtdcBrokerRepealFlagType BrokerRepealFlag; - ///被冲正平台流水号 + ///ƽ̨ˮ TThostFtdcPlateSerialType PlateRepealSerial; - ///被冲正银行流水号 + ///ˮ TThostFtdcBankSerialType BankRepealSerial; - ///被冲正期货流水号 + ///ڻˮ TThostFtdcFutureSerialType FutureRepealSerial; - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///期货公司流水号 + ///ڻ˾ˮ TThostFtdcFutureSerialType FutureSerial; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///转帐金额 + ///תʽ TThostFtdcTradeAmountType TradeAmount; - ///期货可取金额 + ///ڻȡ TThostFtdcTradeAmountType FutureFetchAmount; - ///费用支付标志 + ///֧־ TThostFtdcFeePayFlagType FeePayFlag; - ///应收客户费用 + ///Ӧտͻ TThostFtdcCustFeeType CustFee; - ///应收期货公司费用 + ///Ӧڻ˾ TThostFtdcFutureFeeType BrokerFee; - ///发送方给接收方的消息 + ///ͷշϢ TThostFtdcAddInfoType Message; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 + ///ڻλʺ TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 + ///ڻλʺ TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///转账交易状态 + ///ת˽״̬ TThostFtdcTransferStatusType TransferStatus; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///查询账户信息请求 +///ѯ˻Ϣ struct CThostFtdcReqQueryAccountField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///期货公司流水号 + ///ڻ˾ˮ TThostFtdcFutureSerialType FutureSerial; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 + ///ڻλʺ TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 + ///ڻλʺ TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///查询账户信息响应 +///ѯ˻ϢӦ struct CThostFtdcRspQueryAccountField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///期货公司流水号 + ///ڻ˾ˮ TThostFtdcFutureSerialType FutureSerial; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 + ///ڻλʺ TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 + ///ڻλʺ TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///银行可用金额 + ///пý TThostFtdcTradeAmountType BankUseAmount; - ///银行可取金额 + ///пȡ TThostFtdcTradeAmountType BankFetchAmount; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///期商签到签退 +///ǩǩ struct CThostFtdcFutureSignIOField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; }; -///期商签到响应 +///ǩӦ struct CThostFtdcRspFutureSignInField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///PIN密钥 + ///PINԿ TThostFtdcPasswordKeyType PinKey; - ///MAC密钥 + ///MACԿ TThostFtdcPasswordKeyType MacKey; }; -///期商签退请求 +///ǩ struct CThostFtdcReqFutureSignOutField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; }; -///期商签退响应 +///ǩӦ struct CThostFtdcRspFutureSignOutField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; -///查询指定流水号的交易结果请求 +///ѯָˮŵĽ׽ struct CThostFtdcReqQueryTradeResultBySerialField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///流水号 + ///ˮ TThostFtdcSerialType Reference; - ///本流水号发布者的机构类型 + ///ˮŷߵĻ TThostFtdcInstitutionTypeType RefrenceIssureType; - ///本流水号发布者机构编码 + ///ˮŷ߻ TThostFtdcOrganCodeType RefrenceIssure; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///转帐金额 + ///תʽ TThostFtdcTradeAmountType TradeAmount; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///查询指定流水号的交易结果响应 +///ѯָˮŵĽ׽Ӧ struct CThostFtdcRspQueryTradeResultBySerialField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///流水号 + ///ˮ TThostFtdcSerialType Reference; - ///本流水号发布者的机构类型 + ///ˮŷߵĻ TThostFtdcInstitutionTypeType RefrenceIssureType; - ///本流水号发布者机构编码 + ///ˮŷ߻ TThostFtdcOrganCodeType RefrenceIssure; - ///原始返回代码 + ///ԭʼش TThostFtdcReturnCodeType OriginReturnCode; - ///原始返回码描述 + ///ԭʼ TThostFtdcDescrInfoForReturnCodeType OriginDescrInfoForReturnCode; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///转帐金额 + ///תʽ TThostFtdcTradeAmountType TradeAmount; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; }; -///日终文件就绪请求 +///ļ struct CThostFtdcReqDayEndFileReadyField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///文件业务功能 + ///ļҵ TThostFtdcFileBusinessCodeType FileBusinessCode; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; }; -///返回结果 +///ؽ struct CThostFtdcReturnResultField { - ///返回代码 + ///ش TThostFtdcReturnCodeType ReturnCode; - ///返回码描述 + /// TThostFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode; }; -///验证期货资金密码 +///֤ڻʽ struct CThostFtdcVerifyFuturePasswordField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; }; -///验证客户信息 +///֤ͻϢ struct CThostFtdcVerifyCustInfoField { - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///验证期货资金密码和客户信息 +///֤ڻʽͿͻϢ struct CThostFtdcVerifyFuturePasswordAndCustInfoField { - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///验证期货资金密码和客户信息 +///֤ڻʽͿͻϢ struct CThostFtdcDepositResultInformField { - ///出入金流水号,该流水号为银期报盘返回的流水号 + ///ˮţˮΪڱ̷صˮ TThostFtdcDepositSeqNoType DepositSeqNo; - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///入金金额 + /// TThostFtdcMoneyType Deposit; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///返回代码 + ///ش TThostFtdcReturnCodeType ReturnCode; - ///返回码描述 + /// TThostFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode; }; -///交易核心向银期报盘发出密钥同步请求 +///׺ڱ̷Կͬ struct CThostFtdcReqSyncKeyField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///交易核心给银期报盘的消息 + ///׺ĸڱ̵Ϣ TThostFtdcAddInfoType Message; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; }; -///交易核心向银期报盘发出密钥同步响应 +///׺ڱ̷ԿͬӦ struct CThostFtdcRspSyncKeyField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///交易核心给银期报盘的消息 + ///׺ĸڱ̵Ϣ TThostFtdcAddInfoType Message; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; -///查询账户信息通知 +///ѯ˻Ϣ֪ͨ struct CThostFtdcNotifyQueryAccountField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///期货公司流水号 + ///ڻ˾ˮ TThostFtdcFutureSerialType FutureSerial; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 + ///ڻλʺ TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 + ///ڻλʺ TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///银行可用金额 + ///пý TThostFtdcTradeAmountType BankUseAmount; - ///银行可取金额 + ///пȡ TThostFtdcTradeAmountType BankFetchAmount; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///银期转账交易流水表 +///ת˽ˮ struct CThostFtdcTransferSerialField { - ///平台流水号 + ///ƽ̨ˮ TThostFtdcPlateSerialType PlateSerial; - ///交易发起方日期 + ///׷ TThostFtdcTradeDateType TradeDate; - ///交易日期 + /// TThostFtdcDateType TradingDay; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///交易代码 + ///״ TThostFtdcTradeCodeType TradeCode; - ///会话编号 + ///Ự TThostFtdcSessionIDType SessionID; - ///银行编码 + ///б TThostFtdcBankIDType BankID; - ///银行分支机构编码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///期货公司编码 + ///ڻ˾ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///期货公司帐号类型 + ///ڻ˾ʺ TThostFtdcFutureAccTypeType FutureAccType; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///投资者代码 + ///Ͷߴ TThostFtdcInvestorIDType InvestorID; - ///期货公司流水号 + ///ڻ˾ˮ TThostFtdcFutureSerialType FutureSerial; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///交易金额 + ///׽ TThostFtdcTradeAmountType TradeAmount; - ///应收客户费用 + ///Ӧտͻ TThostFtdcCustFeeType CustFee; - ///应收期货公司费用 + ///Ӧڻ˾ TThostFtdcFutureFeeType BrokerFee; - ///有效标志 + ///Ч־ TThostFtdcAvailabilityFlagType AvailabilityFlag; - ///操作员 + ///Ա TThostFtdcOperatorCodeType OperatorCode; - ///新银行帐号 + ///ʺ TThostFtdcBankAccountType BankNewAccount; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; -///请求查询转帐流水 +///ѯתˮ struct CThostFtdcQryTransferSerialField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///银行编码 + ///б TThostFtdcBankIDType BankID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; }; -///期商签到通知 +///ǩ֪ͨ struct CThostFtdcNotifyFutureSignInField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///PIN密钥 + ///PINԿ TThostFtdcPasswordKeyType PinKey; - ///MAC密钥 + ///MACԿ TThostFtdcPasswordKeyType MacKey; }; -///期商签退通知 +///ǩ֪ͨ struct CThostFtdcNotifyFutureSignOutField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; -///交易核心向银期报盘发出密钥同步处理结果的通知 +///׺ڱ̷Կ֪ͬͨ struct CThostFtdcNotifySyncKeyField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///交易核心给银期报盘的消息 + ///׺ĸڱ̵Ϣ TThostFtdcAddInfoType Message; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///请求编号 + /// TThostFtdcRequestIDType RequestID; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; -///请求查询银期签约关系 +///ѯǩԼϵ struct CThostFtdcQryAccountregisterField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///银行编码 + ///б TThostFtdcBankIDType BankID; - ///银行分支机构编码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; }; -///客户开销户信息表 +///ͻϢ struct CThostFtdcAccountregisterField { - ///交易日期 + /// TThostFtdcTradeDateType TradeDay; - ///银行编码 + ///б TThostFtdcBankIDType BankID; - ///银行分支机构编码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///期货公司编码 + ///ڻ˾ TThostFtdcBrokerIDType BrokerID; - ///期货公司分支机构编码 + ///ڻ˾֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///开销户类别 + /// TThostFtdcOpenOrDestroyType OpenOrDestroy; - ///签约日期 + ///ǩԼ TThostFtdcTradeDateType RegDate; - ///解约日期 + ///Լ TThostFtdcTradeDateType OutDate; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///银期开户信息 +///ڿϢ struct CThostFtdcOpenAccountField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 + ///Ա TThostFtdcGenderType Gender; - ///国家代码 + ///Ҵ TThostFtdcCountryCodeType CountryCode; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///地址 + ///ַ TThostFtdcAddressType Address; - ///邮编 + ///ʱ TThostFtdcZipCodeType ZipCode; - ///电话号码 + ///绰 TThostFtdcTelephoneType Telephone; - ///手机 + ///ֻ TThostFtdcMobilePhoneType MobilePhone; - ///传真 + /// TThostFtdcFaxType Fax; - ///电子邮件 + ///ʼ TThostFtdcEMailType EMail; - ///资金账户状态 + ///ʽ˻״̬ TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///汇钞标志 + ///㳮־ TThostFtdcCashExchangeCodeType CashExchangeCode; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 + ///ڻλʺ TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 + ///ڻλʺ TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///银期销户信息 +///Ϣ struct CThostFtdcCancelAccountField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 + ///Ա TThostFtdcGenderType Gender; - ///国家代码 + ///Ҵ TThostFtdcCountryCodeType CountryCode; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///地址 + ///ַ TThostFtdcAddressType Address; - ///邮编 + ///ʱ TThostFtdcZipCodeType ZipCode; - ///电话号码 + ///绰 TThostFtdcTelephoneType Telephone; - ///手机 + ///ֻ TThostFtdcMobilePhoneType MobilePhone; - ///传真 + /// TThostFtdcFaxType Fax; - ///电子邮件 + ///ʼ TThostFtdcEMailType EMail; - ///资金账户状态 + ///ʽ˻״̬ TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///汇钞标志 + ///㳮־ TThostFtdcCashExchangeCodeType CashExchangeCode; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///渠道标志 + ///־ TThostFtdcDeviceIDType DeviceID; - ///期货单位帐号类型 + ///ڻλʺ TThostFtdcBankAccTypeType BankSecuAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///期货单位帐号 + ///ڻλʺ TThostFtdcBankAccountType BankSecuAcc; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易柜员 + ///׹Ա TThostFtdcOperNoType OperNo; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///用户标识 + ///ûʶ TThostFtdcUserIDType UserID; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///银期变更银行账号信息 +///ڱ˺Ϣ struct CThostFtdcChangeAccountField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 + ///Ա TThostFtdcGenderType Gender; - ///国家代码 + ///Ҵ TThostFtdcCountryCodeType CountryCode; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///地址 + ///ַ TThostFtdcAddressType Address; - ///邮编 + ///ʱ TThostFtdcZipCodeType ZipCode; - ///电话号码 + ///绰 TThostFtdcTelephoneType Telephone; - ///手机 + ///ֻ TThostFtdcMobilePhoneType MobilePhone; - ///传真 + /// TThostFtdcFaxType Fax; - ///电子邮件 + ///ʼ TThostFtdcEMailType EMail; - ///资金账户状态 + ///ʽ˻״̬ TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///新银行帐号 + ///ʺ TThostFtdcBankAccountType NewBankAccount; - ///新银行密码 + /// TThostFtdcPasswordType NewBankPassWord; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///银行密码标志 + ///־ TThostFtdcPwdFlagType BankPwdFlag; - ///期货资金密码核对标志 + ///ڻʽ˶Ա־ TThostFtdcPwdFlagType SecuPwdFlag; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; - ///长客户姓名 + ///ͻ TThostFtdcLongIndividualNameType LongCustomerName; }; -///二级代理操作员银期权限 +///ԱȨ struct CThostFtdcSecAgentACIDMapField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///资金账户 + ///ʽ˻ TThostFtdcAccountIDType AccountID; - ///币种 + /// TThostFtdcCurrencyIDType CurrencyID; - ///境外中介机构资金帐号 + ///нʽʺ TThostFtdcAccountIDType BrokerSecAgentID; }; -///二级代理操作员银期权限查询 +///ԱȨ޲ѯ struct CThostFtdcQrySecAgentACIDMapField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///资金账户 + ///ʽ˻ TThostFtdcAccountIDType AccountID; - ///币种 + /// TThostFtdcCurrencyIDType CurrencyID; }; -///灾备中心交易权限 +///ֱĽȨ struct CThostFtdcUserRightsAssignField { - ///应用单元代码 + ///ӦõԪ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///交易中心代码 + ///Ĵ TThostFtdcDRIdentityIDType DRIdentityID; }; -///经济公司是否有在本标示的交易权限 +///ù˾ǷڱʾĽȨ struct CThostFtdcBrokerUserRightAssignField { - ///应用单元代码 + ///ӦõԪ TThostFtdcBrokerIDType BrokerID; - ///交易中心代码 + ///Ĵ TThostFtdcDRIdentityIDType DRIdentityID; - ///能否交易 + ///ܷ TThostFtdcBoolType Tradeable; }; -///灾备交易转换报文 +///ֱת struct CThostFtdcDRTransferField { - ///原交易中心代码 + ///ԭĴ TThostFtdcDRIdentityIDType OrigDRIdentityID; - ///目标交易中心代码 + ///Ŀ꽻Ĵ TThostFtdcDRIdentityIDType DestDRIdentityID; - ///原应用单元代码 + ///ԭӦõԪ TThostFtdcBrokerIDType OrigBrokerID; - ///目标易用单元代码 + ///ĿõԪ TThostFtdcBrokerIDType DestBrokerID; }; -///Fens用户信息 +///FensûϢ struct CThostFtdcFensUserInfoField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///登录模式 + ///¼ģʽ TThostFtdcLoginModeType LoginMode; }; -///当前银期所属交易中心 +///ǰ struct CThostFtdcCurrTransferIdentityField { - ///交易中心代码 + ///Ĵ TThostFtdcDRIdentityIDType IdentityID; }; -///禁止登录用户 +///ֹ¼û struct CThostFtdcLoginForbiddenUserField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; - ///IP地址 + ///IPַ TThostFtdcIPAddressType IPAddress; }; -///查询禁止登录用户 +///ѯֹ¼û struct CThostFtdcQryLoginForbiddenUserField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///用户代码 + ///û TThostFtdcUserIDType UserID; }; -///UDP组播组信息 +///UDP鲥Ϣ struct CThostFtdcMulticastGroupInfoField { - ///组播组IP地址 + ///鲥IPַ TThostFtdcIPAddressType GroupIP; - ///组播组IP端口 + ///鲥IP˿ TThostFtdcIPPortType GroupPort; - ///源地址 + ///Դַ TThostFtdcIPAddressType SourceIP; }; -///资金账户基本准备金 +///ʽ˻׼ struct CThostFtdcTradingAccountReserveField { - ///经纪公司代码 + ///͹˾ TThostFtdcBrokerIDType BrokerID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///基本准备金 + ///׼ TThostFtdcMoneyType Reserve; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; }; -///银期预约开户确认请求 +///ѯֹ¼IP +struct CThostFtdcQryLoginForbiddenIPField +{ + ///IPַ + TThostFtdcIPAddressType IPAddress; +}; + +///ѯIPб +struct CThostFtdcQryIPListField +{ + ///IPַ + TThostFtdcIPAddressType IPAddress; +}; + +///ѯûµȨ޷ +struct CThostFtdcQryUserRightsAssignField +{ + ///ӦõԪ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///ԤԼȷ struct CThostFtdcReserveOpenAccountConfirmField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcLongIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 + ///Ա TThostFtdcGenderType Gender; - ///国家代码 + ///Ҵ TThostFtdcCountryCodeType CountryCode; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///地址 + ///ַ TThostFtdcAddressType Address; - ///邮编 + ///ʱ TThostFtdcZipCodeType ZipCode; - ///电话号码 + ///绰 TThostFtdcTelephoneType Telephone; - ///手机 + ///ֻ TThostFtdcMobilePhoneType MobilePhone; - ///传真 + /// TThostFtdcFaxType Fax; - ///电子邮件 + ///ʼ TThostFtdcEMailType EMail; - ///资金账户状态 + ///ʽ˻״̬ TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///投资者帐号 + ///Ͷʺ TThostFtdcAccountIDType AccountID; - ///期货密码 + ///ڻ TThostFtdcPasswordType Password; - ///预约开户银行流水号 + ///ԤԼˮ TThostFtdcBankSerialType BankReserveOpenSeq; - ///预约开户日期 + ///ԤԼ TThostFtdcTradeDateType BookDate; - ///预约开户验证密码 + ///ԤԼ֤ TThostFtdcPasswordType BookPsw; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; -///银期预约开户 +///ԤԼ struct CThostFtdcReserveOpenAccountField { - ///业务功能码 + ///ҵ TThostFtdcTradeCodeType TradeCode; - ///银行代码 + ///д TThostFtdcBankIDType BankID; - ///银行分支机构代码 + ///з֧ TThostFtdcBankBrchIDType BankBranchID; - ///期商代码 + ///̴ TThostFtdcBrokerIDType BrokerID; - ///期商分支机构代码 + ///̷֧ TThostFtdcFutureBranchIDType BrokerBranchID; - ///交易日期 + /// TThostFtdcTradeDateType TradeDate; - ///交易时间 + ///ʱ TThostFtdcTradeTimeType TradeTime; - ///银行流水号 + ///ˮ TThostFtdcBankSerialType BankSerial; - ///交易系统日期 + ///ϵͳ TThostFtdcTradeDateType TradingDay; - ///银期平台消息流水号 + ///ƽ̨Ϣˮ TThostFtdcSerialType PlateSerial; - ///最后分片标志 + ///Ƭ־ TThostFtdcLastFragmentType LastFragment; - ///会话号 + ///Ự TThostFtdcSessionIDType SessionID; - ///客户姓名 + ///ͻ TThostFtdcLongIndividualNameType CustomerName; - ///证件类型 + ///֤ TThostFtdcIdCardTypeType IdCardType; - ///证件号码 + ///֤ TThostFtdcIdentifiedCardNoType IdentifiedCardNo; - ///性别 + ///Ա TThostFtdcGenderType Gender; - ///国家代码 + ///Ҵ TThostFtdcCountryCodeType CountryCode; - ///客户类型 + ///ͻ TThostFtdcCustTypeType CustType; - ///地址 + ///ַ TThostFtdcAddressType Address; - ///邮编 + ///ʱ TThostFtdcZipCodeType ZipCode; - ///电话号码 + ///绰 TThostFtdcTelephoneType Telephone; - ///手机 + ///ֻ TThostFtdcMobilePhoneType MobilePhone; - ///传真 + /// TThostFtdcFaxType Fax; - ///电子邮件 + ///ʼ TThostFtdcEMailType EMail; - ///资金账户状态 + ///ʽ˻״̬ TThostFtdcMoneyAccountStatusType MoneyAccountStatus; - ///银行帐号 + ///ʺ TThostFtdcBankAccountType BankAccount; - ///银行密码 + /// TThostFtdcPasswordType BankPassWord; - ///安装编号 + ///װ TThostFtdcInstallIDType InstallID; - ///验证客户证件号码标志 + ///֤ͻ֤־ TThostFtdcYesNoIndicatorType VerifyCertNoFlag; - ///币种代码 + ///ִ TThostFtdcCurrencyIDType CurrencyID; - ///摘要 + ///ժҪ TThostFtdcDigestType Digest; - ///银行帐号类型 + ///ʺ TThostFtdcBankAccTypeType BankAccType; - ///期货公司银行编码 + ///ڻ˾б TThostFtdcBankCodingForFutureType BrokerIDByBank; - ///交易ID + ///ID TThostFtdcTIDType TID; - ///预约开户状态 + ///ԤԼ״̬ TThostFtdcReserveOpenAccStasType ReserveOpenAccStas; - ///错误代码 + /// TThostFtdcErrorIDType ErrorID; - ///错误信息 + ///Ϣ TThostFtdcErrorMsgType ErrorMsg; }; +///˻ +struct CThostFtdcAccountPropertyField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷʺ + TThostFtdcAccountIDType AccountID; + ///ͳһʶ + TThostFtdcBankIDType BankID; + ///˻ + TThostFtdcBankAccountType BankAccount; + ///˻Ŀ + TThostFtdcInvestorFullNameType OpenName; + ///˻Ŀ + TThostFtdcOpenBankType OpenBank; + ///ǷԾ + TThostFtdcBoolType IsActive; + ///˻Դ + TThostFtdcAccountSourceTypeType AccountSourceType; + /// + TThostFtdcDateType OpenDate; + ///ע + TThostFtdcDateType CancelDate; + ///¼Ա + TThostFtdcOperatorIDType OperatorID; + ///¼ + TThostFtdcDateType OperateDate; + ///¼ʱ + TThostFtdcTimeType OperateTime; + ///ִ + TThostFtdcCurrencyIDType CurrencyID; +}; + +///ѯǰ +struct CThostFtdcQryCurrDRIdentityField +{ + ///Ĵ + TThostFtdcDRIdentityIDType DRIdentityID; +}; + +///ǰ +struct CThostFtdcCurrDRIdentityField +{ + ///Ĵ + TThostFtdcDRIdentityIDType DRIdentityID; +}; + +///ѯʽУģʽ +struct CThostFtdcQrySecAgentCheckModeField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; +}; + +///ѯϢ +struct CThostFtdcQrySecAgentTradeInfoField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///нʽʺ + TThostFtdcAccountIDType BrokerSecAgentID; +}; + +///ûϵͳϢ +struct CThostFtdcUserSystemInfoField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///ûϵͳڲϢ + TThostFtdcSystemInfoLenType ClientSystemInfoLen; + ///ûϵͳڲϢ + TThostFtdcClientSystemInfoType ClientSystemInfo; + ///ûIP + TThostFtdcIPAddressType ClientPublicIP; + ///նIP˿ + TThostFtdcIPPortType ClientIPPort; + ///¼ɹʱ + TThostFtdcTimeType ClientLoginTime; + ///App + TThostFtdcAppIDType ClientAppID; +}; + +///ûȡȫȫ½ +struct CThostFtdcReqUserAuthMethodField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///ûȡȫȫ½ظ +struct CThostFtdcRspUserAuthMethodField +{ + ///ǰõ֤ģʽ + TThostFtdcCurrentAuthMethodType UsableAuthMethod; +}; + +///ûȡȫȫ½ +struct CThostFtdcReqGenUserCaptchaField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///ɵͼƬ֤Ϣ +struct CThostFtdcRspGenUserCaptchaField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///ͼƬϢ + TThostFtdcCaptchaInfoLenType CaptchaInfoLen; + ///ͼƬϢ + TThostFtdcCaptchaInfoType CaptchaInfo; +}; + +///ûȡȫȫ½ +struct CThostFtdcReqGenUserTextField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; +}; + +///֤ɵĻظ +struct CThostFtdcRspGenUserTextField +{ + ///֤ + TThostFtdcUserTextSeqType UserTextSeq; +}; + +///ûͼ֤ĵ¼ +struct CThostFtdcReqUserLoginWithCaptchaField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcPasswordType Password; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///ӿڶ˲ƷϢ + TThostFtdcProductInfoType InterfaceProductInfo; + ///ЭϢ + TThostFtdcProtocolInfoType ProtocolInfo; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///նIPַ + TThostFtdcIPAddressType ClientIPAddress; + ///¼ע + TThostFtdcLoginRemarkType LoginRemark; + ///ͼ֤ + TThostFtdcPasswordType Captcha; + ///նIP˿ + TThostFtdcIPPortType ClientIPPort; +}; + +///û֤ĵ¼ +struct CThostFtdcReqUserLoginWithTextField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcPasswordType Password; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///ӿڶ˲ƷϢ + TThostFtdcProductInfoType InterfaceProductInfo; + ///ЭϢ + TThostFtdcProtocolInfoType ProtocolInfo; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///նIPַ + TThostFtdcIPAddressType ClientIPAddress; + ///¼ע + TThostFtdcLoginRemarkType LoginRemark; + ///֤ + TThostFtdcPasswordType Text; + ///նIP˿ + TThostFtdcIPPortType ClientIPPort; +}; + +///û̬֤ĵ¼ +struct CThostFtdcReqUserLoginWithOTPField +{ + /// + TThostFtdcDateType TradingDay; + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + /// + TThostFtdcPasswordType Password; + ///û˲ƷϢ + TThostFtdcProductInfoType UserProductInfo; + ///ӿڶ˲ƷϢ + TThostFtdcProductInfoType InterfaceProductInfo; + ///ЭϢ + TThostFtdcProtocolInfoType ProtocolInfo; + ///Macַ + TThostFtdcMacAddressType MacAddress; + ///նIPַ + TThostFtdcIPAddressType ClientIPAddress; + ///¼ע + TThostFtdcLoginRemarkType LoginRemark; + ///OTP + TThostFtdcPasswordType OTPPassword; + ///նIP˿ + TThostFtdcIPPortType ClientIPPort; +}; + +///api +struct CThostFtdcReqApiHandshakeField +{ + ///apifrontͨԿ汾 + TThostFtdcCryptoKeyVersionType CryptoKeyVersion; +}; + +///frontapiֻظ +struct CThostFtdcRspApiHandshakeField +{ + ///ֻظݳ + TThostFtdcHandshakeDataLenType FrontHandshakeDataLen; + ///ֻظ + TThostFtdcHandshakeDataType FrontHandshakeData; + ///API֤Ƿ + TThostFtdcBoolType IsApiAuthEnabled; +}; + +///apifront֤key +struct CThostFtdcReqVerifyApiKeyField +{ + ///ֻظݳ + TThostFtdcHandshakeDataLenType ApiHandshakeDataLen; + ///ֻظ + TThostFtdcHandshakeDataType ApiHandshakeData; +}; + +///Աܹ֯ϵ +struct CThostFtdcDepartmentUserField +{ + ///͹˾ + TThostFtdcBrokerIDType BrokerID; + ///û + TThostFtdcUserIDType UserID; + ///Ͷ߷Χ + TThostFtdcDepartmentRangeType InvestorRange; + ///Ͷߴ + TThostFtdcInvestorIDType InvestorID; +}; + +///ѯƵʣÿѯ +struct CThostFtdcQueryFreqField +{ + ///ѯƵ + TThostFtdcQueryFreqType QueryFreq; +}; + #endif diff --git a/v6.3.6_20160606_tradeapi_windows/error.dtd b/v6.3.15_20190220_tradeapi_se_windows/error.dtd similarity index 100% rename from v6.3.6_20160606_tradeapi_windows/error.dtd rename to v6.3.15_20190220_tradeapi_se_windows/error.dtd diff --git a/v6.3.15_20190220_tradeapi_se_windows/error.xml b/v6.3.15_20190220_tradeapi_se_windows/error.xml new file mode 100644 index 0000000..d808342 --- /dev/null +++ b/v6.3.15_20190220_tradeapi_se_windows/error.xml @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/v6.3.15_20190220_tradeapi_se_windows/thostmduserapi_se.dll b/v6.3.15_20190220_tradeapi_se_windows/thostmduserapi_se.dll new file mode 100644 index 0000000..7b94893 Binary files /dev/null and b/v6.3.15_20190220_tradeapi_se_windows/thostmduserapi_se.dll differ diff --git a/v6.3.15_20190220_tradeapi_se_windows/thostmduserapi_se.lib b/v6.3.15_20190220_tradeapi_se_windows/thostmduserapi_se.lib new file mode 100644 index 0000000..8bf9043 Binary files /dev/null and b/v6.3.15_20190220_tradeapi_se_windows/thostmduserapi_se.lib differ diff --git a/v6.3.15_20190220_tradeapi_se_windows/thosttraderapi_se.dll b/v6.3.15_20190220_tradeapi_se_windows/thosttraderapi_se.dll new file mode 100644 index 0000000..c5df39e Binary files /dev/null and b/v6.3.15_20190220_tradeapi_se_windows/thosttraderapi_se.dll differ diff --git a/v6.3.15_20190220_tradeapi_se_windows/thosttraderapi_se.lib b/v6.3.15_20190220_tradeapi_se_windows/thosttraderapi_se.lib new file mode 100644 index 0000000..5b72067 Binary files /dev/null and b/v6.3.15_20190220_tradeapi_se_windows/thosttraderapi_se.lib differ diff --git a/v6.3.6_20160606_api_tradeapi_linux64/ThostFtdcUserApiDataType.h b/v6.3.6_20160606_api_tradeapi_linux64/ThostFtdcUserApiDataType.h deleted file mode 100644 index 9adc1d0..0000000 --- a/v6.3.6_20160606_api_tradeapi_linux64/ThostFtdcUserApiDataType.h +++ /dev/null @@ -1,3073 +0,0 @@ - -#ifndef THOST_FTDCDATATYPE_H -#define THOST_FTDCDATATYPE_H - -enum THOST_TE_RESUME_TYPE -{ - THOST_TERT_RESTART = 0, - THOST_TERT_RESUME, - THOST_TERT_QUICK -}; - -typedef char TThostFtdcTraderIDType[21]; - -typedef char TThostFtdcInvestorIDType[13]; - -typedef char TThostFtdcBrokerIDType[11]; - -typedef char TThostFtdcBrokerAbbrType[9]; - -typedef char TThostFtdcBrokerNameType[81]; - -typedef char TThostFtdcExchangeInstIDType[31]; - -typedef char TThostFtdcOrderRefType[13]; - -typedef char TThostFtdcParticipantIDType[11]; - -typedef char TThostFtdcUserIDType[16]; - -typedef char TThostFtdcPasswordType[41]; - -typedef char TThostFtdcClientIDType[11]; - -typedef char TThostFtdcInstrumentIDType[31]; - -typedef char TThostFtdcInstrumentCodeType[31]; - -typedef char TThostFtdcMarketIDType[31]; - -typedef char TThostFtdcProductNameType[21]; - -typedef char TThostFtdcExchangeIDType[9]; - -typedef char TThostFtdcExchangeNameType[61]; - -typedef char TThostFtdcExchangeAbbrType[9]; - -typedef char TThostFtdcExchangeFlagType[2]; - -typedef char TThostFtdcMacAddressType[21]; - -typedef char TThostFtdcSystemIDType[21]; - -#define THOST_FTDC_EXP_Normal '0' -#define THOST_FTDC_EXP_GenOrderByTrade '1' - -typedef char TThostFtdcExchangePropertyType; - -typedef char TThostFtdcDateType[9]; - -typedef char TThostFtdcTimeType[9]; - -typedef char TThostFtdcLongTimeType[13]; - -typedef char TThostFtdcInstrumentNameType[21]; - -typedef char TThostFtdcSettlementGroupIDType[9]; - -typedef char TThostFtdcOrderSysIDType[21]; - -typedef char TThostFtdcTradeIDType[21]; - -typedef char TThostFtdcCommandTypeType[65]; - -typedef char TThostFtdcIPAddressType[16]; - -typedef int TThostFtdcIPPortType; - -typedef char TThostFtdcProductInfoType[11]; - -typedef char TThostFtdcProtocolInfoType[11]; - -typedef char TThostFtdcBusinessUnitType[21]; - -typedef char TThostFtdcDepositSeqNoType[15]; - -typedef char TThostFtdcIdentifiedCardNoType[51]; - -#define THOST_FTDC_ICT_EID '0' -#define THOST_FTDC_ICT_IDCard '1' -#define THOST_FTDC_ICT_OfficerIDCard '2' -#define THOST_FTDC_ICT_PoliceIDCard '3' -#define THOST_FTDC_ICT_SoldierIDCard '4' -#define THOST_FTDC_ICT_HouseholdRegister '5' -#define THOST_FTDC_ICT_Passport '6' -#define THOST_FTDC_ICT_TaiwanCompatriotIDCard '7' -#define THOST_FTDC_ICT_HomeComingCard '8' -#define THOST_FTDC_ICT_LicenseNo '9' -#define THOST_FTDC_ICT_TaxNo 'A' -#define THOST_FTDC_ICT_HMMainlandTravelPermit 'B' -#define THOST_FTDC_ICT_TwMainlandTravelPermit 'C' -#define THOST_FTDC_ICT_DrivingLicense 'D' -#define THOST_FTDC_ICT_SocialID 'F' -#define THOST_FTDC_ICT_LocalID 'G' -#define THOST_FTDC_ICT_BusinessRegistration 'H' -#define THOST_FTDC_ICT_HKMCIDCard 'I' -#define THOST_FTDC_ICT_AccountsPermits 'J' -#define THOST_FTDC_ICT_FrgPrmtRdCard 'K' -#define THOST_FTDC_ICT_CptMngPrdLetter 'L' -#define THOST_FTDC_ICT_OtherCard 'x' - -typedef char TThostFtdcIdCardTypeType; - -typedef char TThostFtdcOrderLocalIDType[13]; - -typedef char TThostFtdcUserNameType[81]; - -typedef char TThostFtdcPartyNameType[81]; - -typedef char TThostFtdcErrorMsgType[81]; - -typedef char TThostFtdcFieldNameType[2049]; - -typedef char TThostFtdcFieldContentType[2049]; - -typedef char TThostFtdcSystemNameType[41]; - -typedef char TThostFtdcContentType[501]; - -#define THOST_FTDC_IR_All '1' -#define THOST_FTDC_IR_Group '2' -#define THOST_FTDC_IR_Single '3' - -typedef char TThostFtdcInvestorRangeType; - -#define THOST_FTDC_DR_All '1' -#define THOST_FTDC_DR_Group '2' -#define THOST_FTDC_DR_Single '3' - -typedef char TThostFtdcDepartmentRangeType; - -#define THOST_FTDC_DS_Asynchronous '1' -#define THOST_FTDC_DS_Synchronizing '2' -#define THOST_FTDC_DS_Synchronized '3' - -typedef char TThostFtdcDataSyncStatusType; - -#define THOST_FTDC_BDS_Synchronized '1' -#define THOST_FTDC_BDS_Synchronizing '2' - -typedef char TThostFtdcBrokerDataSyncStatusType; - -#define THOST_FTDC_ECS_NoConnection '1' -#define THOST_FTDC_ECS_QryInstrumentSent '2' -#define THOST_FTDC_ECS_GotInformation '9' - -typedef char TThostFtdcExchangeConnectStatusType; - -#define THOST_FTDC_TCS_NotConnected '1' -#define THOST_FTDC_TCS_Connected '2' -#define THOST_FTDC_TCS_QryInstrumentSent '3' -#define THOST_FTDC_TCS_SubPrivateFlow '4' - -typedef char TThostFtdcTraderConnectStatusType; - -#define THOST_FTDC_FC_DataAsync '1' -#define THOST_FTDC_FC_ForceUserLogout '2' -#define THOST_FTDC_FC_UserPasswordUpdate '3' -#define THOST_FTDC_FC_BrokerPasswordUpdate '4' -#define THOST_FTDC_FC_InvestorPasswordUpdate '5' -#define THOST_FTDC_FC_OrderInsert '6' -#define THOST_FTDC_FC_OrderAction '7' -#define THOST_FTDC_FC_SyncSystemData '8' -#define THOST_FTDC_FC_SyncBrokerData '9' -#define THOST_FTDC_FC_BachSyncBrokerData 'A' -#define THOST_FTDC_FC_SuperQuery 'B' -#define THOST_FTDC_FC_ParkedOrderInsert 'C' -#define THOST_FTDC_FC_ParkedOrderAction 'D' -#define THOST_FTDC_FC_SyncOTP 'E' -#define THOST_FTDC_FC_DeleteOrder 'F' - -typedef char TThostFtdcFunctionCodeType; - -#define THOST_FTDC_BFC_ForceUserLogout '1' -#define THOST_FTDC_BFC_UserPasswordUpdate '2' -#define THOST_FTDC_BFC_SyncBrokerData '3' -#define THOST_FTDC_BFC_BachSyncBrokerData '4' -#define THOST_FTDC_BFC_OrderInsert '5' -#define THOST_FTDC_BFC_OrderAction '6' -#define THOST_FTDC_BFC_AllQuery '7' -#define THOST_FTDC_BFC_log 'a' -#define THOST_FTDC_BFC_BaseQry 'b' -#define THOST_FTDC_BFC_TradeQry 'c' -#define THOST_FTDC_BFC_Trade 'd' -#define THOST_FTDC_BFC_Virement 'e' -#define THOST_FTDC_BFC_Risk 'f' -#define THOST_FTDC_BFC_Session 'g' -#define THOST_FTDC_BFC_RiskNoticeCtl 'h' -#define THOST_FTDC_BFC_RiskNotice 'i' -#define THOST_FTDC_BFC_BrokerDeposit 'j' -#define THOST_FTDC_BFC_QueryFund 'k' -#define THOST_FTDC_BFC_QueryOrder 'l' -#define THOST_FTDC_BFC_QueryTrade 'm' -#define THOST_FTDC_BFC_QueryPosition 'n' -#define THOST_FTDC_BFC_QueryMarketData 'o' -#define THOST_FTDC_BFC_QueryUserEvent 'p' -#define THOST_FTDC_BFC_QueryRiskNotify 'q' -#define THOST_FTDC_BFC_QueryFundChange 'r' -#define THOST_FTDC_BFC_QueryInvestor 's' -#define THOST_FTDC_BFC_QueryTradingCode 't' -#define THOST_FTDC_BFC_ForceClose 'u' -#define THOST_FTDC_BFC_PressTest 'v' -#define THOST_FTDC_BFC_RemainCalc 'w' -#define THOST_FTDC_BFC_NetPositionInd 'x' -#define THOST_FTDC_BFC_RiskPredict 'y' -#define THOST_FTDC_BFC_DataExport 'z' -#define THOST_FTDC_BFC_RiskTargetSetup 'A' -#define THOST_FTDC_BFC_MarketDataWarn 'B' -#define THOST_FTDC_BFC_QryBizNotice 'C' -#define THOST_FTDC_BFC_CfgBizNotice 'D' -#define THOST_FTDC_BFC_SyncOTP 'E' -#define THOST_FTDC_BFC_SendBizNotice 'F' -#define THOST_FTDC_BFC_CfgRiskLevelStd 'G' -#define THOST_FTDC_BFC_TbCommand 'H' -#define THOST_FTDC_BFC_DeleteOrder 'J' -#define THOST_FTDC_BFC_ParkedOrderInsert 'K' -#define THOST_FTDC_BFC_ParkedOrderAction 'L' -#define THOST_FTDC_BFC_ExecOrderNoCheck 'M' -#define THOST_FTDC_BFC_Designate 'N' -#define THOST_FTDC_BFC_StockDisposal 'O' -#define THOST_FTDC_BFC_BrokerDepositWarn 'Q' -#define THOST_FTDC_BFC_CoverWarn 'S' -#define THOST_FTDC_BFC_PreExecOrder 'T' -#define THOST_FTDC_BFC_ExecOrderRisk 'P' -#define THOST_FTDC_BFC_PosiLimitWarn 'U' -#define THOST_FTDC_BFC_QryPosiLimit 'V' -#define THOST_FTDC_BFC_FBSign 'W' -#define THOST_FTDC_BFC_FBAccount 'X' - -typedef char TThostFtdcBrokerFunctionCodeType; - -#define THOST_FTDC_OAS_Submitted 'a' -#define THOST_FTDC_OAS_Accepted 'b' -#define THOST_FTDC_OAS_Rejected 'c' - -typedef char TThostFtdcOrderActionStatusType; - -#define THOST_FTDC_OST_AllTraded '0' -#define THOST_FTDC_OST_PartTradedQueueing '1' -#define THOST_FTDC_OST_PartTradedNotQueueing '2' -#define THOST_FTDC_OST_NoTradeQueueing '3' -#define THOST_FTDC_OST_NoTradeNotQueueing '4' -#define THOST_FTDC_OST_Canceled '5' -#define THOST_FTDC_OST_Unknown 'a' -#define THOST_FTDC_OST_NotTouched 'b' -#define THOST_FTDC_OST_Touched 'c' - -typedef char TThostFtdcOrderStatusType; - -#define THOST_FTDC_OSS_InsertSubmitted '0' -#define THOST_FTDC_OSS_CancelSubmitted '1' -#define THOST_FTDC_OSS_ModifySubmitted '2' -#define THOST_FTDC_OSS_Accepted '3' -#define THOST_FTDC_OSS_InsertRejected '4' -#define THOST_FTDC_OSS_CancelRejected '5' -#define THOST_FTDC_OSS_ModifyRejected '6' - -typedef char TThostFtdcOrderSubmitStatusType; - -#define THOST_FTDC_PSD_Today '1' -#define THOST_FTDC_PSD_History '2' - -typedef char TThostFtdcPositionDateType; - -#define THOST_FTDC_PDT_UseHistory '1' -#define THOST_FTDC_PDT_NoUseHistory '2' - -typedef char TThostFtdcPositionDateTypeType; - -#define THOST_FTDC_ER_Broker '1' -#define THOST_FTDC_ER_Host '2' -#define THOST_FTDC_ER_Maker '3' - -typedef char TThostFtdcTradingRoleType; - -#define THOST_FTDC_PC_Futures '1' -#define THOST_FTDC_PC_Options '2' -#define THOST_FTDC_PC_Combination '3' -#define THOST_FTDC_PC_Spot '4' -#define THOST_FTDC_PC_EFP '5' -#define THOST_FTDC_PC_SpotOption '6' - -typedef char TThostFtdcProductClassType; - -#define THOST_FTDC_IP_NotStart '0' -#define THOST_FTDC_IP_Started '1' -#define THOST_FTDC_IP_Pause '2' -#define THOST_FTDC_IP_Expired '3' - -typedef char TThostFtdcInstLifePhaseType; - -#define THOST_FTDC_D_Buy '0' -#define THOST_FTDC_D_Sell '1' - -typedef char TThostFtdcDirectionType; - -#define THOST_FTDC_PT_Net '1' -#define THOST_FTDC_PT_Gross '2' - -typedef char TThostFtdcPositionTypeType; - -#define THOST_FTDC_PD_Net '1' -#define THOST_FTDC_PD_Long '2' -#define THOST_FTDC_PD_Short '3' - -typedef char TThostFtdcPosiDirectionType; - -#define THOST_FTDC_SS_NonActive '1' -#define THOST_FTDC_SS_Startup '2' -#define THOST_FTDC_SS_Operating '3' -#define THOST_FTDC_SS_Settlement '4' -#define THOST_FTDC_SS_SettlementFinished '5' - -typedef char TThostFtdcSysSettlementStatusType; - -#define THOST_FTDC_RA_Trade '0' -#define THOST_FTDC_RA_Settlement '1' - -typedef char TThostFtdcRatioAttrType; - -#define THOST_FTDC_HF_Speculation '1' -#define THOST_FTDC_HF_Arbitrage '2' -#define THOST_FTDC_HF_Hedge '3' -#define THOST_FTDC_HF_MarketMaker '5' - -typedef char TThostFtdcHedgeFlagType; - -#define THOST_FTDC_BHF_Speculation '1' -#define THOST_FTDC_BHF_Arbitrage '2' -#define THOST_FTDC_BHF_Hedge '3' - -typedef char TThostFtdcBillHedgeFlagType; - -#define THOST_FTDC_CIDT_Speculation '1' -#define THOST_FTDC_CIDT_Arbitrage '2' -#define THOST_FTDC_CIDT_Hedge '3' -#define THOST_FTDC_CIDT_MarketMaker '5' - -typedef char TThostFtdcClientIDTypeType; - -#define THOST_FTDC_OPT_AnyPrice '1' -#define THOST_FTDC_OPT_LimitPrice '2' -#define THOST_FTDC_OPT_BestPrice '3' -#define THOST_FTDC_OPT_LastPrice '4' -#define THOST_FTDC_OPT_LastPricePlusOneTicks '5' -#define THOST_FTDC_OPT_LastPricePlusTwoTicks '6' -#define THOST_FTDC_OPT_LastPricePlusThreeTicks '7' -#define THOST_FTDC_OPT_AskPrice1 '8' -#define THOST_FTDC_OPT_AskPrice1PlusOneTicks '9' -#define THOST_FTDC_OPT_AskPrice1PlusTwoTicks 'A' -#define THOST_FTDC_OPT_AskPrice1PlusThreeTicks 'B' -#define THOST_FTDC_OPT_BidPrice1 'C' -#define THOST_FTDC_OPT_BidPrice1PlusOneTicks 'D' -#define THOST_FTDC_OPT_BidPrice1PlusTwoTicks 'E' -#define THOST_FTDC_OPT_BidPrice1PlusThreeTicks 'F' -#define THOST_FTDC_OPT_FiveLevelPrice 'G' - -typedef char TThostFtdcOrderPriceTypeType; - -#define THOST_FTDC_OF_Open '0' -#define THOST_FTDC_OF_Close '1' -#define THOST_FTDC_OF_ForceClose '2' -#define THOST_FTDC_OF_CloseToday '3' -#define THOST_FTDC_OF_CloseYesterday '4' -#define THOST_FTDC_OF_ForceOff '5' -#define THOST_FTDC_OF_LocalForceClose '6' - -typedef char TThostFtdcOffsetFlagType; - -#define THOST_FTDC_FCC_NotForceClose '0' -#define THOST_FTDC_FCC_LackDeposit '1' -#define THOST_FTDC_FCC_ClientOverPositionLimit '2' -#define THOST_FTDC_FCC_MemberOverPositionLimit '3' -#define THOST_FTDC_FCC_NotMultiple '4' -#define THOST_FTDC_FCC_Violation '5' -#define THOST_FTDC_FCC_Other '6' -#define THOST_FTDC_FCC_PersonDeliv '7' - -typedef char TThostFtdcForceCloseReasonType; - -#define THOST_FTDC_ORDT_Normal '0' -#define THOST_FTDC_ORDT_DeriveFromQuote '1' -#define THOST_FTDC_ORDT_DeriveFromCombination '2' -#define THOST_FTDC_ORDT_Combination '3' -#define THOST_FTDC_ORDT_ConditionalOrder '4' -#define THOST_FTDC_ORDT_Swap '5' -#define THOST_FTDC_ORDT_DeriveFromEFP '6' - -typedef char TThostFtdcOrderTypeType; - -#define THOST_FTDC_TC_IOC '1' -#define THOST_FTDC_TC_GFS '2' -#define THOST_FTDC_TC_GFD '3' -#define THOST_FTDC_TC_GTD '4' -#define THOST_FTDC_TC_GTC '5' -#define THOST_FTDC_TC_GFA '6' - -typedef char TThostFtdcTimeConditionType; - -#define THOST_FTDC_VC_AV '1' -#define THOST_FTDC_VC_MV '2' -#define THOST_FTDC_VC_CV '3' - -typedef char TThostFtdcVolumeConditionType; - -#define THOST_FTDC_CC_Immediately '1' -#define THOST_FTDC_CC_Touch '2' -#define THOST_FTDC_CC_TouchProfit '3' -#define THOST_FTDC_CC_ParkedOrder '4' -#define THOST_FTDC_CC_LastPriceGreaterThanStopPrice '5' -#define THOST_FTDC_CC_LastPriceGreaterEqualStopPrice '6' -#define THOST_FTDC_CC_LastPriceLesserThanStopPrice '7' -#define THOST_FTDC_CC_LastPriceLesserEqualStopPrice '8' -#define THOST_FTDC_CC_AskPriceGreaterThanStopPrice '9' -#define THOST_FTDC_CC_AskPriceGreaterEqualStopPrice 'A' -#define THOST_FTDC_CC_AskPriceLesserThanStopPrice 'B' -#define THOST_FTDC_CC_AskPriceLesserEqualStopPrice 'C' -#define THOST_FTDC_CC_BidPriceGreaterThanStopPrice 'D' -#define THOST_FTDC_CC_BidPriceGreaterEqualStopPrice 'E' -#define THOST_FTDC_CC_BidPriceLesserThanStopPrice 'F' -#define THOST_FTDC_CC_BidPriceLesserEqualStopPrice 'H' - -typedef char TThostFtdcContingentConditionType; - -#define THOST_FTDC_AF_Delete '0' -#define THOST_FTDC_AF_Modify '3' - -typedef char TThostFtdcActionFlagType; - -#define THOST_FTDC_TR_Allow '0' -#define THOST_FTDC_TR_CloseOnly '1' -#define THOST_FTDC_TR_Forbidden '2' - -typedef char TThostFtdcTradingRightType; - -#define THOST_FTDC_OSRC_Participant '0' -#define THOST_FTDC_OSRC_Administrator '1' - -typedef char TThostFtdcOrderSourceType; - -#define THOST_FTDC_TRDT_SplitCombination '#' -#define THOST_FTDC_TRDT_Common '0' -#define THOST_FTDC_TRDT_OptionsExecution '1' -#define THOST_FTDC_TRDT_OTC '2' -#define THOST_FTDC_TRDT_EFPDerived '3' -#define THOST_FTDC_TRDT_CombinationDerived '4' - -typedef char TThostFtdcTradeTypeType; - -#define THOST_FTDC_PSRC_LastPrice '0' -#define THOST_FTDC_PSRC_Buy '1' -#define THOST_FTDC_PSRC_Sell '2' - -typedef char TThostFtdcPriceSourceType; - -#define THOST_FTDC_IS_BeforeTrading '0' -#define THOST_FTDC_IS_NoTrading '1' -#define THOST_FTDC_IS_Continous '2' -#define THOST_FTDC_IS_AuctionOrdering '3' -#define THOST_FTDC_IS_AuctionBalance '4' -#define THOST_FTDC_IS_AuctionMatch '5' -#define THOST_FTDC_IS_Closed '6' - -typedef char TThostFtdcInstrumentStatusType; - -#define THOST_FTDC_IER_Automatic '1' -#define THOST_FTDC_IER_Manual '2' -#define THOST_FTDC_IER_Fuse '3' - -typedef char TThostFtdcInstStatusEnterReasonType; - -typedef int TThostFtdcOrderActionRefType; - -typedef int TThostFtdcInstallCountType; - -typedef int TThostFtdcInstallIDType; - -typedef int TThostFtdcErrorIDType; - -typedef int TThostFtdcSettlementIDType; - -typedef int TThostFtdcVolumeType; - -typedef int TThostFtdcFrontIDType; - -typedef int TThostFtdcSessionIDType; - -typedef int TThostFtdcSequenceNoType; - -typedef int TThostFtdcCommandNoType; - -typedef int TThostFtdcMillisecType; - -typedef int TThostFtdcVolumeMultipleType; - -typedef int TThostFtdcTradingSegmentSNType; - -typedef int TThostFtdcRequestIDType; - -typedef int TThostFtdcYearType; - -typedef int TThostFtdcMonthType; - -typedef int TThostFtdcBoolType; - -typedef double TThostFtdcPriceType; - -typedef char TThostFtdcCombOffsetFlagType[5]; - -typedef char TThostFtdcCombHedgeFlagType[5]; - -typedef double TThostFtdcRatioType; - -typedef double TThostFtdcMoneyType; - -typedef double TThostFtdcLargeVolumeType; - -typedef short TThostFtdcSequenceSeriesType; - -typedef short TThostFtdcCommPhaseNoType; - -typedef char TThostFtdcSequenceLabelType[2]; - -typedef double TThostFtdcUnderlyingMultipleType; - -typedef int TThostFtdcPriorityType; - -typedef char TThostFtdcContractCodeType[41]; - -typedef char TThostFtdcCityType[51]; - -typedef char TThostFtdcIsStockType[11]; - -typedef char TThostFtdcChannelType[51]; - -typedef char TThostFtdcAddressType[101]; - -typedef char TThostFtdcZipCodeType[7]; - -typedef char TThostFtdcTelephoneType[41]; - -typedef char TThostFtdcFaxType[41]; - -typedef char TThostFtdcMobileType[41]; - -typedef char TThostFtdcEMailType[41]; - -typedef char TThostFtdcMemoType[161]; - -typedef char TThostFtdcCompanyCodeType[51]; - -typedef char TThostFtdcWebsiteType[51]; - -typedef char TThostFtdcTaxNoType[31]; - -#define THOST_FTDC_BS_NoUpload '1' -#define THOST_FTDC_BS_Uploaded '2' -#define THOST_FTDC_BS_Failed '3' - -typedef char TThostFtdcBatchStatusType; - -typedef char TThostFtdcPropertyIDType[33]; - -typedef char TThostFtdcPropertyNameType[65]; - -typedef char TThostFtdcLicenseNoType[51]; - -typedef char TThostFtdcAgentIDType[13]; - -typedef char TThostFtdcAgentNameType[41]; - -typedef char TThostFtdcAgentGroupIDType[13]; - -typedef char TThostFtdcAgentGroupNameType[41]; - -#define THOST_FTDC_RS_All '1' -#define THOST_FTDC_RS_ByProduct '2' - -typedef char TThostFtdcReturnStyleType; - -#define THOST_FTDC_RP_ByVolume '1' -#define THOST_FTDC_RP_ByFeeOnHand '2' - -typedef char TThostFtdcReturnPatternType; - -#define THOST_FTDC_RL_Level1 '1' -#define THOST_FTDC_RL_Level2 '2' -#define THOST_FTDC_RL_Level3 '3' -#define THOST_FTDC_RL_Level4 '4' -#define THOST_FTDC_RL_Level5 '5' -#define THOST_FTDC_RL_Level6 '6' -#define THOST_FTDC_RL_Level7 '7' -#define THOST_FTDC_RL_Level8 '8' -#define THOST_FTDC_RL_Level9 '9' - -typedef char TThostFtdcReturnLevelType; - -#define THOST_FTDC_RSD_ByPeriod '1' -#define THOST_FTDC_RSD_ByStandard '2' - -typedef char TThostFtdcReturnStandardType; - -#define THOST_FTDC_MT_Out '0' -#define THOST_FTDC_MT_In '1' - -typedef char TThostFtdcMortgageTypeType; - -#define THOST_FTDC_ISPI_MortgageRatio '4' -#define THOST_FTDC_ISPI_MarginWay '5' -#define THOST_FTDC_ISPI_BillDeposit '9' - -typedef char TThostFtdcInvestorSettlementParamIDType; - -#define THOST_FTDC_ESPI_MortgageRatio '1' -#define THOST_FTDC_ESPI_OtherFundItem '2' -#define THOST_FTDC_ESPI_OtherFundImport '3' -#define THOST_FTDC_ESPI_CFFEXMinPrepa '6' -#define THOST_FTDC_ESPI_CZCESettlementType '7' -#define THOST_FTDC_ESPI_ExchDelivFeeMode '9' -#define THOST_FTDC_ESPI_DelivFeeMode '0' -#define THOST_FTDC_ESPI_CZCEComMarginType 'A' -#define THOST_FTDC_ESPI_DceComMarginType 'B' -#define THOST_FTDC_ESPI_OptOutDisCountRate 'a' -#define THOST_FTDC_ESPI_OptMiniGuarantee 'b' - -typedef char TThostFtdcExchangeSettlementParamIDType; - -#define THOST_FTDC_SPI_InvestorIDMinLength '1' -#define THOST_FTDC_SPI_AccountIDMinLength '2' -#define THOST_FTDC_SPI_UserRightLogon '3' -#define THOST_FTDC_SPI_SettlementBillTrade '4' -#define THOST_FTDC_SPI_TradingCode '5' -#define THOST_FTDC_SPI_CheckFund '6' -#define THOST_FTDC_SPI_CommModelRight '7' -#define THOST_FTDC_SPI_MarginModelRight '9' -#define THOST_FTDC_SPI_IsStandardActive '8' -#define THOST_FTDC_SPI_UploadSettlementFile 'U' -#define THOST_FTDC_SPI_DownloadCSRCFile 'D' -#define THOST_FTDC_SPI_SettlementBillFile 'S' -#define THOST_FTDC_SPI_CSRCOthersFile 'C' -#define THOST_FTDC_SPI_InvestorPhoto 'P' -#define THOST_FTDC_SPI_CSRCData 'R' -#define THOST_FTDC_SPI_InvestorPwdModel 'I' -#define THOST_FTDC_SPI_CFFEXInvestorSettleFile 'F' -#define THOST_FTDC_SPI_InvestorIDType 'a' -#define THOST_FTDC_SPI_FreezeMaxReMain 'r' -#define THOST_FTDC_SPI_IsSync 'A' -#define THOST_FTDC_SPI_RelieveOpenLimit 'O' -#define THOST_FTDC_SPI_IsStandardFreeze 'X' -#define THOST_FTDC_SPI_CZCENormalProductHedge 'B' - -typedef char TThostFtdcSystemParamIDType; - -#define THOST_FTDC_TPID_EncryptionStandard 'E' -#define THOST_FTDC_TPID_RiskMode 'R' -#define THOST_FTDC_TPID_RiskModeGlobal 'G' -#define THOST_FTDC_TPID_modeEncode 'P' -#define THOST_FTDC_TPID_tickMode 'T' -#define THOST_FTDC_TPID_SingleUserSessionMaxNum 'S' -#define THOST_FTDC_TPID_LoginFailMaxNum 'L' -#define THOST_FTDC_TPID_IsAuthForce 'A' -#define THOST_FTDC_TPID_IsPosiFreeze 'F' -#define THOST_FTDC_TPID_IsPosiLimit 'M' -#define THOST_FTDC_TPID_ForQuoteTimeInterval 'Q' -#define THOST_FTDC_TPID_IsFuturePosiLimit 'B' -#define THOST_FTDC_TPID_IsFutureOrderFreq 'C' -#define THOST_FTDC_TPID_IsExecOrderProfit 'H' -#define THOST_FTDC_TPID_IsCheckBankAcc 'I' -#define THOST_FTDC_TPID_PasswordDeadLine 'J' -#define THOST_FTDC_TPID_IsStrongPassword 'K' -#define THOST_FTDC_TPID_BalanceMorgage 'a' -#define THOST_FTDC_TPID_MinPwdLen 'O' -#define THOST_FTDC_TPID_LoginFailMaxNumForIP 'U' -#define THOST_FTDC_TPID_PasswordPeriod 'V' - -typedef char TThostFtdcTradeParamIDType; - -typedef char TThostFtdcSettlementParamValueType[256]; - -typedef char TThostFtdcCounterIDType[33]; - -typedef char TThostFtdcInvestorGroupNameType[41]; - -typedef char TThostFtdcBrandCodeType[257]; - -typedef char TThostFtdcWarehouseType[257]; - -typedef char TThostFtdcProductDateType[41]; - -typedef char TThostFtdcGradeType[41]; - -typedef char TThostFtdcClassifyType[41]; - -typedef char TThostFtdcPositionType[41]; - -typedef char TThostFtdcYieldlyType[41]; - -typedef char TThostFtdcWeightType[41]; - -typedef int TThostFtdcSubEntryFundNoType; - -#define THOST_FTDC_FI_SettlementFund 'F' -#define THOST_FTDC_FI_Trade 'T' -#define THOST_FTDC_FI_InvestorPosition 'P' -#define THOST_FTDC_FI_SubEntryFund 'O' -#define THOST_FTDC_FI_CZCECombinationPos 'C' -#define THOST_FTDC_FI_CSRCData 'R' -#define THOST_FTDC_FI_CZCEClose 'L' -#define THOST_FTDC_FI_CZCENoClose 'N' -#define THOST_FTDC_FI_PositionDtl 'D' -#define THOST_FTDC_FI_OptionStrike 'S' -#define THOST_FTDC_FI_SettlementPriceComparison 'M' -#define THOST_FTDC_FI_NonTradePosChange 'B' - -typedef char TThostFtdcFileIDType; - -typedef char TThostFtdcFileNameType[257]; - -#define THOST_FTDC_FUT_Settlement '0' -#define THOST_FTDC_FUT_Check '1' - -typedef char TThostFtdcFileTypeType; - -#define THOST_FTDC_FFT_Txt '0' -#define THOST_FTDC_FFT_Zip '1' -#define THOST_FTDC_FFT_DBF '2' - -typedef char TThostFtdcFileFormatType; - -#define THOST_FTDC_FUS_SucceedUpload '1' -#define THOST_FTDC_FUS_FailedUpload '2' -#define THOST_FTDC_FUS_SucceedLoad '3' -#define THOST_FTDC_FUS_PartSucceedLoad '4' -#define THOST_FTDC_FUS_FailedLoad '5' - -typedef char TThostFtdcFileUploadStatusType; - -#define THOST_FTDC_TD_Out '0' -#define THOST_FTDC_TD_In '1' - -typedef char TThostFtdcTransferDirectionType; - -typedef char TThostFtdcUploadModeType[21]; - -typedef char TThostFtdcAccountIDType[13]; - -typedef char TThostFtdcBankFlagType[4]; - -typedef char TThostFtdcBankAccountType[41]; - -typedef char TThostFtdcOpenNameType[61]; - -typedef char TThostFtdcOpenBankType[101]; - -typedef char TThostFtdcBankNameType[101]; - -typedef char TThostFtdcPublishPathType[257]; - -typedef char TThostFtdcOperatorIDType[65]; - -typedef int TThostFtdcMonthCountType; - -typedef char TThostFtdcAdvanceMonthArrayType[13]; - -typedef char TThostFtdcDateExprType[1025]; - -typedef char TThostFtdcInstrumentIDExprType[41]; - -typedef char TThostFtdcInstrumentNameExprType[41]; - -#define THOST_FTDC_SC_NoSpecialRule '0' -#define THOST_FTDC_SC_NoSpringFestival '1' - -typedef char TThostFtdcSpecialCreateRuleType; - -#define THOST_FTDC_IPT_LastSettlement '1' -#define THOST_FTDC_IPT_LaseClose '2' - -typedef char TThostFtdcBasisPriceTypeType; - -#define THOST_FTDC_PLP_Active '1' -#define THOST_FTDC_PLP_NonActive '2' -#define THOST_FTDC_PLP_Canceled '3' - -typedef char TThostFtdcProductLifePhaseType; - -#define THOST_FTDC_DM_CashDeliv '1' -#define THOST_FTDC_DM_CommodityDeliv '2' - -typedef char TThostFtdcDeliveryModeType; - -typedef char TThostFtdcLogLevelType[33]; - -typedef char TThostFtdcProcessNameType[257]; - -typedef char TThostFtdcOperationMemoType[1025]; - -#define THOST_FTDC_FIOT_FundIO '1' -#define THOST_FTDC_FIOT_Transfer '2' -#define THOST_FTDC_FIOT_SwapCurrency '3' - -typedef char TThostFtdcFundIOTypeType; - -#define THOST_FTDC_FT_Deposite '1' -#define THOST_FTDC_FT_ItemFund '2' -#define THOST_FTDC_FT_Company '3' -#define THOST_FTDC_FT_InnerTransfer '4' - -typedef char TThostFtdcFundTypeType; - -#define THOST_FTDC_FD_In '1' -#define THOST_FTDC_FD_Out '2' - -typedef char TThostFtdcFundDirectionType; - -#define THOST_FTDC_FS_Record '1' -#define THOST_FTDC_FS_Check '2' -#define THOST_FTDC_FS_Charge '3' - -typedef char TThostFtdcFundStatusType; - -typedef char TThostFtdcBillNoType[15]; - -typedef char TThostFtdcBillNameType[33]; - -#define THOST_FTDC_PS_None '1' -#define THOST_FTDC_PS_Publishing '2' -#define THOST_FTDC_PS_Published '3' - -typedef char TThostFtdcPublishStatusType; - -typedef char TThostFtdcEnumValueIDType[65]; - -typedef char TThostFtdcEnumValueTypeType[33]; - -typedef char TThostFtdcEnumValueLabelType[65]; - -typedef char TThostFtdcEnumValueResultType[33]; - -#define THOST_FTDC_ES_NonActive '1' -#define THOST_FTDC_ES_Startup '2' -#define THOST_FTDC_ES_Initialize '3' -#define THOST_FTDC_ES_Initialized '4' -#define THOST_FTDC_ES_Close '5' -#define THOST_FTDC_ES_Closed '6' -#define THOST_FTDC_ES_Settlement '7' - -typedef char TThostFtdcSystemStatusType; - -#define THOST_FTDC_STS_Initialize '0' -#define THOST_FTDC_STS_Settlementing '1' -#define THOST_FTDC_STS_Settlemented '2' -#define THOST_FTDC_STS_Finished '3' - -typedef char TThostFtdcSettlementStatusType; - -typedef char TThostFtdcRangeIntTypeType[33]; - -typedef char TThostFtdcRangeIntFromType[33]; - -typedef char TThostFtdcRangeIntToType[33]; - -typedef char TThostFtdcFunctionIDType[25]; - -typedef char TThostFtdcFunctionValueCodeType[257]; - -typedef char TThostFtdcFunctionNameType[65]; - -typedef char TThostFtdcRoleIDType[11]; - -typedef char TThostFtdcRoleNameType[41]; - -typedef char TThostFtdcDescriptionType[401]; - -typedef char TThostFtdcCombineIDType[25]; - -typedef char TThostFtdcCombineTypeType[25]; - -#define THOST_FTDC_CT_Person '0' -#define THOST_FTDC_CT_Company '1' -#define THOST_FTDC_CT_Fund '2' -#define THOST_FTDC_CT_SpecialOrgan '3' -#define THOST_FTDC_CT_Asset '4' - -typedef char TThostFtdcInvestorTypeType; - -#define THOST_FTDC_BT_Trade '0' -#define THOST_FTDC_BT_TradeSettle '1' - -typedef char TThostFtdcBrokerTypeType; - -#define THOST_FTDC_FAS_Low '1' -#define THOST_FTDC_FAS_Normal '2' -#define THOST_FTDC_FAS_Focus '3' -#define THOST_FTDC_FAS_Risk '4' - -typedef char TThostFtdcRiskLevelType; - -#define THOST_FTDC_FAS_ByTrade '1' -#define THOST_FTDC_FAS_ByDeliv '2' -#define THOST_FTDC_FAS_None '3' -#define THOST_FTDC_FAS_FixFee '4' - -typedef char TThostFtdcFeeAcceptStyleType; - -#define THOST_FTDC_PWDT_Trade '1' -#define THOST_FTDC_PWDT_Account '2' - -typedef char TThostFtdcPasswordTypeType; - -#define THOST_FTDC_AG_All '1' -#define THOST_FTDC_AG_OnlyLost '2' -#define THOST_FTDC_AG_OnlyGain '3' -#define THOST_FTDC_AG_None '4' - -typedef char TThostFtdcAlgorithmType; - -#define THOST_FTDC_ICP_Include '0' -#define THOST_FTDC_ICP_NotInclude '2' - -typedef char TThostFtdcIncludeCloseProfitType; - -#define THOST_FTDC_AWT_Enable '0' -#define THOST_FTDC_AWT_Disable '2' -#define THOST_FTDC_AWT_NoHoldEnable '3' - -typedef char TThostFtdcAllWithoutTradeType; - -typedef char TThostFtdcCommentType[31]; - -typedef char TThostFtdcVersionType[4]; - -typedef char TThostFtdcTradeCodeType[7]; - -typedef char TThostFtdcTradeDateType[9]; - -typedef char TThostFtdcTradeTimeType[9]; - -typedef char TThostFtdcTradeSerialType[9]; - -typedef int TThostFtdcTradeSerialNoType; - -typedef char TThostFtdcFutureIDType[11]; - -typedef char TThostFtdcBankIDType[4]; - -typedef char TThostFtdcBankBrchIDType[5]; - -typedef char TThostFtdcBankBranchIDType[11]; - -typedef char TThostFtdcOperNoType[17]; - -typedef char TThostFtdcDeviceIDType[3]; - -typedef char TThostFtdcRecordNumType[7]; - -typedef char TThostFtdcFutureAccountType[22]; - -#define THOST_FTDC_FPWD_UnCheck '0' -#define THOST_FTDC_FPWD_Check '1' - -typedef char TThostFtdcFuturePwdFlagType; - -#define THOST_FTDC_TT_BankToFuture '0' -#define THOST_FTDC_TT_FutureToBank '1' - -typedef char TThostFtdcTransferTypeType; - -typedef char TThostFtdcFutureAccPwdType[17]; - -typedef char TThostFtdcCurrencyCodeType[4]; - -typedef char TThostFtdcRetCodeType[5]; - -typedef char TThostFtdcRetInfoType[129]; - -typedef char TThostFtdcTradeAmtType[20]; - -typedef char TThostFtdcUseAmtType[20]; - -typedef char TThostFtdcFetchAmtType[20]; - -#define THOST_FTDC_TVF_Invalid '0' -#define THOST_FTDC_TVF_Valid '1' -#define THOST_FTDC_TVF_Reverse '2' - -typedef char TThostFtdcTransferValidFlagType; - -typedef char TThostFtdcCertCodeType[21]; - -#define THOST_FTDC_RN_CD '0' -#define THOST_FTDC_RN_ZT '1' -#define THOST_FTDC_RN_QT '2' - -typedef char TThostFtdcReasonType; - -typedef char TThostFtdcFundProjectIDType[5]; - -#define THOST_FTDC_SEX_None '0' -#define THOST_FTDC_SEX_Man '1' -#define THOST_FTDC_SEX_Woman '2' - -typedef char TThostFtdcSexType; - -typedef char TThostFtdcProfessionType[101]; - -typedef char TThostFtdcNationalType[31]; - -typedef char TThostFtdcProvinceType[51]; - -typedef char TThostFtdcRegionType[16]; - -typedef char TThostFtdcCountryType[16]; - -typedef char TThostFtdcLicenseNOType[33]; - -typedef char TThostFtdcCompanyTypeType[16]; - -typedef char TThostFtdcBusinessScopeType[1001]; - -typedef char TThostFtdcCapitalCurrencyType[4]; - -#define THOST_FTDC_UT_Investor '0' -#define THOST_FTDC_UT_Operator '1' -#define THOST_FTDC_UT_SuperUser '2' - -typedef char TThostFtdcUserTypeType; - -typedef char TThostFtdcBranchIDType[9]; - -#define THOST_FTDC_RATETYPE_MarginRate '2' - -typedef char TThostFtdcRateTypeType; - -#define THOST_FTDC_NOTETYPE_TradeSettleBill '1' -#define THOST_FTDC_NOTETYPE_TradeSettleMonth '2' -#define THOST_FTDC_NOTETYPE_CallMarginNotes '3' -#define THOST_FTDC_NOTETYPE_ForceCloseNotes '4' -#define THOST_FTDC_NOTETYPE_TradeNotes '5' -#define THOST_FTDC_NOTETYPE_DelivNotes '6' - -typedef char TThostFtdcNoteTypeType; - -#define THOST_FTDC_SBS_Day '1' -#define THOST_FTDC_SBS_Volume '2' - -typedef char TThostFtdcSettlementStyleType; - -typedef char TThostFtdcBrokerDNSType[256]; - -typedef char TThostFtdcSentenceType[501]; - -#define THOST_FTDC_ST_Day '0' -#define THOST_FTDC_ST_Month '1' - -typedef char TThostFtdcSettlementBillTypeType; - -#define THOST_FTDC_URT_Logon '1' -#define THOST_FTDC_URT_Transfer '2' -#define THOST_FTDC_URT_EMail '3' -#define THOST_FTDC_URT_Fax '4' -#define THOST_FTDC_URT_ConditionOrder '5' - -typedef char TThostFtdcUserRightTypeType; - -#define THOST_FTDC_MPT_PreSettlementPrice '1' -#define THOST_FTDC_MPT_SettlementPrice '2' -#define THOST_FTDC_MPT_AveragePrice '3' -#define THOST_FTDC_MPT_OpenPrice '4' - -typedef char TThostFtdcMarginPriceTypeType; - -#define THOST_FTDC_BGS_None '0' -#define THOST_FTDC_BGS_NoGenerated '1' -#define THOST_FTDC_BGS_Generated '2' - -typedef char TThostFtdcBillGenStatusType; - -#define THOST_FTDC_AT_HandlePositionAlgo '1' -#define THOST_FTDC_AT_FindMarginRateAlgo '2' - -typedef char TThostFtdcAlgoTypeType; - -#define THOST_FTDC_HPA_Base '1' -#define THOST_FTDC_HPA_DCE '2' -#define THOST_FTDC_HPA_CZCE '3' - -typedef char TThostFtdcHandlePositionAlgoIDType; - -#define THOST_FTDC_FMRA_Base '1' -#define THOST_FTDC_FMRA_DCE '2' -#define THOST_FTDC_FMRA_CZCE '3' - -typedef char TThostFtdcFindMarginRateAlgoIDType; - -#define THOST_FTDC_HTAA_Base '1' -#define THOST_FTDC_HTAA_DCE '2' -#define THOST_FTDC_HTAA_CZCE '3' - -typedef char TThostFtdcHandleTradingAccountAlgoIDType; - -#define THOST_FTDC_PST_Order '1' -#define THOST_FTDC_PST_Open '2' -#define THOST_FTDC_PST_Fund '3' -#define THOST_FTDC_PST_Settlement '4' -#define THOST_FTDC_PST_Company '5' -#define THOST_FTDC_PST_Corporation '6' -#define THOST_FTDC_PST_LinkMan '7' -#define THOST_FTDC_PST_Ledger '8' -#define THOST_FTDC_PST_Trustee '9' -#define THOST_FTDC_PST_TrusteeCorporation 'A' -#define THOST_FTDC_PST_TrusteeOpen 'B' -#define THOST_FTDC_PST_TrusteeContact 'C' -#define THOST_FTDC_PST_ForeignerRefer 'D' -#define THOST_FTDC_PST_CorporationRefer 'E' - -typedef char TThostFtdcPersonTypeType; - -#define THOST_FTDC_QIR_All '1' -#define THOST_FTDC_QIR_Group '2' -#define THOST_FTDC_QIR_Single '3' - -typedef char TThostFtdcQueryInvestorRangeType; - -#define THOST_FTDC_IRS_Normal '1' -#define THOST_FTDC_IRS_Warn '2' -#define THOST_FTDC_IRS_Call '3' -#define THOST_FTDC_IRS_Force '4' -#define THOST_FTDC_IRS_Exception '5' - -typedef char TThostFtdcInvestorRiskStatusType; - -typedef int TThostFtdcLegIDType; - -typedef int TThostFtdcLegMultipleType; - -typedef int TThostFtdcImplyLevelType; - -typedef char TThostFtdcClearAccountType[33]; - -typedef char TThostFtdcOrganNOType[6]; - -typedef char TThostFtdcClearbarchIDType[6]; - -#define THOST_FTDC_UET_Login '1' -#define THOST_FTDC_UET_Logout '2' -#define THOST_FTDC_UET_Trading '3' -#define THOST_FTDC_UET_TradingError '4' -#define THOST_FTDC_UET_UpdatePassword '5' -#define THOST_FTDC_UET_Authenticate '6' -#define THOST_FTDC_UET_Other '9' - -typedef char TThostFtdcUserEventTypeType; - -typedef char TThostFtdcUserEventInfoType[1025]; - -#define THOST_FTDC_ICS_Close '0' -#define THOST_FTDC_ICS_CloseToday '1' - -typedef char TThostFtdcCloseStyleType; - -#define THOST_FTDC_SM_Non '0' -#define THOST_FTDC_SM_Instrument '1' -#define THOST_FTDC_SM_Product '2' -#define THOST_FTDC_SM_Investor '3' - -typedef char TThostFtdcStatModeType; - -#define THOST_FTDC_PAOS_NotSend '1' -#define THOST_FTDC_PAOS_Send '2' -#define THOST_FTDC_PAOS_Deleted '3' - -typedef char TThostFtdcParkedOrderStatusType; - -typedef char TThostFtdcParkedOrderIDType[13]; - -typedef char TThostFtdcParkedOrderActionIDType[13]; - -#define THOST_FTDC_VDS_Dealing '1' -#define THOST_FTDC_VDS_DeaclSucceed '2' - -typedef char TThostFtdcVirDealStatusType; - -#define THOST_FTDC_ORGS_Standard '0' -#define THOST_FTDC_ORGS_ESunny '1' -#define THOST_FTDC_ORGS_KingStarV6 '2' - -typedef char TThostFtdcOrgSystemIDType; - -#define THOST_FTDC_VTS_NaturalDeal '0' -#define THOST_FTDC_VTS_SucceedEnd '1' -#define THOST_FTDC_VTS_FailedEND '2' -#define THOST_FTDC_VTS_Exception '3' -#define THOST_FTDC_VTS_ManualDeal '4' -#define THOST_FTDC_VTS_MesException '5' -#define THOST_FTDC_VTS_SysException '6' - -typedef char TThostFtdcVirTradeStatusType; - -#define THOST_FTDC_VBAT_BankBook '1' -#define THOST_FTDC_VBAT_BankCard '2' -#define THOST_FTDC_VBAT_CreditCard '3' - -typedef char TThostFtdcVirBankAccTypeType; - -#define THOST_FTDC_VMS_Natural '0' -#define THOST_FTDC_VMS_Canceled '9' - -typedef char TThostFtdcVirementStatusType; - -#define THOST_FTDC_VAA_NoAvailAbility '0' -#define THOST_FTDC_VAA_AvailAbility '1' -#define THOST_FTDC_VAA_Repeal '2' - -typedef char TThostFtdcVirementAvailAbilityType; - -#define THOST_FTDC_VTC_BankBankToFuture '102001' -#define THOST_FTDC_VTC_BankFutureToBank '102002' -#define THOST_FTDC_VTC_FutureBankToFuture '202001' -#define THOST_FTDC_VTC_FutureFutureToBank '202002' - -typedef char TThostFtdcVirementTradeCodeType; - -typedef char TThostFtdcPhotoTypeNameType[41]; - -typedef char TThostFtdcPhotoTypeIDType[5]; - -typedef char TThostFtdcPhotoNameType[161]; - -typedef int TThostFtdcTopicIDType; - -typedef char TThostFtdcReportTypeIDType[3]; - -typedef char TThostFtdcCharacterIDType[5]; - -typedef char TThostFtdcAMLParamIDType[21]; - -typedef char TThostFtdcAMLInvestorTypeType[3]; - -typedef char TThostFtdcAMLIdCardTypeType[3]; - -typedef char TThostFtdcAMLTradeDirectType[3]; - -typedef char TThostFtdcAMLTradeModelType[3]; - -typedef char TThostFtdcAMLParamIDType[21]; - -typedef double TThostFtdcAMLOpParamValueType; - -typedef char TThostFtdcAMLCustomerCardTypeType[81]; - -typedef char TThostFtdcAMLInstitutionNameType[65]; - -typedef char TThostFtdcAMLDistrictIDType[7]; - -typedef char TThostFtdcAMLRelationShipType[3]; - -typedef char TThostFtdcAMLInstitutionTypeType[3]; - -typedef char TThostFtdcAMLInstitutionIDType[13]; - -typedef char TThostFtdcAMLAccountTypeType[5]; - -typedef char TThostFtdcAMLTradingTypeType[7]; - -typedef char TThostFtdcAMLTransactClassType[7]; - -typedef char TThostFtdcAMLCapitalIOType[3]; - -typedef char TThostFtdcAMLSiteType[10]; - -typedef char TThostFtdcAMLCapitalPurposeType[129]; - -typedef char TThostFtdcAMLReportTypeType[2]; - -typedef char TThostFtdcAMLSerialNoType[5]; - -typedef char TThostFtdcAMLStatusType[2]; - -#define THOST_FTDC_GEN_Program '0' -#define THOST_FTDC_GEN_HandWork '1' - -typedef char TThostFtdcAMLGenStatusType; - -typedef char TThostFtdcAMLSeqCodeType[65]; - -typedef char TThostFtdcAMLFileNameType[257]; - -typedef double TThostFtdcAMLMoneyType; - -typedef int TThostFtdcAMLFileAmountType; - -typedef char TThostFtdcCFMMCKeyType[21]; - -typedef char TThostFtdcCFMMCTokenType[21]; - -#define THOST_FTDC_CFMMCKK_REQUEST 'R' -#define THOST_FTDC_CFMMCKK_AUTO 'A' -#define THOST_FTDC_CFMMCKK_MANUAL 'M' - -typedef char TThostFtdcCFMMCKeyKindType; - -typedef char TThostFtdcAMLReportNameType[81]; - -typedef char TThostFtdcIndividualNameType[51]; - -typedef char TThostFtdcCurrencyIDType[4]; - -typedef char TThostFtdcCustNumberType[36]; - -typedef char TThostFtdcOrganCodeType[36]; - -typedef char TThostFtdcOrganNameType[71]; - -typedef char TThostFtdcSuperOrganCodeType[12]; - -typedef char TThostFtdcSubBranchIDType[31]; - -typedef char TThostFtdcSubBranchNameType[71]; - -typedef char TThostFtdcBranchNetCodeType[31]; - -typedef char TThostFtdcBranchNetNameType[71]; - -typedef char TThostFtdcOrganFlagType[2]; - -typedef char TThostFtdcBankCodingForFutureType[33]; - -typedef char TThostFtdcBankReturnCodeType[7]; - -typedef char TThostFtdcPlateReturnCodeType[5]; - -typedef char TThostFtdcBankSubBranchIDType[31]; - -typedef char TThostFtdcFutureBranchIDType[31]; - -typedef char TThostFtdcReturnCodeType[7]; - -typedef char TThostFtdcOperatorCodeType[17]; - -typedef char TThostFtdcClearDepIDType[6]; - -typedef char TThostFtdcClearBrchIDType[6]; - -typedef char TThostFtdcClearNameType[71]; - -typedef char TThostFtdcBankAccountNameType[71]; - -typedef char TThostFtdcInvDepIDType[6]; - -typedef char TThostFtdcInvBrchIDType[6]; - -typedef char TThostFtdcMessageFormatVersionType[36]; - -typedef char TThostFtdcDigestType[36]; - -typedef char TThostFtdcAuthenticDataType[129]; - -typedef char TThostFtdcPasswordKeyType[129]; - -typedef char TThostFtdcFutureAccountNameType[129]; - -typedef char TThostFtdcMobilePhoneType[21]; - -typedef char TThostFtdcFutureMainKeyType[129]; - -typedef char TThostFtdcFutureWorkKeyType[129]; - -typedef char TThostFtdcFutureTransKeyType[129]; - -typedef char TThostFtdcBankMainKeyType[129]; - -typedef char TThostFtdcBankWorkKeyType[129]; - -typedef char TThostFtdcBankTransKeyType[129]; - -typedef char TThostFtdcBankServerDescriptionType[129]; - -typedef char TThostFtdcAddInfoType[129]; - -typedef char TThostFtdcDescrInfoForReturnCodeType[129]; - -typedef char TThostFtdcCountryCodeType[21]; - -typedef int TThostFtdcSerialType; - -typedef int TThostFtdcPlateSerialType; - -typedef char TThostFtdcBankSerialType[13]; - -typedef int TThostFtdcCorrectSerialType; - -typedef int TThostFtdcFutureSerialType; - -typedef int TThostFtdcApplicationIDType; - -typedef int TThostFtdcBankProxyIDType; - -typedef int TThostFtdcFBTCoreIDType; - -typedef int TThostFtdcServerPortType; - -typedef int TThostFtdcRepealedTimesType; - -typedef int TThostFtdcRepealTimeIntervalType; - -typedef int TThostFtdcTotalTimesType; - -typedef int TThostFtdcFBTRequestIDType; - -typedef int TThostFtdcTIDType; - -typedef double TThostFtdcTradeAmountType; - -typedef double TThostFtdcCustFeeType; - -typedef double TThostFtdcFutureFeeType; - -typedef double TThostFtdcSingleMaxAmtType; - -typedef double TThostFtdcSingleMinAmtType; - -typedef double TThostFtdcTotalAmtType; - -#define THOST_FTDC_CFT_IDCard '0' -#define THOST_FTDC_CFT_Passport '1' -#define THOST_FTDC_CFT_OfficerIDCard '2' -#define THOST_FTDC_CFT_SoldierIDCard '3' -#define THOST_FTDC_CFT_HomeComingCard '4' -#define THOST_FTDC_CFT_HouseholdRegister '5' -#define THOST_FTDC_CFT_LicenseNo '6' -#define THOST_FTDC_CFT_InstitutionCodeCard '7' -#define THOST_FTDC_CFT_TempLicenseNo '8' -#define THOST_FTDC_CFT_NoEnterpriseLicenseNo '9' -#define THOST_FTDC_CFT_OtherCard 'x' -#define THOST_FTDC_CFT_SuperDepAgree 'a' - -typedef char TThostFtdcCertificationTypeType; - -#define THOST_FTDC_FBC_Others '0' -#define THOST_FTDC_FBC_TransferDetails '1' -#define THOST_FTDC_FBC_CustAccStatus '2' -#define THOST_FTDC_FBC_AccountTradeDetails '3' -#define THOST_FTDC_FBC_FutureAccountChangeInfoDetails '4' -#define THOST_FTDC_FBC_CustMoneyDetail '5' -#define THOST_FTDC_FBC_CustCancelAccountInfo '6' -#define THOST_FTDC_FBC_CustMoneyResult '7' -#define THOST_FTDC_FBC_OthersExceptionResult '8' -#define THOST_FTDC_FBC_CustInterestNetMoneyDetails '9' -#define THOST_FTDC_FBC_CustMoneySendAndReceiveDetails 'a' -#define THOST_FTDC_FBC_CorporationMoneyTotal 'b' -#define THOST_FTDC_FBC_MainbodyMoneyTotal 'c' -#define THOST_FTDC_FBC_MainPartMonitorData 'd' -#define THOST_FTDC_FBC_PreparationMoney 'e' -#define THOST_FTDC_FBC_BankMoneyMonitorData 'f' - -typedef char TThostFtdcFileBusinessCodeType; - -#define THOST_FTDC_CEC_Exchange '1' -#define THOST_FTDC_CEC_Cash '2' - -typedef char TThostFtdcCashExchangeCodeType; - -#define THOST_FTDC_YNI_Yes '0' -#define THOST_FTDC_YNI_No '1' - -typedef char TThostFtdcYesNoIndicatorType; - -#define THOST_FTDC_BLT_CurrentMoney '0' -#define THOST_FTDC_BLT_UsableMoney '1' -#define THOST_FTDC_BLT_FetchableMoney '2' -#define THOST_FTDC_BLT_FreezeMoney '3' - -typedef char TThostFtdcBanlanceTypeType; - -#define THOST_FTDC_GD_Unknown '0' -#define THOST_FTDC_GD_Male '1' -#define THOST_FTDC_GD_Female '2' - -typedef char TThostFtdcGenderType; - -#define THOST_FTDC_FPF_BEN '0' -#define THOST_FTDC_FPF_OUR '1' -#define THOST_FTDC_FPF_SHA '2' - -typedef char TThostFtdcFeePayFlagType; - -#define THOST_FTDC_PWKT_ExchangeKey '0' -#define THOST_FTDC_PWKT_PassWordKey '1' -#define THOST_FTDC_PWKT_MACKey '2' -#define THOST_FTDC_PWKT_MessageKey '3' - -typedef char TThostFtdcPassWordKeyTypeType; - -#define THOST_FTDC_PWT_Query '0' -#define THOST_FTDC_PWT_Fetch '1' -#define THOST_FTDC_PWT_Transfer '2' -#define THOST_FTDC_PWT_Trade '3' - -typedef char TThostFtdcFBTPassWordTypeType; - -#define THOST_FTDC_EM_NoEncry '0' -#define THOST_FTDC_EM_DES '1' -#define THOST_FTDC_EM_3DES '2' - -typedef char TThostFtdcFBTEncryModeType; - -#define THOST_FTDC_BRF_BankNotNeedRepeal '0' -#define THOST_FTDC_BRF_BankWaitingRepeal '1' -#define THOST_FTDC_BRF_BankBeenRepealed '2' - -typedef char TThostFtdcBankRepealFlagType; - -#define THOST_FTDC_BRORF_BrokerNotNeedRepeal '0' -#define THOST_FTDC_BRORF_BrokerWaitingRepeal '1' -#define THOST_FTDC_BRORF_BrokerBeenRepealed '2' - -typedef char TThostFtdcBrokerRepealFlagType; - -#define THOST_FTDC_TS_Bank '0' -#define THOST_FTDC_TS_Future '1' -#define THOST_FTDC_TS_Store '2' - -typedef char TThostFtdcInstitutionTypeType; - -#define THOST_FTDC_LF_Yes '0' -#define THOST_FTDC_LF_No '1' - -typedef char TThostFtdcLastFragmentType; - -#define THOST_FTDC_BAS_Normal '0' -#define THOST_FTDC_BAS_Freeze '1' -#define THOST_FTDC_BAS_ReportLoss '2' - -typedef char TThostFtdcBankAccStatusType; - -#define THOST_FTDC_MAS_Normal '0' -#define THOST_FTDC_MAS_Cancel '1' - -typedef char TThostFtdcMoneyAccountStatusType; - -#define THOST_FTDC_MSS_Point '0' -#define THOST_FTDC_MSS_PrePoint '1' -#define THOST_FTDC_MSS_CancelPoint '2' - -typedef char TThostFtdcManageStatusType; - -#define THOST_FTDC_SYT_FutureBankTransfer '0' -#define THOST_FTDC_SYT_StockBankTransfer '1' -#define THOST_FTDC_SYT_TheThirdPartStore '2' - -typedef char TThostFtdcSystemTypeType; - -#define THOST_FTDC_TEF_NormalProcessing '0' -#define THOST_FTDC_TEF_Success '1' -#define THOST_FTDC_TEF_Failed '2' -#define THOST_FTDC_TEF_Abnormal '3' -#define THOST_FTDC_TEF_ManualProcessedForException '4' -#define THOST_FTDC_TEF_CommuFailedNeedManualProcess '5' -#define THOST_FTDC_TEF_SysErrorNeedManualProcess '6' - -typedef char TThostFtdcTxnEndFlagType; - -#define THOST_FTDC_PSS_NotProcess '0' -#define THOST_FTDC_PSS_StartProcess '1' -#define THOST_FTDC_PSS_Finished '2' - -typedef char TThostFtdcProcessStatusType; - -#define THOST_FTDC_CUSTT_Person '0' -#define THOST_FTDC_CUSTT_Institution '1' - -typedef char TThostFtdcCustTypeType; - -#define THOST_FTDC_FBTTD_FromBankToFuture '1' -#define THOST_FTDC_FBTTD_FromFutureToBank '2' - -typedef char TThostFtdcFBTTransferDirectionType; - -#define THOST_FTDC_OOD_Open '1' -#define THOST_FTDC_OOD_Destroy '0' - -typedef char TThostFtdcOpenOrDestroyType; - -#define THOST_FTDC_AVAF_Invalid '0' -#define THOST_FTDC_AVAF_Valid '1' -#define THOST_FTDC_AVAF_Repeal '2' - -typedef char TThostFtdcAvailabilityFlagType; - -#define THOST_FTDC_OT_Bank '1' -#define THOST_FTDC_OT_Future '2' -#define THOST_FTDC_OT_PlateForm '9' - -typedef char TThostFtdcOrganTypeType; - -#define THOST_FTDC_OL_HeadQuarters '1' -#define THOST_FTDC_OL_Branch '2' - -typedef char TThostFtdcOrganLevelType; - -#define THOST_FTDC_PID_FutureProtocal '0' -#define THOST_FTDC_PID_ICBCProtocal '1' -#define THOST_FTDC_PID_ABCProtocal '2' -#define THOST_FTDC_PID_CBCProtocal '3' -#define THOST_FTDC_PID_CCBProtocal '4' -#define THOST_FTDC_PID_BOCOMProtocal '5' -#define THOST_FTDC_PID_FBTPlateFormProtocal 'X' - -typedef char TThostFtdcProtocalIDType; - -#define THOST_FTDC_CM_ShortConnect '0' -#define THOST_FTDC_CM_LongConnect '1' - -typedef char TThostFtdcConnectModeType; - -#define THOST_FTDC_SRM_ASync '0' -#define THOST_FTDC_SRM_Sync '1' - -typedef char TThostFtdcSyncModeType; - -#define THOST_FTDC_BAT_BankBook '1' -#define THOST_FTDC_BAT_SavingCard '2' -#define THOST_FTDC_BAT_CreditCard '3' - -typedef char TThostFtdcBankAccTypeType; - -#define THOST_FTDC_FAT_BankBook '1' -#define THOST_FTDC_FAT_SavingCard '2' -#define THOST_FTDC_FAT_CreditCard '3' - -typedef char TThostFtdcFutureAccTypeType; - -#define THOST_FTDC_OS_Ready '0' -#define THOST_FTDC_OS_CheckIn '1' -#define THOST_FTDC_OS_CheckOut '2' -#define THOST_FTDC_OS_CheckFileArrived '3' -#define THOST_FTDC_OS_CheckDetail '4' -#define THOST_FTDC_OS_DayEndClean '5' -#define THOST_FTDC_OS_Invalid '9' - -typedef char TThostFtdcOrganStatusType; - -#define THOST_FTDC_CCBFM_ByAmount '1' -#define THOST_FTDC_CCBFM_ByMonth '2' - -typedef char TThostFtdcCCBFeeModeType; - -#define THOST_FTDC_CAPIT_Client '1' -#define THOST_FTDC_CAPIT_Server '2' -#define THOST_FTDC_CAPIT_UserApi '3' - -typedef char TThostFtdcCommApiTypeType; - -typedef int TThostFtdcServiceIDType; - -typedef int TThostFtdcServiceLineNoType; - -typedef char TThostFtdcServiceNameType[61]; - -#define THOST_FTDC_LS_Connected '1' -#define THOST_FTDC_LS_Disconnected '2' - -typedef char TThostFtdcLinkStatusType; - -typedef int TThostFtdcCommApiPointerType; - -#define THOST_FTDC_BPWDF_NoCheck '0' -#define THOST_FTDC_BPWDF_BlankCheck '1' -#define THOST_FTDC_BPWDF_EncryptCheck '2' - -typedef char TThostFtdcPwdFlagType; - -#define THOST_FTDC_SAT_AccountID '1' -#define THOST_FTDC_SAT_CardID '2' -#define THOST_FTDC_SAT_SHStockholderID '3' -#define THOST_FTDC_SAT_SZStockholderID '4' - -typedef char TThostFtdcSecuAccTypeType; - -#define THOST_FTDC_TRFS_Normal '0' -#define THOST_FTDC_TRFS_Repealed '1' - -typedef char TThostFtdcTransferStatusType; - -#define THOST_FTDC_SPTYPE_Broker '0' -#define THOST_FTDC_SPTYPE_Bank '1' - -typedef char TThostFtdcSponsorTypeType; - -#define THOST_FTDC_REQRSP_Request '0' -#define THOST_FTDC_REQRSP_Response '1' - -typedef char TThostFtdcReqRspTypeType; - -#define THOST_FTDC_FBTUET_SignIn '0' -#define THOST_FTDC_FBTUET_FromBankToFuture '1' -#define THOST_FTDC_FBTUET_FromFutureToBank '2' -#define THOST_FTDC_FBTUET_OpenAccount '3' -#define THOST_FTDC_FBTUET_CancelAccount '4' -#define THOST_FTDC_FBTUET_ChangeAccount '5' -#define THOST_FTDC_FBTUET_RepealFromBankToFuture '6' -#define THOST_FTDC_FBTUET_RepealFromFutureToBank '7' -#define THOST_FTDC_FBTUET_QueryBankAccount '8' -#define THOST_FTDC_FBTUET_QueryFutureAccount '9' -#define THOST_FTDC_FBTUET_SignOut 'A' -#define THOST_FTDC_FBTUET_SyncKey 'B' -#define THOST_FTDC_FBTUET_ReserveOpenAccount 'C' -#define THOST_FTDC_FBTUET_CancelReserveOpenAccount 'D' -#define THOST_FTDC_FBTUET_ReserveOpenAccountConfirm 'E' -#define THOST_FTDC_FBTUET_Other 'Z' - -typedef char TThostFtdcFBTUserEventTypeType; - -typedef char TThostFtdcBankIDByBankType[21]; - -typedef char TThostFtdcBankOperNoType[4]; - -typedef char TThostFtdcBankCustNoType[21]; - -typedef int TThostFtdcDBOPSeqNoType; - -typedef char TThostFtdcTableNameType[61]; - -typedef char TThostFtdcPKNameType[201]; - -typedef char TThostFtdcPKValueType[501]; - -#define THOST_FTDC_DBOP_Insert '0' -#define THOST_FTDC_DBOP_Update '1' -#define THOST_FTDC_DBOP_Delete '2' - -typedef char TThostFtdcDBOperationType; - -#define THOST_FTDC_SYNF_Yes '0' -#define THOST_FTDC_SYNF_No '1' - -typedef char TThostFtdcSyncFlagType; - -typedef char TThostFtdcTargetIDType[4]; - -#define THOST_FTDC_SYNT_OneOffSync '0' -#define THOST_FTDC_SYNT_TimerSync '1' -#define THOST_FTDC_SYNT_TimerFullSync '2' - -typedef char TThostFtdcSyncTypeType; - -typedef char TThostFtdcFBETimeType[7]; - -typedef char TThostFtdcFBEBankNoType[13]; - -typedef char TThostFtdcFBECertNoType[13]; - -#define THOST_FTDC_FBEDIR_Settlement '0' -#define THOST_FTDC_FBEDIR_Sale '1' - -typedef char TThostFtdcExDirectionType; - -typedef char TThostFtdcFBEBankAccountType[33]; - -typedef char TThostFtdcFBEBankAccountNameType[61]; - -typedef double TThostFtdcFBEAmtType; - -typedef char TThostFtdcFBEBusinessTypeType[3]; - -typedef char TThostFtdcFBEPostScriptType[61]; - -typedef char TThostFtdcFBERemarkType[71]; - -typedef double TThostFtdcExRateType; - -#define THOST_FTDC_FBERES_Success '0' -#define THOST_FTDC_FBERES_InsufficientBalance '1' -#define THOST_FTDC_FBERES_UnknownTrading '8' -#define THOST_FTDC_FBERES_Fail 'x' - -typedef char TThostFtdcFBEResultFlagType; - -typedef char TThostFtdcFBERtnMsgType[61]; - -typedef char TThostFtdcFBEExtendMsgType[61]; - -typedef char TThostFtdcFBEBusinessSerialType[31]; - -typedef char TThostFtdcFBESystemSerialType[21]; - -typedef int TThostFtdcFBETotalExCntType; - -#define THOST_FTDC_FBEES_Normal '0' -#define THOST_FTDC_FBEES_ReExchange '1' - -typedef char TThostFtdcFBEExchStatusType; - -#define THOST_FTDC_FBEFG_DataPackage '0' -#define THOST_FTDC_FBEFG_File '1' - -typedef char TThostFtdcFBEFileFlagType; - -#define THOST_FTDC_FBEAT_NotTrade '0' -#define THOST_FTDC_FBEAT_Trade '1' - -typedef char TThostFtdcFBEAlreadyTradeType; - -typedef char TThostFtdcFBEOpenBankType[61]; - -#define THOST_FTDC_FBEUET_SignIn '0' -#define THOST_FTDC_FBEUET_Exchange '1' -#define THOST_FTDC_FBEUET_ReExchange '2' -#define THOST_FTDC_FBEUET_QueryBankAccount '3' -#define THOST_FTDC_FBEUET_QueryExchDetial '4' -#define THOST_FTDC_FBEUET_QueryExchSummary '5' -#define THOST_FTDC_FBEUET_QueryExchRate '6' -#define THOST_FTDC_FBEUET_CheckBankAccount '7' -#define THOST_FTDC_FBEUET_SignOut '8' -#define THOST_FTDC_FBEUET_Other 'Z' - -typedef char TThostFtdcFBEUserEventTypeType; - -typedef char TThostFtdcFBEFileNameType[21]; - -typedef char TThostFtdcFBEBatchSerialType[21]; - -#define THOST_FTDC_FBERF_UnProcessed '0' -#define THOST_FTDC_FBERF_WaitSend '1' -#define THOST_FTDC_FBERF_SendSuccess '2' -#define THOST_FTDC_FBERF_SendFailed '3' -#define THOST_FTDC_FBERF_WaitReSend '4' - -typedef char TThostFtdcFBEReqFlagType; - -#define THOST_FTDC_NC_NOERROR '0' -#define THOST_FTDC_NC_Warn '1' -#define THOST_FTDC_NC_Call '2' -#define THOST_FTDC_NC_Force '3' -#define THOST_FTDC_NC_CHUANCANG '4' -#define THOST_FTDC_NC_Exception '5' - -typedef char TThostFtdcNotifyClassType; - -typedef char TThostFtdcRiskNofityInfoType[257]; - -typedef char TThostFtdcForceCloseSceneIdType[24]; - -#define THOST_FTDC_FCT_Manual '0' -#define THOST_FTDC_FCT_Single '1' -#define THOST_FTDC_FCT_Group '2' - -typedef char TThostFtdcForceCloseTypeType; - -typedef char TThostFtdcInstrumentIDsType[101]; - -#define THOST_FTDC_RNM_System '0' -#define THOST_FTDC_RNM_SMS '1' -#define THOST_FTDC_RNM_EMail '2' -#define THOST_FTDC_RNM_Manual '3' - -typedef char TThostFtdcRiskNotifyMethodType; - -#define THOST_FTDC_RNS_NotGen '0' -#define THOST_FTDC_RNS_Generated '1' -#define THOST_FTDC_RNS_SendError '2' -#define THOST_FTDC_RNS_SendOk '3' -#define THOST_FTDC_RNS_Received '4' -#define THOST_FTDC_RNS_Confirmed '5' - -typedef char TThostFtdcRiskNotifyStatusType; - -#define THOST_FTDC_RUE_ExportData '0' - -typedef char TThostFtdcRiskUserEventType; - -typedef int TThostFtdcParamIDType; - -typedef char TThostFtdcParamNameType[41]; - -typedef char TThostFtdcParamValueType[41]; - -#define THOST_FTDC_COST_LastPriceAsc '0' -#define THOST_FTDC_COST_LastPriceDesc '1' -#define THOST_FTDC_COST_AskPriceAsc '2' -#define THOST_FTDC_COST_AskPriceDesc '3' -#define THOST_FTDC_COST_BidPriceAsc '4' -#define THOST_FTDC_COST_BidPriceDesc '5' - -typedef char TThostFtdcConditionalOrderSortTypeType; - -#define THOST_FTDC_UOAST_NoSend '0' -#define THOST_FTDC_UOAST_Sended '1' -#define THOST_FTDC_UOAST_Generated '2' -#define THOST_FTDC_UOAST_SendFail '3' -#define THOST_FTDC_UOAST_Success '4' -#define THOST_FTDC_UOAST_Fail '5' -#define THOST_FTDC_UOAST_Cancel '6' - -typedef char TThostFtdcSendTypeType; - -#define THOST_FTDC_UOACS_NoApply '1' -#define THOST_FTDC_UOACS_Submited '2' -#define THOST_FTDC_UOACS_Sended '3' -#define THOST_FTDC_UOACS_Success '4' -#define THOST_FTDC_UOACS_Refuse '5' -#define THOST_FTDC_UOACS_Cancel '6' - -typedef char TThostFtdcClientIDStatusType; - -typedef char TThostFtdcIndustryIDType[17]; - -typedef char TThostFtdcQuestionIDType[5]; - -typedef char TThostFtdcQuestionContentType[41]; - -typedef char TThostFtdcOptionIDType[13]; - -typedef char TThostFtdcOptionContentType[61]; - -#define THOST_FTDC_QT_Radio '1' -#define THOST_FTDC_QT_Option '2' -#define THOST_FTDC_QT_Blank '3' - -typedef char TThostFtdcQuestionTypeType; - -typedef char TThostFtdcProcessIDType[33]; - -typedef int TThostFtdcSeqNoType; - -typedef char TThostFtdcUOAProcessStatusType[3]; - -typedef char TThostFtdcProcessTypeType[3]; - -#define THOST_FTDC_BT_Request '1' -#define THOST_FTDC_BT_Response '2' -#define THOST_FTDC_BT_Notice '3' - -typedef char TThostFtdcBusinessTypeType; - -#define THOST_FTDC_CRC_Success '0' -#define THOST_FTDC_CRC_Working '1' -#define THOST_FTDC_CRC_InfoFail '2' -#define THOST_FTDC_CRC_IDCardFail '3' -#define THOST_FTDC_CRC_OtherFail '4' - -typedef char TThostFtdcCfmmcReturnCodeType; - -typedef int TThostFtdcExReturnCodeType; - -#define THOST_FTDC_CfMMCCT_All '0' -#define THOST_FTDC_CfMMCCT_Person '1' -#define THOST_FTDC_CfMMCCT_Company '2' -#define THOST_FTDC_CfMMCCT_Other '3' -#define THOST_FTDC_CfMMCCT_SpecialOrgan '4' -#define THOST_FTDC_CfMMCCT_Asset '5' - -typedef char TThostFtdcClientTypeType; - -#define THOST_FTDC_EIDT_SHFE 'S' -#define THOST_FTDC_EIDT_CZCE 'Z' -#define THOST_FTDC_EIDT_DCE 'D' -#define THOST_FTDC_EIDT_CFFEX 'J' -#define THOST_FTDC_EIDT_INE 'N' - -typedef char TThostFtdcExchangeIDTypeType; - -#define THOST_FTDC_ECIDT_Hedge '1' -#define THOST_FTDC_ECIDT_Arbitrage '2' -#define THOST_FTDC_ECIDT_Speculation '3' - -typedef char TThostFtdcExClientIDTypeType; - -typedef char TThostFtdcClientClassifyType[11]; - -typedef char TThostFtdcUOAOrganTypeType[11]; - -typedef char TThostFtdcUOACountryCodeType[11]; - -typedef char TThostFtdcAreaCodeType[11]; - -typedef char TThostFtdcFuturesIDType[21]; - -typedef char TThostFtdcCffmcDateType[11]; - -typedef char TThostFtdcCffmcTimeType[11]; - -typedef char TThostFtdcNocIDType[21]; - -#define THOST_FTDC_UF_NoUpdate '0' -#define THOST_FTDC_UF_Success '1' -#define THOST_FTDC_UF_Fail '2' -#define THOST_FTDC_UF_TCSuccess '3' -#define THOST_FTDC_UF_TCFail '4' -#define THOST_FTDC_UF_Cancel '5' - -typedef char TThostFtdcUpdateFlagType; - -#define THOST_FTDC_AOID_OpenInvestor '1' -#define THOST_FTDC_AOID_ModifyIDCard '2' -#define THOST_FTDC_AOID_ModifyNoIDCard '3' -#define THOST_FTDC_AOID_ApplyTradingCode '4' -#define THOST_FTDC_AOID_CancelTradingCode '5' -#define THOST_FTDC_AOID_CancelInvestor '6' -#define THOST_FTDC_AOID_FreezeAccount '8' -#define THOST_FTDC_AOID_ActiveFreezeAccount '9' - -typedef char TThostFtdcApplyOperateIDType; - -#define THOST_FTDC_ASID_NoComplete '1' -#define THOST_FTDC_ASID_Submited '2' -#define THOST_FTDC_ASID_Checked '3' -#define THOST_FTDC_ASID_Refused '4' -#define THOST_FTDC_ASID_Deleted '5' - -typedef char TThostFtdcApplyStatusIDType; - -#define THOST_FTDC_UOASM_ByAPI '1' -#define THOST_FTDC_UOASM_ByFile '2' - -typedef char TThostFtdcSendMethodType; - -typedef char TThostFtdcEventTypeType[33]; - -#define THOST_FTDC_EvM_ADD '1' -#define THOST_FTDC_EvM_UPDATE '2' -#define THOST_FTDC_EvM_DELETE '3' -#define THOST_FTDC_EvM_CHECK '4' -#define THOST_FTDC_EvM_COPY '5' -#define THOST_FTDC_EvM_CANCEL '6' -#define THOST_FTDC_EvM_Reverse '7' - -typedef char TThostFtdcEventModeType; - -#define THOST_FTDC_UOAA_ASR '1' -#define THOST_FTDC_UOAA_ASNR '2' -#define THOST_FTDC_UOAA_NSAR '3' -#define THOST_FTDC_UOAA_NSR '4' - -typedef char TThostFtdcUOAAutoSendType; - -typedef int TThostFtdcQueryDepthType; - -typedef int TThostFtdcDataCenterIDType; - -#define THOST_FTDC_EvM_InvestorGroupFlow '1' -#define THOST_FTDC_EvM_InvestorRate '2' -#define THOST_FTDC_EvM_InvestorCommRateModel '3' - -typedef char TThostFtdcFlowIDType; - -#define THOST_FTDC_CL_Zero '0' -#define THOST_FTDC_CL_One '1' -#define THOST_FTDC_CL_Two '2' - -typedef char TThostFtdcCheckLevelType; - -typedef int TThostFtdcCheckNoType; - -#define THOST_FTDC_CHS_Init '0' -#define THOST_FTDC_CHS_Checking '1' -#define THOST_FTDC_CHS_Checked '2' -#define THOST_FTDC_CHS_Refuse '3' -#define THOST_FTDC_CHS_Cancel '4' - -typedef char TThostFtdcCheckStatusType; - -#define THOST_FTDC_CHU_Unused '0' -#define THOST_FTDC_CHU_Used '1' -#define THOST_FTDC_CHU_Fail '2' - -typedef char TThostFtdcUsedStatusType; - -typedef char TThostFtdcRateTemplateNameType[61]; - -typedef char TThostFtdcPropertyStringType[2049]; - -#define THOST_FTDC_BAO_ByAccProperty '0' -#define THOST_FTDC_BAO_ByFBTransfer '1' - -typedef char TThostFtdcBankAcountOriginType; - -#define THOST_FTDC_MBTS_ByInstrument '0' -#define THOST_FTDC_MBTS_ByDayInsPrc '1' -#define THOST_FTDC_MBTS_ByDayIns '2' - -typedef char TThostFtdcMonthBillTradeSumType; - -#define THOST_FTDC_FTC_BankLaunchBankToBroker '102001' -#define THOST_FTDC_FTC_BrokerLaunchBankToBroker '202001' -#define THOST_FTDC_FTC_BankLaunchBrokerToBank '102002' -#define THOST_FTDC_FTC_BrokerLaunchBrokerToBank '202002' - -typedef char TThostFtdcFBTTradeCodeEnumType; - -typedef char TThostFtdcRateTemplateIDType[9]; - -typedef char TThostFtdcRiskRateType[21]; - -typedef int TThostFtdcTimestampType; - -typedef char TThostFtdcInvestorIDRuleNameType[61]; - -typedef char TThostFtdcInvestorIDRuleExprType[513]; - -typedef int TThostFtdcLastDriftType; - -typedef int TThostFtdcLastSuccessType; - -typedef char TThostFtdcAuthKeyType[41]; - -typedef char TThostFtdcSerialNumberType[17]; - -#define THOST_FTDC_OTP_NONE '0' -#define THOST_FTDC_OTP_TOTP '1' - -typedef char TThostFtdcOTPTypeType; - -typedef char TThostFtdcOTPVendorsIDType[2]; - -typedef char TThostFtdcOTPVendorsNameType[61]; - -#define THOST_FTDC_OTPS_Unused '0' -#define THOST_FTDC_OTPS_Used '1' -#define THOST_FTDC_OTPS_Disuse '2' - -typedef char TThostFtdcOTPStatusType; - -#define THOST_FTDC_BUT_Investor '1' -#define THOST_FTDC_BUT_BrokerUser '2' - -typedef char TThostFtdcBrokerUserTypeType; - -#define THOST_FTDC_FUTT_Commodity '1' -#define THOST_FTDC_FUTT_Financial '2' - -typedef char TThostFtdcFutureTypeType; - -#define THOST_FTDC_FET_Restriction '0' -#define THOST_FTDC_FET_TodayRestriction '1' -#define THOST_FTDC_FET_Transfer '2' -#define THOST_FTDC_FET_Credit '3' -#define THOST_FTDC_FET_InvestorWithdrawAlm '4' -#define THOST_FTDC_FET_BankRestriction '5' -#define THOST_FTDC_FET_Accountregister '6' -#define THOST_FTDC_FET_ExchangeFundIO '7' -#define THOST_FTDC_FET_InvestorFundIO '8' - -typedef char TThostFtdcFundEventTypeType; - -#define THOST_FTDC_AST_FBTransfer '0' -#define THOST_FTDC_AST_ManualEntry '1' - -typedef char TThostFtdcAccountSourceTypeType; - -#define THOST_FTDC_CST_UnifyAccount '0' -#define THOST_FTDC_CST_ManualEntry '1' - -typedef char TThostFtdcCodeSourceTypeType; - -#define THOST_FTDC_UR_All '0' -#define THOST_FTDC_UR_Single '1' - -typedef char TThostFtdcUserRangeType; - -typedef char TThostFtdcTimeSpanType[9]; - -typedef char TThostFtdcImportSequenceIDType[17]; - -#define THOST_FTDC_BG_Investor '2' -#define THOST_FTDC_BG_Group '1' - -typedef char TThostFtdcByGroupType; - -#define THOST_FTDC_TSSM_Instrument '1' -#define THOST_FTDC_TSSM_Product '2' -#define THOST_FTDC_TSSM_Exchange '3' - -typedef char TThostFtdcTradeSumStatModeType; - -typedef int TThostFtdcComTypeType; - -typedef char TThostFtdcUserProductIDType[33]; - -typedef char TThostFtdcUserProductNameType[65]; - -typedef char TThostFtdcUserProductMemoType[129]; - -typedef char TThostFtdcCSRCCancelFlagType[2]; - -typedef char TThostFtdcCSRCDateType[11]; - -typedef char TThostFtdcCSRCInvestorNameType[201]; - -typedef char TThostFtdcCSRCOpenInvestorNameType[101]; - -typedef char TThostFtdcCSRCInvestorIDType[13]; - -typedef char TThostFtdcCSRCIdentifiedCardNoType[51]; - -typedef char TThostFtdcCSRCClientIDType[11]; - -typedef char TThostFtdcCSRCBankFlagType[3]; - -typedef char TThostFtdcCSRCBankAccountType[23]; - -typedef char TThostFtdcCSRCOpenNameType[401]; - -typedef char TThostFtdcCSRCMemoType[101]; - -typedef char TThostFtdcCSRCTimeType[11]; - -typedef char TThostFtdcCSRCTradeIDType[21]; - -typedef char TThostFtdcCSRCExchangeInstIDType[31]; - -typedef char TThostFtdcCSRCMortgageNameType[7]; - -typedef char TThostFtdcCSRCReasonType[3]; - -typedef char TThostFtdcIsSettlementType[2]; - -typedef double TThostFtdcCSRCMoneyType; - -typedef double TThostFtdcCSRCPriceType; - -typedef char TThostFtdcCSRCOptionsTypeType[2]; - -typedef double TThostFtdcCSRCStrikePriceType; - -typedef char TThostFtdcCSRCTargetProductIDType[3]; - -typedef char TThostFtdcCSRCTargetInstrIDType[31]; - -typedef char TThostFtdcCommModelNameType[161]; - -typedef char TThostFtdcCommModelMemoType[1025]; - -#define THOST_FTDC_ESM_Relative '1' -#define THOST_FTDC_ESM_Typical '2' - -typedef char TThostFtdcExprSetModeType; - -#define THOST_FTDC_RIR_All '1' -#define THOST_FTDC_RIR_Model '2' -#define THOST_FTDC_RIR_Single '3' - -typedef char TThostFtdcRateInvestorRangeType; - -typedef char TThostFtdcAgentBrokerIDType[13]; - -typedef int TThostFtdcDRIdentityIDType; - -typedef char TThostFtdcDRIdentityNameType[65]; - -typedef char TThostFtdcDBLinkIDType[31]; - -#define THOST_FTDC_SDS_Initialize '0' -#define THOST_FTDC_SDS_Settlementing '1' -#define THOST_FTDC_SDS_Settlemented '2' - -typedef char TThostFtdcSyncDataStatusType; - -#define THOST_FTDC_TSRC_NORMAL '0' -#define THOST_FTDC_TSRC_QUERY '1' - -typedef char TThostFtdcTradeSourceType; - -#define THOST_FTDC_FSM_Product '1' -#define THOST_FTDC_FSM_Exchange '2' -#define THOST_FTDC_FSM_All '3' - -typedef char TThostFtdcFlexStatModeType; - -#define THOST_FTDC_BIR_Property '1' -#define THOST_FTDC_BIR_All '2' - -typedef char TThostFtdcByInvestorRangeType; - -typedef char TThostFtdcSRiskRateType[21]; - -typedef int TThostFtdcSequenceNo12Type; - -#define THOST_FTDC_PIR_All '1' -#define THOST_FTDC_PIR_Property '2' -#define THOST_FTDC_PIR_Single '3' - -typedef char TThostFtdcPropertyInvestorRangeType; - -#define THOST_FTDC_FIS_NoCreate '0' -#define THOST_FTDC_FIS_Created '1' -#define THOST_FTDC_FIS_Failed '2' - -typedef char TThostFtdcFileStatusType; - -#define THOST_FTDC_FGS_FileTransmit '0' -#define THOST_FTDC_FGS_FileGen '1' - -typedef char TThostFtdcFileGenStyleType; - -#define THOST_FTDC_SoM_Add '1' -#define THOST_FTDC_SoM_Update '2' -#define THOST_FTDC_SoM_Delete '3' -#define THOST_FTDC_SoM_Copy '4' -#define THOST_FTDC_SoM_AcTive '5' -#define THOST_FTDC_SoM_CanCel '6' -#define THOST_FTDC_SoM_ReSet '7' - -typedef char TThostFtdcSysOperModeType; - -#define THOST_FTDC_SoT_UpdatePassword '0' -#define THOST_FTDC_SoT_UserDepartment '1' -#define THOST_FTDC_SoT_RoleManager '2' -#define THOST_FTDC_SoT_RoleFunction '3' -#define THOST_FTDC_SoT_BaseParam '4' -#define THOST_FTDC_SoT_SetUserID '5' -#define THOST_FTDC_SoT_SetUserRole '6' -#define THOST_FTDC_SoT_UserIpRestriction '7' -#define THOST_FTDC_SoT_DepartmentManager '8' -#define THOST_FTDC_SoT_DepartmentCopy '9' -#define THOST_FTDC_SoT_Tradingcode 'A' -#define THOST_FTDC_SoT_InvestorStatus 'B' -#define THOST_FTDC_SoT_InvestorAuthority 'C' -#define THOST_FTDC_SoT_PropertySet 'D' -#define THOST_FTDC_SoT_ReSetInvestorPasswd 'E' -#define THOST_FTDC_SoT_InvestorPersonalityInfo 'F' - -typedef char TThostFtdcSysOperTypeType; - -#define THOST_FTDC_CSRCQ_Current '0' -#define THOST_FTDC_CSRCQ_History '1' - -typedef char TThostFtdcCSRCDataQueyTypeType; - -#define THOST_FTDC_FRS_Normal '1' -#define THOST_FTDC_FRS_Freeze '0' - -typedef char TThostFtdcFreezeStatusType; - -#define THOST_FTDC_STST_Standard '0' -#define THOST_FTDC_STST_NonStandard '1' - -typedef char TThostFtdcStandardStatusType; - -typedef char TThostFtdcCSRCFreezeStatusType[2]; - -#define THOST_FTDC_RPT_Freeze '1' -#define THOST_FTDC_RPT_FreezeActive '2' -#define THOST_FTDC_RPT_OpenLimit '3' -#define THOST_FTDC_RPT_RelieveOpenLimit '4' - -typedef char TThostFtdcRightParamTypeType; - -typedef char TThostFtdcRightTemplateIDType[9]; - -typedef char TThostFtdcRightTemplateNameType[61]; - -#define THOST_FTDC_AMLDS_Normal '0' -#define THOST_FTDC_AMLDS_Deleted '1' - -typedef char TThostFtdcDataStatusType; - -#define THOST_FTDC_AMLCHS_Init '0' -#define THOST_FTDC_AMLCHS_Checking '1' -#define THOST_FTDC_AMLCHS_Checked '2' -#define THOST_FTDC_AMLCHS_RefuseReport '3' - -typedef char TThostFtdcAMLCheckStatusType; - -#define THOST_FTDC_AMLDT_DrawDay '0' -#define THOST_FTDC_AMLDT_TouchDay '1' - -typedef char TThostFtdcAmlDateTypeType; - -#define THOST_FTDC_AMLCL_CheckLevel0 '0' -#define THOST_FTDC_AMLCL_CheckLevel1 '1' -#define THOST_FTDC_AMLCL_CheckLevel2 '2' -#define THOST_FTDC_AMLCL_CheckLevel3 '3' - -typedef char TThostFtdcAmlCheckLevelType; - -typedef char TThostFtdcAmlCheckFlowType[2]; - -typedef char TThostFtdcDataTypeType[129]; - -#define THOST_FTDC_EFT_CSV '0' -#define THOST_FTDC_EFT_EXCEL '1' -#define THOST_FTDC_EFT_DBF '2' - -typedef char TThostFtdcExportFileTypeType; - -#define THOST_FTDC_SMT_Before '1' -#define THOST_FTDC_SMT_Settlement '2' -#define THOST_FTDC_SMT_After '3' -#define THOST_FTDC_SMT_Settlemented '4' - -typedef char TThostFtdcSettleManagerTypeType; - -typedef char TThostFtdcSettleManagerIDType[33]; - -typedef char TThostFtdcSettleManagerNameType[129]; - -#define THOST_FTDC_SML_Must '1' -#define THOST_FTDC_SML_Alarm '2' -#define THOST_FTDC_SML_Prompt '3' -#define THOST_FTDC_SML_Ignore '4' - -typedef char TThostFtdcSettleManagerLevelType; - -#define THOST_FTDC_SMG_Exhcange '1' -#define THOST_FTDC_SMG_ASP '2' -#define THOST_FTDC_SMG_CSRC '3' - -typedef char TThostFtdcSettleManagerGroupType; - -typedef char TThostFtdcCheckResultMemoType[1025]; - -typedef char TThostFtdcFunctionUrlType[1025]; - -typedef char TThostFtdcAuthInfoType[129]; - -typedef char TThostFtdcAuthCodeType[17]; - -#define THOST_FTDC_LUT_Repeatable '1' -#define THOST_FTDC_LUT_Unrepeatable '2' - -typedef char TThostFtdcLimitUseTypeType; - -#define THOST_FTDC_DAR_Settle '1' -#define THOST_FTDC_DAR_Exchange '2' -#define THOST_FTDC_DAR_CSRC '3' - -typedef char TThostFtdcDataResourceType; - -#define THOST_FTDC_MGT_ExchMarginRate '0' -#define THOST_FTDC_MGT_InstrMarginRate '1' -#define THOST_FTDC_MGT_InstrMarginRateTrade '2' - -typedef char TThostFtdcMarginTypeType; - -#define THOST_FTDC_ACT_Intraday '1' -#define THOST_FTDC_ACT_Long '2' - -typedef char TThostFtdcActiveTypeType; - -#define THOST_FTDC_MRT_Exchange '1' -#define THOST_FTDC_MRT_Investor '2' -#define THOST_FTDC_MRT_InvestorTrade '3' - -typedef char TThostFtdcMarginRateTypeType; - -#define THOST_FTDC_BUS_UnBak '0' -#define THOST_FTDC_BUS_BakUp '1' -#define THOST_FTDC_BUS_BakUped '2' -#define THOST_FTDC_BUS_BakFail '3' - -typedef char TThostFtdcBackUpStatusType; - -#define THOST_FTDC_SIS_UnInitialize '0' -#define THOST_FTDC_SIS_Initialize '1' -#define THOST_FTDC_SIS_Initialized '2' - -typedef char TThostFtdcInitSettlementType; - -#define THOST_FTDC_SRS_NoCreate '0' -#define THOST_FTDC_SRS_Create '1' -#define THOST_FTDC_SRS_Created '2' -#define THOST_FTDC_SRS_CreateFail '3' - -typedef char TThostFtdcReportStatusType; - -#define THOST_FTDC_SSS_UnSaveData '0' -#define THOST_FTDC_SSS_SaveDatad '1' - -typedef char TThostFtdcSaveStatusType; - -#define THOST_FTDC_SAS_UnArchived '0' -#define THOST_FTDC_SAS_Archiving '1' -#define THOST_FTDC_SAS_Archived '2' -#define THOST_FTDC_SAS_ArchiveFail '3' - -typedef char TThostFtdcSettArchiveStatusType; - -#define THOST_FTDC_CTPT_Unkown '0' -#define THOST_FTDC_CTPT_MainCenter '1' -#define THOST_FTDC_CTPT_BackUp '2' - -typedef char TThostFtdcCTPTypeType; - -typedef char TThostFtdcToolIDType[9]; - -typedef char TThostFtdcToolNameType[81]; - -#define THOST_FTDC_CDT_Normal '0' -#define THOST_FTDC_CDT_SpecFirst '1' - -typedef char TThostFtdcCloseDealTypeType; - -#define THOST_FTDC_MFUR_None '0' -#define THOST_FTDC_MFUR_Margin '1' -#define THOST_FTDC_MFUR_All '2' -#define THOST_FTDC_MFUR_CNY3 '3' - -typedef char TThostFtdcMortgageFundUseRangeType; - -typedef double TThostFtdcCurrencyUnitType; - -typedef double TThostFtdcExchangeRateType; - -#define THOST_FTDC_SPT_CzceHedge '1' -#define THOST_FTDC_SPT_IneForeignCurrency '2' -#define THOST_FTDC_SPT_DceOpenClose '3' - -typedef char TThostFtdcSpecProductTypeType; - -#define THOST_FTDC_FMT_Mortgage '1' -#define THOST_FTDC_FMT_Redemption '2' - -typedef char TThostFtdcFundMortgageTypeType; - -#define THOST_FTDC_ASPI_BaseMargin '1' -#define THOST_FTDC_ASPI_LowestInterest '2' - -typedef char TThostFtdcAccountSettlementParamIDType; - -typedef char TThostFtdcCurrencyNameType[31]; - -typedef char TThostFtdcCurrencySignType[4]; - -#define THOST_FTDC_FMD_In '1' -#define THOST_FTDC_FMD_Out '2' - -typedef char TThostFtdcFundMortDirectionType; - -#define THOST_FTDC_BT_Profit '0' -#define THOST_FTDC_BT_Loss '1' -#define THOST_FTDC_BT_Other 'Z' - -typedef char TThostFtdcBusinessClassType; - -#define THOST_FTDC_SST_Manual '0' -#define THOST_FTDC_SST_Automatic '1' - -typedef char TThostFtdcSwapSourceTypeType; - -#define THOST_FTDC_CED_Settlement '0' -#define THOST_FTDC_CED_Sale '1' - -typedef char TThostFtdcCurrExDirectionType; - -#define THOST_FTDC_CSS_Entry '1' -#define THOST_FTDC_CSS_Approve '2' -#define THOST_FTDC_CSS_Refuse '3' -#define THOST_FTDC_CSS_Revoke '4' -#define THOST_FTDC_CSS_Send '5' -#define THOST_FTDC_CSS_Success '6' -#define THOST_FTDC_CSS_Failure '7' - -typedef char TThostFtdcCurrencySwapStatusType; - -typedef char TThostFtdcCurrExchCertNoType[13]; - -typedef char TThostFtdcBatchSerialNoType[21]; - -#define THOST_FTDC_REQF_NoSend '0' -#define THOST_FTDC_REQF_SendSuccess '1' -#define THOST_FTDC_REQF_SendFailed '2' -#define THOST_FTDC_REQF_WaitReSend '3' - -typedef char TThostFtdcReqFlagType; - -#define THOST_FTDC_RESF_Success '0' -#define THOST_FTDC_RESF_InsuffiCient '1' -#define THOST_FTDC_RESF_UnKnown '8' - -typedef char TThostFtdcResFlagType; - -typedef char TThostFtdcPageControlType[2]; - -typedef int TThostFtdcRecordCountType; - -typedef char TThostFtdcCurrencySwapMemoType[101]; - -#define THOST_FTDC_EXS_Before '0' -#define THOST_FTDC_EXS_After '1' - -typedef char TThostFtdcExStatusType; - -#define THOST_FTDC_CR_Domestic '1' -#define THOST_FTDC_CR_GMT '2' -#define THOST_FTDC_CR_Foreign '3' - -typedef char TThostFtdcClientRegionType; - -typedef char TThostFtdcWorkPlaceType[101]; - -typedef char TThostFtdcBusinessPeriodType[21]; - -typedef char TThostFtdcWebSiteType[101]; - -typedef char TThostFtdcUOAIdCardTypeType[3]; - -typedef char TThostFtdcClientModeType[3]; - -typedef char TThostFtdcInvestorFullNameType[101]; - -typedef char TThostFtdcUOABrokerIDType[11]; - -typedef char TThostFtdcUOAZipCodeType[11]; - -typedef char TThostFtdcUOAEMailType[101]; - -typedef char TThostFtdcOldCityType[41]; - -typedef char TThostFtdcCorporateIdentifiedCardNoType[101]; - -#define THOST_FTDC_HB_No '0' -#define THOST_FTDC_HB_Yes '1' - -typedef char TThostFtdcHasBoardType; - -#define THOST_FTDC_SM_Normal '1' -#define THOST_FTDC_SM_Emerge '2' -#define THOST_FTDC_SM_Restore '3' - -typedef char TThostFtdcStartModeType; - -#define THOST_FTDC_TPT_Full '1' -#define THOST_FTDC_TPT_Increment '2' -#define THOST_FTDC_TPT_BackUp '3' - -typedef char TThostFtdcTemplateTypeType; - -#define THOST_FTDC_LM_Trade '0' -#define THOST_FTDC_LM_Transfer '1' - -typedef char TThostFtdcLoginModeType; - -#define THOST_FTDC_CPT_Instrument '1' -#define THOST_FTDC_CPT_Margin '2' - -typedef char TThostFtdcPromptTypeType; - -typedef char TThostFtdcLedgerManageIDType[51]; - -typedef char TThostFtdcInvestVarietyType[101]; - -typedef char TThostFtdcBankAccountTypeType[2]; - -typedef char TThostFtdcLedgerManageBankType[101]; - -typedef char TThostFtdcCffexDepartmentNameType[101]; - -typedef char TThostFtdcCffexDepartmentCodeType[9]; - -#define THOST_FTDC_HT_Yes '1' -#define THOST_FTDC_HT_No '0' - -typedef char TThostFtdcHasTrusteeType; - -typedef char TThostFtdcCSRCMemo1Type[41]; - -typedef char TThostFtdcAssetmgrCFullNameType[101]; - -typedef char TThostFtdcAssetmgrApprovalNOType[51]; - -typedef char TThostFtdcAssetmgrMgrNameType[401]; - -#define THOST_FTDC_AMT_Bank '1' -#define THOST_FTDC_AMT_Securities '2' -#define THOST_FTDC_AMT_Fund '3' -#define THOST_FTDC_AMT_Insurance '4' -#define THOST_FTDC_AMT_Trust '5' -#define THOST_FTDC_AMT_Other '9' - -typedef char TThostFtdcAmTypeType; - -typedef char TThostFtdcCSRCAmTypeType[5]; - -#define THOST_FTDC_CFIOT_FundIO '0' -#define THOST_FTDC_CFIOT_SwapCurrency '1' - -typedef char TThostFtdcCSRCFundIOTypeType; - -#define THOST_FTDC_CAT_Futures '1' -#define THOST_FTDC_CAT_AssetmgrFuture '2' -#define THOST_FTDC_CAT_AssetmgrTrustee '3' -#define THOST_FTDC_CAT_AssetmgrTransfer '4' - -typedef char TThostFtdcCusAccountTypeType; - -typedef char TThostFtdcCSRCNationalType[4]; - -typedef char TThostFtdcCSRCSecAgentIDType[11]; - -#define THOST_FTDC_LT_Chinese '1' -#define THOST_FTDC_LT_English '2' - -typedef char TThostFtdcLanguageTypeType; - -typedef char TThostFtdcAmAccountType[23]; - -#define THOST_FTDC_AMCT_Person '1' -#define THOST_FTDC_AMCT_Organ '2' -#define THOST_FTDC_AMCT_SpecialOrgan '4' - -typedef char TThostFtdcAssetmgrClientTypeType; - -#define THOST_FTDC_ASST_Futures '3' -#define THOST_FTDC_ASST_SpecialOrgan '4' - -typedef char TThostFtdcAssetmgrTypeType; - -typedef char TThostFtdcUOMType[11]; - -typedef char TThostFtdcSHFEInstLifePhaseType[3]; - -typedef char TThostFtdcSHFEProductClassType[11]; - -typedef char TThostFtdcPriceDecimalType[2]; - -typedef char TThostFtdcInTheMoneyFlagType[2]; - -#define THOST_FTDC_CIT_HasExch '0' -#define THOST_FTDC_CIT_HasATP '1' -#define THOST_FTDC_CIT_HasDiff '2' - -typedef char TThostFtdcCheckInstrTypeType; - -#define THOST_FTDC_DT_HandDeliv '1' -#define THOST_FTDC_DT_PersonDeliv '2' - -typedef char TThostFtdcDeliveryTypeType; - -typedef double TThostFtdcBigMoneyType; - -#define THOST_FTDC_MMSA_NO '0' -#define THOST_FTDC_MMSA_YES '1' - -typedef char TThostFtdcMaxMarginSideAlgorithmType; - -#define THOST_FTDC_CACT_Person '0' -#define THOST_FTDC_CACT_Company '1' -#define THOST_FTDC_CACT_Other '2' - -typedef char TThostFtdcDAClientTypeType; - -typedef char TThostFtdcCombinInstrIDType[61]; - -typedef char TThostFtdcCombinSettlePriceType[61]; - -typedef int TThostFtdcDCEPriorityType; - -typedef int TThostFtdcTradeGroupIDType; - -typedef int TThostFtdcIsCheckPrepaType; - -#define THOST_FTDC_UOAAT_Futures '1' -#define THOST_FTDC_UOAAT_SpecialOrgan '2' - -typedef char TThostFtdcUOAAssetmgrTypeType; - -#define THOST_FTDC_DEN_Buy '0' -#define THOST_FTDC_DEN_Sell '1' - -typedef char TThostFtdcDirectionEnType; - -#define THOST_FTDC_OFEN_Open '0' -#define THOST_FTDC_OFEN_Close '1' -#define THOST_FTDC_OFEN_ForceClose '2' -#define THOST_FTDC_OFEN_CloseToday '3' -#define THOST_FTDC_OFEN_CloseYesterday '4' -#define THOST_FTDC_OFEN_ForceOff '5' -#define THOST_FTDC_OFEN_LocalForceClose '6' - -typedef char TThostFtdcOffsetFlagEnType; - -#define THOST_FTDC_HFEN_Speculation '1' -#define THOST_FTDC_HFEN_Arbitrage '2' -#define THOST_FTDC_HFEN_Hedge '3' - -typedef char TThostFtdcHedgeFlagEnType; - -#define THOST_FTDC_FIOTEN_FundIO '1' -#define THOST_FTDC_FIOTEN_Transfer '2' -#define THOST_FTDC_FIOTEN_SwapCurrency '3' - -typedef char TThostFtdcFundIOTypeEnType; - -#define THOST_FTDC_FTEN_Deposite '1' -#define THOST_FTDC_FTEN_ItemFund '2' -#define THOST_FTDC_FTEN_Company '3' -#define THOST_FTDC_FTEN_InnerTransfer '4' - -typedef char TThostFtdcFundTypeEnType; - -#define THOST_FTDC_FDEN_In '1' -#define THOST_FTDC_FDEN_Out '2' - -typedef char TThostFtdcFundDirectionEnType; - -#define THOST_FTDC_FMDEN_In '1' -#define THOST_FTDC_FMDEN_Out '2' - -typedef char TThostFtdcFundMortDirectionEnType; - -typedef char TThostFtdcSwapBusinessTypeType[3]; - -#define THOST_FTDC_CP_CallOptions '1' -#define THOST_FTDC_CP_PutOptions '2' - -typedef char TThostFtdcOptionsTypeType; - -#define THOST_FTDC_STM_Continental '0' -#define THOST_FTDC_STM_American '1' -#define THOST_FTDC_STM_Bermuda '2' - -typedef char TThostFtdcStrikeModeType; - -#define THOST_FTDC_STT_Hedge '0' -#define THOST_FTDC_STT_Match '1' - -typedef char TThostFtdcStrikeTypeType; - -#define THOST_FTDC_APPT_NotStrikeNum '4' - -typedef char TThostFtdcApplyTypeType; - -#define THOST_FTDC_GUDS_Gen '0' -#define THOST_FTDC_GUDS_Hand '1' - -typedef char TThostFtdcGiveUpDataSourceType; - -typedef char TThostFtdcExecOrderSysIDType[21]; - -#define THOST_FTDC_OER_NoExec 'n' -#define THOST_FTDC_OER_Canceled 'c' -#define THOST_FTDC_OER_OK '0' -#define THOST_FTDC_OER_NoPosition '1' -#define THOST_FTDC_OER_NoDeposit '2' -#define THOST_FTDC_OER_NoParticipant '3' -#define THOST_FTDC_OER_NoClient '4' -#define THOST_FTDC_OER_NoInstrument '6' -#define THOST_FTDC_OER_NoRight '7' -#define THOST_FTDC_OER_InvalidVolume '8' -#define THOST_FTDC_OER_NoEnoughHistoryTrade '9' -#define THOST_FTDC_OER_Unknown 'a' - -typedef char TThostFtdcExecResultType; - -typedef int TThostFtdcStrikeSequenceType; - -typedef char TThostFtdcStrikeTimeType[13]; - -#define THOST_FTDC_COMBT_Future '0' -#define THOST_FTDC_COMBT_BUL '1' -#define THOST_FTDC_COMBT_BER '2' -#define THOST_FTDC_COMBT_STD '3' -#define THOST_FTDC_COMBT_STG '4' -#define THOST_FTDC_COMBT_PRT '5' -#define THOST_FTDC_COMBT_CLD '6' - -typedef char TThostFtdcCombinationTypeType; - -#define THOST_FTDC_ORPT_PreSettlementPrice '1' -#define THOST_FTDC_ORPT_OpenPrice '4' -#define THOST_FTDC_ORPT_MaxPreSettlementPrice '5' - -typedef char TThostFtdcOptionRoyaltyPriceTypeType; - -#define THOST_FTDC_BLAG_Default '1' -#define THOST_FTDC_BLAG_IncludeOptValLost '2' - -typedef char TThostFtdcBalanceAlgorithmType; - -#define THOST_FTDC_ACTP_Exec '1' -#define THOST_FTDC_ACTP_Abandon '2' - -typedef char TThostFtdcActionTypeType; - -#define THOST_FTDC_FQST_Submitted 'a' -#define THOST_FTDC_FQST_Accepted 'b' -#define THOST_FTDC_FQST_Rejected 'c' - -typedef char TThostFtdcForQuoteStatusType; - -#define THOST_FTDC_VM_Absolute '0' -#define THOST_FTDC_VM_Ratio '1' - -typedef char TThostFtdcValueMethodType; - -#define THOST_FTDC_EOPF_Reserve '0' -#define THOST_FTDC_EOPF_UnReserve '1' - -typedef char TThostFtdcExecOrderPositionFlagType; - -#define THOST_FTDC_EOCF_AutoClose '0' -#define THOST_FTDC_EOCF_NotToClose '1' - -typedef char TThostFtdcExecOrderCloseFlagType; - -#define THOST_FTDC_PTE_Futures '1' -#define THOST_FTDC_PTE_Options '2' - -typedef char TThostFtdcProductTypeType; - -#define THOST_FTDC_CUFN_CUFN_O 'O' -#define THOST_FTDC_CUFN_CUFN_T 'T' -#define THOST_FTDC_CUFN_CUFN_P 'P' -#define THOST_FTDC_CUFN_CUFN_N 'N' -#define THOST_FTDC_CUFN_CUFN_L 'L' -#define THOST_FTDC_CUFN_CUFN_F 'F' -#define THOST_FTDC_CUFN_CUFN_C 'C' -#define THOST_FTDC_CUFN_CUFN_M 'M' - -typedef char TThostFtdcCZCEUploadFileNameType; - -#define THOST_FTDC_DUFN_DUFN_O 'O' -#define THOST_FTDC_DUFN_DUFN_T 'T' -#define THOST_FTDC_DUFN_DUFN_P 'P' -#define THOST_FTDC_DUFN_DUFN_F 'F' -#define THOST_FTDC_DUFN_DUFN_C 'C' -#define THOST_FTDC_DUFN_DUFN_D 'D' -#define THOST_FTDC_DUFN_DUFN_M 'M' -#define THOST_FTDC_DUFN_DUFN_S 'S' - -typedef char TThostFtdcDCEUploadFileNameType; - -#define THOST_FTDC_SUFN_SUFN_O 'O' -#define THOST_FTDC_SUFN_SUFN_T 'T' -#define THOST_FTDC_SUFN_SUFN_P 'P' -#define THOST_FTDC_SUFN_SUFN_F 'F' - -typedef char TThostFtdcSHFEUploadFileNameType; - -#define THOST_FTDC_CFUFN_SUFN_T 'T' -#define THOST_FTDC_CFUFN_SUFN_P 'P' -#define THOST_FTDC_CFUFN_SUFN_F 'F' -#define THOST_FTDC_CFUFN_SUFN_S 'S' - -typedef char TThostFtdcCFFEXUploadFileNameType; - -#define THOST_FTDC_CMDR_Comb '0' -#define THOST_FTDC_CMDR_UnComb '1' - -typedef char TThostFtdcCombDirectionType; - -#define THOST_FTDC_STOV_RealValue '1' -#define THOST_FTDC_STOV_ProfitValue '2' -#define THOST_FTDC_STOV_RealRatio '3' -#define THOST_FTDC_STOV_ProfitRatio '4' - -typedef char TThostFtdcStrikeOffsetTypeType; - -#define THOST_FTDC_ROAST_Processing '0' -#define THOST_FTDC_ROAST_Cancelled '1' -#define THOST_FTDC_ROAST_Opened '2' -#define THOST_FTDC_ROAST_Invalid '3' - -typedef char TThostFtdcReserveOpenAccStasType; - -typedef char TThostFtdcLoginRemarkType[36]; - -typedef char TThostFtdcInvestUnitIDType[17]; - -typedef int TThostFtdcBulletinIDType; - -typedef char TThostFtdcNewsTypeType[3]; - -typedef char TThostFtdcNewsUrgencyType; - -typedef char TThostFtdcAbstractType[81]; - -typedef char TThostFtdcComeFromType[21]; - -typedef char TThostFtdcURLLinkType[201]; - -typedef char TThostFtdcLongIndividualNameType[161]; - -typedef char TThostFtdcLongFBEBankAccountNameType[161]; - -typedef char TThostFtdcDateTimeType[17]; - -#define THOST_FTDC_WPSR_Lib '1' -#define THOST_FTDC_WPSR_Manual '2' - -typedef char TThostFtdcWeakPasswordSourceType; - -typedef char TThostFtdcRandomStringType[17]; - -#define THOST_FTDC_OSCF_CloseSelfOptionPosition '1' -#define THOST_FTDC_OSCF_ReserveOptionPosition '2' -#define THOST_FTDC_OSCF_SellCloseSelfFuturePosition '3' -#define THOST_FTDC_OSCF_ReserveFuturePosition '4' - -typedef char TThostFtdcOptSelfCloseFlagType; - -#define THOST_FTDC_BZTP_Future '1' -#define THOST_FTDC_BZTP_Stock '2' - -typedef char TThostFtdcBizTypeType; - -#define THOST_FTDC_APP_TYPE_Investor '1' -#define THOST_FTDC_APP_TYPE_InvestorRelay '2' -#define THOST_FTDC_APP_TYPE_OperatorRelay '3' -#define THOST_FTDC_APP_TYPE_UnKnown '4' - -typedef char TThostFtdcAppTypeType; - -typedef char TThostFtdcAppIDType[33]; - -typedef int TThostFtdcSystemInfoLenType; - -typedef int TThostFtdcAdditionalInfoLenType; - -typedef char TThostFtdcClientSystemInfoType[273]; - -typedef char TThostFtdcAdditionalInfoType[261]; - -typedef char TThostFtdcBase64ClientSystemInfoType[365]; - -typedef char TThostFtdcBase64AdditionalInfoType[349]; - -typedef int TThostFtdcCurrentAuthMethodType; - -typedef int TThostFtdcCaptchaInfoLenType; - -typedef char TThostFtdcCaptchaInfoType[2561]; - -typedef int TThostFtdcUserTextSeqType; - -typedef char TThostFtdcHandshakeDataType[301]; - -typedef int TThostFtdcHandshakeDataLenType; - -typedef char TThostFtdcCryptoKeyVersionType[31]; - -typedef int TThostFtdcRsaKeyVersionType; - -typedef char TThostFtdcSoftwareProviderIDType[22]; - -typedef char TThostFtdcCollectTimeType[21]; - -typedef int TThostFtdcQueryFreqType; - -#define THOST_FTDC_RV_Right '0' -#define THOST_FTDC_RV_Refuse '1' - -typedef char TThostFtdcResponseValueType; - -#define THOST_FTDC_OTC_TRDT_Block '0' -#define THOST_FTDC_OTC_TRDT_EFP '1' - -typedef char TThostFtdcOTCTradeTypeType; - -#define THOST_FTDC_OTC_MT_DV01 '1' -#define THOST_FTDC_OTC_MT_ParValue '2' - -typedef char TThostFtdcMatchTypeType; - -typedef char TThostFtdcOTCTraderIDType[31]; - -typedef double TThostFtdcRiskValueType; - -typedef char TThostFtdcIDBNameType[100]; - -#endif diff --git a/v6.3.6_20160606_tradeapi64_windows/error.xml b/v6.3.6_20160606_tradeapi64_windows/error.xml deleted file mode 100644 index 1fe5915..0000000 --- a/v6.3.6_20160606_tradeapi64_windows/error.xml +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/v6.3.6_20160606_tradeapi64_windows/thostmduserapi.dll b/v6.3.6_20160606_tradeapi64_windows/thostmduserapi.dll deleted file mode 100644 index 05ac512..0000000 Binary files a/v6.3.6_20160606_tradeapi64_windows/thostmduserapi.dll and /dev/null differ diff --git a/v6.3.6_20160606_tradeapi64_windows/thostmduserapi.lib b/v6.3.6_20160606_tradeapi64_windows/thostmduserapi.lib deleted file mode 100644 index 8066490..0000000 Binary files a/v6.3.6_20160606_tradeapi64_windows/thostmduserapi.lib and /dev/null differ diff --git a/v6.3.6_20160606_tradeapi64_windows/thosttraderapi.dll b/v6.3.6_20160606_tradeapi64_windows/thosttraderapi.dll deleted file mode 100644 index cccd7ed..0000000 Binary files a/v6.3.6_20160606_tradeapi64_windows/thosttraderapi.dll and /dev/null differ diff --git a/v6.3.6_20160606_tradeapi64_windows/thosttraderapi.lib b/v6.3.6_20160606_tradeapi64_windows/thosttraderapi.lib deleted file mode 100644 index 13ed74f..0000000 Binary files a/v6.3.6_20160606_tradeapi64_windows/thosttraderapi.lib and /dev/null differ diff --git a/v6.3.6_20160606_tradeapi_windows/thostmduserapi.dll b/v6.3.6_20160606_tradeapi_windows/thostmduserapi.dll deleted file mode 100644 index 89b7cec..0000000 Binary files a/v6.3.6_20160606_tradeapi_windows/thostmduserapi.dll and /dev/null differ diff --git a/v6.3.6_20160606_tradeapi_windows/thostmduserapi.lib b/v6.3.6_20160606_tradeapi_windows/thostmduserapi.lib deleted file mode 100644 index a538487..0000000 Binary files a/v6.3.6_20160606_tradeapi_windows/thostmduserapi.lib and /dev/null differ diff --git a/v6.3.6_20160606_tradeapi_windows/thosttraderapi.dll b/v6.3.6_20160606_tradeapi_windows/thosttraderapi.dll deleted file mode 100644 index 9e38618..0000000 Binary files a/v6.3.6_20160606_tradeapi_windows/thosttraderapi.dll and /dev/null differ diff --git a/v6.3.6_20160606_tradeapi_windows/thosttraderapi.lib b/v6.3.6_20160606_tradeapi_windows/thosttraderapi.lib deleted file mode 100644 index 11137c2..0000000 Binary files a/v6.3.6_20160606_tradeapi_windows/thosttraderapi.lib and /dev/null differ