From 2b1d58a386372c4292b2856f63af86cb4e732169 Mon Sep 17 00:00:00 2001 From: pseudocodes Date: Sun, 30 Apr 2023 09:37:16 +0800 Subject: [PATCH] * modify CMakeLists file for CTPLibs * fix link error for boost_log by using `-DBOOST_LOG_DYN_LINK` --- .../ThostFtdcMdApi.h | 165 + .../ThostFtdcTraderApi.h | 816 ++ .../ThostFtdcUserApiDataType.h | 4179 +++--- .../ThostFtdcUserApiStruct.h | 10787 +++++++++++++++ .../error.dtd | 0 .../v6.6.9_20220914_api_linux64/error.xml | 271 + ...duserapi_se.so => libthostmduserapi_se.so} | Bin ...raderapi_se.so => libthosttraderapi_se.so} | Bin .../ThostFtdcMdApi.h | 168 - .../ThostFtdcTraderApi.h | 818 -- .../ThostFtdcUserApiStruct.h | 11195 ---------------- .../error.xml | 271 - src/CMakeLists.txt | 8 +- src/core/CMakeLists.txt | 7 + src/gallop/CMakeLists.txt | 5 + src/market/CMakeLists.txt | 6 +- src/trader/CMakeLists.txt | 9 +- 17 files changed, 14157 insertions(+), 14548 deletions(-) create mode 100644 api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcMdApi.h create mode 100644 api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcTraderApi.h rename api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/{v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64 => }/ThostFtdcUserApiDataType.h (73%) create mode 100644 api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcUserApiStruct.h rename api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/{v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64 => }/error.dtd (100%) create mode 100644 api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/error.xml rename api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/{v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/thostmduserapi_se.so => libthostmduserapi_se.so} (100%) rename api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/{v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/thosttraderapi_se.so => libthosttraderapi_se.so} (100%) delete mode 100644 api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcMdApi.h delete mode 100644 api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcTraderApi.h delete mode 100644 api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcUserApiStruct.h delete mode 100644 api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/error.xml diff --git a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcMdApi.h b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcMdApi.h new file mode 100644 index 0000000..1ba7681 --- /dev/null +++ b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcMdApi.h @@ -0,0 +1,165 @@ +///////////////////////////////////////////////////////////////////////// +///@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 OnRspQryMulticastInstrument(CThostFtdcMulticastInstrumentField* pMulticastInstrument, 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; + + /// 请求查询组播合约 + virtual int ReqQryMulticastInstrument(CThostFtdcQryMulticastInstrumentField* pQryMulticastInstrument, int nRequestID) = 0; + +protected: + ~CThostFtdcMdApi() {}; +}; + +#endif diff --git a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcTraderApi.h b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcTraderApi.h new file mode 100644 index 0000000..9b6a9af --- /dev/null +++ b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcTraderApi.h @@ -0,0 +1,816 @@ +///////////////////////////////////////////////////////////////////////// +///@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 OnRspQryMaxOrderVolume(CThostFtdcQryMaxOrderVolumeField* pQryMaxOrderVolume, 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 OnRspQryTraderOffer(CThostFtdcTraderOfferField* pTraderOffer, 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) {}; + + /// 请求查询分类合约响应 + virtual void OnRspQryClassifiedInstrument(CThostFtdcInstrumentField* pInstrument, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast) {}; + + /// 请求组合优惠比例响应 + virtual void OnRspQryCombPromotionParam(CThostFtdcCombPromotionParamField* pCombPromotionParam, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast) {}; + + /// 投资者风险结算持仓查询响应 + virtual void OnRspQryRiskSettleInvstPosition(CThostFtdcRiskSettleInvstPositionField* pRiskSettleInvstPosition, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast) {}; + + /// 风险结算产品查询响应 + virtual void OnRspQryRiskSettleProductStatus(CThostFtdcRiskSettleProductStatusField* pRiskSettleProductStatus, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast) {}; + + /// SPBM期货合约参数查询响应 + virtual void OnRspQrySPBMFutureParameter(CThostFtdcSPBMFutureParameterField* pSPBMFutureParameter, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast) {}; + + /// SPBM期权合约参数查询响应 + virtual void OnRspQrySPBMOptionParameter(CThostFtdcSPBMOptionParameterField* pSPBMOptionParameter, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast) {}; + + /// SPBM品种内对锁仓折扣参数查询响应 + virtual void OnRspQrySPBMIntraParameter(CThostFtdcSPBMIntraParameterField* pSPBMIntraParameter, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast) {}; + + /// SPBM跨品种抵扣参数查询响应 + virtual void OnRspQrySPBMInterParameter(CThostFtdcSPBMInterParameterField* pSPBMInterParameter, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast) {}; + + /// SPBM组合保证金套餐查询响应 + virtual void OnRspQrySPBMPortfDefinition(CThostFtdcSPBMPortfDefinitionField* pSPBMPortfDefinition, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast) {}; + + /// 投资者SPBM套餐选择查询响应 + virtual void OnRspQrySPBMInvestorPortfDef(CThostFtdcSPBMInvestorPortfDefField* pSPBMInvestorPortfDef, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast) {}; + + /// 投资者新型组合保证金系数查询响应 + virtual void OnRspQryInvestorPortfMarginRatio(CThostFtdcInvestorPortfMarginRatioField* pInvestorPortfMarginRatio, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast) {}; + + /// 投资者产品SPBM明细查询响应 + virtual void OnRspQryInvestorProdSPBMDetail(CThostFtdcInvestorProdSPBMDetailField* pInvestorProdSPBMDetail, CThostFtdcRspInfoField* pRspInfo, int nRequestID, bool bIsLast) {}; +}; + +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:只传送登录后公共流的内容 + /// THOST_TERT_NONE:取消订阅公共流 + ///@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 ReqQryMaxOrderVolume(CThostFtdcQryMaxOrderVolumeField* pQryMaxOrderVolume, 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 ReqQryTraderOffer(CThostFtdcQryTraderOfferField* pQryTraderOffer, 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; + + /// 请求查询分类合约 + virtual int ReqQryClassifiedInstrument(CThostFtdcQryClassifiedInstrumentField* pQryClassifiedInstrument, int nRequestID) = 0; + + /// 请求组合优惠比例 + virtual int ReqQryCombPromotionParam(CThostFtdcQryCombPromotionParamField* pQryCombPromotionParam, int nRequestID) = 0; + + /// 投资者风险结算持仓查询 + virtual int ReqQryRiskSettleInvstPosition(CThostFtdcQryRiskSettleInvstPositionField* pQryRiskSettleInvstPosition, int nRequestID) = 0; + + /// 风险结算产品查询 + virtual int ReqQryRiskSettleProductStatus(CThostFtdcQryRiskSettleProductStatusField* pQryRiskSettleProductStatus, int nRequestID) = 0; + + /// SPBM期货合约参数查询 + virtual int ReqQrySPBMFutureParameter(CThostFtdcQrySPBMFutureParameterField* pQrySPBMFutureParameter, int nRequestID) = 0; + + /// SPBM期权合约参数查询 + virtual int ReqQrySPBMOptionParameter(CThostFtdcQrySPBMOptionParameterField* pQrySPBMOptionParameter, int nRequestID) = 0; + + /// SPBM品种内对锁仓折扣参数查询 + virtual int ReqQrySPBMIntraParameter(CThostFtdcQrySPBMIntraParameterField* pQrySPBMIntraParameter, int nRequestID) = 0; + + /// SPBM跨品种抵扣参数查询 + virtual int ReqQrySPBMInterParameter(CThostFtdcQrySPBMInterParameterField* pQrySPBMInterParameter, int nRequestID) = 0; + + /// SPBM组合保证金套餐查询 + virtual int ReqQrySPBMPortfDefinition(CThostFtdcQrySPBMPortfDefinitionField* pQrySPBMPortfDefinition, int nRequestID) = 0; + + /// 投资者SPBM套餐选择查询 + virtual int ReqQrySPBMInvestorPortfDef(CThostFtdcQrySPBMInvestorPortfDefField* pQrySPBMInvestorPortfDef, int nRequestID) = 0; + + /// 投资者新型组合保证金系数查询 + virtual int ReqQryInvestorPortfMarginRatio(CThostFtdcQryInvestorPortfMarginRatioField* pQryInvestorPortfMarginRatio, int nRequestID) = 0; + + /// 投资者产品SPBM明细查询 + virtual int ReqQryInvestorProdSPBMDetail(CThostFtdcQryInvestorProdSPBMDetailField* pQryInvestorProdSPBMDetail, int nRequestID) = 0; + +protected: + ~CThostFtdcTraderApi() {}; +}; + +#endif diff --git a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcUserApiDataType.h b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcUserApiDataType.h similarity index 73% rename from api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcUserApiDataType.h rename to api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcUserApiDataType.h index 2c03fbf..7055e62 100644 --- a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcUserApiDataType.h +++ b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcUserApiDataType.h @@ -1,6435 +1,6434 @@ ///////////////////////////////////////////////////////////////////////// -///@system һϵͳ -///@company ϺڻϢ޹˾ +///@system 新一代交易所系统 +///@company 上海期货信息技术有限公司 ///@file ThostFtdcUserApiDataType.h -///@brief ˿ͻ˽ӿʹõҵ -///@history -///20060106 Ժ ļ +///@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, - THOST_TERT_NONE +enum THOST_TE_RESUME_TYPE { + THOST_TERT_RESTART = 0, + THOST_TERT_RESUME, + THOST_TERT_QUICK, + THOST_TERT_NONE }; ///////////////////////////////////////////////////////////////////////// -///TFtdcTraderIDTypeһԱ +/// TFtdcTraderIDType是一个交易所交易员代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTraderIDType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorIDTypeһͶߴ +/// TFtdcInvestorIDType是一个投资者代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInvestorIDType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerIDTypeһ͹˾ +/// TFtdcBrokerIDType是一个经纪公司代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBrokerIDType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerAbbrTypeһ͹˾ +/// TFtdcBrokerAbbrType是一个经纪公司简称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBrokerAbbrType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerNameTypeһ͹˾ +/// TFtdcBrokerNameType是一个经纪公司名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBrokerNameType[81]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOldExchangeInstIDTypeһԼڽĴ +/// TFtdcOldExchangeInstIDType是一个合约在交易所的代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOldExchangeInstIDType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeInstIDTypeһԼڽĴ +/// TFtdcExchangeInstIDType是一个合约在交易所的代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcExchangeInstIDType[81]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrderRefTypeһ +/// TFtdcOrderRefType是一个报单引用类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOrderRefType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcParticipantIDTypeһԱ +/// TFtdcParticipantIDType是一个会员代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcParticipantIDType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUserIDTypeһû +/// TFtdcUserIDType是一个用户代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUserIDType[16]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPasswordTypeһ +/// TFtdcPasswordType是一个密码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPasswordType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcClientIDTypeһױ +/// TFtdcClientIDType是一个交易编码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcClientIDType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInstrumentIDTypeһԼ +/// TFtdcInstrumentIDType是一个合约代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInstrumentIDType[81]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOldInstrumentIDTypeһԼ +/// TFtdcOldInstrumentIDType是一个合约代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOldInstrumentIDType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInstrumentCodeTypeһԼʶ +/// TFtdcInstrumentCodeType是一个合约标识码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInstrumentCodeType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcMarketIDTypeһг +/// TFtdcMarketIDType是一个市场代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcMarketIDType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcProductNameTypeһƷ +/// TFtdcProductNameType是一个产品名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcProductNameType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeIDTypeһ +/// TFtdcExchangeIDType是一个交易所代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcExchangeIDType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeNameTypeһ +/// TFtdcExchangeNameType是一个交易所名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcExchangeNameType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeAbbrTypeһ +/// TFtdcExchangeAbbrType是一个交易所简称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcExchangeAbbrType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeFlagTypeһ־ +/// TFtdcExchangeFlagType是一个交易所标志类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcExchangeFlagType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcMacAddressTypeһMacַ +/// TFtdcMacAddressType是一个Mac地址类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcMacAddressType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSystemIDTypeһϵͳ +/// TFtdcSystemIDType是一个系统编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSystemIDType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcClientLoginRemarkTypeһͻ¼ע2 +/// TFtdcClientLoginRemarkType是一个客户登录备注2类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcClientLoginRemarkType[151]; ///////////////////////////////////////////////////////////////////////// -///TFtdcExchangePropertyTypeһ +/// TFtdcExchangePropertyType是一个交易所属性类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 正常 #define THOST_FTDC_EXP_Normal '0' -///ݳɽɱ +/// 根据成交生成报单 #define THOST_FTDC_EXP_GenOrderByTrade '1' typedef char TThostFtdcExchangePropertyType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDateTypeһ +/// TFtdcDateType是一个日期类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcDateType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTimeTypeһʱ +/// TFtdcTimeType是一个时间类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTimeType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcLongTimeTypeһʱ +/// TFtdcLongTimeType是一个长时间类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcLongTimeType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInstrumentNameTypeһԼ +/// TFtdcInstrumentNameType是一个合约名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInstrumentNameType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSettlementGroupIDTypeһ +/// TFtdcSettlementGroupIDType是一个结算组代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSettlementGroupIDType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrderSysIDTypeһ +/// TFtdcOrderSysIDType是一个报单编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOrderSysIDType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradeIDTypeһɽ +/// TFtdcTradeIDType是一个成交编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTradeIDType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCommandTypeTypeһDB +/// TFtdcCommandTypeType是一个DB命令类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCommandTypeType[65]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOldIPAddressTypeһIPַ +/// TFtdcOldIPAddressType是一个IP地址类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOldIPAddressType[16]; ///////////////////////////////////////////////////////////////////////// -///TFtdcIPAddressTypeһIPַ +/// TFtdcIPAddressType是一个IP地址类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcIPAddressType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcIPPortTypeһIP˿ +/// TFtdcIPPortType是一个IP端口类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcIPPortType; ///////////////////////////////////////////////////////////////////////// -///TFtdcProductInfoTypeһƷϢ +/// TFtdcProductInfoType是一个产品信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcProductInfoType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcProtocolInfoTypeһЭϢ +/// TFtdcProtocolInfoType是一个协议信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcProtocolInfoType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBusinessUnitTypeһҵԪ +/// TFtdcBusinessUnitType是一个业务单元类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBusinessUnitType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDepositSeqNoTypeһˮ +/// TFtdcDepositSeqNoType是一个出入金流水号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcDepositSeqNoType[15]; ///////////////////////////////////////////////////////////////////////// -///TFtdcIdentifiedCardNoTypeһ֤ +/// TFtdcIdentifiedCardNoType是一个证件号码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcIdentifiedCardNoType[51]; ///////////////////////////////////////////////////////////////////////// -///TFtdcIdCardTypeTypeһ֤ +/// 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_HouseholdRegister '5' +/// 护照 #define THOST_FTDC_ICT_Passport '6' -///̨֤ -#define THOST_FTDC_ICT_TaiwanCompatriotIDCard '7' -///֤ +/// 台胞证 +#define THOST_FTDC_ICT_TaiwanCompatriotIDCard '7' +/// 回乡证 #define THOST_FTDC_ICT_HomeComingCard '8' -///Ӫҵִպ +/// 营业执照号 #define THOST_FTDC_ICT_LicenseNo '9' -///˰ǼǺ/˰ID +/// 税务登记号/当地纳税ID #define THOST_FTDC_ICT_TaxNo 'A' -///۰ľڵ֤ͨ -#define THOST_FTDC_ICT_HMMainlandTravelPermit 'B' -///̨½֤ͨ +/// 港澳居民来往内地通行证 +#define THOST_FTDC_ICT_HMMainlandTravelPermit 'B' +/// 台湾居民来往大陆通行证 #define THOST_FTDC_ICT_TwMainlandTravelPermit 'C' -/// +/// 驾照 #define THOST_FTDC_ICT_DrivingLicense 'D' -///籣ID +/// 当地社保ID #define THOST_FTDC_ICT_SocialID 'F' -///֤ +/// 当地身份证 #define THOST_FTDC_ICT_LocalID 'G' -///ҵǼ֤ -#define THOST_FTDC_ICT_BusinessRegistration 'H' -///۰Ծ֤ +/// 商业登记证 +#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_HKMCTwResidencePermit 'M' -///ͳһô +/// 统一社会信用代码 #define THOST_FTDC_ICT_UniformSocialCreditCode 'N' -///֤ļ +/// 机构成立证明文件 #define THOST_FTDC_ICT_CorporationCertNo 'O' -///֤ +/// 其他证件 #define THOST_FTDC_ICT_OtherCard 'x' typedef char TThostFtdcIdCardTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrderLocalIDTypeһر +/// TFtdcOrderLocalIDType是一个本地报单编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOrderLocalIDType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUserNameTypeһû +/// TFtdcUserNameType是一个用户名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUserNameType[81]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPartyNameTypeһ +/// TFtdcPartyNameType是一个参与人名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPartyNameType[81]; ///////////////////////////////////////////////////////////////////////// -///TFtdcErrorMsgTypeһϢ +/// TFtdcErrorMsgType是一个错误信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcErrorMsgType[81]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFieldNameTypeһֶ +/// TFtdcFieldNameType是一个字段名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFieldNameType[2049]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFieldContentTypeһֶ +/// TFtdcFieldContentType是一个字段内容类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFieldContentType[2049]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSystemNameTypeһϵͳ +/// TFtdcSystemNameType是一个系统名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSystemNameType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcContentTypeһϢ +/// TFtdcContentType是一个消息正文类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcContentType[501]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorRangeTypeһͶ߷Χ +/// TFtdcInvestorRangeType是一个投资者范围类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 所有 #define THOST_FTDC_IR_All '1' -///Ͷ +/// 投资者组 #define THOST_FTDC_IR_Group '2' -///һͶ +/// 单一投资者 #define THOST_FTDC_IR_Single '3' typedef char TThostFtdcInvestorRangeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDepartmentRangeTypeһͶ߷Χ +/// TFtdcDepartmentRangeType是一个投资者范围类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 所有 #define THOST_FTDC_DR_All '1' -///ܹ֯ +/// 组织架构 #define THOST_FTDC_DR_Group '2' -///һͶ +/// 单一投资者 #define THOST_FTDC_DR_Single '3' typedef char TThostFtdcDepartmentRangeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDataSyncStatusTypeһͬ״̬ +/// TFtdcDataSyncStatusType是一个数据同步状态类型 ///////////////////////////////////////////////////////////////////////// -///δͬ +/// 未同步 #define THOST_FTDC_DS_Asynchronous '1' -///ͬ +/// 同步中 #define THOST_FTDC_DS_Synchronizing '2' -///ͬ +/// 已同步 #define THOST_FTDC_DS_Synchronized '3' typedef char TThostFtdcDataSyncStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerDataSyncStatusTypeһ͹˾ͬ״̬ +/// TFtdcBrokerDataSyncStatusType是一个经纪公司数据同步状态类型 ///////////////////////////////////////////////////////////////////////// -///ͬ +/// 已同步 #define THOST_FTDC_BDS_Synchronized '1' -///ͬ +/// 同步中 #define THOST_FTDC_BDS_Synchronizing '2' typedef char TThostFtdcBrokerDataSyncStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeConnectStatusTypeһ״̬ +/// TFtdcExchangeConnectStatusType是一个交易所连接状态类型 ///////////////////////////////////////////////////////////////////////// -///ûκ +/// 没有任何连接 #define THOST_FTDC_ECS_NoConnection '1' -///ѾԼѯ +/// 已经发出合约查询请求 #define THOST_FTDC_ECS_QryInstrumentSent '2' -///ѾȡϢ +/// 已经获取信息 #define THOST_FTDC_ECS_GotInformation '9' typedef char TThostFtdcExchangeConnectStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTraderConnectStatusTypeһԱ״̬ +/// 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һܴ +/// 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һ͹˾ܴ +/// 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һ״̬ +/// TFtdcOrderActionStatusType是一个报单操作状态类型 ///////////////////////////////////////////////////////////////////////// -///Ѿύ +/// 已经提交 #define THOST_FTDC_OAS_Submitted 'a' -///Ѿ +/// 已经接受 #define THOST_FTDC_OAS_Accepted 'b' -///Ѿܾ +/// 已经被拒绝 #define THOST_FTDC_OAS_Rejected 'c' typedef char TThostFtdcOrderActionStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrderStatusTypeһ״̬ +/// 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һύ״̬ +/// 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һֲ +/// TFtdcPositionDateType是一个持仓日期类型 ///////////////////////////////////////////////////////////////////////// -///ճֲ +/// 今日持仓 #define THOST_FTDC_PSD_Today '1' -///ʷֲ +/// 历史持仓 #define THOST_FTDC_PSD_History '2' typedef char TThostFtdcPositionDateType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPositionDateTypeTypeһֲ +/// TFtdcPositionDateTypeType是一个持仓日期类型类型 ///////////////////////////////////////////////////////////////////////// -///ʹʷֲ +/// 使用历史持仓 #define THOST_FTDC_PDT_UseHistory '1' -///ʹʷֲ +/// 不使用历史持仓 #define THOST_FTDC_PDT_NoUseHistory '2' typedef char TThostFtdcPositionDateTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradingRoleTypeһ׽ɫ +/// TFtdcTradingRoleType是一个交易角色类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 代理 #define THOST_FTDC_ER_Broker '1' -///Ӫ +/// 自营 #define THOST_FTDC_ER_Host '2' -/// +/// 做市商 #define THOST_FTDC_ER_Maker '3' typedef char TThostFtdcTradingRoleType; ///////////////////////////////////////////////////////////////////////// -///TFtdcProductClassTypeһƷ +/// 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' -///TASԼ +/// TAS合约 #define THOST_FTDC_PC_TAS '7' -///ָ +/// 金属指数 #define THOST_FTDC_PC_MI 'I' typedef char TThostFtdcProductClassType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAPIProductClassTypeһƷ +/// TFtdcAPIProductClassType是一个产品类型类型 ///////////////////////////////////////////////////////////////////////// -///ڻһԼ +/// 期货单一合约 #define THOST_FTDC_APC_FutureSingle '1' -///ȨһԼ +/// 期权单一合约 #define THOST_FTDC_APC_OptionSingle '2' -///ɽڻ(ڻϺڻһԼ) +/// 可交易期货(含期货组合和期货单一合约) #define THOST_FTDC_APC_Futures '3' -///ɽȨ(ȨϺȨһԼ) +/// 可交易期权(含期权组合和期权单一合约) #define THOST_FTDC_APC_Options '4' -///µ +/// 可下单套利组合 #define THOST_FTDC_APC_TradingComb '5' -///ϣϺԼ Խ׵ĺԼ +/// 可申请的组合(可以申请的组合合约 包含可以交易的合约) #define THOST_FTDC_APC_UnTradingComb '6' -///пԽ׺Լ +/// 所有可以交易合约 #define THOST_FTDC_APC_AllTrading '7' -///кԼܽ׺Լ ã +/// 所有合约(包含不能交易合约 慎用) #define THOST_FTDC_APC_All '8' typedef char TThostFtdcAPIProductClassType; ///////////////////////////////////////////////////////////////////////// -///TFtdcInstLifePhaseTypeһԼ״̬ +/// 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һ +/// TFtdcDirectionType是一个买卖方向类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 买 #define THOST_FTDC_D_Buy '0' -/// +/// 卖 #define THOST_FTDC_D_Sell '1' typedef char TThostFtdcDirectionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPositionTypeTypeһֲ +/// TFtdcPositionTypeType是一个持仓类型类型 ///////////////////////////////////////////////////////////////////////// -///ֲ +/// 净持仓 #define THOST_FTDC_PT_Net '1' -///ۺϳֲ +/// 综合持仓 #define THOST_FTDC_PT_Gross '2' typedef char TThostFtdcPositionTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPosiDirectionTypeһֲֶշ +/// TFtdcPosiDirectionType是一个持仓多空方向类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 净 #define THOST_FTDC_PD_Net '1' -///ͷ +/// 多头 #define THOST_FTDC_PD_Long '2' -///ͷ +/// 空头 #define THOST_FTDC_PD_Short '3' typedef char TThostFtdcPosiDirectionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSysSettlementStatusTypeһϵͳ״̬ +/// 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һ +/// TFtdcRatioAttrType是一个费率属性类型 ///////////////////////////////////////////////////////////////////////// -///׷ +/// 交易费率 #define THOST_FTDC_RA_Trade '0' -/// +/// 结算费率 #define THOST_FTDC_RA_Settlement '1' typedef char TThostFtdcRatioAttrType; ///////////////////////////////////////////////////////////////////////// -///TFtdcHedgeFlagTypeһͶױ־ +/// 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һͶױ־ +/// TFtdcBillHedgeFlagType是一个投机套保标志类型 ///////////////////////////////////////////////////////////////////////// -///Ͷ +/// 投机 #define THOST_FTDC_BHF_Speculation '1' -/// +/// 套利 #define THOST_FTDC_BHF_Arbitrage '2' -///ױ +/// 套保 #define THOST_FTDC_BHF_Hedge '3' typedef char TThostFtdcBillHedgeFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcClientIDTypeTypeһױ +/// 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һ۸ +/// 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 +/// 最新价浮动上浮1个ticks #define THOST_FTDC_OPT_LastPricePlusOneTicks '5' -///¼۸ϸ2ticks +/// 最新价浮动上浮2个ticks #define THOST_FTDC_OPT_LastPricePlusTwoTicks '6' -///¼۸ϸ3ticks +/// 最新价浮动上浮3个ticks #define THOST_FTDC_OPT_LastPricePlusThreeTicks '7' -///һ +/// 卖一价 #define THOST_FTDC_OPT_AskPrice1 '8' -///һ۸ϸ1ticks +/// 卖一价浮动上浮1个ticks #define THOST_FTDC_OPT_AskPrice1PlusOneTicks '9' -///һ۸ϸ2ticks +/// 卖一价浮动上浮2个ticks #define THOST_FTDC_OPT_AskPrice1PlusTwoTicks 'A' -///һ۸ϸ3ticks +/// 卖一价浮动上浮3个ticks #define THOST_FTDC_OPT_AskPrice1PlusThreeTicks 'B' -///һ +/// 买一价 #define THOST_FTDC_OPT_BidPrice1 'C' -///һ۸ϸ1ticks +/// 买一价浮动上浮1个ticks #define THOST_FTDC_OPT_BidPrice1PlusOneTicks 'D' -///һ۸ϸ2ticks +/// 买一价浮动上浮2个ticks #define THOST_FTDC_OPT_BidPrice1PlusTwoTicks 'E' -///һ۸ϸ3ticks +/// 买一价浮动上浮3个ticks #define THOST_FTDC_OPT_BidPrice1PlusThreeTicks 'F' -///嵵 +/// 五档价 #define THOST_FTDC_OPT_FiveLevelPrice 'G' typedef char TThostFtdcOrderPriceTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOffsetFlagTypeһƽ־ +/// 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һǿƽԭ +/// 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' -///ǿƽ֤ʽ +/// 风控强平不验证资金 #define THOST_FTDC_FCC_Notverifycapital '8' typedef char TThostFtdcForceCloseReasonType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrderTypeTypeһ +/// 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һЧ +/// 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һɽ +/// TFtdcVolumeConditionType是一个成交量类型类型 ///////////////////////////////////////////////////////////////////////// -///κ +/// 任何数量 #define THOST_FTDC_VC_AV '1' -///С +/// 最小数量 #define THOST_FTDC_VC_MV '2' -///ȫ +/// 全部数量 #define THOST_FTDC_VC_CV '3' typedef char TThostFtdcVolumeConditionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcContingentConditionTypeһ +/// 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һ־ +/// TFtdcActionFlagType是一个操作标志类型 ///////////////////////////////////////////////////////////////////////// -///ɾ +/// 删除 #define THOST_FTDC_AF_Delete '0' -///޸ +/// 修改 #define THOST_FTDC_AF_Modify '3' typedef char TThostFtdcActionFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradingRightTypeһȨ +/// TFtdcTradingRightType是一个交易权限类型 ///////////////////////////////////////////////////////////////////////// -///Խ +/// 可以交易 #define THOST_FTDC_TR_Allow '0' -///ֻƽ +/// 只能平仓 #define THOST_FTDC_TR_CloseOnly '1' -///ܽ +/// 不能交易 #define THOST_FTDC_TR_Forbidden '2' typedef char TThostFtdcTradingRightType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrderSourceTypeһԴ +/// TFtdcOrderSourceType是一个报单来源类型 ///////////////////////////////////////////////////////////////////////// -///Բ +/// 来自参与者 #define THOST_FTDC_OSRC_Participant '0' -///ԹԱ +/// 来自管理员 #define THOST_FTDC_OSRC_Administrator '1' typedef char TThostFtdcOrderSourceType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradeTypeTypeһɽ +/// TFtdcTradeTypeType是一个成交类型类型 ///////////////////////////////////////////////////////////////////////// -///ϳֲֲΪһֲ,ʼӦ͵ijֲ +/// 组合持仓拆分为单一持仓,初始化不应包含该类型的持仓 #define THOST_FTDC_TRDT_SplitCombination '#' -///ͨɽ +/// 普通成交 #define THOST_FTDC_TRDT_Common '0' -///Ȩִ +/// 期权执行 #define THOST_FTDC_TRDT_OptionsExecution '1' -///OTCɽ +/// 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; ///////////////////////////////////////////////////////////////////////// -///TFtdcSpecPosiTypeTypeһֲϸʶ +/// TFtdcSpecPosiTypeType是一个特殊持仓明细标识类型 ///////////////////////////////////////////////////////////////////////// -///ֲͨϸ +/// 普通持仓明细 #define THOST_FTDC_SPOST_Common '#' -///TASԼɽıĺԼֲϸ +/// TAS合约成交产生的标的合约持仓明细 #define THOST_FTDC_SPOST_Tas '0' typedef char TThostFtdcSpecPosiTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPriceSourceTypeһɽԴ +/// 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һԼ״̬ +/// 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һƷֽ뽻״̬ԭ +/// TFtdcInstStatusEnterReasonType是一个品种进入交易状态原因类型 ///////////////////////////////////////////////////////////////////////// -///Զл +/// 自动切换 #define THOST_FTDC_IER_Automatic '1' -///ֶл +/// 手动切换 #define THOST_FTDC_IER_Manual '2' -///۶ +/// 熔断 #define THOST_FTDC_IER_Fuse '3' typedef char TThostFtdcInstStatusEnterReasonType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrderActionRefTypeһ +/// TFtdcOrderActionRefType是一个报单操作引用类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcOrderActionRefType; ///////////////////////////////////////////////////////////////////////// -///TFtdcInstallCountTypeһװ +/// TFtdcInstallCountType是一个安装数量类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcInstallCountType; ///////////////////////////////////////////////////////////////////////// -///TFtdcInstallIDTypeһװ +/// TFtdcInstallIDType是一个安装编号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcInstallIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcErrorIDTypeһ +/// TFtdcErrorIDType是一个错误代码类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcErrorIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSettlementIDTypeһ +/// TFtdcSettlementIDType是一个结算编号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcSettlementIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcVolumeTypeһ +/// TFtdcVolumeType是一个数量类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcVolumeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFrontIDTypeһǰñ +/// TFtdcFrontIDType是一个前置编号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcFrontIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSessionIDTypeһỰ +/// TFtdcSessionIDType是一个会话编号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcSessionIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSequenceNoTypeһ +/// TFtdcSequenceNoType是一个序号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcSequenceNoType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCommandNoTypeһDB +/// TFtdcCommandNoType是一个DB命令序号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcCommandNoType; ///////////////////////////////////////////////////////////////////////// -///TFtdcMillisecTypeһʱ䣨룩 +/// TFtdcMillisecType是一个时间(毫秒)类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcMillisecType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSecTypeһʱ䣨룩 +/// TFtdcSecType是一个时间(秒)类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcSecType; ///////////////////////////////////////////////////////////////////////// -///TFtdcVolumeMultipleTypeһԼ +/// TFtdcVolumeMultipleType是一个合约数量乘数类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcVolumeMultipleType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradingSegmentSNTypeһ׽׶α +/// TFtdcTradingSegmentSNType是一个交易阶段编号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcTradingSegmentSNType; ///////////////////////////////////////////////////////////////////////// -///TFtdcRequestIDTypeһ +/// TFtdcRequestIDType是一个请求编号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcRequestIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcYearTypeһ +/// TFtdcYearType是一个年份类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcYearType; ///////////////////////////////////////////////////////////////////////// -///TFtdcMonthTypeһ· +/// TFtdcMonthType是一个月份类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcMonthType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBoolTypeһ +/// TFtdcBoolType是一个布尔型类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcBoolType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPriceTypeһ۸ +/// TFtdcPriceType是一个价格类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcPriceType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCombOffsetFlagTypeһϿƽ־ +/// TFtdcCombOffsetFlagType是一个组合开平标志类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCombOffsetFlagType[5]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCombHedgeFlagTypeһͶױ־ +/// TFtdcCombHedgeFlagType是一个组合投机套保标志类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCombHedgeFlagType[5]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRatioTypeһ +/// TFtdcRatioType是一个比率类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcRatioType; ///////////////////////////////////////////////////////////////////////// -///TFtdcMoneyTypeһʽ +/// TFtdcMoneyType是一个资金类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcMoneyType; ///////////////////////////////////////////////////////////////////////// -///TFtdcLargeVolumeTypeһ +/// TFtdcLargeVolumeType是一个大额数量类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcLargeVolumeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSequenceSeriesTypeһϵк +/// TFtdcSequenceSeriesType是一个序列系列号类型 ///////////////////////////////////////////////////////////////////////// typedef short TThostFtdcSequenceSeriesType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCommPhaseNoTypeһͨѶʱα +/// TFtdcCommPhaseNoType是一个通讯时段编号类型 ///////////////////////////////////////////////////////////////////////// typedef short TThostFtdcCommPhaseNoType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSequenceLabelTypeһб +/// TFtdcSequenceLabelType是一个序列编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSequenceLabelType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUnderlyingMultipleTypeһƷ +/// TFtdcUnderlyingMultipleType是一个基础商品乘数类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcUnderlyingMultipleType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPriorityTypeһȼ +/// TFtdcPriorityType是一个优先级类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcPriorityType; ///////////////////////////////////////////////////////////////////////// -///TFtdcContractCodeTypeһͬ +/// TFtdcContractCodeType是一个合同编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcContractCodeType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCityTypeһ +/// TFtdcCityType是一个市类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCityType[51]; ///////////////////////////////////////////////////////////////////////// -///TFtdcIsStockTypeһǷ +/// TFtdcIsStockType是一个是否股民类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcIsStockType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcChannelTypeһ +/// TFtdcChannelType是一个渠道类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcChannelType[51]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAddressTypeһͨѶַ +/// TFtdcAddressType是一个通讯地址类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAddressType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcZipCodeTypeһ +/// TFtdcZipCodeType是一个邮政编码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcZipCodeType[7]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTelephoneTypeһϵ绰 +/// TFtdcTelephoneType是一个联系电话类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTelephoneType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFaxTypeһ +/// TFtdcFaxType是一个传真类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFaxType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcMobileTypeһֻ +/// TFtdcMobileType是一个手机类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcMobileType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcEMailTypeһʼ +/// TFtdcEMailType是一个电子邮件类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcEMailType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcMemoTypeһע +/// TFtdcMemoType是一个备注类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcMemoType[161]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCompanyCodeTypeһҵ +/// TFtdcCompanyCodeType是一个企业代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCompanyCodeType[51]; ///////////////////////////////////////////////////////////////////////// -///TFtdcWebsiteTypeһվַ +/// TFtdcWebsiteType是一个网站地址类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcWebsiteType[51]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTaxNoTypeһ˰ǼǺ +/// TFtdcTaxNoType是一个税务登记号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTaxNoType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBatchStatusTypeһ״̬ +/// TFtdcBatchStatusType是一个处理状态类型 ///////////////////////////////////////////////////////////////////////// -///δϴ +/// 未上传 #define THOST_FTDC_BS_NoUpload '1' -///ϴ +/// 已上传 #define THOST_FTDC_BS_Uploaded '2' -///ʧ +/// 审核失败 #define THOST_FTDC_BS_Failed '3' typedef char TThostFtdcBatchStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPropertyIDTypeһԴ +/// TFtdcPropertyIDType是一个属性代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPropertyIDType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPropertyNameTypeһ +/// TFtdcPropertyNameType是一个属性名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPropertyNameType[65]; ///////////////////////////////////////////////////////////////////////// -///TFtdcLicenseNoTypeһӪҵִպ +/// TFtdcLicenseNoType是一个营业执照号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcLicenseNoType[51]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAgentIDTypeһ˴ +/// TFtdcAgentIDType是一个经纪人代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAgentIDType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAgentNameTypeһ +/// TFtdcAgentNameType是一个经纪人名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAgentNameType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAgentGroupIDTypeһ +/// TFtdcAgentGroupIDType是一个经纪人组代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAgentGroupIDType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAgentGroupNameTypeһ +/// TFtdcAgentGroupNameType是一个经纪人组名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAgentGroupNameType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcReturnStyleTypeһƷַʽ +/// TFtdcReturnStyleType是一个按品种返还方式类型 ///////////////////////////////////////////////////////////////////////// -///Ʒ +/// 按所有品种 #define THOST_FTDC_RS_All '1' -///Ʒ +/// 按品种 #define THOST_FTDC_RS_ByProduct '2' typedef char TThostFtdcReturnStyleType; ///////////////////////////////////////////////////////////////////////// -///TFtdcReturnPatternTypeһģʽ +/// TFtdcReturnPatternType是一个返还模式类型 ///////////////////////////////////////////////////////////////////////// -///ɽ +/// 按成交手数 #define THOST_FTDC_RP_ByVolume '1' -/// +/// 按留存手续费 #define THOST_FTDC_RP_ByFeeOnHand '2' typedef char TThostFtdcReturnPatternType; ///////////////////////////////////////////////////////////////////////// -///TFtdcReturnLevelTypeһ +/// TFtdcReturnLevelType是一个返还级别类型 ///////////////////////////////////////////////////////////////////////// -///1 +/// 级别1 #define THOST_FTDC_RL_Level1 '1' -///2 +/// 级别2 #define THOST_FTDC_RL_Level2 '2' -///3 +/// 级别3 #define THOST_FTDC_RL_Level3 '3' -///4 +/// 级别4 #define THOST_FTDC_RL_Level4 '4' -///5 +/// 级别5 #define THOST_FTDC_RL_Level5 '5' -///6 +/// 级别6 #define THOST_FTDC_RL_Level6 '6' -///7 +/// 级别7 #define THOST_FTDC_RL_Level7 '7' -///8 +/// 级别8 #define THOST_FTDC_RL_Level8 '8' -///9 +/// 级别9 #define THOST_FTDC_RL_Level9 '9' typedef char TThostFtdcReturnLevelType; ///////////////////////////////////////////////////////////////////////// -///TFtdcReturnStandardTypeһ׼ +/// TFtdcReturnStandardType是一个返还标准类型 ///////////////////////////////////////////////////////////////////////// -///ֽ׶η +/// 分阶段返还 #define THOST_FTDC_RSD_ByPeriod '1' -///ijһ׼ +/// 按某一标准 #define THOST_FTDC_RSD_ByStandard '2' typedef char TThostFtdcReturnStandardType; ///////////////////////////////////////////////////////////////////////// -///TFtdcMortgageTypeTypeһѺ +/// TFtdcMortgageTypeType是一个质押类型类型 ///////////////////////////////////////////////////////////////////////// -///ʳ +/// 质出 #define THOST_FTDC_MT_Out '0' -/// +/// 质入 #define THOST_FTDC_MT_In '1' typedef char TThostFtdcMortgageTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorSettlementParamIDTypeһͶ߽ +/// TFtdcInvestorSettlementParamIDType是一个投资者结算参数代码类型 ///////////////////////////////////////////////////////////////////////// -///Ѻ +/// 质押比例 #define THOST_FTDC_ISPI_MortgageRatio '4' -///֤㷨 +/// 保证金算法 #define THOST_FTDC_ISPI_MarginWay '5' -///㵥ǷѺ +/// 结算单结存是否包含质押 #define THOST_FTDC_ISPI_BillDeposit '9' typedef char TThostFtdcInvestorSettlementParamIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeSettlementParamIDTypeһ +/// 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һϵͳ +/// 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һϵͳ +/// TFtdcTradeParamIDType是一个交易系统参数代码类型 ///////////////////////////////////////////////////////////////////////// -///ϵͳ㷨 +/// 系统加密算法 #define THOST_FTDC_TPID_EncryptionStandard 'E' -///ϵͳ㷨 +/// 系统风险算法 #define THOST_FTDC_TPID_RiskMode 'R' -///ϵͳ㷨Ƿȫ 0- 1- +/// 系统风险算法是否全局 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½ʧܴ +/// IP当日最大登陆失败次数 #define THOST_FTDC_TPID_LoginFailMaxNumForIP 'U' -///Ч +/// 密码有效期 #define THOST_FTDC_TPID_PasswordPeriod 'V' typedef char TThostFtdcTradeParamIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSettlementParamValueTypeһֵ +/// TFtdcSettlementParamValueType是一个参数代码值类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSettlementParamValueType[256]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCounterIDTypeһ +/// TFtdcCounterIDType是一个计数器代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCounterIDType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorGroupNameTypeһͶ߷ +/// TFtdcInvestorGroupNameType是一个投资者分组名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInvestorGroupNameType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBrandCodeTypeһƺ +/// TFtdcBrandCodeType是一个牌号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBrandCodeType[257]; ///////////////////////////////////////////////////////////////////////// -///TFtdcWarehouseTypeһֿ +/// TFtdcWarehouseType是一个仓库类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcWarehouseType[257]; ///////////////////////////////////////////////////////////////////////// -///TFtdcProductDateTypeһ +/// TFtdcProductDateType是一个产期类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcProductDateType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcGradeTypeһȼ +/// TFtdcGradeType是一个等级类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcGradeType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcClassifyTypeһ +/// TFtdcClassifyType是一个类别类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcClassifyType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPositionTypeһλ +/// TFtdcPositionType是一个货位类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPositionType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcYieldlyTypeһ +/// TFtdcYieldlyType是一个产地类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcYieldlyType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcWeightTypeһ +/// TFtdcWeightType是一个公定重量类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcWeightType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSubEntryFundNoTypeһʽˮ +/// TFtdcSubEntryFundNoType是一个分项资金流水号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcSubEntryFundNoType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFileIDTypeһļʶ +/// 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һļ +/// TFtdcFileNameType是一个文件名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFileNameType[257]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFileTypeTypeһļϴ +/// TFtdcFileTypeType是一个文件上传类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 结算 #define THOST_FTDC_FUT_Settlement '0' -///˶ +/// 核对 #define THOST_FTDC_FUT_Check '1' typedef char TThostFtdcFileTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFileFormatTypeһļʽ +/// TFtdcFileFormatType是一个文件格式类型 ///////////////////////////////////////////////////////////////////////// -///ıļ(.txt) +/// 文本文件(.txt) #define THOST_FTDC_FFT_Txt '0' -///ѹļ(.zip) +/// 压缩文件(.zip) #define THOST_FTDC_FFT_Zip '1' -///DBFļ(.dbf) +/// DBF文件(.dbf) #define THOST_FTDC_FFT_DBF '2' typedef char TThostFtdcFileFormatType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFileUploadStatusTypeһļ״̬ +/// 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һƲַ +/// TFtdcTransferDirectionType是一个移仓方向类型 ///////////////////////////////////////////////////////////////////////// -///Ƴ +/// 移出 #define THOST_FTDC_TD_Out '0' -/// +/// 移入 #define THOST_FTDC_TD_In '1' typedef char TThostFtdcTransferDirectionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcUploadModeTypeһϴļ +/// TFtdcUploadModeType是一个上传文件类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUploadModeType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAccountIDTypeһͶʺ +/// TFtdcAccountIDType是一个投资者帐号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAccountIDType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankFlagTypeһͳһʶ +/// TFtdcBankFlagType是一个银行统一标识类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankFlagType[4]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankAccountTypeһ˻ +/// TFtdcBankAccountType是一个银行账户类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankAccountType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOpenNameTypeһ˻Ŀ +/// TFtdcOpenNameType是一个银行账户的开户人名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOpenNameType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOpenBankTypeһ˻Ŀ +/// TFtdcOpenBankType是一个银行账户的开户行类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOpenBankType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankNameTypeһ +/// TFtdcBankNameType是一个银行名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankNameType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPublishPathTypeһ· +/// TFtdcPublishPathType是一个发布路径类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPublishPathType[257]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOperatorIDTypeһԱ +/// TFtdcOperatorIDType是一个操作员代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOperatorIDType[65]; ///////////////////////////////////////////////////////////////////////// -///TFtdcMonthCountTypeһ· +/// TFtdcMonthCountType是一个月份数量类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcMonthCountType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAdvanceMonthArrayTypeһ·ǰ +/// TFtdcAdvanceMonthArrayType是一个月份提前数组类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAdvanceMonthArrayType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDateExprTypeһڱʽ +/// TFtdcDateExprType是一个日期表达式类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcDateExprType[1025]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInstrumentIDExprTypeһԼʽ +/// TFtdcInstrumentIDExprType是一个合约代码表达式类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInstrumentIDExprType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInstrumentNameExprTypeһԼƱʽ +/// TFtdcInstrumentNameExprType是一个合约名称表达式类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInstrumentNameExprType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSpecialCreateRuleTypeһĴ +/// TFtdcSpecialCreateRuleType是一个特殊的创建规则类型 ///////////////////////////////////////////////////////////////////////// -///ûⴴ +/// 没有特殊创建规则 #define THOST_FTDC_SC_NoSpecialRule '0' -/// +/// 不包含春节 #define THOST_FTDC_SC_NoSpringFestival '1' typedef char TThostFtdcSpecialCreateRuleType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBasisPriceTypeTypeһƻ׼ +/// TFtdcBasisPriceTypeType是一个挂牌基准价类型类型 ///////////////////////////////////////////////////////////////////////// -///һԼ +/// 上一合约结算价 #define THOST_FTDC_IPT_LastSettlement '1' -///һԼ̼ +/// 上一合约收盘价 #define THOST_FTDC_IPT_LaseClose '2' typedef char TThostFtdcBasisPriceTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcProductLifePhaseTypeһƷ״̬ +/// TFtdcProductLifePhaseType是一个产品生命周期状态类型 ///////////////////////////////////////////////////////////////////////// -///Ծ +/// 活跃 #define THOST_FTDC_PLP_Active '1' -///Ծ +/// 不活跃 #define THOST_FTDC_PLP_NonActive '2' -///ע +/// 注销 #define THOST_FTDC_PLP_Canceled '3' typedef char TThostFtdcProductLifePhaseType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDeliveryModeTypeһʽ +/// TFtdcDeliveryModeType是一个交割方式类型 ///////////////////////////////////////////////////////////////////////// -///ֽ𽻸 +/// 现金交割 #define THOST_FTDC_DM_CashDeliv '1' -///ʵサ +/// 实物交割 #define THOST_FTDC_DM_CommodityDeliv '2' typedef char TThostFtdcDeliveryModeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcLogLevelTypeһ־ +/// TFtdcLogLevelType是一个日志级别类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcLogLevelType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcProcessNameTypeһ洢 +/// TFtdcProcessNameType是一个存储过程名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcProcessNameType[257]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOperationMemoTypeһժҪ +/// TFtdcOperationMemoType是一个操作摘要类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOperationMemoType[1025]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFundIOTypeTypeһ +/// TFtdcFundIOTypeType是一个出入金类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 出入金 #define THOST_FTDC_FIOT_FundIO '1' -///ת +/// 银期转帐 #define THOST_FTDC_FIOT_Transfer '2' -///ڻ +/// 银期换汇 #define THOST_FTDC_FIOT_SwapCurrency '3' typedef char TThostFtdcFundIOTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFundTypeTypeһʽ +/// 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һ +/// TFtdcFundDirectionType是一个出入金方向类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 入金 #define THOST_FTDC_FD_In '1' -/// +/// 出金 #define THOST_FTDC_FD_Out '2' typedef char TThostFtdcFundDirectionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFundStatusTypeһʽ״̬ +/// TFtdcFundStatusType是一个资金状态类型 ///////////////////////////////////////////////////////////////////////// -///¼ +/// 已录入 #define THOST_FTDC_FS_Record '1' -///Ѹ +/// 已复核 #define THOST_FTDC_FS_Check '2' -///ѳ +/// 已冲销 #define THOST_FTDC_FS_Charge '3' typedef char TThostFtdcFundStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBillNoTypeһƱݺ +/// TFtdcBillNoType是一个票据号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBillNoType[15]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBillNameTypeһƱ +/// TFtdcBillNameType是一个票据名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBillNameType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPublishStatusTypeһ״̬ +/// TFtdcPublishStatusType是一个发布状态类型 ///////////////////////////////////////////////////////////////////////// -///δ +/// 未发布 #define THOST_FTDC_PS_None '1' -///ڷ +/// 正在发布 #define THOST_FTDC_PS_Publishing '2' -///ѷ +/// 已发布 #define THOST_FTDC_PS_Published '3' typedef char TThostFtdcPublishStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcEnumValueIDTypeһöֵ +/// TFtdcEnumValueIDType是一个枚举值代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcEnumValueIDType[65]; ///////////////////////////////////////////////////////////////////////// -///TFtdcEnumValueTypeTypeһöֵ +/// TFtdcEnumValueTypeType是一个枚举值类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcEnumValueTypeType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcEnumValueLabelTypeһöֵ +/// TFtdcEnumValueLabelType是一个枚举值名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcEnumValueLabelType[65]; ///////////////////////////////////////////////////////////////////////// -///TFtdcEnumValueResultTypeһöֵ +/// TFtdcEnumValueResultType是一个枚举值结果类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcEnumValueResultType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSystemStatusTypeһϵͳ״̬ +/// 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һ״̬ +/// 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һ޶ֵ +/// TFtdcRangeIntTypeType是一个限定值类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRangeIntTypeType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRangeIntFromTypeһ޶ֵ +/// TFtdcRangeIntFromType是一个限定值下限类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRangeIntFromType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRangeIntToTypeһ޶ֵ +/// TFtdcRangeIntToType是一个限定值上限类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRangeIntToType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFunctionIDTypeһܴ +/// TFtdcFunctionIDType是一个功能代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFunctionIDType[25]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFunctionValueCodeTypeһܱ +/// TFtdcFunctionValueCodeType是一个功能编码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFunctionValueCodeType[257]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFunctionNameTypeһ +/// TFtdcFunctionNameType是一个功能名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFunctionNameType[65]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRoleIDTypeһɫ +/// TFtdcRoleIDType是一个角色编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRoleIDType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRoleNameTypeһɫ +/// TFtdcRoleNameType是一个角色名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRoleNameType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDescriptionTypeһ +/// TFtdcDescriptionType是一个描述类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcDescriptionType[401]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCombineIDTypeһϱ +/// TFtdcCombineIDType是一个组合编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCombineIDType[25]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCombineTypeTypeһ +/// TFtdcCombineTypeType是一个组合类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCombineTypeType[25]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorTypeTypeһͶ +/// 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һ͹˾ +/// TFtdcBrokerTypeType是一个经纪公司类型类型 ///////////////////////////////////////////////////////////////////////// -///׻Ա +/// 交易会员 #define THOST_FTDC_BT_Trade '0' -///׽Ա +/// 交易结算会员 #define THOST_FTDC_BT_TradeSettle '1' typedef char TThostFtdcBrokerTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcRiskLevelTypeһյȼ +/// 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һȡʽ +/// 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һ +/// TFtdcPasswordTypeType是一个密码类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 交易密码 #define THOST_FTDC_PWDT_Trade '1' -///ʽ +/// 资金密码 #define THOST_FTDC_PWDT_Account '2' typedef char TThostFtdcPasswordTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAlgorithmTypeһӯ㷨 +/// 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һǷƽӯ +/// TFtdcIncludeCloseProfitType是一个是否包含平仓盈利类型 ///////////////////////////////////////////////////////////////////////// -///ƽӯ +/// 包含平仓盈利 #define THOST_FTDC_ICP_Include '0' -///ƽӯ +/// 不包含平仓盈利 #define THOST_FTDC_ICP_NotInclude '2' typedef char TThostFtdcIncludeCloseProfitType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAllWithoutTradeTypeһǷܿ +/// TFtdcAllWithoutTradeType是一个是否受可提比例限制类型 ///////////////////////////////////////////////////////////////////////// -///޲޳ɽܿ +/// 无仓无成交不受可提比例限制 #define THOST_FTDC_AWT_Enable '0' -///ܿ +/// 受可提比例限制 #define THOST_FTDC_AWT_Disable '2' -///޲ֲܿ +/// 无仓不受可提比例限制 #define THOST_FTDC_AWT_NoHoldEnable '3' typedef char TThostFtdcAllWithoutTradeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCommentTypeһӯ㷨˵ +/// TFtdcCommentType是一个盈亏算法说明类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCommentType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcVersionTypeһ汾 +/// TFtdcVersionType是一个版本号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcVersionType[4]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradeCodeTypeһ״ +/// TFtdcTradeCodeType是一个交易代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTradeCodeType[7]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradeDateTypeһ +/// TFtdcTradeDateType是一个交易日期类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTradeDateType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradeTimeTypeһʱ +/// TFtdcTradeTimeType是一个交易时间类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTradeTimeType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradeSerialTypeһˮ +/// TFtdcTradeSerialType是一个发起方流水号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTradeSerialType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradeSerialNoTypeһˮ +/// TFtdcTradeSerialNoType是一个发起方流水号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcTradeSerialNoType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFutureIDTypeһڻ˾ +/// TFtdcFutureIDType是一个期货公司代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFutureIDType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankIDTypeһд +/// TFtdcBankIDType是一个银行代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankIDType[4]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankBrchIDTypeһзĴ +/// TFtdcBankBrchIDType是一个银行分中心代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankBrchIDType[5]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankBranchIDTypeһĴ +/// TFtdcBankBranchIDType是一个分中心代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankBranchIDType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOperNoTypeһ׹Ա +/// TFtdcOperNoType是一个交易柜员类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOperNoType[17]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDeviceIDTypeһ־ +/// TFtdcDeviceIDType是一个渠道标志类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcDeviceIDType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRecordNumTypeһ¼ +/// TFtdcRecordNumType是一个记录数类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRecordNumType[7]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFutureAccountTypeһڻʽ˺ +/// TFtdcFutureAccountType是一个期货资金账号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFutureAccountType[22]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFuturePwdFlagTypeһʽ˶Ա־ +/// TFtdcFuturePwdFlagType是一个资金密码核对标志类型 ///////////////////////////////////////////////////////////////////////// -///˶ +/// 不核对 #define THOST_FTDC_FPWD_UnCheck '0' -///˶ +/// 核对 #define THOST_FTDC_FPWD_Check '1' typedef char TThostFtdcFuturePwdFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTransferTypeTypeһת +/// TFtdcTransferTypeType是一个银期转账类型类型 ///////////////////////////////////////////////////////////////////////// -///תڻ +/// 银行转期货 #define THOST_FTDC_TT_BankToFuture '0' -///ڻת +/// 期货转银行 #define THOST_FTDC_TT_FutureToBank '1' typedef char TThostFtdcTransferTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFutureAccPwdTypeһڻʽ +/// TFtdcFutureAccPwdType是一个期货资金密码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFutureAccPwdType[17]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencyCodeTypeһ +/// TFtdcCurrencyCodeType是一个币种类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCurrencyCodeType[4]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRetCodeTypeһӦ +/// TFtdcRetCodeType是一个响应代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRetCodeType[5]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRetInfoTypeһӦϢ +/// TFtdcRetInfoType是一个响应信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRetInfoType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradeAmtTypeһ +/// TFtdcTradeAmtType是一个银行总余额类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTradeAmtType[20]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUseAmtTypeһп +/// TFtdcUseAmtType是一个银行可用余额类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUseAmtType[20]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFetchAmtTypeһпȡ +/// TFtdcFetchAmtType是一个银行可取余额类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFetchAmtType[20]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTransferValidFlagTypeһתЧ־ +/// TFtdcTransferValidFlagType是一个转账有效标志类型 ///////////////////////////////////////////////////////////////////////// -///Чʧ +/// 无效或失败 #define THOST_FTDC_TVF_Invalid '0' -///Ч +/// 有效 #define THOST_FTDC_TVF_Valid '1' -/// +/// 冲正 #define THOST_FTDC_TVF_Reverse '2' typedef char TThostFtdcTransferValidFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCertCodeTypeһ֤ +/// TFtdcCertCodeType是一个证件号码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCertCodeType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcReasonTypeһ +/// TFtdcReasonType是一个事由类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 错单 #define THOST_FTDC_RN_CD '0' -///ʽ; +/// 资金在途 #define THOST_FTDC_RN_ZT '1' -/// +/// 其它 #define THOST_FTDC_RN_QT '2' typedef char TThostFtdcReasonType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFundProjectIDTypeһʽĿ +/// TFtdcFundProjectIDType是一个资金项目编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFundProjectIDType[5]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSexTypeһԱ +/// TFtdcSexType是一个性别类型 ///////////////////////////////////////////////////////////////////////// -///δ֪ +/// 未知 #define THOST_FTDC_SEX_None '0' -/// +/// 男 #define THOST_FTDC_SEX_Man '1' -///Ů +/// 女 #define THOST_FTDC_SEX_Woman '2' typedef char TThostFtdcSexType; ///////////////////////////////////////////////////////////////////////// -///TFtdcProfessionTypeһְҵ +/// TFtdcProfessionType是一个职业类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcProfessionType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcNationalTypeһ +/// TFtdcNationalType是一个国籍类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcNationalType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcProvinceTypeһʡ +/// TFtdcProvinceType是一个省类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcProvinceType[51]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRegionTypeһ +/// TFtdcRegionType是一个区类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRegionType[16]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCountryTypeһ +/// TFtdcCountryType是一个国家类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCountryType[16]; ///////////////////////////////////////////////////////////////////////// -///TFtdcLicenseNOTypeһӪҵִ +/// TFtdcLicenseNOType是一个营业执照类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcLicenseNOType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCompanyTypeTypeһҵ +/// TFtdcCompanyTypeType是一个企业性质类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCompanyTypeType[16]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBusinessScopeTypeһӪΧ +/// TFtdcBusinessScopeType是一个经营范围类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBusinessScopeType[1001]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCapitalCurrencyTypeһעʱ +/// TFtdcCapitalCurrencyType是一个注册资本币种类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCapitalCurrencyType[4]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUserTypeTypeһû +/// TFtdcUserTypeType是一个用户类型类型 ///////////////////////////////////////////////////////////////////////// -///Ͷ +/// 投资者 #define THOST_FTDC_UT_Investor '0' -///Ա +/// 操作员 #define THOST_FTDC_UT_Operator '1' -///Ա +/// 管理员 #define THOST_FTDC_UT_SuperUser '2' typedef char TThostFtdcUserTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBranchIDTypeһӪҵ +/// TFtdcBranchIDType是一个营业部编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBranchIDType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRateTypeTypeһ +/// TFtdcRateTypeType是一个费率类型类型 ///////////////////////////////////////////////////////////////////////// -///֤ +/// 保证金率 #define THOST_FTDC_RATETYPE_MarginRate '2' typedef char TThostFtdcRateTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcNoteTypeTypeһ֪ͨ +/// 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һ㵥ʽ +/// TFtdcSettlementStyleType是一个结算单方式类型 ///////////////////////////////////////////////////////////////////////// -///ն +/// 逐日盯市 #define THOST_FTDC_SBS_Day '1' -///ʶԳ +/// 逐笔对冲 #define THOST_FTDC_SBS_Volume '2' typedef char TThostFtdcSettlementStyleType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerDNSTypeһ +/// TFtdcBrokerDNSType是一个域名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBrokerDNSType[256]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSentenceTypeһ +/// TFtdcSentenceType是一个语句类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSentenceType[501]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSettlementBillTypeTypeһ㵥 +/// TFtdcSettlementBillTypeType是一个结算单类型类型 ///////////////////////////////////////////////////////////////////////// -///ձ +/// 日报 #define THOST_FTDC_ST_Day '0' -///± +/// 月报 #define THOST_FTDC_ST_Month '1' typedef char TThostFtdcSettlementBillTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcUserRightTypeTypeһͻȨ +/// 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һ֤۸ +/// 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һ㵥״̬ +/// TFtdcBillGenStatusType是一个结算单生成状态类型 ///////////////////////////////////////////////////////////////////////// -///δ +/// 未生成 #define THOST_FTDC_BGS_None '0' -/// +/// 生成中 #define THOST_FTDC_BGS_NoGenerated '1' -/// +/// 已生成 #define THOST_FTDC_BGS_Generated '2' typedef char TThostFtdcBillGenStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAlgoTypeTypeһ㷨 +/// TFtdcAlgoTypeType是一个算法类型类型 ///////////////////////////////////////////////////////////////////////// -///ֲִ㷨 +/// 持仓处理算法 #define THOST_FTDC_AT_HandlePositionAlgo '1' -///Ѱұ֤㷨 +/// 寻找保证金率算法 #define THOST_FTDC_AT_FindMarginRateAlgo '2' typedef char TThostFtdcAlgoTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcHandlePositionAlgoIDTypeһֲִ㷨 +/// TFtdcHandlePositionAlgoIDType是一个持仓处理算法编号类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 基本 #define THOST_FTDC_HPA_Base '1' -///Ʒ +/// 大连商品交易所 #define THOST_FTDC_HPA_DCE '2' -///֣Ʒ +/// 郑州商品交易所 #define THOST_FTDC_HPA_CZCE '3' typedef char TThostFtdcHandlePositionAlgoIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFindMarginRateAlgoIDTypeһѰұ֤㷨 +/// TFtdcFindMarginRateAlgoIDType是一个寻找保证金率算法编号类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 基本 #define THOST_FTDC_FMRA_Base '1' -///Ʒ +/// 大连商品交易所 #define THOST_FTDC_FMRA_DCE '2' -///֣Ʒ +/// 郑州商品交易所 #define THOST_FTDC_FMRA_CZCE '3' typedef char TThostFtdcFindMarginRateAlgoIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcHandleTradingAccountAlgoIDTypeһʽ㷨 +/// TFtdcHandleTradingAccountAlgoIDType是一个资金处理算法编号类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 基本 #define THOST_FTDC_HTAA_Base '1' -///Ʒ +/// 大连商品交易所 #define THOST_FTDC_HTAA_DCE '2' -///֣Ʒ +/// 郑州商品交易所 #define THOST_FTDC_HTAA_CZCE '3' typedef char TThostFtdcHandleTradingAccountAlgoIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPersonTypeTypeһϵ +/// 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һѯΧ +/// TFtdcQueryInvestorRangeType是一个查询范围类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 所有 #define THOST_FTDC_QIR_All '1' -///ѯ +/// 查询分类 #define THOST_FTDC_QIR_Group '2' -///һͶ +/// 单一投资者 #define THOST_FTDC_QIR_Single '3' typedef char TThostFtdcQueryInvestorRangeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorRiskStatusTypeһͶ߷״̬ +/// 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һȱ +/// TFtdcLegIDType是一个单腿编号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcLegIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcLegMultipleTypeһȳ +/// TFtdcLegMultipleType是一个单腿乘数类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcLegMultipleType; ///////////////////////////////////////////////////////////////////////// -///TFtdcImplyLevelTypeһ +/// TFtdcImplyLevelType是一个派生层数类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcImplyLevelType; ///////////////////////////////////////////////////////////////////////// -///TFtdcClearAccountTypeһ˻ +/// TFtdcClearAccountType是一个结算账户类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcClearAccountType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrganNOTypeһ˻ +/// TFtdcOrganNOType是一个结算账户类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOrganNOType[6]; ///////////////////////////////////////////////////////////////////////// -///TFtdcClearbarchIDTypeһ˻к +/// TFtdcClearbarchIDType是一个结算账户联行号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcClearbarchIDType[6]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUserEventTypeTypeһû¼ +/// 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_SubmitSysInfo '7' -///ת +/// 转账 #define THOST_FTDC_UET_Transfer '8' -/// +/// 其他 #define THOST_FTDC_UET_Other '9' typedef char TThostFtdcUserEventTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcUserEventInfoTypeһû¼Ϣ +/// TFtdcUserEventInfoType是一个用户事件信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUserEventInfoType[1025]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCloseStyleTypeһƽַʽ +/// TFtdcCloseStyleType是一个平仓方式类型 ///////////////////////////////////////////////////////////////////////// -///ȿƽ +/// 先开先平 #define THOST_FTDC_ICS_Close '0' -///ƽƽ +/// 先平今再平昨 #define THOST_FTDC_ICS_CloseToday '1' typedef char TThostFtdcCloseStyleType; ///////////////////////////////////////////////////////////////////////// -///TFtdcStatModeTypeһͳƷʽ +/// 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һԤ״̬ +/// TFtdcParkedOrderStatusType是一个预埋单状态类型 ///////////////////////////////////////////////////////////////////////// -///δ +/// 未发送 #define THOST_FTDC_PAOS_NotSend '1' -///ѷ +/// 已发送 #define THOST_FTDC_PAOS_Send '2' -///ɾ +/// 已删除 #define THOST_FTDC_PAOS_Deleted '3' typedef char TThostFtdcParkedOrderStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcParkedOrderIDTypeһԤ񱨵 +/// TFtdcParkedOrderIDType是一个预埋报单编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcParkedOrderIDType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcParkedOrderActionIDTypeһԤ񳷵 +/// TFtdcParkedOrderActionIDType是一个预埋撤单编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcParkedOrderActionIDType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcVirDealStatusTypeһ״̬ +/// TFtdcVirDealStatusType是一个处理状态类型 ///////////////////////////////////////////////////////////////////////// -///ڴ +/// 正在处理 #define THOST_FTDC_VDS_Dealing '1' -///ɹ +/// 处理成功 #define THOST_FTDC_VDS_DeaclSucceed '2' typedef char TThostFtdcVirDealStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrgSystemIDTypeһԭϵͳ +/// TFtdcOrgSystemIDType是一个原有系统代码类型 ///////////////////////////////////////////////////////////////////////// -///ۺϽƽ̨ +/// 综合交易平台 #define THOST_FTDC_ORGS_Standard '0' -///ʢϵͳ +/// 易盛系统 #define THOST_FTDC_ORGS_ESunny '1' -///˴V6ϵͳ +/// 金仕达V6系统 #define THOST_FTDC_ORGS_KingStarV6 '2' typedef char TThostFtdcOrgSystemIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcVirTradeStatusTypeһ״̬ +/// 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һʻ +/// TFtdcVirBankAccTypeType是一个银行帐户类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 存折 #define THOST_FTDC_VBAT_BankBook '1' -/// +/// 储蓄卡 #define THOST_FTDC_VBAT_BankCard '2' -///ÿ +/// 信用卡 #define THOST_FTDC_VBAT_CreditCard '3' typedef char TThostFtdcVirBankAccTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcVirementStatusTypeһʻ +/// TFtdcVirementStatusType是一个银行帐户类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 正常 #define THOST_FTDC_VMS_Natural '0' -/// +/// 销户 #define THOST_FTDC_VMS_Canceled '9' typedef char TThostFtdcVirementStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcVirementAvailAbilityTypeһЧ־ +/// TFtdcVirementAvailAbilityType是一个有效标志类型 ///////////////////////////////////////////////////////////////////////// -///δȷ +/// 未确认 #define THOST_FTDC_VAA_NoAvailAbility '0' -///Ч +/// 有效 #define THOST_FTDC_VAA_AvailAbility '1' -/// +/// 冲正 #define THOST_FTDC_VAA_Repeal '2' typedef char TThostFtdcVirementAvailAbilityType; ///////////////////////////////////////////////////////////////////////// -///TFtdcVirementTradeCodeTypeһ״ +/// 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һӰ +/// TFtdcPhotoTypeNameType是一个影像类型名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPhotoTypeNameType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPhotoTypeIDTypeһӰʹ +/// TFtdcPhotoTypeIDType是一个影像类型代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPhotoTypeIDType[5]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPhotoNameTypeһӰ +/// TFtdcPhotoNameType是一个影像名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPhotoNameType[161]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTopicIDTypeһ +/// TFtdcTopicIDType是一个主题代码类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcTopicIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcReportTypeIDTypeһױͱʶ +/// TFtdcReportTypeIDType是一个交易报告类型标识类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcReportTypeIDType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCharacterIDTypeһ +/// TFtdcCharacterIDType是一个交易特征代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCharacterIDType[5]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLParamIDTypeһ +/// TFtdcAMLParamIDType是一个参数代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLParamIDType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLInvestorTypeTypeһͶ +/// TFtdcAMLInvestorTypeType是一个投资者类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLInvestorTypeType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLIdCardTypeTypeһ֤ +/// TFtdcAMLIdCardTypeType是一个证件类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLIdCardTypeType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLTradeDirectTypeһʽ +/// TFtdcAMLTradeDirectType是一个资金进出方向类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLTradeDirectType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLTradeModelTypeһʽʽ +/// TFtdcAMLTradeModelType是一个资金进出方式类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLTradeModelType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLOpParamValueTypeһҵֵ +/// TFtdcAMLOpParamValueType是一个业务参数代码值类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcAMLOpParamValueType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLCustomerCardTypeTypeһͻ֤/֤ļ +/// TFtdcAMLCustomerCardTypeType是一个客户身份证件/证明文件类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLCustomerCardTypeType[81]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLInstitutionNameTypeһڻ +/// TFtdcAMLInstitutionNameType是一个金融机构网点名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLInstitutionNameType[65]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLDistrictIDTypeһڻڵ +/// TFtdcAMLDistrictIDType是一个金融机构网点所在地区行政区划代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLDistrictIDType[7]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLRelationShipTypeһڻ׵Ĺϵ +/// TFtdcAMLRelationShipType是一个金融机构网点与大额交易的关系类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLRelationShipType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLInstitutionTypeTypeһڻ +/// TFtdcAMLInstitutionTypeType是一个金融机构网点代码类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLInstitutionTypeType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLInstitutionIDTypeһڻ +/// TFtdcAMLInstitutionIDType是一个金融机构网点代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLInstitutionIDType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLAccountTypeTypeһ˻ +/// TFtdcAMLAccountTypeType是一个账户类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLAccountTypeType[5]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLTradingTypeTypeһ׷ʽ +/// TFtdcAMLTradingTypeType是一个交易方式类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLTradingTypeType[7]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLTransactClassTypeһ֧׷ +/// TFtdcAMLTransactClassType是一个涉外收支交易分类与代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLTransactClassType[7]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLCapitalIOTypeһʽոʶ +/// TFtdcAMLCapitalIOType是一个资金收付标识类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLCapitalIOType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLSiteTypeһ׵ص +/// TFtdcAMLSiteType是一个交易地点类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLSiteType[10]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLCapitalPurposeTypeһʽ; +/// TFtdcAMLCapitalPurposeType是一个资金用途类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLCapitalPurposeType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLReportTypeTypeһ +/// TFtdcAMLReportTypeType是一个报文类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLReportTypeType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLSerialNoTypeһ +/// TFtdcAMLSerialNoType是一个编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLSerialNoType[5]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLStatusTypeһ״̬ +/// TFtdcAMLStatusType是一个状态类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLStatusType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLGenStatusTypeһAmlɷʽ +/// TFtdcAMLGenStatusType是一个Aml生成方式类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 程序生成 #define THOST_FTDC_GEN_Program '0' -///˹ +/// 人工生成 #define THOST_FTDC_GEN_HandWork '1' typedef char TThostFtdcAMLGenStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLSeqCodeTypeһҵʶ +/// TFtdcAMLSeqCodeType是一个业务标识号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLSeqCodeType[65]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLFileNameTypeһAMLļ +/// TFtdcAMLFileNameType是一个AML文件名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLFileNameType[257]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLMoneyTypeһϴǮʽ +/// TFtdcAMLMoneyType是一个反洗钱资金类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcAMLMoneyType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLFileAmountTypeһϴǮʽ +/// TFtdcAMLFileAmountType是一个反洗钱资金类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcAMLFileAmountType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCFMMCKeyTypeһԿ(֤) +/// TFtdcCFMMCKeyType是一个密钥类型(保证金监管)类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCFMMCKeyType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCFMMCTokenTypeһ(֤) +/// TFtdcCFMMCTokenType是一个令牌类型(保证金监管)类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCFMMCTokenType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCFMMCKeyKindTypeһ̬Կ(֤) +/// TFtdcCFMMCKeyKindType是一个动态密钥类别(保证金监管)类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 主动请求更新 #define THOST_FTDC_CFMMCKK_REQUEST 'R' -///CFMMCԶ +/// CFMMC自动更新 #define THOST_FTDC_CFMMCKK_AUTO 'A' -///CFMMCֶ +/// CFMMC手动更新 #define THOST_FTDC_CFMMCKK_MANUAL 'M' typedef char TThostFtdcCFMMCKeyKindType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLReportNameTypeһ +/// TFtdcAMLReportNameType是一个报文名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAMLReportNameType[81]; ///////////////////////////////////////////////////////////////////////// -///TFtdcIndividualNameTypeһ +/// TFtdcIndividualNameType是一个个人姓名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcIndividualNameType[51]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencyIDTypeһִ +/// TFtdcCurrencyIDType是一个币种代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCurrencyIDType[4]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCustNumberTypeһͻ +/// TFtdcCustNumberType是一个客户编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCustNumberType[36]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrganCodeTypeһ +/// TFtdcOrganCodeType是一个机构编码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOrganCodeType[36]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrganNameTypeһ +/// TFtdcOrganNameType是一个机构名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOrganNameType[71]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSuperOrganCodeTypeһϼ,ڻ˾ܲ +/// TFtdcSuperOrganCodeType是一个上级机构编码,即期货公司总部、银行总行类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSuperOrganCodeType[12]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSubBranchIDTypeһ֧ +/// TFtdcSubBranchIDType是一个分支机构类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSubBranchIDType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSubBranchNameTypeһ֧ +/// TFtdcSubBranchNameType是一个分支机构名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSubBranchNameType[71]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBranchNetCodeTypeһ +/// TFtdcBranchNetCodeType是一个机构网点号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBranchNetCodeType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBranchNetNameTypeһ +/// TFtdcBranchNetNameType是一个机构网点名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBranchNetNameType[71]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrganFlagTypeһʶ +/// TFtdcOrganFlagType是一个机构标识类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOrganFlagType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankCodingForFutureTypeһжڻ˾ı +/// TFtdcBankCodingForFutureType是一个银行对期货公司的编码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankCodingForFutureType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankReturnCodeTypeһжԷĶ +/// TFtdcBankReturnCodeType是一个银行对返回码的定义类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankReturnCodeType[7]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPlateReturnCodeTypeһתƽ̨ԷĶ +/// TFtdcPlateReturnCodeType是一个银期转帐平台对返回码的定义类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPlateReturnCodeType[5]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankSubBranchIDTypeһз֧ +/// TFtdcBankSubBranchIDType是一个银行分支机构编码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankSubBranchIDType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFutureBranchIDTypeһڻ֧ +/// TFtdcFutureBranchIDType是一个期货分支机构编码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFutureBranchIDType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcReturnCodeTypeһش +/// TFtdcReturnCodeType是一个返回代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcReturnCodeType[7]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOperatorCodeTypeһԱ +/// TFtdcOperatorCodeType是一个操作员类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOperatorCodeType[17]; ///////////////////////////////////////////////////////////////////////// -///TFtdcClearDepIDTypeһʻ +/// TFtdcClearDepIDType是一个机构结算帐户机构号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcClearDepIDType[6]; ///////////////////////////////////////////////////////////////////////// -///TFtdcClearBrchIDTypeһʻк +/// TFtdcClearBrchIDType是一个机构结算帐户联行号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcClearBrchIDType[6]; ///////////////////////////////////////////////////////////////////////// -///TFtdcClearNameTypeһʻ +/// TFtdcClearNameType是一个机构结算帐户名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcClearNameType[71]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankAccountNameTypeһʻ +/// TFtdcBankAccountNameType是一个银行帐户名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankAccountNameType[71]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvDepIDTypeһͶ˺Ż +/// TFtdcInvDepIDType是一个机构投资人账号机构号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInvDepIDType[6]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvBrchIDTypeһͶк +/// TFtdcInvBrchIDType是一个机构投资人联行号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInvBrchIDType[6]; ///////////////////////////////////////////////////////////////////////// -///TFtdcMessageFormatVersionTypeһϢʽ汾 +/// TFtdcMessageFormatVersionType是一个信息格式版本类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcMessageFormatVersionType[36]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDigestTypeһժҪ +/// TFtdcDigestType是一个摘要类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcDigestType[36]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAuthenticDataTypeһ֤ +/// TFtdcAuthenticDataType是一个认证数据类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAuthenticDataType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPasswordKeyTypeһԿ +/// TFtdcPasswordKeyType是一个密钥类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPasswordKeyType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFutureAccountNameTypeһڻʻ +/// TFtdcFutureAccountNameType是一个期货帐户名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFutureAccountNameType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcMobilePhoneTypeһֻ +/// TFtdcMobilePhoneType是一个手机类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcMobilePhoneType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFutureMainKeyTypeһڻ˾Կ +/// TFtdcFutureMainKeyType是一个期货公司主密钥类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFutureMainKeyType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFutureWorkKeyTypeһڻ˾Կ +/// TFtdcFutureWorkKeyType是一个期货公司工作密钥类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFutureWorkKeyType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFutureTransKeyTypeһڻ˾Կ +/// TFtdcFutureTransKeyType是一个期货公司传输密钥类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFutureTransKeyType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankMainKeyTypeһԿ +/// TFtdcBankMainKeyType是一个银行主密钥类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankMainKeyType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankWorkKeyTypeһйԿ +/// TFtdcBankWorkKeyType是一个银行工作密钥类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankWorkKeyType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankTransKeyTypeһдԿ +/// TFtdcBankTransKeyType是一个银行传输密钥类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankTransKeyType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankServerDescriptionTypeһзϢ +/// TFtdcBankServerDescriptionType是一个银行服务器描述信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankServerDescriptionType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAddInfoTypeһϢ +/// TFtdcAddInfoType是一个附加信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAddInfoType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDescrInfoForReturnCodeTypeһ +/// TFtdcDescrInfoForReturnCodeType是一个返回码描述类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcDescrInfoForReturnCodeType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCountryCodeTypeһҴ +/// TFtdcCountryCodeType是一个国家代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCountryCodeType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSerialTypeһˮ +/// TFtdcSerialType是一个流水号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcSerialType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPlateSerialTypeһƽ̨ˮ +/// TFtdcPlateSerialType是一个平台流水号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcPlateSerialType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankSerialTypeһˮ +/// TFtdcBankSerialType是一个银行流水号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankSerialType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCorrectSerialTypeһˮ +/// TFtdcCorrectSerialType是一个被冲正交易流水号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcCorrectSerialType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFutureSerialTypeһڻ˾ˮ +/// TFtdcFutureSerialType是一个期货公司流水号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcFutureSerialType; ///////////////////////////////////////////////////////////////////////// -///TFtdcApplicationIDTypeһӦñʶ +/// TFtdcApplicationIDType是一个应用标识类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcApplicationIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankProxyIDTypeһдʶ +/// TFtdcBankProxyIDType是一个银行代理标识类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcBankProxyIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBTCoreIDTypeһתʺϵͳʶ +/// TFtdcFBTCoreIDType是一个银期转帐核心系统标识类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcFBTCoreIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcServerPortTypeһ˿ں +/// TFtdcServerPortType是一个服务端口号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcServerPortType; ///////////////////////////////////////////////////////////////////////// -///TFtdcRepealedTimesTypeһѾ +/// TFtdcRepealedTimesType是一个已经冲正次数类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcRepealedTimesType; ///////////////////////////////////////////////////////////////////////// -///TFtdcRepealTimeIntervalTypeһʱ +/// TFtdcRepealTimeIntervalType是一个冲正时间间隔类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcRepealTimeIntervalType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTotalTimesTypeһÿۼתʴ +/// TFtdcTotalTimesType是一个每日累计转帐次数类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcTotalTimesType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBTRequestIDTypeһID +/// TFtdcFBTRequestIDType是一个请求ID类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcFBTRequestIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTIDTypeһID +/// TFtdcTIDType是一个交易ID类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcTIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradeAmountTypeһ׽Ԫ +/// TFtdcTradeAmountType是一个交易金额(元)类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcTradeAmountType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCustFeeTypeһӦտͻãԪ +/// TFtdcCustFeeType是一个应收客户费用(元)类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcCustFeeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFutureFeeTypeһӦڻ˾ãԪ +/// TFtdcFutureFeeType是一个应收期货公司费用(元)类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcFutureFeeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSingleMaxAmtTypeһ޶ +/// TFtdcSingleMaxAmtType是一个单笔最高限额类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcSingleMaxAmtType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSingleMinAmtTypeһ޶ +/// TFtdcSingleMinAmtType是一个单笔最低限额类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcSingleMinAmtType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTotalAmtTypeһÿۼתʶ +/// TFtdcTotalAmtType是一个每日累计转帐额度类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcTotalAmtType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCertificationTypeTypeһ֤ +/// 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_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һļҵ +/// 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һ㳮־ +/// TFtdcCashExchangeCodeType是一个汇钞标志类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 汇 #define THOST_FTDC_CEC_Exchange '1' -/// +/// 钞 #define THOST_FTDC_CEC_Cash '2' typedef char TThostFtdcCashExchangeCodeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcYesNoIndicatorTypeһǻʶ +/// TFtdcYesNoIndicatorType是一个是或否标识类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 是 #define THOST_FTDC_YNI_Yes '0' -/// +/// 否 #define THOST_FTDC_YNI_No '1' typedef char TThostFtdcYesNoIndicatorType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBanlanceTypeTypeһ +/// 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һԱ +/// TFtdcGenderType是一个性别类型 ///////////////////////////////////////////////////////////////////////// -///δ֪״̬ +/// 未知状态 #define THOST_FTDC_GD_Unknown '0' -/// +/// 男 #define THOST_FTDC_GD_Male '1' -///Ů +/// 女 #define THOST_FTDC_GD_Female '2' typedef char TThostFtdcGenderType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFeePayFlagTypeһ֧־ +/// TFtdcFeePayFlagType是一个费用支付标志类型 ///////////////////////////////////////////////////////////////////////// -///淽֧ +/// 由受益方支付费用 #define THOST_FTDC_FPF_BEN '0' -///ɷͷ֧ +/// 由发送方支付费用 #define THOST_FTDC_FPF_OUR '1' -///ɷͷ֧ķã淽֧ܵķ +/// 由发送方支付发起的费用,受益方支付接受的费用 #define THOST_FTDC_FPF_SHA '2' typedef char TThostFtdcFeePayFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPassWordKeyTypeTypeһԿ +/// TFtdcPassWordKeyTypeType是一个密钥类型类型 ///////////////////////////////////////////////////////////////////////// -///Կ +/// 交换密钥 #define THOST_FTDC_PWKT_ExchangeKey '0' -///Կ +/// 密码密钥 #define THOST_FTDC_PWKT_PassWordKey '1' -///MACԿ +/// MAC密钥 #define THOST_FTDC_PWKT_MACKey '2' -///Կ +/// 报文密钥 #define THOST_FTDC_PWKT_MessageKey '3' typedef char TThostFtdcPassWordKeyTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBTPassWordTypeTypeһ +/// 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һܷʽ +/// TFtdcFBTEncryModeType是一个加密方式类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 不加密 #define THOST_FTDC_EM_NoEncry '0' -///DES +/// DES #define THOST_FTDC_EM_DES '1' -///3DES +/// 3DES #define THOST_FTDC_EM_3DES '2' typedef char TThostFtdcFBTEncryModeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankRepealFlagTypeһг־ +/// TFtdcBankRepealFlagType是一个银行冲正标志类型 ///////////////////////////////////////////////////////////////////////// -///Զ +/// 银行无需自动冲正 #define THOST_FTDC_BRF_BankNotNeedRepeal '0' -///дԶ +/// 银行待自动冲正 #define THOST_FTDC_BRF_BankWaitingRepeal '1' -///Զ +/// 银行已自动冲正 #define THOST_FTDC_BRF_BankBeenRepealed '2' typedef char TThostFtdcBankRepealFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerRepealFlagTypeһ̳־ +/// TFtdcBrokerRepealFlagType是一个期商冲正标志类型 ///////////////////////////////////////////////////////////////////////// -///Զ +/// 期商无需自动冲正 #define THOST_FTDC_BRORF_BrokerNotNeedRepeal '0' -///̴Զ +/// 期商待自动冲正 #define THOST_FTDC_BRORF_BrokerWaitingRepeal '1' -///Զ +/// 期商已自动冲正 #define THOST_FTDC_BRORF_BrokerBeenRepealed '2' typedef char TThostFtdcBrokerRepealFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcInstitutionTypeTypeһ +/// TFtdcInstitutionTypeType是一个机构类别类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 银行 #define THOST_FTDC_TS_Bank '0' -/// +/// 期商 #define THOST_FTDC_TS_Future '1' -///ȯ +/// 券商 #define THOST_FTDC_TS_Store '2' typedef char TThostFtdcInstitutionTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcLastFragmentTypeһƬ־ +/// TFtdcLastFragmentType是一个最后分片标志类型 ///////////////////////////////////////////////////////////////////////// -///Ƭ +/// 是最后分片 #define THOST_FTDC_LF_Yes '0' -///Ƭ +/// 不是最后分片 #define THOST_FTDC_LF_No '1' typedef char TThostFtdcLastFragmentType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankAccStatusTypeһ˻״̬ +/// TFtdcBankAccStatusType是一个银行账户状态类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 正常 #define THOST_FTDC_BAS_Normal '0' -/// +/// 冻结 #define THOST_FTDC_BAS_Freeze '1' -///ʧ +/// 挂失 #define THOST_FTDC_BAS_ReportLoss '2' typedef char TThostFtdcBankAccStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcMoneyAccountStatusTypeһʽ˻״̬ +/// TFtdcMoneyAccountStatusType是一个资金账户状态类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 正常 #define THOST_FTDC_MAS_Normal '0' -/// +/// 销户 #define THOST_FTDC_MAS_Cancel '1' typedef char TThostFtdcMoneyAccountStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcManageStatusTypeһ״̬ +/// TFtdcManageStatusType是一个存管状态类型 ///////////////////////////////////////////////////////////////////////// -///ָ +/// 指定存管 #define THOST_FTDC_MSS_Point '0' -///Ԥָ +/// 预指定 #define THOST_FTDC_MSS_PrePoint '1' -///ָ +/// 撤销指定 #define THOST_FTDC_MSS_CancelPoint '2' typedef char TThostFtdcManageStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSystemTypeTypeһӦϵͳ +/// TFtdcSystemTypeType是一个应用系统类型类型 ///////////////////////////////////////////////////////////////////////// -///ת +/// 银期转帐 #define THOST_FTDC_SYT_FutureBankTransfer '0' -///֤ת +/// 银证转帐 #define THOST_FTDC_SYT_StockBankTransfer '1' -/// +/// 第三方存管 #define THOST_FTDC_SYT_TheThirdPartStore '2' typedef char TThostFtdcSystemTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTxnEndFlagTypeһתʻת־ +/// 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һתʷ״̬ +/// TFtdcProcessStatusType是一个银期转帐服务处理状态类型 ///////////////////////////////////////////////////////////////////////// -///δ +/// 未处理 #define THOST_FTDC_PSS_NotProcess '0' -///ʼ +/// 开始处理 #define THOST_FTDC_PSS_StartProcess '1' -/// +/// 处理完成 #define THOST_FTDC_PSS_Finished '2' typedef char TThostFtdcProcessStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCustTypeTypeһͻ +/// TFtdcCustTypeType是一个客户类型类型 ///////////////////////////////////////////////////////////////////////// -///Ȼ +/// 自然人 #define THOST_FTDC_CUSTT_Person '0' -/// +/// 机构户 #define THOST_FTDC_CUSTT_Institution '1' typedef char TThostFtdcCustTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBTTransferDirectionTypeһתʷ +/// TFtdcFBTTransferDirectionType是一个银期转帐方向类型 ///////////////////////////////////////////////////////////////////////// -///תڻ +/// 入金,银行转期货 #define THOST_FTDC_FBTTD_FromBankToFuture '1' -///ڻת +/// 出金,期货转银行 #define THOST_FTDC_FBTTD_FromFutureToBank '2' typedef char TThostFtdcFBTTransferDirectionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOpenOrDestroyTypeһ +/// TFtdcOpenOrDestroyType是一个开销户类别类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 开户 #define THOST_FTDC_OOD_Open '1' -/// +/// 销户 #define THOST_FTDC_OOD_Destroy '0' typedef char TThostFtdcOpenOrDestroyType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAvailabilityFlagTypeһЧ־ +/// TFtdcAvailabilityFlagType是一个有效标志类型 ///////////////////////////////////////////////////////////////////////// -///δȷ +/// 未确认 #define THOST_FTDC_AVAF_Invalid '0' -///Ч +/// 有效 #define THOST_FTDC_AVAF_Valid '1' -/// +/// 冲正 #define THOST_FTDC_AVAF_Repeal '2' typedef char TThostFtdcAvailabilityFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrganTypeTypeһ +/// TFtdcOrganTypeType是一个机构类型类型 ///////////////////////////////////////////////////////////////////////// -///д +/// 银行代理 #define THOST_FTDC_OT_Bank '1' -///ǰ +/// 交易前置 #define THOST_FTDC_OT_Future '2' -///תƽ̨ +/// 银期转帐平台管理 #define THOST_FTDC_OT_PlateForm '9' typedef char TThostFtdcOrganTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrganLevelTypeһ +/// TFtdcOrganLevelType是一个机构级别类型 ///////////////////////////////////////////////////////////////////////// -///лܲ +/// 银行总行或期商总部 #define THOST_FTDC_OL_HeadQuarters '1' -///зĻڻ˾Ӫҵ +/// 银行分中心或期货公司营业部 #define THOST_FTDC_OL_Branch '2' typedef char TThostFtdcOrganLevelType; ///////////////////////////////////////////////////////////////////////// -///TFtdcProtocalIDTypeһЭ +/// 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һ׽ӷʽ +/// TFtdcConnectModeType是一个套接字连接方式类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 短连接 #define THOST_FTDC_CM_ShortConnect '0' -/// +/// 长连接 #define THOST_FTDC_CM_LongConnect '1' typedef char TThostFtdcConnectModeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSyncModeTypeһ׽ͨŷʽ +/// TFtdcSyncModeType是一个套接字通信方式类型 ///////////////////////////////////////////////////////////////////////// -///첽 +/// 异步 #define THOST_FTDC_SRM_ASync '0' -///ͬ +/// 同步 #define THOST_FTDC_SRM_Sync '1' typedef char TThostFtdcSyncModeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankAccTypeTypeһʺ +/// TFtdcBankAccTypeType是一个银行帐号类型类型 ///////////////////////////////////////////////////////////////////////// -///д +/// 银行存折 #define THOST_FTDC_BAT_BankBook '1' -/// +/// 储蓄卡 #define THOST_FTDC_BAT_SavingCard '2' -///ÿ +/// 信用卡 #define THOST_FTDC_BAT_CreditCard '3' typedef char TThostFtdcBankAccTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFutureAccTypeTypeһڻ˾ʺ +/// TFtdcFutureAccTypeType是一个期货公司帐号类型类型 ///////////////////////////////////////////////////////////////////////// -///д +/// 银行存折 #define THOST_FTDC_FAT_BankBook '1' -/// +/// 储蓄卡 #define THOST_FTDC_FAT_SavingCard '2' -///ÿ +/// 信用卡 #define THOST_FTDC_FAT_CreditCard '3' typedef char TThostFtdcFutureAccTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrganStatusTypeһ״̬ +/// 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һշģʽ +/// TFtdcCCBFeeModeType是一个建行收费模式类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 按金额扣收 #define THOST_FTDC_CCBFM_ByAmount '1' -///¿ +/// 按月扣收 #define THOST_FTDC_CCBFM_ByMonth '2' typedef char TThostFtdcCCBFeeModeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCommApiTypeTypeһͨѶAPI +/// TFtdcCommApiTypeType是一个通讯API类型类型 ///////////////////////////////////////////////////////////////////////// -///ͻ +/// 客户端 #define THOST_FTDC_CAPIT_Client '1' -/// +/// 服务端 #define THOST_FTDC_CAPIT_Server '2' -///ϵͳUserApi +/// 交易系统的UserApi #define THOST_FTDC_CAPIT_UserApi '3' typedef char TThostFtdcCommApiTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcServiceIDTypeһ +/// TFtdcServiceIDType是一个服务编号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcServiceIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcServiceLineNoTypeһ· +/// TFtdcServiceLineNoType是一个服务线路编号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcServiceLineNoType; ///////////////////////////////////////////////////////////////////////// -///TFtdcServiceNameTypeһ +/// TFtdcServiceNameType是一个服务名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcServiceNameType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcLinkStatusTypeһ״̬ +/// TFtdcLinkStatusType是一个连接状态类型 ///////////////////////////////////////////////////////////////////////// -///Ѿ +/// 已经连接 #define THOST_FTDC_LS_Connected '1' -///û +/// 没有连接 #define THOST_FTDC_LS_Disconnected '2' typedef char TThostFtdcLinkStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCommApiPointerTypeһͨѶAPIָ +/// TFtdcCommApiPointerType是一个通讯API指针类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcCommApiPointerType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPwdFlagTypeһ˶Ա־ +/// TFtdcPwdFlagType是一个密码核对标志类型 ///////////////////////////////////////////////////////////////////////// -///˶ +/// 不核对 #define THOST_FTDC_BPWDF_NoCheck '0' -///ĺ˶ +/// 明文核对 #define THOST_FTDC_BPWDF_BlankCheck '1' -///ĺ˶ +/// 密文核对 #define THOST_FTDC_BPWDF_EncryptCheck '2' typedef char TThostFtdcPwdFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSecuAccTypeTypeһڻʺ +/// 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һת˽״̬ +/// TFtdcTransferStatusType是一个转账交易状态类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 正常 #define THOST_FTDC_TRFS_Normal '0' -/// +/// 被冲正 #define THOST_FTDC_TRFS_Repealed '1' typedef char TThostFtdcTransferStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSponsorTypeTypeһ +/// TFtdcSponsorTypeType是一个发起方类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 期商 #define THOST_FTDC_SPTYPE_Broker '0' -/// +/// 银行 #define THOST_FTDC_SPTYPE_Bank '1' typedef char TThostFtdcSponsorTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcReqRspTypeTypeһӦ +/// TFtdcReqRspTypeType是一个请求响应类别类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 请求 #define THOST_FTDC_REQRSP_Request '0' -///Ӧ +/// 响应 #define THOST_FTDC_REQRSP_Response '1' typedef char TThostFtdcReqRspTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBTUserEventTypeTypeһתû¼ +/// 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һԼı +/// TFtdcBankIDByBankType是一个银行自己的编码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankIDByBankType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankOperNoTypeһвԱ +/// TFtdcBankOperNoType是一个银行操作员号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankOperNoType[4]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankCustNoTypeһпͻ +/// TFtdcBankCustNoType是一个银行客户号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankCustNoType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDBOPSeqNoTypeһк +/// TFtdcDBOPSeqNoType是一个递增的序列号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcDBOPSeqNoType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTableNameTypeһFBT +/// TFtdcTableNameType是一个FBT表名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTableNameType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPKNameTypeһFBT +/// TFtdcPKNameType是一个FBT表操作主键名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPKNameType[201]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPKValueTypeһFBTֵ +/// TFtdcPKValueType是一个FBT表操作主键值类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPKValueType[501]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDBOperationTypeһ¼ +/// TFtdcDBOperationType是一个记录操作类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 插入 #define THOST_FTDC_DBOP_Insert '0' -/// +/// 更新 #define THOST_FTDC_DBOP_Update '1' -///ɾ +/// 删除 #define THOST_FTDC_DBOP_Delete '2' typedef char TThostFtdcDBOperationType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSyncFlagTypeһͬ +/// TFtdcSyncFlagType是一个同步标记类型 ///////////////////////////////////////////////////////////////////////// -///ͬ +/// 已同步 #define THOST_FTDC_SYNF_Yes '0' -///δͬ +/// 未同步 #define THOST_FTDC_SYNF_No '1' typedef char TThostFtdcSyncFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTargetIDTypeһͬĿ +/// TFtdcTargetIDType是一个同步目标编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTargetIDType[4]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSyncTypeTypeһͬ +/// TFtdcSyncTypeType是一个同步类型类型 ///////////////////////////////////////////////////////////////////////// -///һͬ +/// 一次同步 #define THOST_FTDC_SYNT_OneOffSync '0' -///ʱͬ +/// 定时同步 #define THOST_FTDC_SYNT_TimerSync '1' -///ʱȫͬ +/// 定时完全同步 #define THOST_FTDC_SYNT_TimerFullSync '2' typedef char TThostFtdcSyncTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBETimeTypeһֻʱ +/// TFtdcFBETimeType是一个各种换汇时间类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBETimeType[7]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEBankNoTypeһк +/// TFtdcFBEBankNoType是一个换汇银行行号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBEBankNoType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBECertNoTypeһƾ֤ +/// TFtdcFBECertNoType是一个换汇凭证号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBECertNoType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcExDirectionTypeһ㷽 +/// TFtdcExDirectionType是一个换汇方向类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 结汇 #define THOST_FTDC_FBEDIR_Settlement '0' -///ۻ +/// 售汇 #define THOST_FTDC_FBEDIR_Sale '1' typedef char TThostFtdcExDirectionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEBankAccountTypeһ˻ +/// TFtdcFBEBankAccountType是一个换汇银行账户类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBEBankAccountType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEBankAccountNameTypeһ˻ +/// TFtdcFBEBankAccountNameType是一个换汇银行账户名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBEBankAccountNameType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEAmtTypeһֻ +/// TFtdcFBEAmtType是一个各种换汇金额类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcFBEAmtType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEBusinessTypeTypeһҵ +/// TFtdcFBEBusinessTypeType是一个换汇业务类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBEBusinessTypeType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEPostScriptTypeһ㸽 +/// TFtdcFBEPostScriptType是一个换汇附言类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBEPostScriptType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBERemarkTypeһ㱸ע +/// TFtdcFBERemarkType是一个换汇备注类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBERemarkType[71]; ///////////////////////////////////////////////////////////////////////// -///TFtdcExRateTypeһ +/// TFtdcExRateType是一个换汇汇率类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcExRateType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEResultFlagTypeһɹ־ +/// 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һ㷵Ϣ +/// TFtdcFBERtnMsgType是一个换汇返回信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBERtnMsgType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEExtendMsgTypeһչϢ +/// TFtdcFBEExtendMsgType是一个换汇扩展信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBEExtendMsgType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEBusinessSerialTypeһˮ +/// TFtdcFBEBusinessSerialType是一个换汇记账流水号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBEBusinessSerialType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBESystemSerialTypeһˮ +/// TFtdcFBESystemSerialType是一个换汇流水号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBESystemSerialType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBETotalExCntTypeһ㽻ܱ +/// TFtdcFBETotalExCntType是一个换汇交易总笔数类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcFBETotalExCntType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEExchStatusTypeһ㽻״̬ +/// TFtdcFBEExchStatusType是一个换汇交易状态类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 正常 #define THOST_FTDC_FBEES_Normal '0' -///ط +/// 交易重发 #define THOST_FTDC_FBEES_ReExchange '1' typedef char TThostFtdcFBEExchStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEFileFlagTypeһļ־ +/// TFtdcFBEFileFlagType是一个换汇文件标志类型 ///////////////////////////////////////////////////////////////////////// -///ݰ +/// 数据包 #define THOST_FTDC_FBEFG_DataPackage '0' -///ļ +/// 文件 #define THOST_FTDC_FBEFG_File '1' typedef char TThostFtdcFBEFileFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEAlreadyTradeTypeһѽױ־ +/// TFtdcFBEAlreadyTradeType是一个换汇已交易标志类型 ///////////////////////////////////////////////////////////////////////// -///δ +/// 未交易 #define THOST_FTDC_FBEAT_NotTrade '0' -///ѽ +/// 已交易 #define THOST_FTDC_FBEAT_Trade '1' typedef char TThostFtdcFBEAlreadyTradeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEOpenBankTypeһ˻ +/// TFtdcFBEOpenBankType是一个换汇账户开户行类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBEOpenBankType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEUserEventTypeTypeһڻû¼ +/// 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һļ +/// TFtdcFBEFileNameType是一个换汇相关文件名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBEFileNameType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEBatchSerialTypeһκ +/// TFtdcFBEBatchSerialType是一个换汇批次号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFBEBatchSerialType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBEReqFlagTypeһ㷢ͱ־ +/// 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һ֪ͨ +/// 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һͻ֪ͨϢ +/// TFtdcRiskNofityInfoType是一个客户风险通知消息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRiskNofityInfoType[257]; ///////////////////////////////////////////////////////////////////////// -///TFtdcForceCloseSceneIdTypeһǿƽ +/// TFtdcForceCloseSceneIdType是一个强平场景编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcForceCloseSceneIdType[24]; ///////////////////////////////////////////////////////////////////////// -///TFtdcForceCloseTypeTypeһǿƽ +/// 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 +/// TFtdcInstrumentIDsType是一个多个产品代码,用+分隔,如cu+zn类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInstrumentIDsType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRiskNotifyMethodTypeһ֪ͨ; +/// 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һ֪ͨ״̬ +/// 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һû¼ +/// TFtdcRiskUserEventType是一个风控用户操作事件类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 导出数据 #define THOST_FTDC_RUE_ExportData '0' typedef char TThostFtdcRiskUserEventType; ///////////////////////////////////////////////////////////////////////// -///TFtdcParamIDTypeһ +/// TFtdcParamIDType是一个参数代码类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcParamIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcParamNameTypeһ +/// TFtdcParamNameType是一个参数名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcParamNameType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcParamValueTypeһֵ +/// TFtdcParamValueType是一个参数值类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcParamValueType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcConditionalOrderSortTypeTypeһ +/// 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һ״̬ +/// 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һױ״̬ +/// 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һҵ +/// TFtdcIndustryIDType是一个行业编码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcIndustryIDType[17]; ///////////////////////////////////////////////////////////////////////// -///TFtdcQuestionIDTypeһϢ +/// TFtdcQuestionIDType是一个特有信息编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcQuestionIDType[5]; ///////////////////////////////////////////////////////////////////////// -///TFtdcQuestionContentTypeһϢ˵ +/// TFtdcQuestionContentType是一个特有信息说明类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcQuestionContentType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOptionIDTypeһѡ +/// TFtdcOptionIDType是一个选项编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOptionIDType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOptionContentTypeһѡ˵ +/// TFtdcOptionContentType是一个选项说明类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOptionContentType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcQuestionTypeTypeһϢ +/// TFtdcQuestionTypeType是一个特有信息类型类型 ///////////////////////////////////////////////////////////////////////// -///ѡ +/// 单选 #define THOST_FTDC_QT_Radio '1' -///ѡ +/// 多选 #define THOST_FTDC_QT_Option '2' -/// +/// 填空 #define THOST_FTDC_QT_Blank '3' typedef char TThostFtdcQuestionTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcProcessIDTypeһҵˮ +/// TFtdcProcessIDType是一个业务流水号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcProcessIDType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSeqNoTypeһˮ +/// TFtdcSeqNoType是一个流水号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcSeqNoType; ///////////////////////////////////////////////////////////////////////// -///TFtdcUOAProcessStatusTypeһ״̬ +/// TFtdcUOAProcessStatusType是一个流程状态类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUOAProcessStatusType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcProcessTypeTypeһ̹ +/// TFtdcProcessTypeType是一个流程功能类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcProcessTypeType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBusinessTypeTypeһҵ +/// TFtdcBusinessTypeType是一个业务类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 请求 #define THOST_FTDC_BT_Request '1' -///Ӧ +/// 应答 #define THOST_FTDC_BT_Response '2' -///֪ͨ +/// 通知 #define THOST_FTDC_BT_Notice '3' typedef char TThostFtdcBusinessTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCfmmcReturnCodeTypeһķ +/// 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һ +/// TFtdcExReturnCodeType是一个交易所返回码类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcExReturnCodeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcClientTypeTypeһͻ +/// 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һ +/// 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һױ +/// TFtdcExClientIDTypeType是一个交易编码类型类型 ///////////////////////////////////////////////////////////////////////// -///ױ +/// 套保 #define THOST_FTDC_ECIDT_Hedge '1' -/// +/// 套利 #define THOST_FTDC_ECIDT_Arbitrage '2' -///Ͷ +/// 投机 #define THOST_FTDC_ECIDT_Speculation '3' typedef char TThostFtdcExClientIDTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcClientClassifyTypeһͻ +/// TFtdcClientClassifyType是一个客户分类码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcClientClassifyType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUOAOrganTypeTypeһλ +/// TFtdcUOAOrganTypeType是一个单位性质类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUOAOrganTypeType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUOACountryCodeTypeһҴ +/// TFtdcUOACountryCodeType是一个国家代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUOACountryCodeType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAreaCodeTypeһ +/// TFtdcAreaCodeType是一个区号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAreaCodeType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFuturesIDTypeһΪͻĴ +/// TFtdcFuturesIDType是一个监控中心为客户分配的代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFuturesIDType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCffmcDateTypeһ +/// TFtdcCffmcDateType是一个日期类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCffmcDateType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCffmcTimeTypeһʱ +/// TFtdcCffmcTimeType是一个时间类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCffmcTimeType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcNocIDTypeһ֯ +/// TFtdcNocIDType是一个组织机构代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcNocIDType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUpdateFlagTypeһ״̬ +/// 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һ붯 +/// 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һ״̬ +/// 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һͷʽ +/// TFtdcSendMethodType是一个发送方式类型 ///////////////////////////////////////////////////////////////////////// -///ļ +/// 文件发送 #define THOST_FTDC_UOASM_ByAPI '1' -///ӷ +/// 电子发送 #define THOST_FTDC_UOASM_ByFile '2' typedef char TThostFtdcSendMethodType; ///////////////////////////////////////////////////////////////////////// -///TFtdcEventTypeTypeһҵ +/// TFtdcEventTypeType是一个业务操作类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcEventTypeType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcEventModeTypeһ +/// 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һͳһԶ +/// 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һѯ +/// TFtdcQueryDepthType是一个查询深度类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcQueryDepthType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDataCenterIDTypeһĴ +/// TFtdcDataCenterIDType是一个数据中心代码类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcDataCenterIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFlowIDTypeһID +/// TFtdcFlowIDType是一个流程ID类型 ///////////////////////////////////////////////////////////////////////// -///Ͷ߶ӦͶ +/// 投资者对应投资者组设置 #define THOST_FTDC_EvM_InvestorGroupFlow '1' -///Ͷ +/// 投资者手续费率设置 #define THOST_FTDC_EvM_InvestorRate '2' -///Ͷģϵ +/// 投资者手续费率模板关系设置 #define THOST_FTDC_EvM_InvestorCommRateModel '3' typedef char TThostFtdcFlowIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCheckLevelTypeһ˼ +/// TFtdcCheckLevelType是一个复核级别类型 ///////////////////////////////////////////////////////////////////////// -///㼶 +/// 零级复核 #define THOST_FTDC_CL_Zero '0' -///һ +/// 一级复核 #define THOST_FTDC_CL_One '1' -/// +/// 二级复核 #define THOST_FTDC_CL_Two '2' typedef char TThostFtdcCheckLevelType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCheckNoTypeһ +/// TFtdcCheckNoType是一个操作次数类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcCheckNoType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCheckStatusTypeһ˼ +/// 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һЧ״̬ +/// TFtdcUsedStatusType是一个生效状态类型 ///////////////////////////////////////////////////////////////////////// -///δЧ +/// 未生效 #define THOST_FTDC_CHU_Unused '0' -///Ч +/// 已生效 #define THOST_FTDC_CHU_Used '1' -///Чʧ +/// 生效失败 #define THOST_FTDC_CHU_Fail '2' typedef char TThostFtdcUsedStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcRateTemplateNameTypeһģ +/// TFtdcRateTemplateNameType是一个模型名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRateTemplateNameType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPropertyStringTypeһڲѯͶֶ +/// TFtdcPropertyStringType是一个用于查询的投资属性字段类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPropertyStringType[2049]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankAcountOriginTypeһ˻Դ +/// TFtdcBankAcountOriginType是一个账户来源类型 ///////////////////////////////////////////////////////////////////////// -///ֹ¼ +/// 手工录入 #define THOST_FTDC_BAO_ByAccProperty '0' -///ת +/// 银期转账 #define THOST_FTDC_BAO_ByFBTransfer '1' typedef char TThostFtdcBankAcountOriginType; ///////////////////////////////////////////////////////////////////////// -///TFtdcMonthBillTradeSumTypeһ㵥±ɽܷʽ +/// TFtdcMonthBillTradeSumType是一个结算单月报成交汇总方式类型 ///////////////////////////////////////////////////////////////////////// -///ͬͬԼ +/// 同日同合约 #define THOST_FTDC_MBTS_ByInstrument '0' -///ͬͬԼͬ۸ +/// 同日同合约同价格 #define THOST_FTDC_MBTS_ByDayInsPrc '1' -///ͬԼ +/// 同合约 #define THOST_FTDC_MBTS_ByDayIns '2' typedef char TThostFtdcMonthBillTradeSumType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFBTTradeCodeEnumTypeһڽ״ö +/// 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һģʹ +/// TFtdcRateTemplateIDType是一个模型代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRateTemplateIDType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRiskRateTypeһն +/// TFtdcRiskRateType是一个风险度类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRiskRateType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcTimestampTypeһʱ +/// TFtdcTimestampType是一个时间戳类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcTimestampType; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorIDRuleNameTypeһŶι +/// TFtdcInvestorIDRuleNameType是一个号段规则名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInvestorIDRuleNameType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorIDRuleExprTypeһŶιʽ +/// TFtdcInvestorIDRuleExprType是一个号段规则表达式类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInvestorIDRuleExprType[513]; ///////////////////////////////////////////////////////////////////////// -///TFtdcLastDriftTypeһϴOTPƯֵ +/// TFtdcLastDriftType是一个上次OTP漂移值类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcLastDriftType; ///////////////////////////////////////////////////////////////////////// -///TFtdcLastSuccessTypeһϴOTPɹֵ +/// TFtdcLastSuccessType是一个上次OTP成功值类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcLastSuccessType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAuthKeyTypeһԿ +/// TFtdcAuthKeyType是一个令牌密钥类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAuthKeyType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSerialNumberTypeһк +/// TFtdcSerialNumberType是一个序列号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSerialNumberType[17]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOTPTypeTypeһ̬ +/// TFtdcOTPTypeType是一个动态令牌类型类型 ///////////////////////////////////////////////////////////////////////// -///޶̬ +/// 无动态令牌 #define THOST_FTDC_OTP_NONE '0' -///ʱ +/// 时间令牌 #define THOST_FTDC_OTP_TOTP '1' typedef char TThostFtdcOTPTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOTPVendorsIDTypeһ̬ṩ +/// TFtdcOTPVendorsIDType是一个动态令牌提供商类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOTPVendorsIDType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOTPVendorsNameTypeһ̬ṩ +/// TFtdcOTPVendorsNameType是一个动态令牌提供商名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOTPVendorsNameType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOTPStatusTypeһ̬״̬ +/// TFtdcOTPStatusType是一个动态令牌状态类型 ///////////////////////////////////////////////////////////////////////// -///δʹ +/// 未使用 #define THOST_FTDC_OTPS_Unused '0' -///ʹ +/// 已使用 #define THOST_FTDC_OTPS_Used '1' -///ע +/// 注销 #define THOST_FTDC_OTPS_Disuse '2' typedef char TThostFtdcOTPStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBrokerUserTypeTypeһù˾û +/// TFtdcBrokerUserTypeType是一个经济公司用户类型类型 ///////////////////////////////////////////////////////////////////////// -///Ͷ +/// 投资者 #define THOST_FTDC_BUT_Investor '1' -///Ա +/// 操作员 #define THOST_FTDC_BUT_BrokerUser '2' typedef char TThostFtdcBrokerUserTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFutureTypeTypeһڻ +/// TFtdcFutureTypeType是一个期货类型类型 ///////////////////////////////////////////////////////////////////////// -///Ʒڻ +/// 商品期货 #define THOST_FTDC_FUTT_Commodity '1' -///ڻ +/// 金融期货 #define THOST_FTDC_FUTT_Financial '2' typedef char TThostFtdcFutureTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFundEventTypeTypeһʽ +/// 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һʽ˻Դ +/// TFtdcAccountSourceTypeType是一个资金账户来源类型 ///////////////////////////////////////////////////////////////////////// -///ͬ +/// 银期同步 #define THOST_FTDC_AST_FBTransfer '0' -///ֹ¼ +/// 手工录入 #define THOST_FTDC_AST_ManualEntry '1' typedef char TThostFtdcAccountSourceTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCodeSourceTypeTypeһױԴ +/// TFtdcCodeSourceTypeType是一个交易编码来源类型 ///////////////////////////////////////////////////////////////////////// -///ͳһ(ѹ淶) +/// 统一开户(已规范) #define THOST_FTDC_CST_UnifyAccount '0' -///ֹ¼(δ淶) +/// 手工录入(未规范) #define THOST_FTDC_CST_ManualEntry '1' typedef char TThostFtdcCodeSourceTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcUserRangeTypeһԱΧ +/// TFtdcUserRangeType是一个操作员范围类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 所有 #define THOST_FTDC_UR_All '0' -///һԱ +/// 单一操作员 #define THOST_FTDC_UR_Single '1' typedef char TThostFtdcUserRangeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTimeSpanTypeһʱ +/// TFtdcTimeSpanType是一个时间跨度类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcTimeSpanType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcImportSequenceIDTypeһ̬Ƶα +/// TFtdcImportSequenceIDType是一个动态令牌导入批次编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcImportSequenceIDType[17]; ///////////////////////////////////////////////////////////////////////// -///TFtdcByGroupTypeһͳƱͻͳƷʽ +/// TFtdcByGroupType是一个交易统计表按客户统计方式类型 ///////////////////////////////////////////////////////////////////////// -///Ͷͳ +/// 按投资者统计 #define THOST_FTDC_BG_Investor '2' -///ͳ +/// 按类统计 #define THOST_FTDC_BG_Group '1' typedef char TThostFtdcByGroupType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradeSumStatModeTypeһͳƱΧͳƷʽ +/// TFtdcTradeSumStatModeType是一个交易统计表按范围统计方式类型 ///////////////////////////////////////////////////////////////////////// -///Լͳ +/// 按合约统计 #define THOST_FTDC_TSSM_Instrument '1' -///Ʒͳ +/// 按产品统计 #define THOST_FTDC_TSSM_Product '2' -///ͳ +/// 按交易所统计 #define THOST_FTDC_TSSM_Exchange '3' typedef char TThostFtdcTradeSumStatModeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcComTypeTypeһϳɽ +/// TFtdcComTypeType是一个组合成交类型类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcComTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcUserProductIDTypeһƷʶ +/// TFtdcUserProductIDType是一个产品标识类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUserProductIDType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUserProductNameTypeһƷ +/// TFtdcUserProductNameType是一个产品名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUserProductNameType[65]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUserProductMemoTypeһƷ˵ +/// TFtdcUserProductMemoType是一个产品说明类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUserProductMemoType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCCancelFlagTypeһ־ +/// TFtdcCSRCCancelFlagType是一个新增或变更标志类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCCancelFlagType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCDateTypeһ +/// TFtdcCSRCDateType是一个日期类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCDateType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCInvestorNameTypeһͻ +/// TFtdcCSRCInvestorNameType是一个客户名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCInvestorNameType[201]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCOpenInvestorNameTypeһͻ +/// TFtdcCSRCOpenInvestorNameType是一个客户名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCOpenInvestorNameType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCInvestorIDTypeһͻ +/// TFtdcCSRCInvestorIDType是一个客户代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCInvestorIDType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCIdentifiedCardNoTypeһ֤ +/// TFtdcCSRCIdentifiedCardNoType是一个证件号码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCIdentifiedCardNoType[51]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCClientIDTypeһױ +/// TFtdcCSRCClientIDType是一个交易编码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCClientIDType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCBankFlagTypeһбʶ +/// TFtdcCSRCBankFlagType是一个银行标识类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCBankFlagType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCBankAccountTypeһ˻ +/// TFtdcCSRCBankAccountType是一个银行账户类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCBankAccountType[23]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCOpenNameTypeһ +/// TFtdcCSRCOpenNameType是一个开户人类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCOpenNameType[401]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCMemoTypeһ˵ +/// TFtdcCSRCMemoType是一个说明类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCMemoType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCTimeTypeһʱ +/// TFtdcCSRCTimeType是一个时间类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCTimeType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCTradeIDTypeһɽˮ +/// TFtdcCSRCTradeIDType是一个成交流水号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCTradeIDType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCExchangeInstIDTypeһԼ +/// TFtdcCSRCExchangeInstIDType是一个合约代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCExchangeInstIDType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCMortgageNameTypeһѺƷ +/// TFtdcCSRCMortgageNameType是一个质押品名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCMortgageNameType[7]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCReasonTypeһ +/// TFtdcCSRCReasonType是一个事由类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCReasonType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcIsSettlementTypeһǷΪǽԱ +/// TFtdcIsSettlementType是一个是否为非结算会员类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcIsSettlementType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCMoneyTypeһʽ +/// TFtdcCSRCMoneyType是一个资金类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcCSRCMoneyType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCPriceTypeһ۸ +/// TFtdcCSRCPriceType是一个价格类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcCSRCPriceType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCOptionsTypeTypeһȨ +/// TFtdcCSRCOptionsTypeType是一个期权类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCOptionsTypeType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCStrikePriceTypeһִм +/// TFtdcCSRCStrikePriceType是一个执行价类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcCSRCStrikePriceType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCTargetProductIDTypeһƷ +/// TFtdcCSRCTargetProductIDType是一个标的品种类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCTargetProductIDType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCTargetInstrIDTypeһĺԼ +/// TFtdcCSRCTargetInstrIDType是一个标的合约类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCTargetInstrIDType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCommModelNameTypeһģ +/// TFtdcCommModelNameType是一个手续费率模板名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCommModelNameType[161]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCommModelMemoTypeһģ屸ע +/// TFtdcCommModelMemoType是一个手续费率模板备注类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCommModelMemoType[1025]; ///////////////////////////////////////////////////////////////////////// -///TFtdcExprSetModeTypeһڱʽ +/// TFtdcExprSetModeType是一个日期表达式设置类型类型 ///////////////////////////////////////////////////////////////////////// -///й +/// 相对已有规则设置 #define THOST_FTDC_ESM_Relative '1' -/// +/// 典型设置 #define THOST_FTDC_ESM_Typical '2' typedef char TThostFtdcExprSetModeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcRateInvestorRangeTypeһͶ߷Χ +/// TFtdcRateInvestorRangeType是一个投资者范围类型 ///////////////////////////////////////////////////////////////////////// -///˾׼ +/// 公司标准 #define THOST_FTDC_RIR_All '1' -///ģ +/// 模板 #define THOST_FTDC_RIR_Model '2' -///һͶ +/// 单一投资者 #define THOST_FTDC_RIR_Single '3' typedef char TThostFtdcRateInvestorRangeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAgentBrokerIDTypeһ͹˾ +/// TFtdcAgentBrokerIDType是一个代理经纪公司代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAgentBrokerIDType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDRIdentityIDTypeһĴ +/// TFtdcDRIdentityIDType是一个交易中心代码类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcDRIdentityIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDRIdentityNameTypeһ +/// TFtdcDRIdentityNameType是一个交易中心名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcDRIdentityNameType[65]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDBLinkIDTypeһDBLinkʶ +/// TFtdcDBLinkIDType是一个DBLink标识号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcDBLinkIDType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSyncDataStatusTypeһϵͳͬ״̬ +/// TFtdcSyncDataStatusType是一个主次用系统数据同步状态类型 ///////////////////////////////////////////////////////////////////////// -///δͬ +/// 未同步 #define THOST_FTDC_SDS_Initialize '0' -///ͬ +/// 同步中 #define THOST_FTDC_SDS_Settlementing '1' -///ͬ +/// 已同步 #define THOST_FTDC_SDS_Settlemented '2' typedef char TThostFtdcSyncDataStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradeSourceTypeһɽԴ +/// TFtdcTradeSourceType是一个成交来源类型 ///////////////////////////////////////////////////////////////////////// -///Խͨر +/// 来自交易所普通回报 #define THOST_FTDC_TSRC_NORMAL '0' -///Բѯ +/// 来自查询 #define THOST_FTDC_TSRC_QUERY '1' typedef char TThostFtdcTradeSourceType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFlexStatModeTypeһƷԼͳƷʽ +/// TFtdcFlexStatModeType是一个产品合约统计方式类型 ///////////////////////////////////////////////////////////////////////// -///Ʒͳ +/// 产品统计 #define THOST_FTDC_FSM_Product '1' -///ͳ +/// 交易所统计 #define THOST_FTDC_FSM_Exchange '2' -///ͳ +/// 统计所有 #define THOST_FTDC_FSM_All '3' typedef char TThostFtdcFlexStatModeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcByInvestorRangeTypeһͶ߷ΧͳƷʽ +/// TFtdcByInvestorRangeType是一个投资者范围统计方式类型 ///////////////////////////////////////////////////////////////////////// -///ͳ +/// 属性统计 #define THOST_FTDC_BIR_Property '1' -///ͳ +/// 统计所有 #define THOST_FTDC_BIR_All '2' typedef char TThostFtdcByInvestorRangeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSRiskRateTypeһն +/// TFtdcSRiskRateType是一个风险度类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSRiskRateType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSequenceNo12Typeһ +/// TFtdcSequenceNo12Type是一个序号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcSequenceNo12Type; ///////////////////////////////////////////////////////////////////////// -///TFtdcPropertyInvestorRangeTypeһͶ߷Χ +/// TFtdcPropertyInvestorRangeType是一个投资者范围类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 所有 #define THOST_FTDC_PIR_All '1' -///Ͷ +/// 投资者属性 #define THOST_FTDC_PIR_Property '2' -///һͶ +/// 单一投资者 #define THOST_FTDC_PIR_Single '3' typedef char TThostFtdcPropertyInvestorRangeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFileStatusTypeһļ״̬ +/// TFtdcFileStatusType是一个文件状态类型 ///////////////////////////////////////////////////////////////////////// -///δ +/// 未生成 #define THOST_FTDC_FIS_NoCreate '0' -/// +/// 已生成 #define THOST_FTDC_FIS_Created '1' -///ʧ +/// 生成失败 #define THOST_FTDC_FIS_Failed '2' typedef char TThostFtdcFileStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFileGenStyleTypeһļɷʽ +/// TFtdcFileGenStyleType是一个文件生成方式类型 ///////////////////////////////////////////////////////////////////////// -///· +/// 下发 #define THOST_FTDC_FGS_FileTransmit '0' -/// +/// 生成 #define THOST_FTDC_FGS_FileGen '1' typedef char TThostFtdcFileGenStyleType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSysOperModeTypeһϵͳ־ +/// 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һϵͳ־ +/// 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 +/// 用户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һϱݲѯ +/// TFtdcCSRCDataQueyTypeType是一个上报数据查询类型类型 ///////////////////////////////////////////////////////////////////////// -///ѯǰձ͵ +/// 查询当前交易日报送的数据 #define THOST_FTDC_CSRCQ_Current '0' -///ѯʷ͵Ĵ͹˾ +/// 查询历史报送的代理经纪公司的数据 #define THOST_FTDC_CSRCQ_History '1' typedef char TThostFtdcCSRCDataQueyTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFreezeStatusTypeһ״̬ +/// TFtdcFreezeStatusType是一个休眠状态类型 ///////////////////////////////////////////////////////////////////////// -///Ծ +/// 活跃 #define THOST_FTDC_FRS_Normal '1' -/// +/// 休眠 #define THOST_FTDC_FRS_Freeze '0' typedef char TThostFtdcFreezeStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcStandardStatusTypeһ淶״̬ +/// TFtdcStandardStatusType是一个规范状态类型 ///////////////////////////////////////////////////////////////////////// -///ѹ淶 +/// 已规范 #define THOST_FTDC_STST_Standard '0' -///δ淶 +/// 未规范 #define THOST_FTDC_STST_NonStandard '1' typedef char TThostFtdcStandardStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCFreezeStatusTypeһ״̬ +/// TFtdcCSRCFreezeStatusType是一个休眠状态类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCFreezeStatusType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRightParamTypeTypeһ +/// 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һģ +/// TFtdcRightTemplateIDType是一个模板代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRightTemplateIDType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRightTemplateNameTypeһģ +/// TFtdcRightTemplateNameType是一个模板名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRightTemplateNameType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDataStatusTypeһϴǮ˱״̬ +/// TFtdcDataStatusType是一个反洗钱审核表数据状态类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 正常 #define THOST_FTDC_AMLDS_Normal '0' -///ɾ +/// 已删除 #define THOST_FTDC_AMLDS_Deleted '1' typedef char TThostFtdcDataStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAMLCheckStatusTypeһ״̬ +/// 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һ +/// TFtdcAmlDateTypeType是一个日期类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 检查日期 #define THOST_FTDC_AMLDT_DrawDay '0' -/// +/// 发生日期 #define THOST_FTDC_AMLDT_TouchDay '1' typedef char TThostFtdcAmlDateTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAmlCheckLevelTypeһ˼ +/// 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һϴǮݳȡ +/// TFtdcAmlCheckFlowType是一个反洗钱数据抽取审核流程类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAmlCheckFlowType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDataTypeTypeһ +/// TFtdcDataTypeType是一个数据类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcDataTypeType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcExportFileTypeTypeһļ +/// TFtdcExportFileTypeType是一个导出文件类型类型 ///////////////////////////////////////////////////////////////////////// -///CSV +/// CSV #define THOST_FTDC_EFT_CSV '0' -///Excel +/// Excel #define THOST_FTDC_EFT_EXCEL '1' -///DBF +/// DBF #define THOST_FTDC_EFT_DBF '2' typedef char TThostFtdcExportFileTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSettleManagerTypeTypeһ +/// 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һô +/// TFtdcSettleManagerIDType是一个结算配置代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSettleManagerIDType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSettleManagerNameTypeһ +/// TFtdcSettleManagerNameType是一个结算配置名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSettleManagerNameType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSettleManagerLevelTypeһõȼ +/// 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һģ +/// TFtdcSettleManagerGroupType是一个模块分组类型 ///////////////////////////////////////////////////////////////////////// -///˶ +/// 交易所核对 #define THOST_FTDC_SMG_Exhcange '1' -///ڲ˶ +/// 内部核对 #define THOST_FTDC_SMG_ASP '2' -///ϱݺ˶ +/// 上报数据核对 #define THOST_FTDC_SMG_CSRC '3' typedef char TThostFtdcSettleManagerGroupType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCheckResultMemoTypeһ˶Խ˵ +/// TFtdcCheckResultMemoType是一个核对结果说明类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCheckResultMemoType[1025]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFunctionUrlTypeһ +/// TFtdcFunctionUrlType是一个功能链接类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcFunctionUrlType[1025]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAuthInfoTypeһͻ֤Ϣ +/// TFtdcAuthInfoType是一个客户端认证信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAuthInfoType[129]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAuthCodeTypeһͻ֤ +/// TFtdcAuthCodeType是一个客户端认证码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAuthCodeType[17]; ///////////////////////////////////////////////////////////////////////// -///TFtdcLimitUseTypeTypeһֵʹ +/// TFtdcLimitUseTypeType是一个保值额度使用类型类型 ///////////////////////////////////////////////////////////////////////// -///ظʹ +/// 可重复使用 #define THOST_FTDC_LUT_Repeatable '1' -///ظʹ +/// 不可重复使用 #define THOST_FTDC_LUT_Unrepeatable '2' typedef char TThostFtdcLimitUseTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDataResourceTypeһԴ +/// TFtdcDataResourceType是一个数据来源类型 ///////////////////////////////////////////////////////////////////////// -///ϵͳ +/// 本系统 #define THOST_FTDC_DAR_Settle '1' -/// +/// 交易所 #define THOST_FTDC_DAR_Exchange '2' -/// +/// 报送数据 #define THOST_FTDC_DAR_CSRC '3' typedef char TThostFtdcDataResourceType; ///////////////////////////////////////////////////////////////////////// -///TFtdcMarginTypeTypeһ֤ +/// TFtdcMarginTypeType是一个保证金类型类型 ///////////////////////////////////////////////////////////////////////// -///֤ +/// 交易所保证金率 #define THOST_FTDC_MGT_ExchMarginRate '0' -///Ͷ֤߱ +/// 投资者保证金率 #define THOST_FTDC_MGT_InstrMarginRate '1' -///Ͷ߽ױ֤ +/// 投资者交易保证金率 #define THOST_FTDC_MGT_InstrMarginRateTrade '2' typedef char TThostFtdcMarginTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcActiveTypeTypeһЧ +/// TFtdcActiveTypeType是一个生效类型类型 ///////////////////////////////////////////////////////////////////////// -///Ч +/// 仅当日生效 #define THOST_FTDC_ACT_Intraday '1' -///Ч +/// 长期生效 #define THOST_FTDC_ACT_Long '2' typedef char TThostFtdcActiveTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcMarginRateTypeTypeһͻ֤ +/// TFtdcMarginRateTypeType是一个冲突保证金率类型类型 ///////////////////////////////////////////////////////////////////////// -///֤ +/// 交易所保证金率 #define THOST_FTDC_MRT_Exchange '1' -///Ͷ֤߱ +/// 投资者保证金率 #define THOST_FTDC_MRT_Investor '2' -///Ͷ߽ױ֤ +/// 投资者交易保证金率 #define THOST_FTDC_MRT_InvestorTrade '3' typedef char TThostFtdcMarginRateTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBackUpStatusTypeһ״̬ +/// 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һʼ״̬ +/// TFtdcInitSettlementType是一个结算初始化状态类型 ///////////////////////////////////////////////////////////////////////// -///ʼδʼ +/// 结算初始化未开始 #define THOST_FTDC_SIS_UnInitialize '0' -///ʼ +/// 结算初始化中 #define THOST_FTDC_SIS_Initialize '1' -///ʼ +/// 结算初始化完成 #define THOST_FTDC_SIS_Initialized '2' typedef char TThostFtdcInitSettlementType; ///////////////////////////////////////////////////////////////////////// -///TFtdcReportStatusTypeһ״̬ +/// 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һݹ鵵״̬ +/// TFtdcSaveStatusType是一个数据归档状态类型 ///////////////////////////////////////////////////////////////////////// -///鵵δ +/// 归档未完成 #define THOST_FTDC_SSS_UnSaveData '0' -///鵵 +/// 归档完成 #define THOST_FTDC_SSS_SaveDatad '1' typedef char TThostFtdcSaveStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSettArchiveStatusTypeһȷݹ鵵״̬ +/// 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ϵͳ +/// TFtdcCTPTypeType是一个CTP交易系统类型类型 ///////////////////////////////////////////////////////////////////////// -///δ֪ +/// 未知类型 #define THOST_FTDC_CTPT_Unkown '0' -/// +/// 主中心 #define THOST_FTDC_CTPT_MainCenter '1' -/// +/// 备中心 #define THOST_FTDC_CTPT_BackUp '2' typedef char TThostFtdcCTPTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcToolIDTypeһߴ +/// TFtdcToolIDType是一个工具代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcToolIDType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcToolNameTypeһ +/// TFtdcToolNameType是一个工具名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcToolNameType[81]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCloseDealTypeTypeһƽִ +/// TFtdcCloseDealTypeType是一个平仓处理类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 正常 #define THOST_FTDC_CDT_Normal '0' -///Ͷƽ +/// 投机平仓优先 #define THOST_FTDC_CDT_SpecFirst '1' typedef char TThostFtdcCloseDealTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcMortgageFundUseRangeTypeһѺʽ÷Χ +/// TFtdcMortgageFundUseRangeType是一个货币质押资金可用范围类型 ///////////////////////////////////////////////////////////////////////// -///ʹ +/// 不能使用 #define THOST_FTDC_MFUR_None '0' -///ڱ֤ +/// 用于保证金 #define THOST_FTDC_MFUR_Margin '1' -///ѡӯ֤ +/// 用于手续费、盈亏、保证金 #define THOST_FTDC_MFUR_All '2' -///ҷ3 +/// 人民币方案3 #define THOST_FTDC_MFUR_CNY3 '3' typedef char TThostFtdcMortgageFundUseRangeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencyUnitTypeһֵλ +/// TFtdcCurrencyUnitType是一个币种单位数量类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcCurrencyUnitType; ///////////////////////////////////////////////////////////////////////// -///TFtdcExchangeRateTypeһ +/// TFtdcExchangeRateType是一个汇率类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcExchangeRateType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSpecProductTypeTypeһƷ +/// TFtdcSpecProductTypeType是一个特殊产品类型类型 ///////////////////////////////////////////////////////////////////////// -///֣ױƷ +/// 郑商所套保产品 #define THOST_FTDC_SPT_CzceHedge '1' -///ѺƷ +/// 货币质押产品 #define THOST_FTDC_SPT_IneForeignCurrency '2' -///߿ƽֲƷ +/// 大连短线开平仓产品 #define THOST_FTDC_SPT_DceOpenClose '3' typedef char TThostFtdcSpecProductTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFundMortgageTypeTypeһѺ +/// TFtdcFundMortgageTypeType是一个货币质押类型类型 ///////////////////////////////////////////////////////////////////////// -///Ѻ +/// 质押 #define THOST_FTDC_FMT_Mortgage '1' -/// +/// 解质 #define THOST_FTDC_FMT_Redemption '2' typedef char TThostFtdcFundMortgageTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAccountSettlementParamIDTypeһͶ˻ +/// TFtdcAccountSettlementParamIDType是一个投资者账户结算参数代码类型 ///////////////////////////////////////////////////////////////////////// -///֤ +/// 基础保证金 #define THOST_FTDC_ASPI_BaseMargin '1' -///Ȩ׼ +/// 最低权益标准 #define THOST_FTDC_ASPI_LowestInterest '2' typedef char TThostFtdcAccountSettlementParamIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencyNameTypeһ +/// TFtdcCurrencyNameType是一个币种名称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCurrencyNameType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencySignTypeһַ +/// TFtdcCurrencySignType是一个币种符号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCurrencySignType[4]; ///////////////////////////////////////////////////////////////////////// -///TFtdcFundMortDirectionTypeһѺ +/// TFtdcFundMortDirectionType是一个货币质押方向类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 货币质入 #define THOST_FTDC_FMD_In '1' -///ʳ +/// 货币质出 #define THOST_FTDC_FMD_Out '2' typedef char TThostFtdcFundMortDirectionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBusinessClassTypeһ +/// TFtdcBusinessClassType是一个换汇类别类型 ///////////////////////////////////////////////////////////////////////// -///ӯ +/// 盈利 #define THOST_FTDC_BT_Profit '0' -/// +/// 亏损 #define THOST_FTDC_BT_Loss '1' -/// +/// 其他 #define THOST_FTDC_BT_Other 'Z' typedef char TThostFtdcBusinessClassType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSwapSourceTypeTypeһԴ +/// TFtdcSwapSourceTypeType是一个换汇数据来源类型 ///////////////////////////////////////////////////////////////////////// -///ֹ +/// 手工 #define THOST_FTDC_SST_Manual '0' -///Զ +/// 自动生成 #define THOST_FTDC_SST_Automatic '1' typedef char TThostFtdcSwapSourceTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCurrExDirectionTypeһ +/// TFtdcCurrExDirectionType是一个换汇类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 结汇 #define THOST_FTDC_CED_Settlement '0' -///ۻ +/// 售汇 #define THOST_FTDC_CED_Sale '1' typedef char TThostFtdcCurrExDirectionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencySwapStatusTypeһ״̬ +/// 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һƾ֤ +/// TFtdcCurrExchCertNoType是一个凭证号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCurrExchCertNoType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBatchSerialNoTypeһκ +/// TFtdcBatchSerialNoType是一个批次号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBatchSerialNoType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcReqFlagTypeһ㷢ͱ־ +/// 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һ㷵سɹ־ +/// TFtdcResFlagType是一个换汇返回成功标志类型 ///////////////////////////////////////////////////////////////////////// -///ɹ +/// 成功 #define THOST_FTDC_RESF_Success '0' -///˻ +/// 账户余额不足 #define THOST_FTDC_RESF_InsuffiCient '1' -///׽δ֪ +/// 交易结果未知 #define THOST_FTDC_RESF_UnKnown '8' typedef char TThostFtdcResFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPageControlTypeһҳ +/// TFtdcPageControlType是一个换汇页面控制类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPageControlType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRecordCountTypeһ¼ +/// TFtdcRecordCountType是一个记录数类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcRecordCountType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCurrencySwapMemoTypeһȷϢ +/// TFtdcCurrencySwapMemoType是一个换汇需确认信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCurrencySwapMemoType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcExStatusTypeһ޸״̬ +/// TFtdcExStatusType是一个修改状态类型 ///////////////////////////////////////////////////////////////////////// -///޸ǰ +/// 修改前 #define THOST_FTDC_EXS_Before '0' -///޸ĺ +/// 修改后 #define THOST_FTDC_EXS_After '1' typedef char TThostFtdcExStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcClientRegionTypeһͻ +/// TFtdcClientRegionType是一个开户客户地域类型 ///////////////////////////////////////////////////////////////////////// -///ڿͻ +/// 国内客户 #define THOST_FTDC_CR_Domestic '1' -///۰̨ͻ +/// 港澳台客户 #define THOST_FTDC_CR_GMT '2' -///ͻ +/// 国外客户 #define THOST_FTDC_CR_Foreign '3' typedef char TThostFtdcClientRegionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcWorkPlaceTypeһλ +/// TFtdcWorkPlaceType是一个工作单位类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcWorkPlaceType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBusinessPeriodTypeһӪ +/// TFtdcBusinessPeriodType是一个经营期限类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBusinessPeriodType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcWebSiteTypeһַ +/// TFtdcWebSiteType是一个网址类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcWebSiteType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUOAIdCardTypeTypeһͳһ֤ +/// TFtdcUOAIdCardTypeType是一个统一开户证件类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUOAIdCardTypeType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcClientModeTypeһģʽ +/// TFtdcClientModeType是一个开户模式类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcClientModeType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvestorFullNameTypeһͶȫ +/// TFtdcInvestorFullNameType是一个投资者全称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInvestorFullNameType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUOABrokerIDTypeһнID +/// TFtdcUOABrokerIDType是一个境外中介机构ID类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUOABrokerIDType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUOAZipCodeTypeһ +/// TFtdcUOAZipCodeType是一个邮政编码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUOAZipCodeType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUOAEMailTypeһ +/// TFtdcUOAEMailType是一个电子邮箱类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUOAEMailType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOldCityTypeһ +/// TFtdcOldCityType是一个城市类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOldCityType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCorporateIdentifiedCardNoTypeһ˴֤ +/// TFtdcCorporateIdentifiedCardNoType是一个法人代表证件号码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCorporateIdentifiedCardNoType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcHasBoardTypeһǷж» +/// TFtdcHasBoardType是一个是否有董事会类型 ///////////////////////////////////////////////////////////////////////// -///û +/// 没有 #define THOST_FTDC_HB_No '0' -/// +/// 有 #define THOST_FTDC_HB_Yes '1' typedef char TThostFtdcHasBoardType; ///////////////////////////////////////////////////////////////////////// -///TFtdcStartModeTypeһģʽ +/// TFtdcStartModeType是一个启动模式类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 正常 #define THOST_FTDC_SM_Normal '1' -///Ӧ +/// 应急 #define THOST_FTDC_SM_Emerge '2' -///ָ +/// 恢复 #define THOST_FTDC_SM_Restore '3' typedef char TThostFtdcStartModeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTemplateTypeTypeһģ +/// TFtdcTemplateTypeType是一个模型类型类型 ///////////////////////////////////////////////////////////////////////// -///ȫ +/// 全量 #define THOST_FTDC_TPT_Full '1' -/// +/// 增量 #define THOST_FTDC_TPT_Increment '2' -/// +/// 备份 #define THOST_FTDC_TPT_BackUp '3' typedef char TThostFtdcTemplateTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcLoginModeTypeһ¼ģʽ +/// TFtdcLoginModeType是一个登录模式类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 交易 #define THOST_FTDC_LM_Trade '0' -///ת +/// 转账 #define THOST_FTDC_LM_Transfer '1' typedef char TThostFtdcLoginModeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPromptTypeTypeһʾ +/// TFtdcPromptTypeType是一个日历提示类型类型 ///////////////////////////////////////////////////////////////////////// -///Լ +/// 合约上下市 #define THOST_FTDC_CPT_Instrument '1' -///ֶ֤Ч +/// 保证金分段生效 #define THOST_FTDC_CPT_Margin '2' typedef char TThostFtdcPromptTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcLedgerManageIDTypeһֻʲ +/// TFtdcLedgerManageIDType是一个分户管理资产编码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcLedgerManageIDType[51]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvestVarietyTypeһͶƷ +/// TFtdcInvestVarietyType是一个投资品种类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInvestVarietyType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBankAccountTypeTypeһ˻ +/// TFtdcBankAccountTypeType是一个账户类别类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBankAccountTypeType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcLedgerManageBankTypeһ +/// TFtdcLedgerManageBankType是一个开户银行类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcLedgerManageBankType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCffexDepartmentNameTypeһӪҵ +/// TFtdcCffexDepartmentNameType是一个开户营业部类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCffexDepartmentNameType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCffexDepartmentCodeTypeһӪҵ +/// TFtdcCffexDepartmentCodeType是一个营业部代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCffexDepartmentCodeType[9]; ///////////////////////////////////////////////////////////////////////// -///TFtdcHasTrusteeTypeһǷй +/// TFtdcHasTrusteeType是一个是否有托管人类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 有 #define THOST_FTDC_HT_Yes '1' -///û +/// 没有 #define THOST_FTDC_HT_No '0' typedef char TThostFtdcHasTrusteeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCMemo1Typeһ˵ +/// TFtdcCSRCMemo1Type是一个说明类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCMemo1Type[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAssetmgrCFullNameTypeһʲҵڻ˾ȫ +/// TFtdcAssetmgrCFullNameType是一个代理资产管理业务的期货公司全称类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAssetmgrCFullNameType[101]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAssetmgrApprovalNOTypeһʲҵĺ +/// TFtdcAssetmgrApprovalNOType是一个资产管理业务批文号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAssetmgrApprovalNOType[51]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAssetmgrMgrNameTypeһʲҵ +/// TFtdcAssetmgrMgrNameType是一个资产管理业务负责人姓名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAssetmgrMgrNameType[401]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAmTypeTypeһ +/// 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һ +/// TFtdcCSRCAmTypeType是一个机构类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCAmTypeType[5]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCFundIOTypeTypeһ +/// TFtdcCSRCFundIOTypeType是一个出入金类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 出入金 #define THOST_FTDC_CFIOT_FundIO '0' -///ڻ +/// 银期换汇 #define THOST_FTDC_CFIOT_SwapCurrency '1' typedef char TThostFtdcCSRCFundIOTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCusAccountTypeTypeһ˻ +/// 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һ +/// TFtdcCSRCNationalType是一个国籍类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCNationalType[4]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCSRCSecAgentIDTypeһID +/// TFtdcCSRCSecAgentIDType是一个二级代理ID类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCSRCSecAgentIDType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcLanguageTypeTypeһ֪ͨ +/// TFtdcLanguageTypeType是一个通知语言类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 中文 #define THOST_FTDC_LT_Chinese '1' -///Ӣ +/// 英文 #define THOST_FTDC_LT_English '2' typedef char TThostFtdcLanguageTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAmAccountTypeһͶ˻ +/// TFtdcAmAccountType是一个投资账户类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAmAccountType[23]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAssetmgrClientTypeTypeһʲͻ +/// TFtdcAssetmgrClientTypeType是一个资产管理客户类型类型 ///////////////////////////////////////////////////////////////////////// -///ʹܿͻ +/// 个人资管客户 #define THOST_FTDC_AMCT_Person '1' -///λʹܿͻ +/// 单位资管客户 #define THOST_FTDC_AMCT_Organ '2' -///ⵥλʹܿͻ +/// 特殊单位资管客户 #define THOST_FTDC_AMCT_SpecialOrgan '4' typedef char TThostFtdcAssetmgrClientTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAssetmgrTypeTypeһͶ +/// TFtdcAssetmgrTypeType是一个投资类型类型 ///////////////////////////////////////////////////////////////////////// -///ڻ +/// 期货类 #define THOST_FTDC_ASST_Futures '3' -///ۺ +/// 综合类 #define THOST_FTDC_ASST_SpecialOrgan '4' typedef char TThostFtdcAssetmgrTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcUOMTypeһλ +/// TFtdcUOMType是一个计量单位类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcUOMType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSHFEInstLifePhaseTypeһԼ״̬ +/// TFtdcSHFEInstLifePhaseType是一个上期所合约生命周期状态类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSHFEInstLifePhaseType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSHFEProductClassTypeһƷ +/// TFtdcSHFEProductClassType是一个产品类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSHFEProductClassType[11]; ///////////////////////////////////////////////////////////////////////// -///TFtdcPriceDecimalTypeһ۸Сλ +/// TFtdcPriceDecimalType是一个价格小数位类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcPriceDecimalType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInTheMoneyFlagTypeһƽֵȨ־ +/// TFtdcInTheMoneyFlagType是一个平值期权标志类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInTheMoneyFlagType[2]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCheckInstrTypeTypeһԼȽ +/// TFtdcCheckInstrTypeType是一个合约比较类型类型 ///////////////////////////////////////////////////////////////////////// -///Լ +/// 合约交易所不存在 #define THOST_FTDC_CIT_HasExch '0' -///Լϵͳ +/// 合约本系统不存在 #define THOST_FTDC_CIT_HasATP '1' -///ԼȽϲһ +/// 合约比较不一致 #define THOST_FTDC_CIT_HasDiff '2' typedef char TThostFtdcCheckInstrTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDeliveryTypeTypeһ +/// TFtdcDeliveryTypeType是一个交割类型类型 ///////////////////////////////////////////////////////////////////////// -///ֹ +/// 手工交割 #define THOST_FTDC_DT_HandDeliv '1' -///ڽ +/// 到期交割 #define THOST_FTDC_DT_PersonDeliv '2' typedef char TThostFtdcDeliveryTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBigMoneyTypeһʽ +/// TFtdcBigMoneyType是一个资金类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcBigMoneyType; ///////////////////////////////////////////////////////////////////////// -///TFtdcMaxMarginSideAlgorithmTypeһ֤߱㷨 +/// TFtdcMaxMarginSideAlgorithmType是一个大额单边保证金算法类型 ///////////////////////////////////////////////////////////////////////// -///ʹô֤߱㷨 +/// 不使用大额单边保证金算法 #define THOST_FTDC_MMSA_NO '0' -///ʹô֤߱㷨 +/// 使用大额单边保证金算法 #define THOST_FTDC_MMSA_YES '1' typedef char TThostFtdcMaxMarginSideAlgorithmType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDAClientTypeTypeһʲͻ +/// TFtdcDAClientTypeType是一个资产管理客户类型类型 ///////////////////////////////////////////////////////////////////////// -///Ȼ +/// 自然人 #define THOST_FTDC_CACT_Person '0' -/// +/// 法人 #define THOST_FTDC_CACT_Company '1' -/// +/// 其他 #define THOST_FTDC_CACT_Other '2' typedef char TThostFtdcDAClientTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCombinInstrIDTypeһԼ +/// TFtdcCombinInstrIDType是一个套利合约代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCombinInstrIDType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCombinSettlePriceTypeһȽ +/// TFtdcCombinSettlePriceType是一个各腿结算价类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCombinSettlePriceType[61]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDCEPriorityTypeһȼ +/// TFtdcDCEPriorityType是一个优先级类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcDCEPriorityType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradeGroupIDTypeһɽ +/// TFtdcTradeGroupIDType是一个成交组号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcTradeGroupIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcIsCheckPrepaTypeһǷУ鿪ʽ +/// TFtdcIsCheckPrepaType是一个是否校验开户可用资金类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcIsCheckPrepaType; ///////////////////////////////////////////////////////////////////////// -///TFtdcUOAAssetmgrTypeTypeһͶ +/// TFtdcUOAAssetmgrTypeType是一个投资类型类型 ///////////////////////////////////////////////////////////////////////// -///ڻ +/// 期货类 #define THOST_FTDC_UOAAT_Futures '1' -///ۺ +/// 综合类 #define THOST_FTDC_UOAAT_SpecialOrgan '2' typedef char TThostFtdcUOAAssetmgrTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDirectionEnTypeһ +/// TFtdcDirectionEnType是一个买卖方向类型 ///////////////////////////////////////////////////////////////////////// -///Buy +/// Buy #define THOST_FTDC_DEN_Buy '0' -///Sell +/// Sell #define THOST_FTDC_DEN_Sell '1' typedef char TThostFtdcDirectionEnType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOffsetFlagEnTypeһƽ־ +/// TFtdcOffsetFlagEnType是一个开平标志类型 ///////////////////////////////////////////////////////////////////////// -///Position Opening +/// Position Opening #define THOST_FTDC_OFEN_Open '0' -///Position Close +/// Position Close #define THOST_FTDC_OFEN_Close '1' -///Forced Liquidation +/// Forced Liquidation #define THOST_FTDC_OFEN_ForceClose '2' -///Close Today +/// Close Today #define THOST_FTDC_OFEN_CloseToday '3' -///Close Prev. +/// Close Prev. #define THOST_FTDC_OFEN_CloseYesterday '4' -///Forced Reduction +/// Forced Reduction #define THOST_FTDC_OFEN_ForceOff '5' -///Local Forced Liquidation +/// Local Forced Liquidation #define THOST_FTDC_OFEN_LocalForceClose '6' typedef char TThostFtdcOffsetFlagEnType; ///////////////////////////////////////////////////////////////////////// -///TFtdcHedgeFlagEnTypeһͶױ־ +/// TFtdcHedgeFlagEnType是一个投机套保标志类型 ///////////////////////////////////////////////////////////////////////// -///Speculation +/// Speculation #define THOST_FTDC_HFEN_Speculation '1' -///Arbitrage +/// Arbitrage #define THOST_FTDC_HFEN_Arbitrage '2' -///Hedge +/// Hedge #define THOST_FTDC_HFEN_Hedge '3' typedef char TThostFtdcHedgeFlagEnType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFundIOTypeEnTypeһ +/// TFtdcFundIOTypeEnType是一个出入金类型类型 ///////////////////////////////////////////////////////////////////////// -///Deposit/Withdrawal +/// Deposit/Withdrawal #define THOST_FTDC_FIOTEN_FundIO '1' -///Bank-Futures Transfer +/// Bank-Futures Transfer #define THOST_FTDC_FIOTEN_Transfer '2' -///Bank-Futures FX Exchange +/// Bank-Futures FX Exchange #define THOST_FTDC_FIOTEN_SwapCurrency '3' typedef char TThostFtdcFundIOTypeEnType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFundTypeEnTypeһʽ +/// TFtdcFundTypeEnType是一个资金类型类型 ///////////////////////////////////////////////////////////////////////// -///Bank Deposit +/// Bank Deposit #define THOST_FTDC_FTEN_Deposite '1' -///Payment/Fee +/// Payment/Fee #define THOST_FTDC_FTEN_ItemFund '2' -///Brokerage Adj +/// Brokerage Adj #define THOST_FTDC_FTEN_Company '3' -///Internal Transfer +/// Internal Transfer #define THOST_FTDC_FTEN_InnerTransfer '4' typedef char TThostFtdcFundTypeEnType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFundDirectionEnTypeһ +/// TFtdcFundDirectionEnType是一个出入金方向类型 ///////////////////////////////////////////////////////////////////////// -///Deposit +/// Deposit #define THOST_FTDC_FDEN_In '1' -///Withdrawal +/// Withdrawal #define THOST_FTDC_FDEN_Out '2' typedef char TThostFtdcFundDirectionEnType; ///////////////////////////////////////////////////////////////////////// -///TFtdcFundMortDirectionEnTypeһѺ +/// TFtdcFundMortDirectionEnType是一个货币质押方向类型 ///////////////////////////////////////////////////////////////////////// -///Pledge +/// Pledge #define THOST_FTDC_FMDEN_In '1' -///Redemption +/// Redemption #define THOST_FTDC_FMDEN_Out '2' typedef char TThostFtdcFundMortDirectionEnType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSwapBusinessTypeTypeһҵ +/// TFtdcSwapBusinessTypeType是一个换汇业务种类类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSwapBusinessTypeType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOptionsTypeTypeһȨ +/// TFtdcOptionsTypeType是一个期权类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 看涨 #define THOST_FTDC_CP_CallOptions '1' -/// +/// 看跌 #define THOST_FTDC_CP_PutOptions '2' typedef char TThostFtdcOptionsTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcStrikeModeTypeһִзʽ +/// TFtdcStrikeModeType是一个执行方式类型 ///////////////////////////////////////////////////////////////////////// -///ŷʽ +/// 欧式 #define THOST_FTDC_STM_Continental '0' -///ʽ +/// 美式 #define THOST_FTDC_STM_American '1' -///Ľ +/// 百慕大 #define THOST_FTDC_STM_Bermuda '2' typedef char TThostFtdcStrikeModeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcStrikeTypeTypeһִ +/// TFtdcStrikeTypeType是一个执行类型类型 ///////////////////////////////////////////////////////////////////////// -///Գ +/// 自身对冲 #define THOST_FTDC_STT_Hedge '0' -///ƥִ +/// 匹配执行 #define THOST_FTDC_STT_Match '1' typedef char TThostFtdcStrikeTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcApplyTypeTypeһнȨִ +/// TFtdcApplyTypeType是一个中金所期权放弃执行申请类型类型 ///////////////////////////////////////////////////////////////////////// -///ִ +/// 不执行数量 #define THOST_FTDC_APPT_NotStrikeNum '4' typedef char TThostFtdcApplyTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcGiveUpDataSourceTypeһִԴ +/// TFtdcGiveUpDataSourceType是一个放弃执行申请数据来源类型 ///////////////////////////////////////////////////////////////////////// -///ϵͳ +/// 系统生成 #define THOST_FTDC_GUDS_Gen '0' -///ֹ +/// 手工添加 #define THOST_FTDC_GUDS_Hand '1' typedef char TThostFtdcGiveUpDataSourceType; ///////////////////////////////////////////////////////////////////////// -///TFtdcExecOrderSysIDTypeһִϵͳ +/// TFtdcExecOrderSysIDType是一个执行宣告系统编号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcExecOrderSysIDType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcExecResultTypeһִн +/// 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һִ +/// TFtdcStrikeSequenceType是一个执行序号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcStrikeSequenceType; ///////////////////////////////////////////////////////////////////////// -///TFtdcStrikeTimeTypeһִʱ +/// TFtdcStrikeTimeType是一个执行时间类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcStrikeTimeType[13]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCombinationTypeTypeһ +/// TFtdcCombinationTypeType是一个组合类型类型 ///////////////////////////////////////////////////////////////////////// -///ڻ +/// 期货组合 #define THOST_FTDC_COMBT_Future '0' -///ֱ۲BUL +/// 垂直价差BUL #define THOST_FTDC_COMBT_BUL '1' -///ֱ۲BER +/// 垂直价差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_CAS '6' -///Ȩ +/// 期权对锁组合 #define THOST_FTDC_COMBT_OPL '7' -///򱸶 +/// 买备兑组合 #define THOST_FTDC_COMBT_BFO '8' -///Ȩֱ۲ +/// 买入期权垂直价差组合 #define THOST_FTDC_COMBT_BLS '9' -///Ȩֱ۲ +/// 卖出期权垂直价差组合 #define THOST_FTDC_COMBT_BES 'a' typedef char TThostFtdcCombinationTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDceCombinationTypeTypeһ +/// 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һȨȨ۸ +/// TFtdcOptionRoyaltyPriceTypeType是一个期权权利金价格类型类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 昨结算价 #define THOST_FTDC_ORPT_PreSettlementPrice '1' -///ּ +/// 开仓价 #define THOST_FTDC_ORPT_OpenPrice '4' -///¼۽ϴֵ +/// 最新价与昨结算价较大值 #define THOST_FTDC_ORPT_MaxPreSettlementPrice '5' typedef char TThostFtdcOptionRoyaltyPriceTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcBalanceAlgorithmTypeһȨ㷨 +/// TFtdcBalanceAlgorithmType是一个权益算法类型 ///////////////////////////////////////////////////////////////////////// -///Ȩֵӯ +/// 不计算期权市值盈亏 #define THOST_FTDC_BLAG_Default '1' -///Ȩֵ +/// 计算期权市值亏损 #define THOST_FTDC_BLAG_IncludeOptValLost '2' typedef char TThostFtdcBalanceAlgorithmType; ///////////////////////////////////////////////////////////////////////// -///TFtdcActionTypeTypeһִ +/// TFtdcActionTypeType是一个执行类型类型 ///////////////////////////////////////////////////////////////////////// -///ִ +/// 执行 #define THOST_FTDC_ACTP_Exec '1' -/// +/// 放弃 #define THOST_FTDC_ACTP_Abandon '2' typedef char TThostFtdcActionTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcForQuoteStatusTypeһѯ״̬ +/// TFtdcForQuoteStatusType是一个询价状态类型 ///////////////////////////////////////////////////////////////////////// -///Ѿύ +/// 已经提交 #define THOST_FTDC_FQST_Submitted 'a' -///Ѿ +/// 已经接受 #define THOST_FTDC_FQST_Accepted 'b' -///Ѿܾ +/// 已经被拒绝 #define THOST_FTDC_FQST_Rejected 'c' typedef char TThostFtdcForQuoteStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcValueMethodTypeһȡֵʽ +/// TFtdcValueMethodType是一个取值方式类型 ///////////////////////////////////////////////////////////////////////// -///ֵ +/// 按绝对值 #define THOST_FTDC_VM_Absolute '0' -/// +/// 按比率 #define THOST_FTDC_VM_Ratio '1' typedef char TThostFtdcValueMethodType; ///////////////////////////////////////////////////////////////////////// -///TFtdcExecOrderPositionFlagTypeһȨȨǷڻͷı +/// TFtdcExecOrderPositionFlagType是一个期权行权后是否保留期货头寸的标记类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 保留 #define THOST_FTDC_EOPF_Reserve '0' -/// +/// 不保留 #define THOST_FTDC_EOPF_UnReserve '1' typedef char TThostFtdcExecOrderPositionFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcExecOrderCloseFlagTypeһȨȨɵͷǷԶƽ +/// TFtdcExecOrderCloseFlagType是一个期权行权后生成的头寸是否自动平仓类型 ///////////////////////////////////////////////////////////////////////// -///Զƽ +/// 自动平仓 #define THOST_FTDC_EOCF_AutoClose '0' -///Զƽ +/// 免于自动平仓 #define THOST_FTDC_EOCF_NotToClose '1' typedef char TThostFtdcExecOrderCloseFlagType; ///////////////////////////////////////////////////////////////////////// -///TFtdcProductTypeTypeһƷ +/// TFtdcProductTypeType是一个产品类型类型 ///////////////////////////////////////////////////////////////////////// -///ڻ +/// 期货 #define THOST_FTDC_PTE_Futures '1' -///Ȩ +/// 期权 #define THOST_FTDC_PTE_Options '2' typedef char TThostFtdcProductTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCZCEUploadFileNameTypeһ֣ļ +/// TFtdcCZCEUploadFileNameType是一个郑商所结算文件名类型 ///////////////////////////////////////////////////////////////////////// ///^\d{8}_zz_\d{4} #define THOST_FTDC_CUFN_CUFN_O 'O' -///^\d{8}ɽ +///^\d{8}成交表 #define THOST_FTDC_CUFN_CUFN_T 'T' -///^\d{8}ȳֱֲnew +///^\d{8}单腿持仓表new #define THOST_FTDC_CUFN_CUFN_P 'P' -///^\d{8}ƽ˽ +///^\d{8}非平仓了结表 #define THOST_FTDC_CUFN_CUFN_N 'N' -///^\d{8}ƽֱ +///^\d{8}平仓表 #define THOST_FTDC_CUFN_CUFN_L 'L' -///^\d{8}ʽ +///^\d{8}资金表 #define THOST_FTDC_CUFN_CUFN_F 'F' -///^\d{8}ϳֱֲ +///^\d{8}组合持仓表 #define THOST_FTDC_CUFN_CUFN_C 'C' -///^\d{8}֤ +///^\d{8}保证金参数表 #define THOST_FTDC_CUFN_CUFN_M 'M' typedef char TThostFtdcCZCEUploadFileNameType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDCEUploadFileNameTypeһļ +/// TFtdcDCEUploadFileNameType是一个大商所结算文件名类型 ///////////////////////////////////////////////////////////////////////// ///^\d{8}_dl_\d{3} #define THOST_FTDC_DUFN_DUFN_O 'O' -///^\d{8}_ɽ +///^\d{8}_成交表 #define THOST_FTDC_DUFN_DUFN_T 'T' -///^\d{8}_ֱֲ +///^\d{8}_持仓表 #define THOST_FTDC_DUFN_DUFN_P 'P' -///^\d{8}_ʽ +///^\d{8}_资金结算表 #define THOST_FTDC_DUFN_DUFN_F 'F' -///^\d{8}_Żϳֲϸ +///^\d{8}_优惠组合持仓明细表 #define THOST_FTDC_DUFN_DUFN_C 'C' -///^\d{8}_ֲϸ +///^\d{8}_持仓明细表 #define THOST_FTDC_DUFN_DUFN_D 'D' -///^\d{8}_֤ +///^\d{8}_保证金参数表 #define THOST_FTDC_DUFN_DUFN_M 'M' -///^\d{8}_Ȩִб +///^\d{8}_期权执行表 #define THOST_FTDC_DUFN_DUFN_S 'S' typedef char TThostFtdcDCEUploadFileNameType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSHFEUploadFileNameTypeһļ +/// TFtdcSHFEUploadFileNameType是一个上期所结算文件名类型 ///////////////////////////////////////////////////////////////////////// ///^\d{4}_\d{8}_\d{8}_DailyFundChg #define THOST_FTDC_SUFN_SUFN_O 'O' @@ -6443,7 +6442,7 @@ typedef char TThostFtdcDCEUploadFileNameType; typedef char TThostFtdcSHFEUploadFileNameType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCFFEXUploadFileNameTypeһнļ +/// TFtdcCFFEXUploadFileNameType是一个中金所结算文件名类型 ///////////////////////////////////////////////////////////////////////// ///^\d{4}_SG\d{1}_\d{8}_\d{1}_Trade #define THOST_FTDC_CFUFN_SUFN_T 'T' @@ -6457,460 +6456,460 @@ typedef char TThostFtdcSHFEUploadFileNameType; typedef char TThostFtdcCFFEXUploadFileNameType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCombDirectionTypeһָ +/// TFtdcCombDirectionType是一个组合指令方向类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 申请组合 #define THOST_FTDC_CMDR_Comb '0' -/// +/// 申请拆分 #define THOST_FTDC_CMDR_UnComb '1' -///Աɾϵ +/// 操作员删组合单 #define THOST_FTDC_CMDR_DelComb '2' typedef char TThostFtdcCombDirectionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcStrikeOffsetTypeTypeһȨƫ +/// 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һԤԼ״̬ +/// 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һ¼ע +/// TFtdcLoginRemarkType是一个登录备注类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcLoginRemarkType[36]; ///////////////////////////////////////////////////////////////////////// -///TFtdcInvestUnitIDTypeһͶʵԪ +/// TFtdcInvestUnitIDType是一个投资单元代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcInvestUnitIDType[17]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBulletinIDTypeһ +/// TFtdcBulletinIDType是一个公告编号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcBulletinIDType; ///////////////////////////////////////////////////////////////////////// -///TFtdcNewsTypeTypeһ +/// TFtdcNewsTypeType是一个公告类型类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcNewsTypeType[3]; ///////////////////////////////////////////////////////////////////////// -///TFtdcNewsUrgencyTypeһ̶ +/// TFtdcNewsUrgencyType是一个紧急程度类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcNewsUrgencyType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAbstractTypeһϢժҪ +/// TFtdcAbstractType是一个消息摘要类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAbstractType[81]; ///////////////////////////////////////////////////////////////////////// -///TFtdcComeFromTypeһϢԴ +/// TFtdcComeFromType是一个消息来源类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcComeFromType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcURLLinkTypeһWEBַ +/// TFtdcURLLinkType是一个WEB地址类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcURLLinkType[201]; ///////////////////////////////////////////////////////////////////////// -///TFtdcLongIndividualNameTypeһ +/// TFtdcLongIndividualNameType是一个长个人姓名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcLongIndividualNameType[161]; ///////////////////////////////////////////////////////////////////////// -///TFtdcLongFBEBankAccountNameTypeһ˻ +/// TFtdcLongFBEBankAccountNameType是一个长换汇银行账户名类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcLongFBEBankAccountNameType[161]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDateTimeTypeһʱ +/// TFtdcDateTimeType是一个日期时间类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcDateTimeType[17]; ///////////////////////////////////////////////////////////////////////// -///TFtdcWeakPasswordSourceTypeһԴ +/// TFtdcWeakPasswordSourceType是一个弱密码来源类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 弱密码库 #define THOST_FTDC_WPSR_Lib '1' -///ֹ¼ +/// 手工录入 #define THOST_FTDC_WPSR_Manual '2' typedef char TThostFtdcWeakPasswordSourceType; ///////////////////////////////////////////////////////////////////////// -///TFtdcRandomStringTypeһ +/// TFtdcRandomStringType是一个随机串类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcRandomStringType[17]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOptSelfCloseFlagTypeһȨȨͷǷԶԳ +/// 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һҵ +/// TFtdcBizTypeType是一个业务类型类型 ///////////////////////////////////////////////////////////////////////// -///ڻ +/// 期货 #define THOST_FTDC_BZTP_Future '1' -///֤ȯ +/// 证券 #define THOST_FTDC_BZTP_Stock '2' typedef char TThostFtdcBizTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAppTypeTypeһûApp +/// 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 +/// TFtdcAppIDType是一个App代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAppIDType[33]; ///////////////////////////////////////////////////////////////////////// -///TFtdcSystemInfoLenTypeһϵͳϢ +/// TFtdcSystemInfoLenType是一个系统信息长度类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcSystemInfoLenType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAdditionalInfoLenTypeһϢ +/// TFtdcAdditionalInfoLenType是一个补充信息长度类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcAdditionalInfoLenType; ///////////////////////////////////////////////////////////////////////// -///TFtdcClientSystemInfoTypeһնϵͳϢ +/// TFtdcClientSystemInfoType是一个交易终端系统信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcClientSystemInfoType[273]; ///////////////////////////////////////////////////////////////////////// -///TFtdcAdditionalInfoTypeһϵͳⲿϢ +/// TFtdcAdditionalInfoType是一个系统外部信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcAdditionalInfoType[261]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBase64ClientSystemInfoTypeһbase64նϵͳϢ +/// TFtdcBase64ClientSystemInfoType是一个base64交易终端系统信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBase64ClientSystemInfoType[365]; ///////////////////////////////////////////////////////////////////////// -///TFtdcBase64AdditionalInfoTypeһbase64ϵͳⲿϢ +/// TFtdcBase64AdditionalInfoType是一个base64系统外部信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcBase64AdditionalInfoType[349]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCurrentAuthMethodTypeһǰõ֤ģʽ0֤ģʽ AӵλʼһλͼƬ֤룬ڶλ̬λ֤ +/// TFtdcCurrentAuthMethodType是一个当前可用的认证模式,0代表无需认证模式 A从低位开始最后一位代表图片验证码,倒数第二位代表动态口令,倒数第三位代表短信验证码类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcCurrentAuthMethodType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCaptchaInfoLenTypeһͼƬ֤Ϣ +/// TFtdcCaptchaInfoLenType是一个图片验证信息长度类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcCaptchaInfoLenType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCaptchaInfoTypeһͼƬ֤Ϣ +/// TFtdcCaptchaInfoType是一个图片验证信息类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCaptchaInfoType[2561]; ///////////////////////////////////////////////////////////////////////// -///TFtdcUserTextSeqTypeһû֤ı +/// TFtdcUserTextSeqType是一个用户短信验证码的编号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcUserTextSeqType; ///////////////////////////////////////////////////////////////////////// -///TFtdcHandshakeDataTypeһ +/// TFtdcHandshakeDataType是一个握手数据内容类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcHandshakeDataType[301]; ///////////////////////////////////////////////////////////////////////// -///TFtdcHandshakeDataLenTypeһݳ +/// TFtdcHandshakeDataLenType是一个握手数据内容长度类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcHandshakeDataLenType; ///////////////////////////////////////////////////////////////////////// -///TFtdcCryptoKeyVersionTypeһapifrontͨԿ汾 +/// TFtdcCryptoKeyVersionType是一个api与front通信密钥版本号类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCryptoKeyVersionType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRsaKeyVersionTypeһԿ汾 +/// TFtdcRsaKeyVersionType是一个公钥版本号类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcRsaKeyVersionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSoftwareProviderIDTypeһID +/// TFtdcSoftwareProviderIDType是一个交易软件商ID类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSoftwareProviderIDType[22]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCollectTimeTypeһϢɼʱ +/// TFtdcCollectTimeType是一个信息采集时间类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcCollectTimeType[21]; ///////////////////////////////////////////////////////////////////////// -///TFtdcQueryFreqTypeһѯƵ +/// TFtdcQueryFreqType是一个查询频率类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcQueryFreqType; ///////////////////////////////////////////////////////////////////////// -///TFtdcResponseValueTypeһӦ +/// TFtdcResponseValueType是一个应答类型类型 ///////////////////////////////////////////////////////////////////////// -///ɹ +/// 检查成功 #define THOST_FTDC_RV_Right '0' -///ʧ +/// 检查失败 #define THOST_FTDC_RV_Refuse '1' typedef char TThostFtdcResponseValueType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOTCTradeTypeTypeһOTCɽ +/// TFtdcOTCTradeTypeType是一个OTC成交类型类型 ///////////////////////////////////////////////////////////////////////// -///ڽ +/// 大宗交易 #define THOST_FTDC_OTC_TRDT_Block '0' -///ת +/// 期转现 #define THOST_FTDC_OTC_TRDT_EFP '1' typedef char TThostFtdcOTCTradeTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcMatchTypeTypeһַƥ䷽ʽ +/// TFtdcMatchTypeType是一个期现风险匹配方式类型 ///////////////////////////////////////////////////////////////////////// -///ֵ +/// 基点价值 #define THOST_FTDC_OTC_MT_DV01 '1' -///ֵ +/// 面值 #define THOST_FTDC_OTC_MT_ParValue '2' typedef char TThostFtdcMatchTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOTCTraderIDTypeһOTCԱ +/// TFtdcOTCTraderIDType是一个OTC交易员代码类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcOTCTraderIDType[31]; ///////////////////////////////////////////////////////////////////////// -///TFtdcRiskValueTypeһڻֵ +/// TFtdcRiskValueType是一个期货风险值类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcRiskValueType; ///////////////////////////////////////////////////////////////////////// -///TFtdcIDBNameTypeһ +/// TFtdcIDBNameType是一个握手数据内容类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcIDBNameType[100]; ///////////////////////////////////////////////////////////////////////// -///TFtdcDiscountRatioTypeһۿ +/// TFtdcDiscountRatioType是一个折扣率类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcDiscountRatioType; ///////////////////////////////////////////////////////////////////////// -///TFtdcAuthTypeTypeһûն֤ʽ +/// TFtdcAuthTypeType是一个用户终端认证方式类型 ///////////////////////////////////////////////////////////////////////// -///У +/// 白名单校验 #define THOST_FTDC_AU_WHITE '0' -///У +/// 黑名单校验 #define THOST_FTDC_AU_BLACK '1' typedef char TThostFtdcAuthTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcClassTypeTypeһԼ෽ʽ +/// TFtdcClassTypeType是一个合约分类方式类型 ///////////////////////////////////////////////////////////////////////// -///кԼ +/// 所有合约 #define THOST_FTDC_INS_ALL '0' -///ڻڡת֡TasָԼ +/// 期货、即期、期转现、Tas、金属指数合约 #define THOST_FTDC_INS_FUTURE '1' -///ڻֻȨԼ +/// 期货、现货期权合约 #define THOST_FTDC_INS_OPTION '2' -///ϺԼ +/// 组合合约 #define THOST_FTDC_INS_COMB '3' typedef char TThostFtdcClassTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTradingTypeTypeһԼ״̬෽ʽ +/// TFtdcTradingTypeType是一个合约交易状态分类方式类型 ///////////////////////////////////////////////////////////////////////// -///״̬ +/// 所有状态 #define THOST_FTDC_TD_ALL '0' -/// +/// 交易 #define THOST_FTDC_TD_TRADE '1' -///ǽ +/// 非交易 #define THOST_FTDC_TD_UNTRADE '2' typedef char TThostFtdcTradingTypeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcProductStatusTypeһƷ״̬ +/// TFtdcProductStatusType是一个产品状态类型 ///////////////////////////////////////////////////////////////////////// -///ɽ +/// 可交易 #define THOST_FTDC_PS_tradeable '1' -///ɽ +/// 不可交易 #define THOST_FTDC_PS_untradeable '2' typedef char TThostFtdcProductStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSyncDeltaStatusTypeһ׷ƽ״̬ +/// TFtdcSyncDeltaStatusType是一个追平状态类型 ///////////////////////////////////////////////////////////////////////// -///׿ɶ +/// 交易可读 #define THOST_FTDC_SDS_Readable '1' -///ڶ +/// 交易在读 #define THOST_FTDC_SDS_Reading '2' -///׶ȡ +/// 交易读取完成 #define THOST_FTDC_SDS_Readend '3' -///׷ƽʧ ױ״̬㲻 +/// 追平失败 交易本地状态结算不存在 #define THOST_FTDC_SDS_OptErr 'e' typedef char TThostFtdcSyncDeltaStatusType; ///////////////////////////////////////////////////////////////////////// -///TFtdcActionDirectionTypeһ־ +/// TFtdcActionDirectionType是一个操作标志类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 增加 #define THOST_FTDC_ACD_Add '1' -///ɾ +/// 删除 #define THOST_FTDC_ACD_Del '2' -/// +/// 更新 #define THOST_FTDC_ACD_Upd '3' typedef char TThostFtdcActionDirectionType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrderCancelAlgTypeһʱѡϯλ㷨 +/// TFtdcOrderCancelAlgType是一个撤单时选择席位算法类型 ///////////////////////////////////////////////////////////////////////// -///ѯϯλ +/// 轮询席位撤单 #define THOST_FTDC_OAC_Balance '1' -///ԭϯλ +/// 优先原报单席位撤单 #define THOST_FTDC_OAC_OrigFirst '2' typedef char TThostFtdcOrderCancelAlgType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSyncDescriptionTypeһ׷ƽ +/// TFtdcSyncDescriptionType是一个追平描述类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSyncDescriptionType[257]; ///////////////////////////////////////////////////////////////////////// -///TFtdcCommonIntTypeһͨint +/// TFtdcCommonIntType是一个通用int类型类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcCommonIntType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSysVersionTypeһϵͳ汾 +/// TFtdcSysVersionType是一个系统版本类型 ///////////////////////////////////////////////////////////////////////// typedef char TThostFtdcSysVersionType[41]; ///////////////////////////////////////////////////////////////////////// -///TFtdcOpenLimitControlLevelTypeһ +/// TFtdcOpenLimitControlLevelType是一个开仓量限制粒度类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 不控制 #define THOST_FTDC_PLCL_None '0' -///Ʒ +/// 产品级别 #define THOST_FTDC_PLCL_Product '1' -///Լ +/// 合约级别 #define THOST_FTDC_PLCL_Inst '2' typedef char TThostFtdcOpenLimitControlLevelType; ///////////////////////////////////////////////////////////////////////// -///TFtdcOrderFreqControlLevelTypeһƵʿ +/// TFtdcOrderFreqControlLevelType是一个报单频率控制粒度类型 ///////////////////////////////////////////////////////////////////////// -/// +/// 不控制 #define THOST_FTDC_OFCL_None '0' -///Ʒ +/// 产品级别 #define THOST_FTDC_OFCL_Product '1' -///Լ +/// 合约级别 #define THOST_FTDC_OFCL_Inst '2' typedef char TThostFtdcOrderFreqControlLevelType; ///////////////////////////////////////////////////////////////////////// -///TFtdcEnumBoolTypeһöbool +/// TFtdcEnumBoolType是一个枚举bool类型类型 ///////////////////////////////////////////////////////////////////////// -///false +/// false #define THOST_FTDC_EBL_False '0' -///true +/// true #define THOST_FTDC_EBL_True '1' typedef char TThostFtdcEnumBoolType; ///////////////////////////////////////////////////////////////////////// -///TFtdcTimeRangeTypeһڻԼ׶αʶ +/// TFtdcTimeRangeType是一个期货合约阶段标识类型 ///////////////////////////////////////////////////////////////////////// -///һ· +/// 一般月份 #define THOST_FTDC_ETR_USUAL '1' -///ǰһϰ +/// 交割月前一个月上半月 #define THOST_FTDC_ETR_FNSP '2' -///ǰһ° +/// 交割月前一个月下半月 #define THOST_FTDC_ETR_BNSP '3' -///· +/// 交割月份 #define THOST_FTDC_ETR_SPOT '4' typedef char TThostFtdcTimeRangeType; ///////////////////////////////////////////////////////////////////////// -///TFtdcDeltaTypeһDelta +/// TFtdcDeltaType是一个Delta类型类型 ///////////////////////////////////////////////////////////////////////// typedef double TThostFtdcDeltaType; ///////////////////////////////////////////////////////////////////////// -///TFtdcSpreadIdTypeһֿȼ +/// TFtdcSpreadIdType是一个抵扣组优先级类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcSpreadIdType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPortfolioTypeһ鱣㷨 +/// TFtdcPortfolioType是一个新型组保算法类型 ///////////////////////////////////////////////////////////////////////// -///ʹ鱣㷨 +/// 不使用新型组保算法 #define THOST_FTDC_EPF_None '0' -///SPBM㷨 +/// SPBM算法 #define THOST_FTDC_EPF_SPBM '1' typedef char TThostFtdcPortfolioType; ///////////////////////////////////////////////////////////////////////// -///TFtdcPortfolioDefIDTypeһSPBMײID +/// TFtdcPortfolioDefIDType是一个SPBM组合套餐ID类型 ///////////////////////////////////////////////////////////////////////// typedef int TThostFtdcPortfolioDefIDType; diff --git a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcUserApiStruct.h b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcUserApiStruct.h new file mode 100644 index 0000000..7f11a7a --- /dev/null +++ b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/ThostFtdcUserApiStruct.h @@ -0,0 +1,10787 @@ +///////////////////////////////////////////////////////////////////////// +///@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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// 登录备注 + TThostFtdcLoginRemarkType LoginRemark; + /// 终端IP端口 + TThostFtdcIPPortType ClientIPPort; + /// 终端IP地址 + TThostFtdcIPAddressType ClientIPAddress; +}; + +/// 用户登录应答 +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; + /// 后台版本信息 + TThostFtdcSysVersionType SysVersion; + /// 广期所时间 + TThostFtdcTimeType GFEXTime; +}; + +/// 用户登出请求 +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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// 终端IP地址 + TThostFtdcIPAddressType ClientIPAddress; +}; + +/// 用户登录应答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 { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 产品名称 + 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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve2; + /// 合约基础商品乘数 + TThostFtdcUnderlyingMultipleType UnderlyingMultiple; + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; + /// 交易所产品代码 + TThostFtdcInstrumentIDType ExchangeProductID; + /// 开仓量限制粒度 + TThostFtdcOpenLimitControlLevelType OpenLimitControlLevel; + /// 报单频率控制粒度 + TThostFtdcOrderFreqControlLevelType OrderFreqControlLevel; +}; + +/// 合约 +struct CThostFtdcInstrumentField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约名称 + TThostFtdcInstrumentNameType InstrumentName; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve3; + /// 产品类型 + 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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve4; + /// 执行价 + TThostFtdcPriceType StrikePrice; + /// 期权类型 + TThostFtdcOptionsTypeType OptionsType; + /// 合约基础商品乘数 + TThostFtdcUnderlyingMultipleType UnderlyingMultiple; + /// 组合类型 + TThostFtdcCombinationTypeType CombinationType; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; + /// 基础商品代码 + TThostFtdcInstrumentIDType UnderlyingInstrID; +}; + +/// 经纪公司 +struct CThostFtdcBrokerField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 经纪公司简称 + TThostFtdcBrokerAbbrType BrokerAbbr; + /// 经纪公司名称 + TThostFtdcBrokerNameType BrokerName; + /// 是否活跃 + TThostFtdcBoolType IsActive; +}; + +/// 交易所交易员 +struct CThostFtdcTraderField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 密码 + TThostFtdcPasswordType Password; + /// 安装数量 + TThostFtdcInstallCountType InstallCount; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 撤单时选择席位算法 + TThostFtdcOrderCancelAlgType OrderCancelAlg; +}; + +/// 投资者 +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; + /// 是否频率控制 + TThostFtdcEnumBoolType IsOrderFreq; + /// 是否开仓限制 + TThostFtdcEnumBoolType IsOpenVolLimit; +}; + +/// 交易编码 +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 { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 经纪公司代码 + 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; + /// tas持仓手数 + TThostFtdcVolumeType TasPosition; + /// tas持仓成本 + TThostFtdcMoneyType TasPositionCost; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 合约保证金率 +struct CThostFtdcInstrumentMarginRateField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + /// 多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + /// 空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + /// 空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + /// 是否相对交易所收取 + TThostFtdcBoolType IsRelative; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 合约手续费率 +struct CThostFtdcInstrumentCommissionRateField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 开仓手续费率 + TThostFtdcRatioType OpenRatioByMoney; + /// 开仓手续费 + TThostFtdcRatioType OpenRatioByVolume; + /// 平仓手续费率 + TThostFtdcRatioType CloseRatioByMoney; + /// 平仓手续费 + TThostFtdcRatioType CloseRatioByVolume; + /// 平今手续费率 + TThostFtdcRatioType CloseTodayRatioByMoney; + /// 平今手续费 + TThostFtdcRatioType CloseTodayRatioByVolume; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 业务类型 + TThostFtdcBizTypeType BizType; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 深度行情 +struct CThostFtdcDepthMarketDataField { + /// 交易日 + TThostFtdcDateType TradingDay; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 最新价 + 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; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// 上带价 + TThostFtdcPriceType BandingUpperPrice; + /// 下带价 + TThostFtdcPriceType BandingLowerPrice; +}; + +/// 投资者合约交易权限 +struct CThostFtdcInstrumentTradingRightField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 交易权限 + TThostFtdcTradingRightType TradingRight; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 经纪公司用户 +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; + /// 撤单时选择席位算法 + TThostFtdcOrderCancelAlgType OrderCancelAlg; +}; + +/// 投资者结算结果 +struct CThostFtdcSettlementInfoField { + /// 交易日 + TThostFtdcDateType TradingDay; + /// 结算编号 + TThostFtdcSettlementIDType SettlementID; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 序号 + TThostFtdcSequenceNoType SequenceNo; + /// 消息正文 + TThostFtdcContentType Content; + /// 投资者帐号 + TThostFtdcAccountIDType AccountID; + /// 币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +/// 合约保证金率调整 +struct CThostFtdcInstrumentMarginRateAdjustField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + /// 多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + /// 空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + /// 空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + /// 是否相对交易所收取 + TThostFtdcBoolType IsRelative; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 交易所保证金率 +struct CThostFtdcExchangeMarginRateField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + /// 多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + /// 空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + /// 空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 交易所保证金率调整 +struct CThostFtdcExchangeMarginRateAdjustField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投机套保标志 + 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; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 汇率 +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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// 用户端产品信息 + 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; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 登录信息 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 报单引用 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 报单 +struct CThostFtdcOrderField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 报单引用 + 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; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 交易所交易员代码 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve3; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 交易所报单 +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; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 交易所交易员代码 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 交易所报单插入失败 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 报单操作 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 营业部编号 + TThostFtdcBranchIDType BranchID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 交易所报单操作 +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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 交易所报单操作失败 +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; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 开平标志 + 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; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; +}; + +/// 成交 +struct CThostFtdcTradeField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 报单引用 + TThostFtdcOrderRefType OrderRef; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 成交编号 + TThostFtdcTradeIDType TradeID; + /// 买卖方向 + TThostFtdcDirectionType Direction; + /// 报单编号 + TThostFtdcOrderSysIDType OrderSysID; + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 交易角色 + TThostFtdcTradingRoleType TradingRole; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 开平标志 + 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; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; +}; + +/// 用户会话 +struct CThostFtdcUserSessionField { + /// 前置编号 + TThostFtdcFrontIDType FrontID; + /// 会话编号 + TThostFtdcSessionIDType SessionID; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 登录日期 + TThostFtdcDateType LoginDate; + /// 登录时间 + TThostFtdcTimeType LoginTime; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// 用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + /// 接口端产品信息 + TThostFtdcProductInfoType InterfaceProductInfo; + /// 协议信息 + TThostFtdcProtocolInfoType ProtocolInfo; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 登录备注 + TThostFtdcLoginRemarkType LoginRemark; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 查询最大报单数量 +struct CThostFtdcQryMaxOrderVolumeField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 买卖方向 + TThostFtdcDirectionType Direction; + /// 开平标志 + TThostFtdcOffsetFlagType OffsetFlag; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 最大允许报单数量 + TThostFtdcVolumeType MaxVolume; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 投资者结算结果确认信息 +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; + /// 是否是个股期权内转 + TThostFtdcBoolType IsFromSopt; + /// 资金密码 + TThostFtdcPasswordType TradingPassword; +}; + +/// 货币质押同步 +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; + /// 是否频率控制 + TThostFtdcEnumBoolType IsOrderFreq; + /// 是否开仓限制 + TThostFtdcEnumBoolType IsOpenVolLimit; +}; + +/// 正在同步中的交易代码 +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 { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 经纪公司代码 + 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; + /// tas持仓手数 + TThostFtdcVolumeType TasPosition; + /// tas持仓成本 + TThostFtdcMoneyType TasPositionCost; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 正在同步中的合约保证金率 +struct CThostFtdcSyncingInstrumentMarginRateField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + /// 多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + /// 空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + /// 空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + /// 是否相对交易所收取 + TThostFtdcBoolType IsRelative; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 正在同步中的合约手续费率 +struct CThostFtdcSyncingInstrumentCommissionRateField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 开仓手续费率 + TThostFtdcRatioType OpenRatioByMoney; + /// 开仓手续费 + TThostFtdcRatioType OpenRatioByVolume; + /// 平仓手续费率 + TThostFtdcRatioType CloseRatioByMoney; + /// 平仓手续费 + TThostFtdcRatioType CloseRatioByVolume; + /// 平今手续费率 + TThostFtdcRatioType CloseTodayRatioByMoney; + /// 平今手续费 + TThostFtdcRatioType CloseTodayRatioByVolume; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 正在同步中的合约交易权限 +struct CThostFtdcSyncingInstrumentTradingRightField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 交易权限 + TThostFtdcTradingRightType TradingRight; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询报单 +struct CThostFtdcQryOrderField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 报单编号 + TThostFtdcOrderSysIDType OrderSysID; + /// 开始时间 + TThostFtdcTimeType InsertTimeStart; + /// 结束时间 + TThostFtdcTimeType InsertTimeEnd; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询成交 +struct CThostFtdcQryTradeField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 成交编号 + TThostFtdcTradeIDType TradeID; + /// 开始时间 + TThostFtdcTimeType TradeTimeStart; + /// 结束时间 + TThostFtdcTimeType TradeTimeEnd; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询投资者持仓 +struct CThostFtdcQryInvestorPositionField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询资金账户 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询手续费率 +struct CThostFtdcQryInstrumentCommissionRateField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询合约交易权限 +struct CThostFtdcQryInstrumentTradingRightField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 合约代码 + 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; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; +}; + +/// 查询报单操作 +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 { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 产品类型 + TThostFtdcProductClassType ProductClass; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; +}; + +/// 查询合约 +struct CThostFtdcQryInstrumentField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve3; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; +}; + +/// 查询行情 +struct CThostFtdcQryDepthMarketDataField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + 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; + /// 投资者帐号 + TThostFtdcAccountIDType AccountID; + /// 币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +/// 查询交易所保证金率 +struct CThostFtdcQryExchangeMarginRateField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询交易所调整保证金率 +struct CThostFtdcQryExchangeMarginRateAdjustField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询汇率 +struct CThostFtdcQryExchangeRateField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 源币种 + TThostFtdcCurrencyIDType FromCurrencyID; + /// 目标币种 + TThostFtdcCurrencyIDType ToCurrencyID; +}; + +/// 查询货币质押流水 +struct CThostFtdcQrySyncFundMortgageField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 货币质押流水号 + TThostFtdcDepositSeqNoType MortgageSeqNo; +}; + +/// 查询报单 +struct CThostFtdcQryHisOrderField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 报单编号 + TThostFtdcOrderSysIDType OrderSysID; + /// 开始时间 + TThostFtdcTimeType InsertTimeStart; + /// 结束时间 + TThostFtdcTimeType InsertTimeEnd; + /// 交易日 + TThostFtdcDateType TradingDay; + /// 结算编号 + TThostFtdcSettlementIDType SettlementID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 当前期权合约最小保证金 +struct CThostFtdcOptionInstrMiniMarginField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 单位(手)期权合约最小保证金 + TThostFtdcMoneyType MinMargin; + /// 取值方式 + TThostFtdcValueMethodType ValueMethod; + /// 是否跟随交易所收取 + TThostFtdcBoolType IsRelative; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 当前期权合约保证金调整系数 +struct CThostFtdcOptionInstrMarginAdjustField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 投机空头保证金调整系数 + TThostFtdcRatioType SShortMarginRatioByMoney; + /// 投机空头保证金调整系数 + TThostFtdcMoneyType SShortMarginRatioByVolume; + /// 保值空头保证金调整系数 + TThostFtdcRatioType HShortMarginRatioByMoney; + /// 保值空头保证金调整系数 + TThostFtdcMoneyType HShortMarginRatioByVolume; + /// 套利空头保证金调整系数 + TThostFtdcRatioType AShortMarginRatioByMoney; + /// 套利空头保证金调整系数 + TThostFtdcMoneyType AShortMarginRatioByVolume; + /// 是否跟随交易所收取 + TThostFtdcBoolType IsRelative; + /// 做市商空头保证金调整系数 + TThostFtdcRatioType MShortMarginRatioByMoney; + /// 做市商空头保证金调整系数 + TThostFtdcMoneyType MShortMarginRatioByVolume; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 当前期权合约手续费的详细内容 +struct CThostFtdcOptionInstrCommRateField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + 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; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 期权交易成本 +struct CThostFtdcOptionInstrTradeCostField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 期权合约保证金不变部分 + TThostFtdcMoneyType FixedMargin; + /// 期权合约最小保证金 + TThostFtdcMoneyType MiniMargin; + /// 期权合约权利金 + TThostFtdcMoneyType Royalty; + /// 交易所期权合约保证金不变部分 + TThostFtdcMoneyType ExchFixedMargin; + /// 交易所期权合约最小保证金 + TThostFtdcMoneyType ExchMiniMargin; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 期权交易成本查询 +struct CThostFtdcQryOptionInstrTradeCostField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 期权合约报价 + TThostFtdcPriceType InputPrice; + /// 标的价格,填0则用昨结算价 + TThostFtdcPriceType UnderlyingPrice; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 期权手续费率查询 +struct CThostFtdcQryOptionInstrCommRateField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 股指现货指数 +struct CThostFtdcIndexPriceField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 指数现货收盘价 + TThostFtdcPriceType ClosePrice; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 输入的执行宣告 +struct CThostFtdcInputExecOrderField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 执行宣告引用 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 输入执行宣告操作 +struct CThostFtdcInputExecOrderActionField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 执行宣告操作引用 + TThostFtdcOrderActionRefType ExecOrderActionRef; + /// 执行宣告引用 + TThostFtdcOrderRefType ExecOrderRef; + /// 请求编号 + TThostFtdcRequestIDType RequestID; + /// 前置编号 + TThostFtdcFrontIDType FrontID; + /// 会话编号 + TThostFtdcSessionIDType SessionID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 执行宣告操作编号 + TThostFtdcExecOrderSysIDType ExecOrderSysID; + /// 操作标志 + TThostFtdcActionFlagType ActionFlag; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 执行宣告 +struct CThostFtdcExecOrderField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 执行宣告引用 + 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; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 交易所交易员代码 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve3; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 执行宣告操作 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 营业部编号 + TThostFtdcBranchIDType BranchID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 执行宣告查询 +struct CThostFtdcQryExecOrderField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 执行宣告编号 + TThostFtdcExecOrderSysIDType ExecOrderSysID; + /// 开始时间 + TThostFtdcTimeType InsertTimeStart; + /// 结束时间 + TThostFtdcTimeType InsertTimeEnd; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 交易所执行宣告信息 +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; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 交易所交易员代码 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 交易所执行宣告查询 +struct CThostFtdcQryExchangeExecOrderField { + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; +}; + +/// 执行宣告操作查询 +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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 数量 + TThostFtdcVolumeType Volume; + /// IP地址 + TThostFtdcIPAddressType IPAddress; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; +}; + +/// 交易所执行宣告操作查询 +struct CThostFtdcQryExchangeExecOrderActionField { + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +/// 错误执行宣告 +struct CThostFtdcErrExecOrderField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 执行宣告引用 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 错误代码 + TThostFtdcErrorIDType ErrorID; + /// 错误信息 + TThostFtdcErrorMsgType ErrorMsg; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 查询错误执行宣告 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 错误代码 + TThostFtdcErrorIDType ErrorID; + /// 错误信息 + TThostFtdcErrorMsgType ErrorMsg; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 查询错误执行宣告操作 +struct CThostFtdcQryErrExecOrderActionField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; +}; + +/// 投资者期权合约交易权限 +struct CThostFtdcOptionInstrTradingRightField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 买卖方向 + TThostFtdcDirectionType Direction; + /// 交易权限 + TThostFtdcTradingRightType TradingRight; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询期权合约交易权限 +struct CThostFtdcQryOptionInstrTradingRightField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 买卖方向 + TThostFtdcDirectionType Direction; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 输入的询价 +struct CThostFtdcInputForQuoteField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 询价引用 + TThostFtdcOrderRefType ForQuoteRef; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 询价 +struct CThostFtdcForQuoteField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 询价引用 + TThostFtdcOrderRefType ForQuoteRef; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 本地询价编号 + TThostFtdcOrderLocalIDType ForQuoteLocalID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; + /// 安装编号 + TThostFtdcInstallIDType InstallID; + /// 报单日期 + TThostFtdcDateType InsertDate; + /// 插入时间 + TThostFtdcTimeType InsertTime; + /// 询价状态 + TThostFtdcForQuoteStatusType ForQuoteStatus; + /// 前置编号 + TThostFtdcFrontIDType FrontID; + /// 会话编号 + TThostFtdcSessionIDType SessionID; + /// 状态信息 + TThostFtdcErrorMsgType StatusMsg; + /// 操作用户代码 + TThostFtdcUserIDType ActiveUserID; + /// 经纪公司询价编号 + TThostFtdcSequenceNoType BrokerForQutoSeq; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve3; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 询价查询 +struct CThostFtdcQryForQuoteField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 开始时间 + TThostFtdcTimeType InsertTimeStart; + /// 结束时间 + TThostFtdcTimeType InsertTimeEnd; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 交易所询价信息 +struct CThostFtdcExchangeForQuoteField { + /// 本地询价编号 + TThostFtdcOrderLocalIDType ForQuoteLocalID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; + /// 安装编号 + TThostFtdcInstallIDType InstallID; + /// 报单日期 + TThostFtdcDateType InsertDate; + /// 插入时间 + TThostFtdcTimeType InsertTime; + /// 询价状态 + TThostFtdcForQuoteStatusType ForQuoteStatus; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 交易所询价查询 +struct CThostFtdcQryExchangeForQuoteField { + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; +}; + +/// 输入的报价 +struct CThostFtdcInputQuoteField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 报价引用 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; + /// 被顶单编号 + TThostFtdcOrderSysIDType ReplaceSysID; +}; + +/// 输入报价操作 +struct CThostFtdcInputQuoteActionField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 报价操作引用 + TThostFtdcOrderActionRefType QuoteActionRef; + /// 报价引用 + TThostFtdcOrderRefType QuoteRef; + /// 请求编号 + TThostFtdcRequestIDType RequestID; + /// 前置编号 + TThostFtdcFrontIDType FrontID; + /// 会话编号 + TThostFtdcSessionIDType SessionID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 报价操作编号 + TThostFtdcOrderSysIDType QuoteSysID; + /// 操作标志 + TThostFtdcActionFlagType ActionFlag; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 交易编码 + TThostFtdcClientIDType ClientID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 报价 +struct CThostFtdcQuoteField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 报价引用 + 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; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 交易所交易员代码 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve3; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; + /// 被顶单编号 + TThostFtdcOrderSysIDType ReplaceSysID; +}; + +/// 报价操作 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 营业部编号 + TThostFtdcBranchIDType BranchID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 报价查询 +struct CThostFtdcQryQuoteField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 报价编号 + TThostFtdcOrderSysIDType QuoteSysID; + /// 开始时间 + TThostFtdcTimeType InsertTimeStart; + /// 结束时间 + TThostFtdcTimeType InsertTimeEnd; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 交易所报价信息 +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; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 交易所交易员代码 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 交易所报价查询 +struct CThostFtdcQryExchangeQuoteField { + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; +}; + +/// 报价操作查询 +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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 交易所报价操作查询 +struct CThostFtdcQryExchangeQuoteActionField { + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; +}; + +/// 期权合约delta值 +struct CThostFtdcOptionInstrDeltaField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// Delta值 + TThostFtdcRatioType Delta; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 发给做市商的询价请求 +struct CThostFtdcForQuoteRspField { + /// 交易日 + TThostFtdcDateType TradingDay; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 询价编号 + TThostFtdcOrderSysIDType ForQuoteSysID; + /// 询价时间 + TThostFtdcTimeType ForQuoteTime; + /// 业务日期 + TThostFtdcDateType ActionDay; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 当前期权合约执行偏移值的详细内容 +struct CThostFtdcStrikeOffsetField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 执行偏移值 + TThostFtdcMoneyType Offset; + /// 执行偏移类型 + TThostFtdcStrikeOffsetTypeType OffsetType; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 期权执行偏移值查询 +struct CThostFtdcQryStrikeOffsetField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 输入批量报单操作 +struct CThostFtdcInputBatchOrderActionField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 报单操作引用 + TThostFtdcOrderActionRefType OrderActionRef; + /// 请求编号 + TThostFtdcRequestIDType RequestID; + /// 前置编号 + TThostFtdcFrontIDType FrontID; + /// 会话编号 + TThostFtdcSessionIDType SessionID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 批量报单操作 +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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 交易所批量报单操作 +struct CThostFtdcExchangeBatchOrderActionField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 操作日期 + TThostFtdcDateType ActionDate; + /// 操作时间 + TThostFtdcTimeType ActionTime; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; + /// 安装编号 + TThostFtdcInstallIDType InstallID; + /// 操作本地编号 + TThostFtdcOrderLocalIDType ActionLocalID; + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + /// 报单操作状态 + TThostFtdcOrderActionStatusType OrderActionStatus; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 查询批量报单操作 +struct CThostFtdcQryBatchOrderActionField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +/// 组合合约安全系数 +struct CThostFtdcCombInstrumentGuardField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// + TThostFtdcRatioType GuarantRatio; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 组合合约安全系数查询 +struct CThostFtdcQryCombInstrumentGuardField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 输入的申请组合 +struct CThostFtdcInputCombActionField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 组合引用 + TThostFtdcOrderRefType CombActionRef; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 买卖方向 + TThostFtdcDirectionType Direction; + /// 数量 + TThostFtdcVolumeType Volume; + /// 组合指令方向 + TThostFtdcCombDirectionType CombDirection; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 前置编号 + TThostFtdcFrontIDType FrontID; + /// 会话编号 + TThostFtdcSessionIDType SessionID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 申请组合 +struct CThostFtdcCombActionField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 组合引用 + TThostFtdcOrderRefType CombActionRef; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 买卖方向 + TThostFtdcDirectionType Direction; + /// 数量 + TThostFtdcVolumeType Volume; + /// 组合指令方向 + TThostFtdcCombDirectionType CombDirection; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 本地申请组合编号 + TThostFtdcOrderLocalIDType ActionLocalID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; + /// 安装编号 + TThostFtdcInstallIDType InstallID; + /// 组合状态 + TThostFtdcOrderActionStatusType ActionStatus; + /// 报单提示序号 + TThostFtdcSequenceNoType NotifySequence; + /// 交易日 + TThostFtdcDateType TradingDay; + /// 结算编号 + TThostFtdcSettlementIDType SettlementID; + /// 序号 + TThostFtdcSequenceNoType SequenceNo; + /// 前置编号 + TThostFtdcFrontIDType FrontID; + /// 会话编号 + TThostFtdcSessionIDType SessionID; + /// 用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + /// 状态信息 + TThostFtdcErrorMsgType StatusMsg; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve3; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 组合编号 + TThostFtdcTradeIDType ComTradeID; + /// 营业部编号 + TThostFtdcBranchIDType BranchID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 申请组合查询 +struct CThostFtdcQryCombActionField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 交易所申请组合信息 +struct CThostFtdcExchangeCombActionField { + /// 买卖方向 + TThostFtdcDirectionType Direction; + /// 数量 + TThostFtdcVolumeType Volume; + /// 组合指令方向 + TThostFtdcCombDirectionType CombDirection; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 本地申请组合编号 + TThostFtdcOrderLocalIDType ActionLocalID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; + /// 安装编号 + TThostFtdcInstallIDType InstallID; + /// 组合状态 + TThostFtdcOrderActionStatusType ActionStatus; + /// 报单提示序号 + TThostFtdcSequenceNoType NotifySequence; + /// 交易日 + TThostFtdcDateType TradingDay; + /// 结算编号 + TThostFtdcSettlementIDType SettlementID; + /// 序号 + TThostFtdcSequenceNoType SequenceNo; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 组合编号 + TThostFtdcTradeIDType ComTradeID; + /// 营业部编号 + TThostFtdcBranchIDType BranchID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 交易所申请组合查询 +struct CThostFtdcQryExchangeCombActionField { + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 交易所交易员代码 + TThostFtdcTraderIDType TraderID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; +}; + +/// 产品报价汇率 +struct CThostFtdcProductExchRateField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 报价币种类型 + TThostFtdcCurrencyIDType QuoteCurrencyID; + /// 汇率 + TThostFtdcExchangeRateType ExchangeRate; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; +}; + +/// 产品报价汇率查询 +struct CThostFtdcQryProductExchRateField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; +}; + +/// 查询询价价差参数 +struct CThostFtdcQryForQuoteParamField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 询价价差参数 +struct CThostFtdcForQuoteParamField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 最新价 + TThostFtdcPriceType LastPrice; + /// 价差 + TThostFtdcPriceType PriceInterval; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 当前做市商期权合约手续费的详细内容 +struct CThostFtdcMMOptionInstrCommRateField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 开仓手续费率 + TThostFtdcRatioType OpenRatioByMoney; + /// 开仓手续费 + TThostFtdcRatioType OpenRatioByVolume; + /// 平仓手续费率 + TThostFtdcRatioType CloseRatioByMoney; + /// 平仓手续费 + TThostFtdcRatioType CloseRatioByVolume; + /// 平今手续费率 + TThostFtdcRatioType CloseTodayRatioByMoney; + /// 平今手续费 + TThostFtdcRatioType CloseTodayRatioByVolume; + /// 执行手续费率 + TThostFtdcRatioType StrikeRatioByMoney; + /// 执行手续费 + TThostFtdcRatioType StrikeRatioByVolume; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 做市商期权手续费率查询 +struct CThostFtdcQryMMOptionInstrCommRateField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 做市商合约手续费率 +struct CThostFtdcMMInstrumentCommissionRateField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 开仓手续费率 + TThostFtdcRatioType OpenRatioByMoney; + /// 开仓手续费 + TThostFtdcRatioType OpenRatioByVolume; + /// 平仓手续费率 + TThostFtdcRatioType CloseRatioByMoney; + /// 平仓手续费 + TThostFtdcRatioType CloseRatioByVolume; + /// 平今手续费率 + TThostFtdcRatioType CloseTodayRatioByMoney; + /// 平今手续费 + TThostFtdcRatioType CloseTodayRatioByVolume; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询做市商合约手续费率 +struct CThostFtdcQryMMInstrumentCommissionRateField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 当前报单手续费的详细内容 +struct CThostFtdcInstrumentOrderCommRateField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 报单手续费 + TThostFtdcRatioType OrderCommByVolume; + /// 撤单手续费 + TThostFtdcRatioType OrderActionCommByVolume; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 报单手续费 + TThostFtdcRatioType OrderCommByTrade; + /// 撤单手续费 + TThostFtdcRatioType OrderActionCommByTrade; +}; + +/// 报单手续费率查询 +struct CThostFtdcQryInstrumentOrderCommRateField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 交易参数 +struct CThostFtdcTradeParamField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 参数代码 + TThostFtdcTradeParamIDType TradeParamID; + /// 参数代码值 + TThostFtdcSettlementParamValueType TradeParamValue; + /// 备注 + TThostFtdcMemoType Memo; +}; + +/// 合约保证金率调整 +struct CThostFtdcInstrumentMarginRateULField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + /// 多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + /// 空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + /// 空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 期货持仓限制参数 +struct CThostFtdcFutureLimitPosiParamField { + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 当日投机开仓数量限制 + TThostFtdcVolumeType SpecOpenVolume; + /// 当日套利开仓数量限制 + TThostFtdcVolumeType ArbiOpenVolume; + /// 当日投机+套利开仓数量限制 + TThostFtdcVolumeType OpenVolume; + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; +}; + +/// 禁止登录IP +struct CThostFtdcLoginForbiddenIPField { + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// IP列表 +struct CThostFtdcIPListField { + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// 是否白名单 + TThostFtdcBoolType IsWhite; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 输入的期权自对冲 +struct CThostFtdcInputOptionSelfCloseField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 期权自对冲引用 + TThostFtdcOrderRefType OptionSelfCloseRef; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 数量 + TThostFtdcVolumeType Volume; + /// 请求编号 + TThostFtdcRequestIDType RequestID; + /// 业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 期权行权的头寸是否自对冲 + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 资金账号 + TThostFtdcAccountIDType AccountID; + /// 币种代码 + TThostFtdcCurrencyIDType CurrencyID; + /// 交易编码 + TThostFtdcClientIDType ClientID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 输入期权自对冲操作 +struct CThostFtdcInputOptionSelfCloseActionField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 期权自对冲操作引用 + TThostFtdcOrderActionRefType OptionSelfCloseActionRef; + /// 期权自对冲引用 + TThostFtdcOrderRefType OptionSelfCloseRef; + /// 请求编号 + TThostFtdcRequestIDType RequestID; + /// 前置编号 + TThostFtdcFrontIDType FrontID; + /// 会话编号 + TThostFtdcSessionIDType SessionID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 期权自对冲操作编号 + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + /// 操作标志 + TThostFtdcActionFlagType ActionFlag; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 期权自对冲 +struct CThostFtdcOptionSelfCloseField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 期权自对冲引用 + TThostFtdcOrderRefType OptionSelfCloseRef; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 数量 + TThostFtdcVolumeType Volume; + /// 请求编号 + TThostFtdcRequestIDType RequestID; + /// 业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 期权行权的头寸是否自对冲 + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + /// 本地期权自对冲编号 + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 交易所交易员代码 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve3; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 期权自对冲操作 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 营业部编号 + TThostFtdcBranchIDType BranchID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 期权自对冲查询 +struct CThostFtdcQryOptionSelfCloseField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 期权自对冲编号 + TThostFtdcOrderSysIDType OptionSelfCloseSysID; + /// 开始时间 + TThostFtdcTimeType InsertTimeStart; + /// 结束时间 + TThostFtdcTimeType InsertTimeEnd; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 交易所期权自对冲信息 +struct CThostFtdcExchangeOptionSelfCloseField { + /// 数量 + TThostFtdcVolumeType Volume; + /// 请求编号 + TThostFtdcRequestIDType RequestID; + /// 业务单元 + TThostFtdcBusinessUnitType BusinessUnit; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 期权行权的头寸是否自对冲 + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + /// 本地期权自对冲编号 + TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 会员代码 + TThostFtdcParticipantIDType ParticipantID; + /// 客户代码 + TThostFtdcClientIDType ClientID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 交易所交易员代码 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 期权自对冲操作查询 +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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 期权行权的头寸是否自对冲 + TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + /// IP地址 + TThostFtdcIPAddressType IPAddress; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; +}; + +/// 延时换汇同步 +struct CThostFtdcSyncDelaySwapField { + /// 换汇流水号 + TThostFtdcDepositSeqNoType DelaySwapSeqNo; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 源币种 + TThostFtdcCurrencyIDType FromCurrencyID; + /// 源金额 + TThostFtdcMoneyType FromAmount; + /// 源换汇冻结金额(可用冻结) + TThostFtdcMoneyType FromFrozenSwap; + /// 源剩余换汇额度(可提冻结) + TThostFtdcMoneyType FromRemainSwap; + /// 目标币种 + TThostFtdcCurrencyIDType ToCurrencyID; + /// 目标金额 + TThostFtdcMoneyType ToAmount; + /// 是否手工换汇 + TThostFtdcBoolType IsManualSwap; + /// 是否将所有外币的剩余换汇额度设置为0 + TThostFtdcBoolType IsAllRemainSetZero; +}; + +/// 查询延时换汇同步 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 最新价 + 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; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; +}; + +/// 行情基础属性 +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 { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 最后修改时间 + TThostFtdcTimeType UpdateTime; + /// 最后修改毫秒 + TThostFtdcMillisecType UpdateMillisec; + /// 业务日期 + TThostFtdcDateType ActionDay; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 行情上下带价 +struct CThostFtdcMarketDataBandingPriceField { + /// 上带价 + TThostFtdcPriceType BandingUpperPrice; + /// 下带价 + TThostFtdcPriceType BandingLowerPrice; +}; + +/// 行情交易所代码属性 +struct CThostFtdcMarketDataExchangeField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +/// 指定的合约 +struct CThostFtdcSpecificInstrumentField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 合约状态 +struct CThostFtdcInstrumentStatusField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 结算组代码 + TThostFtdcSettlementGroupIDType SettlementGroupID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve2; + /// 合约交易状态 + TThostFtdcInstrumentStatusType InstrumentStatus; + /// 交易阶段编号 + TThostFtdcTradingSegmentSNType TradingSegmentSN; + /// 进入本状态时间 + TThostFtdcTimeType EnterTime; + /// 进入本状态原因 + TThostFtdcInstStatusEnterReasonType EnterReason; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询合约状态 +struct CThostFtdcQryInstrumentStatusField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve1; + /// 合约在交易所的代码 + 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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 投资者持仓明细 +struct CThostFtdcInvestorPositionDetailField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 买卖 + TThostFtdcDirectionType Direction; + /// 开仓日期 + TThostFtdcDateType OpenDate; + /// 成交编号 + TThostFtdcTradeIDType TradeID; + /// 数量 + TThostFtdcVolumeType Volume; + /// 开仓价 + TThostFtdcPriceType OpenPrice; + /// 交易日 + TThostFtdcDateType TradingDay; + /// 结算编号 + TThostFtdcSettlementIDType SettlementID; + /// 成交类型 + TThostFtdcTradeTypeType TradeType; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve2; + /// 交易所代码 + 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; + /// 特殊持仓标志 + TThostFtdcSpecPosiTypeType SpecPosiType; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 组合合约代码 + TThostFtdcInstrumentIDType CombInstrumentID; +}; + +/// 资金账户口令域 +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; + /// 撤单时选择席位算法 + TThostFtdcOrderCancelAlgType OrderCancelAlg; +}; + +/// 查询行情报盘机 +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 { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 单腿编号 + TThostFtdcLegIDType LegID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve2; + /// 组合合约代码 + TThostFtdcInstrumentIDType CombInstrumentID; + /// 单腿合约代码 + TThostFtdcInstrumentIDType LegInstrumentID; +}; + +/// 查询组合合约分腿 +struct CThostFtdcQrySyncStatusField { + /// 交易日 + TThostFtdcDateType TradingDay; +}; + +/// 组合交易合约的单腿 +struct CThostFtdcCombinationLegField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 单腿编号 + TThostFtdcLegIDType LegID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve2; + /// 买卖方向 + TThostFtdcDirectionType Direction; + /// 单腿乘数 + TThostFtdcLegMultipleType LegMultiple; + /// 派生层数 + TThostFtdcImplyLevelType ImplyLevel; + /// 组合合约代码 + TThostFtdcInstrumentIDType CombInstrumentID; + /// 单腿合约代码 + TThostFtdcInstrumentIDType LegInstrumentID; +}; + +/// 数据同步状态 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 合约代码 + 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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 买卖 + TThostFtdcDirectionType Direction; + /// 持仓量 + TThostFtdcVolumeType TotalAmt; + /// 投资者保证金 + TThostFtdcMoneyType Margin; + /// 交易所保证金 + TThostFtdcMoneyType ExchMargin; + /// 保证金率 + TThostFtdcRatioType MarginRateByMoney; + /// 保证金率(按手数) + TThostFtdcRatioType MarginRateByVolume; + /// 单腿编号 + TThostFtdcLegIDType LegID; + /// 单腿乘数 + TThostFtdcLegMultipleType LegMultiple; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve2; + /// 成交组号 + TThostFtdcTradeGroupIDType TradeGroupID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 组合持仓合约编码 + TThostFtdcInstrumentIDType CombInstrumentID; +}; + +/// 预埋单 +struct CThostFtdcParkedOrderField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 报单引用 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 输入预埋单操作 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 预埋撤单单编号 + TThostFtdcParkedOrderActionIDType ParkedOrderActionID; + /// 用户类型 + TThostFtdcUserTypeType UserType; + /// 预埋撤单状态 + TThostFtdcParkedOrderStatusType Status; + /// 错误代码 + TThostFtdcErrorIDType ErrorID; + /// 错误信息 + TThostFtdcErrorMsgType ErrorMsg; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 查询预埋单 +struct CThostFtdcQryParkedOrderField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询预埋撤单 +struct CThostFtdcQryParkedOrderActionField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 删除预埋单 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 组合持仓合约编码 + TThostFtdcInstrumentIDType CombInstrumentID; +}; + +/// 成交均价 +struct CThostFtdcMarketDataAveragePriceField { + /// 当日均价 + TThostFtdcPriceType AveragePrice; +}; + +/// 校验投资者密码 +struct CThostFtdcVerifyInvestorPasswordField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 密码 + TThostFtdcPasswordType Password; +}; + +/// 用户IP +struct CThostFtdcUserIPField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// IP地址 + TThostFtdcIPAddressType IPAddress; + /// IP地址掩码 + TThostFtdcIPAddressType IPMask; +}; + +/// 用户事件通知信息 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 报单引用 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 查询错误报单操作 +struct CThostFtdcErrorConditionalOrderField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 报单引用 + 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; + /// 保留的无效字段 + TThostFtdcOldExchangeInstIDType reserve2; + /// 交易所交易员代码 + 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve3; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 查询错误报单操作 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 营业部编号 + TThostFtdcBranchIDType BranchID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve2; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 错误代码 + TThostFtdcErrorIDType ErrorID; + /// 错误信息 + TThostFtdcErrorMsgType ErrorMsg; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 查询交易所状态 +struct CThostFtdcQryExchangeSequenceField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +/// 交易所状态 +struct CThostFtdcExchangeSequenceField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 序号 + TThostFtdcSequenceNoType SequenceNo; + /// 合约交易状态 + TThostFtdcInstrumentStatusType MarketStatus; +}; + +/// 根据价格查询最大报单数量 +struct CThostFtdcQryMaxOrderVolumeWithPriceField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 买卖方向 + TThostFtdcDirectionType Direction; + /// 开平标志 + TThostFtdcOffsetFlagType OffsetFlag; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 最大允许报单数量 + TThostFtdcVolumeType MaxVolume; + /// 报单价格 + TThostFtdcPriceType Price; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询经纪公司交易参数 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 经纪公司交易算法 +struct CThostFtdcBrokerTradingAlgosField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 持仓处理算法编号 + TThostFtdcHandlePositionAlgoIDType HandlePositionAlgoID; + /// 寻找保证金率算法编号 + TThostFtdcFindMarginRateAlgoIDType FindMarginRateAlgoID; + /// 资金处理算法编号 + TThostFtdcHandleTradingAccountAlgoIDType HandleTradingAccountAlgoID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询经纪公司资金 +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; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 买卖方向 + TThostFtdcDirectionType Direction; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 数量 + TThostFtdcVolumeType Volume; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询仓单折抵信息 +struct CThostFtdcQryEWarrantOffsetField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 查询投资者品种/跨品种保证金 +struct CThostFtdcQryInvestorProductGroupMarginField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; + /// 品种/跨品种标示 + TThostFtdcInstrumentIDType ProductGroupID; +}; + +/// 投资者品种/跨品种保证金 +struct CThostFtdcInvestorProductGroupMarginField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 经纪公司代码 + 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; + /// 品种/跨品种标示 + TThostFtdcInstrumentIDType ProductGroupID; +}; + +/// 查询监控中心用户令牌 +struct CThostFtdcQueryCFMMCTradingAccountTokenField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 投资单元代码 + TThostFtdcInvestUnitIDType InvestUnitID; +}; + +/// 监控中心用户令牌 +struct CThostFtdcCFMMCTradingAccountTokenField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 经纪公司统一编码 + TThostFtdcParticipantIDType ParticipantID; + /// 投资者帐号 + TThostFtdcAccountIDType AccountID; + /// 密钥编号 + TThostFtdcSequenceNoType KeyID; + /// 动态令牌 + TThostFtdcCFMMCTokenType Token; +}; + +/// 查询产品组 +struct CThostFtdcQryProductGroupField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; +}; + +/// 投资者品种/跨品种保证金产品组 +struct CThostFtdcProductGroupField { + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve2; + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; + /// 产品组代码 + 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; +}; + +/// MulticastInstrument +struct CThostFtdcMulticastInstrumentField { + /// 主题号 + TThostFtdcInstallIDType TopicID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 合约编号 + TThostFtdcInstallIDType InstrumentNo; + /// 基准价 + TThostFtdcPriceType CodePrice; + /// 合约数量乘数 + TThostFtdcVolumeMultipleType VolumeMultiple; + /// 最小变动价位 + TThostFtdcPriceType PriceTick; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// QryMulticastInstrument +struct CThostFtdcQryMulticastInstrumentField { + /// 主题号 + TThostFtdcInstallIDType TopicID; + /// 保留的无效字段 + TThostFtdcOldInstrumentIDType reserve1; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// App客户端权限分配 +struct CThostFtdcAppIDAuthAssignField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// App代码 + TThostFtdcAppIDType AppID; + /// 交易中心代码 + TThostFtdcDRIdentityIDType DRIdentityID; +}; + +/// 转帐开户请求 +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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 查询禁止登录用户 +struct CThostFtdcQryLoginForbiddenUserField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 用户代码 + TThostFtdcUserIDType UserID; +}; + +/// 资金账户基本准备金 +struct CThostFtdcTradingAccountReserveField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者帐号 + TThostFtdcAccountIDType AccountID; + /// 基本准备金 + TThostFtdcMoneyType Reserve; + /// 币种代码 + TThostFtdcCurrencyIDType CurrencyID; +}; + +/// 查询禁止登录IP +struct CThostFtdcQryLoginForbiddenIPField { + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 查询IP列表 +struct CThostFtdcQryIPListField { + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// 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 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; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// 登录备注 + TThostFtdcLoginRemarkType LoginRemark; + /// 图形验证码的文字内容 + TThostFtdcPasswordType Captcha; + /// 终端IP端口 + TThostFtdcIPPortType ClientIPPort; + /// 终端IP地址 + TThostFtdcIPAddressType ClientIPAddress; +}; + +/// 用户发出带短信验证码的登录请求请求 +struct CThostFtdcReqUserLoginWithTextField { + /// 交易日 + TThostFtdcDateType TradingDay; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 密码 + TThostFtdcPasswordType Password; + /// 用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + /// 接口端产品信息 + TThostFtdcProductInfoType InterfaceProductInfo; + /// 协议信息 + TThostFtdcProtocolInfoType ProtocolInfo; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// 登录备注 + TThostFtdcLoginRemarkType LoginRemark; + /// 短信验证码文字内容 + TThostFtdcPasswordType Text; + /// 终端IP端口 + TThostFtdcIPPortType ClientIPPort; + /// 终端IP地址 + TThostFtdcIPAddressType ClientIPAddress; +}; + +/// 用户发出带动态验证码的登录请求请求 +struct CThostFtdcReqUserLoginWithOTPField { + /// 交易日 + TThostFtdcDateType TradingDay; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 密码 + TThostFtdcPasswordType Password; + /// 用户端产品信息 + TThostFtdcProductInfoType UserProductInfo; + /// 接口端产品信息 + TThostFtdcProductInfoType InterfaceProductInfo; + /// 协议信息 + TThostFtdcProtocolInfoType ProtocolInfo; + /// Mac地址 + TThostFtdcMacAddressType MacAddress; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// 登录备注 + TThostFtdcLoginRemarkType LoginRemark; + /// OTP密码 + TThostFtdcPasswordType OTPPassword; + /// 终端IP端口 + TThostFtdcIPPortType ClientIPPort; + /// 终端IP地址 + TThostFtdcIPAddressType ClientIPAddress; +}; + +/// 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; +}; + +/// 禁止认证IP +struct CThostFtdcAuthForbiddenIPField { + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 查询禁止认证IP +struct CThostFtdcQryAuthForbiddenIPField { + /// IP地址 + TThostFtdcIPAddressType IPAddress; +}; + +/// 换汇可提冻结 +struct CThostFtdcSyncDelaySwapFrozenField { + /// 换汇流水号 + TThostFtdcDepositSeqNoType DelaySwapSeqNo; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 源币种 + TThostFtdcCurrencyIDType FromCurrencyID; + /// 源剩余换汇额度(可提冻结) + TThostFtdcMoneyType FromRemainSwap; + /// 是否手工换汇 + TThostFtdcBoolType IsManualSwap; +}; + +/// 用户系统信息 +struct CThostFtdcUserSystemInfoField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 用户端系统内部信息长度 + TThostFtdcSystemInfoLenType ClientSystemInfoLen; + /// 用户端系统内部信息 + TThostFtdcClientSystemInfoType ClientSystemInfo; + /// 保留的无效字段 + TThostFtdcOldIPAddressType reserve1; + /// 终端IP端口 + TThostFtdcIPPortType ClientIPPort; + /// 登录成功时间 + TThostFtdcTimeType ClientLoginTime; + /// App代码 + TThostFtdcAppIDType ClientAppID; + /// 用户公网IP + TThostFtdcIPAddressType ClientPublicIP; + /// 客户登录备注2 + TThostFtdcClientLoginRemarkType ClientLoginRemark; +}; + +/// 终端用户绑定信息 +struct CThostFtdcAuthUserIDField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// App代码 + TThostFtdcAppIDType AppID; + /// 用户代码 + TThostFtdcUserIDType UserID; + /// 校验类型 + TThostFtdcAuthTypeType AuthType; +}; + +/// 用户IP绑定信息 +struct CThostFtdcAuthIPField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// App代码 + TThostFtdcAppIDType AppID; + /// 用户代码 + TThostFtdcIPAddressType IPAddress; +}; + +/// 查询分类合约 +struct CThostFtdcQryClassifiedInstrumentField { + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; + /// 合约交易状态 + TThostFtdcTradingTypeType TradingType; + /// 合约分类类型 + TThostFtdcClassTypeType ClassType; +}; + +/// 查询组合优惠比例 +struct CThostFtdcQryCombPromotionParamField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 组合优惠比例 +struct CThostFtdcCombPromotionParamField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 投机套保标志 + TThostFtdcCombHedgeFlagType CombHedgeFlag; + /// 期权组合保证金比例 + TThostFtdcDiscountRatioType Xparameter; +}; + +/// 国密用户登录请求 +struct CThostFtdcReqUserLoginSCField { + /// 交易日 + 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; + /// 认证码 + TThostFtdcAuthCodeType AuthCode; + /// App代码 + TThostFtdcAppIDType AppID; +}; + +/// 投资者风险结算持仓查询 +struct CThostFtdcQryRiskSettleInvstPositionField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; +}; + +/// 风险结算产品查询 +struct CThostFtdcQryRiskSettleProductStatusField { + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; +}; + +/// 投资者风险结算持仓 +struct CThostFtdcRiskSettleInvstPositionField { + /// 合约代码 + 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; + /// tas持仓手数 + TThostFtdcVolumeType TasPosition; + /// tas持仓成本 + TThostFtdcMoneyType TasPositionCost; +}; + +/// 风险品种 +struct CThostFtdcRiskSettleProductStatusField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 产品编号 + TThostFtdcInstrumentIDType ProductID; + /// 产品结算状态 + TThostFtdcProductStatusType ProductStatus; +}; + +/// 风险结算追平信息 +struct CThostFtdcSyncDeltaInfoField { + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; + /// 追平状态 + TThostFtdcSyncDeltaStatusType SyncDeltaStatus; + /// 追平描述 + TThostFtdcSyncDescriptionType SyncDescription; + /// 是否只有资金追平 + TThostFtdcBoolType IsOnlyTrdDelta; +}; + +/// 风险结算追平产品信息 +struct CThostFtdcSyncDeltaProductStatusField { + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; + /// 是否允许交易 + TThostFtdcProductStatusType ProductStatus; +}; + +/// 风险结算追平持仓明细 +struct CThostFtdcSyncDeltaInvstPosDtlField { + /// 合约代码 + 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; + /// 特殊持仓标志 + TThostFtdcSpecPosiTypeType SpecPosiType; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平组合持仓明细 +struct CThostFtdcSyncDeltaInvstPosCombDtlField { + /// 交易日 + 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; + /// 成交组号 + TThostFtdcTradeGroupIDType TradeGroupID; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平资金 +struct CThostFtdcSyncDeltaTradingAccountField { + /// 经纪公司代码 + 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; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 投资者风险结算总保证金 +struct CThostFtdcSyncDeltaInitInvstMarginField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 追平前总风险保证金 + TThostFtdcMoneyType LastRiskTotalInvstMargin; + /// 追平前交易所总风险保证金 + TThostFtdcMoneyType LastRiskTotalExchMargin; + /// 本次追平品种总保证金 + TThostFtdcMoneyType ThisSyncInvstMargin; + /// 本次追平品种交易所总保证金 + TThostFtdcMoneyType ThisSyncExchMargin; + /// 本次未追平品种总保证金 + TThostFtdcMoneyType RemainRiskInvstMargin; + /// 本次未追平品种交易所总保证金 + TThostFtdcMoneyType RemainRiskExchMargin; + /// 追平前总特殊产品风险保证金 + TThostFtdcMoneyType LastRiskSpecTotalInvstMargin; + /// 追平前总特殊产品交易所风险保证金 + TThostFtdcMoneyType LastRiskSpecTotalExchMargin; + /// 本次追平品种特殊产品总保证金 + TThostFtdcMoneyType ThisSyncSpecInvstMargin; + /// 本次追平品种特殊产品交易所总保证金 + TThostFtdcMoneyType ThisSyncSpecExchMargin; + /// 本次未追平品种特殊产品总保证金 + TThostFtdcMoneyType RemainRiskSpecInvstMargin; + /// 本次未追平品种特殊产品交易所总保证金 + TThostFtdcMoneyType RemainRiskSpecExchMargin; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平组合优先级 +struct CThostFtdcSyncDeltaDceCombInstrumentField { + /// 合约代码 + TThostFtdcInstrumentIDType CombInstrumentID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约在交易所的代码 + TThostFtdcExchangeInstIDType ExchangeInstID; + /// 成交组号 + TThostFtdcTradeGroupIDType TradeGroupID; + /// 投机套保标志 + TThostFtdcHedgeFlagType CombHedgeFlag; + /// 组合类型 + TThostFtdcDceCombinationTypeType CombinationType; + /// 买卖 + TThostFtdcDirectionType Direction; + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; + /// 期权组合保证金比例 + TThostFtdcDiscountRatioType Xparameter; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平投资者期货保证金率 +struct CThostFtdcSyncDeltaInvstMarginRateField { + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + /// 多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + /// 空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + /// 空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + /// 是否相对交易所收取 + TThostFtdcBoolType IsRelative; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平交易所期货保证金率 +struct CThostFtdcSyncDeltaExchMarginRateField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + /// 多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + /// 空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + /// 空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平中金现货期权交易所保证金率 +struct CThostFtdcSyncDeltaOptExchMarginField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 投机空头保证金调整系数 + TThostFtdcRatioType SShortMarginRatioByMoney; + /// 投机空头保证金调整系数 + TThostFtdcMoneyType SShortMarginRatioByVolume; + /// 保值空头保证金调整系数 + TThostFtdcRatioType HShortMarginRatioByMoney; + /// 保值空头保证金调整系数 + TThostFtdcMoneyType HShortMarginRatioByVolume; + /// 套利空头保证金调整系数 + TThostFtdcRatioType AShortMarginRatioByMoney; + /// 套利空头保证金调整系数 + TThostFtdcMoneyType AShortMarginRatioByVolume; + /// 做市商空头保证金调整系数 + TThostFtdcRatioType MShortMarginRatioByMoney; + /// 做市商空头保证金调整系数 + TThostFtdcMoneyType MShortMarginRatioByVolume; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平中金现货期权投资者保证金率 +struct CThostFtdcSyncDeltaOptInvstMarginField { + /// 合约代码 + 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; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平期权标的调整保证金率 +struct CThostFtdcSyncDeltaInvstMarginRateULField { + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 多头保证金率 + TThostFtdcRatioType LongMarginRatioByMoney; + /// 多头保证金费 + TThostFtdcMoneyType LongMarginRatioByVolume; + /// 空头保证金率 + TThostFtdcRatioType ShortMarginRatioByMoney; + /// 空头保证金费 + TThostFtdcMoneyType ShortMarginRatioByVolume; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平期权手续费率 +struct CThostFtdcSyncDeltaOptInvstCommRateField { + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 开仓手续费率 + TThostFtdcRatioType OpenRatioByMoney; + /// 开仓手续费 + TThostFtdcRatioType OpenRatioByVolume; + /// 平仓手续费率 + TThostFtdcRatioType CloseRatioByMoney; + /// 平仓手续费 + TThostFtdcRatioType CloseRatioByVolume; + /// 平今手续费率 + TThostFtdcRatioType CloseTodayRatioByMoney; + /// 平今手续费 + TThostFtdcRatioType CloseTodayRatioByVolume; + /// 执行手续费率 + TThostFtdcRatioType StrikeRatioByMoney; + /// 执行手续费 + TThostFtdcRatioType StrikeRatioByVolume; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平期货手续费率 +struct CThostFtdcSyncDeltaInvstCommRateField { + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 开仓手续费率 + TThostFtdcRatioType OpenRatioByMoney; + /// 开仓手续费 + TThostFtdcRatioType OpenRatioByVolume; + /// 平仓手续费率 + TThostFtdcRatioType CloseRatioByMoney; + /// 平仓手续费 + TThostFtdcRatioType CloseRatioByVolume; + /// 平今手续费率 + TThostFtdcRatioType CloseTodayRatioByMoney; + /// 平今手续费 + TThostFtdcRatioType CloseTodayRatioByVolume; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平交叉汇率 +struct CThostFtdcSyncDeltaProductExchRateField { + /// 产品代码 + TThostFtdcInstrumentIDType ProductID; + /// 报价币种类型 + TThostFtdcCurrencyIDType QuoteCurrencyID; + /// 汇率 + TThostFtdcExchangeRateType ExchangeRate; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平行情 +struct CThostFtdcSyncDeltaDepthMarketDataField { + /// 交易日 + 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; + /// 上带价 + TThostFtdcPriceType BandingUpperPrice; + /// 下带价 + TThostFtdcPriceType BandingLowerPrice; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平现货指数 +struct CThostFtdcSyncDeltaIndexPriceField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 指数现货收盘价 + TThostFtdcPriceType ClosePrice; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// 风险结算追平仓单折抵 +struct CThostFtdcSyncDeltaEWarrantOffsetField { + /// 交易日期 + TThostFtdcTradeDateType TradingDay; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 买卖方向 + TThostFtdcDirectionType Direction; + /// 投机套保标志 + TThostFtdcHedgeFlagType HedgeFlag; + /// 数量 + TThostFtdcVolumeType Volume; + /// 操作标志 + TThostFtdcActionDirectionType ActionDirection; + /// 追平序号 + TThostFtdcSequenceNoType SyncDeltaSequenceNo; +}; + +/// SPBM期货合约保证金参数 +struct CThostFtdcSPBMFutureParameterField { + /// 交易日 + TThostFtdcDateType TradingDay; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 品种代码 + TThostFtdcInstrumentIDType ProdFamilyCode; + /// 期货合约因子 + TThostFtdcVolumeMultipleType Cvf; + /// 阶段标识 + TThostFtdcTimeRangeType TimeRange; + /// 品种保证金标准 + TThostFtdcRatioType MarginRate; + /// 期货合约内部对锁仓费率折扣比例 + TThostFtdcRatioType LockRateX; + /// 提高保证金标准 + TThostFtdcRatioType AddOnRate; + /// 昨结算价 + TThostFtdcPriceType PreSettlementPrice; +}; + +/// SPBM期权合约保证金参数 +struct CThostFtdcSPBMOptionParameterField { + /// 交易日 + TThostFtdcDateType TradingDay; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 品种代码 + TThostFtdcInstrumentIDType ProdFamilyCode; + /// 期权合约因子 + TThostFtdcVolumeMultipleType Cvf; + /// 期权冲抵价格 + TThostFtdcPriceType DownPrice; + /// Delta值 + TThostFtdcDeltaType Delta; + /// 卖方期权风险转换最低值 + TThostFtdcDeltaType SlimiDelta; + /// 昨结算价 + TThostFtdcPriceType PreSettlementPrice; +}; + +/// SPBM品种内对锁仓折扣参数 +struct CThostFtdcSPBMIntraParameterField { + /// 交易日 + TThostFtdcDateType TradingDay; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 品种代码 + TThostFtdcInstrumentIDType ProdFamilyCode; + /// 品种内合约间对锁仓费率折扣比例 + TThostFtdcRatioType IntraRateY; +}; + +/// SPBM跨品种抵扣参数 +struct CThostFtdcSPBMInterParameterField { + /// 交易日 + TThostFtdcDateType TradingDay; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 优先级 + TThostFtdcSpreadIdType SpreadId; + /// 品种间对锁仓费率折扣比例 + TThostFtdcRatioType InterRateZ; + /// 第一腿构成品种 + TThostFtdcInstrumentIDType Leg1ProdFamilyCode; + /// 第二腿构成品种 + TThostFtdcInstrumentIDType Leg2ProdFamilyCode; +}; + +/// 同步SPBM参数结束 +struct CThostFtdcSyncSPBMParameterEndField { + /// 交易日 + TThostFtdcDateType TradingDay; +}; + +/// SPBM期货合约保证金参数查询 +struct CThostFtdcQrySPBMFutureParameterField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 品种代码 + TThostFtdcInstrumentIDType ProdFamilyCode; +}; + +/// SPBM期权合约保证金参数查询 +struct CThostFtdcQrySPBMOptionParameterField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 合约代码 + TThostFtdcInstrumentIDType InstrumentID; + /// 品种代码 + TThostFtdcInstrumentIDType ProdFamilyCode; +}; + +/// SPBM品种内对锁仓折扣参数查询 +struct CThostFtdcQrySPBMIntraParameterField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 品种代码 + TThostFtdcInstrumentIDType ProdFamilyCode; +}; + +/// SPBM跨品种抵扣参数查询 +struct CThostFtdcQrySPBMInterParameterField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 第一腿构成品种 + TThostFtdcInstrumentIDType Leg1ProdFamilyCode; + /// 第二腿构成品种 + TThostFtdcInstrumentIDType Leg2ProdFamilyCode; +}; + +/// 组合保证金套餐 +struct CThostFtdcSPBMPortfDefinitionField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 组合保证金套餐代码 + TThostFtdcPortfolioDefIDType PortfolioDefID; + /// 品种代码 + TThostFtdcInstrumentIDType ProdFamilyCode; + /// 是否启用SPBM + TThostFtdcBoolType IsSPBM; +}; + +/// 投资者套餐选择 +struct CThostFtdcSPBMInvestorPortfDefField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 组合保证金套餐代码 + TThostFtdcPortfolioDefIDType PortfolioDefID; +}; + +/// 投资者新型组合保证金系数 +struct CThostFtdcInvestorPortfMarginRatioField { + /// 投资者范围 + TThostFtdcInvestorRangeType InvestorRange; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 会员对投资者收取的保证金和交易所对投资者收取的保证金的比例 + TThostFtdcRatioType MarginRatio; +}; + +/// 组合保证金套餐查询 +struct CThostFtdcQrySPBMPortfDefinitionField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 组合保证金套餐代码 + TThostFtdcPortfolioDefIDType PortfolioDefID; + /// 品种代码 + TThostFtdcInstrumentIDType ProdFamilyCode; +}; + +/// 投资者套餐选择查询 +struct CThostFtdcQrySPBMInvestorPortfDefField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; +}; + +/// 投资者新型组合保证金系数查询 +struct CThostFtdcQryInvestorPortfMarginRatioField { + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; +}; + +/// 投资者产品SPBM明细 +struct CThostFtdcInvestorProdSPBMDetailField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 品种代码 + TThostFtdcInstrumentIDType ProdFamilyCode; + /// 合约内对锁保证金 + TThostFtdcMoneyType IntraInstrMargin; + /// 买归集保证金 + TThostFtdcMoneyType BCollectingMargin; + /// 卖归集保证金 + TThostFtdcMoneyType SCollectingMargin; + /// 品种内合约间对锁保证金 + TThostFtdcMoneyType IntraProdMargin; + /// 净保证金 + TThostFtdcMoneyType NetMargin; + /// 产品间对锁保证金 + TThostFtdcMoneyType InterProdMargin; + /// 裸保证金 + TThostFtdcMoneyType SingleMargin; + /// 附加保证金 + TThostFtdcMoneyType AddOnMargin; + /// 交割月保证金 + TThostFtdcMoneyType DeliveryMargin; + /// 看涨期权最低风险 + TThostFtdcMoneyType CallOptionMinRisk; + /// 看跌期权最低风险 + TThostFtdcMoneyType PutOptionMinRisk; + /// 卖方期权最低风险 + TThostFtdcMoneyType OptionMinRisk; + /// 买方期权冲抵价值 + TThostFtdcMoneyType OptionValueOffset; + /// 卖方期权权利金 + TThostFtdcMoneyType OptionRoyalty; + /// 价值冲抵 + TThostFtdcMoneyType RealOptionValueOffset; + /// 保证金 + TThostFtdcMoneyType Margin; + /// 交易所保证金 + TThostFtdcMoneyType ExchMargin; +}; + +/// 投资者产品SPBM明细查询 +struct CThostFtdcQryInvestorProdSPBMDetailField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 品种代码 + TThostFtdcInstrumentIDType ProdFamilyCode; +}; + +/// 组保交易参数设置 +struct CThostFtdcPortfTradeParamSettingField { + /// 交易所代码 + TThostFtdcExchangeIDType ExchangeID; + /// 经纪公司代码 + TThostFtdcBrokerIDType BrokerID; + /// 投资者代码 + TThostFtdcInvestorIDType InvestorID; + /// 新型组保算法 + TThostFtdcPortfolioType Portfolio; + /// 撤单是否验资 + TThostFtdcBoolType IsActionVerify; + /// 平仓是否验资 + TThostFtdcBoolType IsCloseVerify; +}; + +#endif diff --git a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/error.dtd b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/error.dtd similarity index 100% rename from api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/error.dtd rename to api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/error.dtd diff --git a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/error.xml b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/error.xml new file mode 100644 index 0000000..9637999 --- /dev/null +++ b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/error.xml @@ -0,0 +1,271 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +~ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/thostmduserapi_se.so b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/libthostmduserapi_se.so similarity index 100% rename from api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/thostmduserapi_se.so rename to api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/libthostmduserapi_se.so diff --git a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/thosttraderapi_se.so b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/libthosttraderapi_se.so similarity index 100% rename from api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/thosttraderapi_se.so rename to api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/libthosttraderapi_se.so diff --git a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcMdApi.h b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcMdApi.h deleted file mode 100644 index 9ad4134..0000000 --- a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcMdApi.h +++ /dev/null @@ -1,168 +0,0 @@ -///////////////////////////////////////////////////////////////////////// -///@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 OnRspQryMulticastInstrument(CThostFtdcMulticastInstrumentField *pMulticastInstrument, 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; - - ///ѯ鲥Լ - virtual int ReqQryMulticastInstrument(CThostFtdcQryMulticastInstrumentField *pQryMulticastInstrument, int nRequestID) = 0; -protected: - ~CThostFtdcMdApi(){}; -}; - -#endif diff --git a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcTraderApi.h b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcTraderApi.h deleted file mode 100644 index 2225507..0000000 --- a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcTraderApi.h +++ /dev/null @@ -1,818 +0,0 @@ -///////////////////////////////////////////////////////////////////////// -///@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 OnRspQryMaxOrderVolume(CThostFtdcQryMaxOrderVolumeField *pQryMaxOrderVolume, 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 OnRspQryTraderOffer(CThostFtdcTraderOfferField *pTraderOffer, 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) {}; - - ///ѯԼӦ - virtual void OnRspQryClassifiedInstrument(CThostFtdcInstrumentField *pInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///ŻݱӦ - virtual void OnRspQryCombPromotionParam(CThostFtdcCombPromotionParamField *pCombPromotionParam, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///Ͷ߷սֲֲѯӦ - virtual void OnRspQryRiskSettleInvstPosition(CThostFtdcRiskSettleInvstPositionField *pRiskSettleInvstPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///սƷѯӦ - virtual void OnRspQryRiskSettleProductStatus(CThostFtdcRiskSettleProductStatusField *pRiskSettleProductStatus, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///SPBMڻԼѯӦ - virtual void OnRspQrySPBMFutureParameter(CThostFtdcSPBMFutureParameterField *pSPBMFutureParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///SPBMȨԼѯӦ - virtual void OnRspQrySPBMOptionParameter(CThostFtdcSPBMOptionParameterField *pSPBMOptionParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///SPBMƷڶۿ۲ѯӦ - virtual void OnRspQrySPBMIntraParameter(CThostFtdcSPBMIntraParameterField *pSPBMIntraParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///SPBMƷֵֿ۲ѯӦ - virtual void OnRspQrySPBMInterParameter(CThostFtdcSPBMInterParameterField *pSPBMInterParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///SPBMϱ֤ײͲѯӦ - virtual void OnRspQrySPBMPortfDefinition(CThostFtdcSPBMPortfDefinitionField *pSPBMPortfDefinition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///ͶSPBMײѡѯӦ - virtual void OnRspQrySPBMInvestorPortfDef(CThostFtdcSPBMInvestorPortfDefField *pSPBMInvestorPortfDef, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///Ͷϱ֤ϵѯӦ - virtual void OnRspQryInvestorPortfMarginRatio(CThostFtdcInvestorPortfMarginRatioField *pInvestorPortfMarginRatio, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; - - ///Ͷ߲ƷSPBMϸѯӦ - virtual void OnRspQryInvestorProdSPBMDetail(CThostFtdcInvestorProdSPBMDetailField *pInvestorProdSPBMDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {}; -}; - -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:ֻ͵¼󹫹 - /// THOST_TERT_NONE:ȡĹ - ///@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 ReqQryMaxOrderVolume(CThostFtdcQryMaxOrderVolumeField *pQryMaxOrderVolume, 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 ReqQryTraderOffer(CThostFtdcQryTraderOfferField *pQryTraderOffer, 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; - - ///ѯԼ - virtual int ReqQryClassifiedInstrument(CThostFtdcQryClassifiedInstrumentField *pQryClassifiedInstrument, int nRequestID) = 0; - - ///Żݱ - virtual int ReqQryCombPromotionParam(CThostFtdcQryCombPromotionParamField *pQryCombPromotionParam, int nRequestID) = 0; - - ///Ͷ߷սֲֲѯ - virtual int ReqQryRiskSettleInvstPosition(CThostFtdcQryRiskSettleInvstPositionField *pQryRiskSettleInvstPosition, int nRequestID) = 0; - - ///սƷѯ - virtual int ReqQryRiskSettleProductStatus(CThostFtdcQryRiskSettleProductStatusField *pQryRiskSettleProductStatus, int nRequestID) = 0; - - ///SPBMڻԼѯ - virtual int ReqQrySPBMFutureParameter(CThostFtdcQrySPBMFutureParameterField *pQrySPBMFutureParameter, int nRequestID) = 0; - - ///SPBMȨԼѯ - virtual int ReqQrySPBMOptionParameter(CThostFtdcQrySPBMOptionParameterField *pQrySPBMOptionParameter, int nRequestID) = 0; - - ///SPBMƷڶۿ۲ѯ - virtual int ReqQrySPBMIntraParameter(CThostFtdcQrySPBMIntraParameterField *pQrySPBMIntraParameter, int nRequestID) = 0; - - ///SPBMƷֵֿ۲ѯ - virtual int ReqQrySPBMInterParameter(CThostFtdcQrySPBMInterParameterField *pQrySPBMInterParameter, int nRequestID) = 0; - - ///SPBMϱ֤ײͲѯ - virtual int ReqQrySPBMPortfDefinition(CThostFtdcQrySPBMPortfDefinitionField *pQrySPBMPortfDefinition, int nRequestID) = 0; - - ///ͶSPBMײѡѯ - virtual int ReqQrySPBMInvestorPortfDef(CThostFtdcQrySPBMInvestorPortfDefField *pQrySPBMInvestorPortfDef, int nRequestID) = 0; - - ///Ͷϱ֤ϵѯ - virtual int ReqQryInvestorPortfMarginRatio(CThostFtdcQryInvestorPortfMarginRatioField *pQryInvestorPortfMarginRatio, int nRequestID) = 0; - - ///Ͷ߲ƷSPBMϸѯ - virtual int ReqQryInvestorProdSPBMDetail(CThostFtdcQryInvestorProdSPBMDetailField *pQryInvestorProdSPBMDetail, int nRequestID) = 0; -protected: - ~CThostFtdcTraderApi(){}; -}; - -#endif diff --git a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcUserApiStruct.h b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcUserApiStruct.h deleted file mode 100644 index b8d3b0d..0000000 --- a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/ThostFtdcUserApiStruct.h +++ /dev/null @@ -1,11195 +0,0 @@ -///////////////////////////////////////////////////////////////////////// -///@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; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///¼ע - TThostFtdcLoginRemarkType LoginRemark; - ///նIP˿ - TThostFtdcIPPortType ClientIPPort; - ///նIPַ - TThostFtdcIPAddressType ClientIPAddress; -}; - -///û¼Ӧ -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; - ///̨汾Ϣ - TThostFtdcSysVersionType SysVersion; - ///ʱ - TThostFtdcTimeType GFEXTime; -}; - -///û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; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///նIPַ - TThostFtdcIPAddressType ClientIPAddress; -}; - -///û¼Ӧ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 -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ʒ - 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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve2; - ///ԼƷ - TThostFtdcUnderlyingMultipleType UnderlyingMultiple; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; - ///Ʒ - TThostFtdcInstrumentIDType ExchangeProductID; - /// - TThostFtdcOpenLimitControlLevelType OpenLimitControlLevel; - ///Ƶʿ - TThostFtdcOrderFreqControlLevelType OrderFreqControlLevel; -}; - -///Լ -struct CThostFtdcInstrumentField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentNameType InstrumentName; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve3; - ///Ʒ - 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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve4; - ///ִм - TThostFtdcPriceType StrikePrice; - ///Ȩ - TThostFtdcOptionsTypeType OptionsType; - ///ԼƷ - TThostFtdcUnderlyingMultipleType UnderlyingMultiple; - /// - TThostFtdcCombinationTypeType CombinationType; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; - ///Ʒ - TThostFtdcInstrumentIDType UnderlyingInstrID; -}; - -///͹˾ -struct CThostFtdcBrokerField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///͹˾ - TThostFtdcBrokerAbbrType BrokerAbbr; - ///͹˾ - TThostFtdcBrokerNameType BrokerName; - ///ǷԾ - TThostFtdcBoolType IsActive; -}; - -///Ա -struct CThostFtdcTraderField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcTraderIDType TraderID; - ///Ա - TThostFtdcParticipantIDType ParticipantID; - /// - TThostFtdcPasswordType Password; - ///װ - TThostFtdcInstallCountType InstallCount; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///ʱѡϯλ㷨 - TThostFtdcOrderCancelAlgType OrderCancelAlg; -}; - -///Ͷ -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; - ///ǷƵʿ - TThostFtdcEnumBoolType IsOrderFreq; - ///Ƿ񿪲 - TThostFtdcEnumBoolType IsOpenVolLimit; -}; - -///ױ -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 -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///͹˾ - 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; - ///tasֲ - TThostFtdcVolumeType TasPosition; - ///tasֲֳɱ - TThostFtdcMoneyType TasPositionCost; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Լ֤ -struct CThostFtdcInstrumentMarginRateField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ͷ֤ - TThostFtdcRatioType LongMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType LongMarginRatioByVolume; - ///ͷ֤ - TThostFtdcRatioType ShortMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType ShortMarginRatioByVolume; - ///ǷԽȡ - TThostFtdcBoolType IsRelative; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Լ -struct CThostFtdcInstrumentCommissionRateField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcRatioType OpenRatioByMoney; - /// - TThostFtdcRatioType OpenRatioByVolume; - ///ƽ - TThostFtdcRatioType CloseRatioByMoney; - ///ƽ - TThostFtdcRatioType CloseRatioByVolume; - ///ƽ - TThostFtdcRatioType CloseTodayRatioByMoney; - ///ƽ - TThostFtdcRatioType CloseTodayRatioByVolume; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ҵ - TThostFtdcBizTypeType BizType; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -/// -struct CThostFtdcDepthMarketDataField -{ - /// - TThostFtdcDateType TradingDay; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///¼ - 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; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///ϴ - TThostFtdcPriceType BandingUpperPrice; - ///´ - TThostFtdcPriceType BandingLowerPrice; -}; - -///ͶߺԼȨ -struct CThostFtdcInstrumentTradingRightField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ȩ - TThostFtdcTradingRightType TradingRight; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///͹˾û -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; - ///ʱѡϯλ㷨 - TThostFtdcOrderCancelAlgType OrderCancelAlg; -}; - -///Ͷ߽ -struct CThostFtdcSettlementInfoField -{ - /// - TThostFtdcDateType TradingDay; - /// - TThostFtdcSettlementIDType SettlementID; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcSequenceNoType SequenceNo; - ///Ϣ - TThostFtdcContentType Content; - ///Ͷʺ - TThostFtdcAccountIDType AccountID; - ///ִ - TThostFtdcCurrencyIDType CurrencyID; -}; - -///Լ֤ʵ -struct CThostFtdcInstrumentMarginRateAdjustField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ͷ֤ - TThostFtdcRatioType LongMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType LongMarginRatioByVolume; - ///ͷ֤ - TThostFtdcRatioType ShortMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType ShortMarginRatioByVolume; - ///ǷԽȡ - TThostFtdcBoolType IsRelative; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///֤ -struct CThostFtdcExchangeMarginRateField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ͷ֤ - TThostFtdcRatioType LongMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType LongMarginRatioByVolume; - ///ͷ֤ - TThostFtdcRatioType ShortMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType ShortMarginRatioByVolume; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///֤ʵ -struct CThostFtdcExchangeMarginRateAdjustField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷױ־ - 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; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -/// -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; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///û˲ƷϢ - 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; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///¼Ϣ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -/// -struct CThostFtdcOrderField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - 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; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///Ա - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve3; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -/// -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; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - ///Ա - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ʧ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -/// -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ӫҵ - TThostFtdcBranchIDType BranchID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -/// -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; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ʧ -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; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - ///ƽ־ - 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; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; -}; - -///ɽ -struct CThostFtdcTradeField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcOrderRefType OrderRef; - ///û - TThostFtdcUserIDType UserID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ɽ - TThostFtdcTradeIDType TradeID; - /// - TThostFtdcDirectionType Direction; - /// - TThostFtdcOrderSysIDType OrderSysID; - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - ///׽ɫ - TThostFtdcTradingRoleType TradingRole; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///ƽ־ - 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; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; -}; - -///ûỰ -struct CThostFtdcUserSessionField -{ - ///ǰñ - TThostFtdcFrontIDType FrontID; - ///Ự - TThostFtdcSessionIDType SessionID; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///û - TThostFtdcUserIDType UserID; - ///¼ - TThostFtdcDateType LoginDate; - ///¼ʱ - TThostFtdcTimeType LoginTime; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///û˲ƷϢ - TThostFtdcProductInfoType UserProductInfo; - ///ӿڶ˲ƷϢ - TThostFtdcProductInfoType InterfaceProductInfo; - ///ЭϢ - TThostFtdcProtocolInfoType ProtocolInfo; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///¼ע - TThostFtdcLoginRemarkType LoginRemark; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯ󱨵 -struct CThostFtdcQryMaxOrderVolumeField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcDirectionType Direction; - ///ƽ־ - TThostFtdcOffsetFlagType OffsetFlag; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - /// - TThostFtdcVolumeType MaxVolume; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Ͷ߽ȷϢ -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; - ///ǷǸȨת - TThostFtdcBoolType IsFromSopt; - ///ʽ - TThostFtdcPasswordType TradingPassword; -}; - -///Ѻͬ -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; - ///ǷƵʿ - TThostFtdcEnumBoolType IsOrderFreq; - ///Ƿ񿪲 - TThostFtdcEnumBoolType IsOpenVolLimit; -}; - -///ͬеĽ״ -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 -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///͹˾ - 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; - ///tasֲ - TThostFtdcVolumeType TasPosition; - ///tasֲֳɱ - TThostFtdcMoneyType TasPositionCost; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ͬеĺԼ֤ -struct CThostFtdcSyncingInstrumentMarginRateField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ͷ֤ - TThostFtdcRatioType LongMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType LongMarginRatioByVolume; - ///ͷ֤ - TThostFtdcRatioType ShortMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType ShortMarginRatioByVolume; - ///ǷԽȡ - TThostFtdcBoolType IsRelative; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ͬеĺԼ -struct CThostFtdcSyncingInstrumentCommissionRateField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcRatioType OpenRatioByMoney; - /// - TThostFtdcRatioType OpenRatioByVolume; - ///ƽ - TThostFtdcRatioType CloseRatioByMoney; - ///ƽ - TThostFtdcRatioType CloseRatioByVolume; - ///ƽ - TThostFtdcRatioType CloseTodayRatioByMoney; - ///ƽ - TThostFtdcRatioType CloseTodayRatioByVolume; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ͬеĺԼȨ -struct CThostFtdcSyncingInstrumentTradingRightField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ȩ - TThostFtdcTradingRightType TradingRight; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯ -struct CThostFtdcQryOrderField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - /// - TThostFtdcOrderSysIDType OrderSysID; - ///ʼʱ - TThostFtdcTimeType InsertTimeStart; - ///ʱ - TThostFtdcTimeType InsertTimeEnd; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯɽ -struct CThostFtdcQryTradeField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ɽ - TThostFtdcTradeIDType TradeID; - ///ʼʱ - TThostFtdcTimeType TradeTimeStart; - ///ʱ - TThostFtdcTimeType TradeTimeEnd; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯͶֲ߳ -struct CThostFtdcQryInvestorPositionField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯʽ˻ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯ -struct CThostFtdcQryInstrumentCommissionRateField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯԼȨ -struct CThostFtdcQryInstrumentTradingRightField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Լ - 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; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcTraderIDType TraderID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; -}; - -///ѯ -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 -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ʒ - TThostFtdcProductClassType ProductClass; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; -}; - -///ѯԼ -struct CThostFtdcQryInstrumentField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve3; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; -}; - -///ѯ -struct CThostFtdcQryDepthMarketDataField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - 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; - ///Ͷʺ - TThostFtdcAccountIDType AccountID; - ///ִ - TThostFtdcCurrencyIDType CurrencyID; -}; - -///ѯ֤ -struct CThostFtdcQryExchangeMarginRateField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯ֤ -struct CThostFtdcQryExchangeMarginRateAdjustField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯ -struct CThostFtdcQryExchangeRateField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Դ - TThostFtdcCurrencyIDType FromCurrencyID; - ///Ŀ - TThostFtdcCurrencyIDType ToCurrencyID; -}; - -///ѯѺˮ -struct CThostFtdcQrySyncFundMortgageField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ѻˮ - TThostFtdcDepositSeqNoType MortgageSeqNo; -}; - -///ѯ -struct CThostFtdcQryHisOrderField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - /// - TThostFtdcOrderSysIDType OrderSysID; - ///ʼʱ - TThostFtdcTimeType InsertTimeStart; - ///ʱ - TThostFtdcTimeType InsertTimeEnd; - /// - TThostFtdcDateType TradingDay; - /// - TThostFtdcSettlementIDType SettlementID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ǰȨԼС֤ -struct CThostFtdcOptionInstrMiniMarginField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///λ֣ȨԼС֤ - TThostFtdcMoneyType MinMargin; - ///ȡֵʽ - TThostFtdcValueMethodType ValueMethod; - ///Ƿ潻ȡ - TThostFtdcBoolType IsRelative; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ǰȨԼ֤ϵ -struct CThostFtdcOptionInstrMarginAdjustField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ͷͷ֤ϵ - TThostFtdcRatioType SShortMarginRatioByMoney; - ///Ͷͷ֤ϵ - TThostFtdcMoneyType SShortMarginRatioByVolume; - ///ֵͷ֤ϵ - TThostFtdcRatioType HShortMarginRatioByMoney; - ///ֵͷ֤ϵ - TThostFtdcMoneyType HShortMarginRatioByVolume; - ///ͷ֤ϵ - TThostFtdcRatioType AShortMarginRatioByMoney; - ///ͷ֤ϵ - TThostFtdcMoneyType AShortMarginRatioByVolume; - ///Ƿ潻ȡ - TThostFtdcBoolType IsRelative; - ///̿ͷ֤ϵ - TThostFtdcRatioType MShortMarginRatioByMoney; - ///̿ͷ֤ϵ - TThostFtdcMoneyType MShortMarginRatioByVolume; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ǰȨԼѵϸ -struct CThostFtdcOptionInstrCommRateField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - 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; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Ȩ׳ɱ -struct CThostFtdcOptionInstrTradeCostField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ȨԼ֤𲻱䲿 - TThostFtdcMoneyType FixedMargin; - ///ȨԼС֤ - TThostFtdcMoneyType MiniMargin; - ///ȨԼȨ - TThostFtdcMoneyType Royalty; - ///ȨԼ֤𲻱䲿 - TThostFtdcMoneyType ExchFixedMargin; - ///ȨԼС֤ - TThostFtdcMoneyType ExchMiniMargin; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Ȩ׳ɱѯ -struct CThostFtdcQryOptionInstrTradeCostField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ȨԼ - TThostFtdcPriceType InputPrice; - ///ļ۸,0 - TThostFtdcPriceType UnderlyingPrice; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Ȩʲѯ -struct CThostFtdcQryOptionInstrCommRateField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ָָֻ -struct CThostFtdcIndexPriceField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ָֻ̼ - TThostFtdcPriceType ClosePrice; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ִ -struct CThostFtdcInputExecOrderField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ִ - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ִ -struct CThostFtdcInputExecOrderActionField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///ִ - TThostFtdcOrderActionRefType ExecOrderActionRef; - ///ִ - TThostFtdcOrderRefType ExecOrderRef; - /// - TThostFtdcRequestIDType RequestID; - ///ǰñ - TThostFtdcFrontIDType FrontID; - ///Ự - TThostFtdcSessionIDType SessionID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ִ - TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///־ - TThostFtdcActionFlagType ActionFlag; - ///û - TThostFtdcUserIDType UserID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ִ -struct CThostFtdcExecOrderField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ִ - 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; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///Ա - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve3; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ִ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ӫҵ - TThostFtdcBranchIDType BranchID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ִѯ -struct CThostFtdcQryExecOrderField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ִ - TThostFtdcExecOrderSysIDType ExecOrderSysID; - ///ʼʱ - TThostFtdcTimeType InsertTimeStart; - ///ʱ - TThostFtdcTimeType InsertTimeEnd; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ִϢ -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; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - ///Ա - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ִѯ -struct CThostFtdcQryExchangeExecOrderField -{ - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcTraderIDType TraderID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; -}; - -///ִѯ -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; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - /// - TThostFtdcVolumeType Volume; - ///IPַ - TThostFtdcIPAddressType IPAddress; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; -}; - -///ִѯ -struct CThostFtdcQryExchangeExecOrderActionField -{ - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcTraderIDType TraderID; -}; - -///ִ -struct CThostFtdcErrExecOrderField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ִ - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - /// - TThostFtdcErrorIDType ErrorID; - ///Ϣ - TThostFtdcErrorMsgType ErrorMsg; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯִ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - /// - TThostFtdcErrorIDType ErrorID; - ///Ϣ - TThostFtdcErrorMsgType ErrorMsg; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯִ -struct CThostFtdcQryErrExecOrderActionField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; -}; - -///ͶȨԼȨ -struct CThostFtdcOptionInstrTradingRightField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcDirectionType Direction; - ///Ȩ - TThostFtdcTradingRightType TradingRight; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯȨԼȨ -struct CThostFtdcQryOptionInstrTradingRightField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcDirectionType Direction; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯ -struct CThostFtdcInputForQuoteField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ѯ - TThostFtdcOrderRefType ForQuoteRef; - ///û - TThostFtdcUserIDType UserID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯ -struct CThostFtdcForQuoteField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ѯ - TThostFtdcOrderRefType ForQuoteRef; - ///û - TThostFtdcUserIDType UserID; - ///ѯ۱ - TThostFtdcOrderLocalIDType ForQuoteLocalID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///Ա - TThostFtdcTraderIDType TraderID; - ///װ - TThostFtdcInstallIDType InstallID; - /// - TThostFtdcDateType InsertDate; - ///ʱ - TThostFtdcTimeType InsertTime; - ///ѯ״̬ - TThostFtdcForQuoteStatusType ForQuoteStatus; - ///ǰñ - TThostFtdcFrontIDType FrontID; - ///Ự - TThostFtdcSessionIDType SessionID; - ///״̬Ϣ - TThostFtdcErrorMsgType StatusMsg; - ///û - TThostFtdcUserIDType ActiveUserID; - ///͹˾ѯ۱ - TThostFtdcSequenceNoType BrokerForQutoSeq; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve3; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯ۲ѯ -struct CThostFtdcQryForQuoteField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ʼʱ - TThostFtdcTimeType InsertTimeStart; - ///ʱ - TThostFtdcTimeType InsertTimeEnd; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯϢ -struct CThostFtdcExchangeForQuoteField -{ - ///ѯ۱ - TThostFtdcOrderLocalIDType ForQuoteLocalID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - ///Ա - TThostFtdcTraderIDType TraderID; - ///װ - TThostFtdcInstallIDType InstallID; - /// - TThostFtdcDateType InsertDate; - ///ʱ - TThostFtdcTimeType InsertTime; - ///ѯ״̬ - TThostFtdcForQuoteStatusType ForQuoteStatus; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯ۲ѯ -struct CThostFtdcQryExchangeForQuoteField -{ - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcTraderIDType TraderID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; -}; - -///ı -struct CThostFtdcInputQuoteField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; - /// - TThostFtdcOrderSysIDType ReplaceSysID; -}; - -///뱨۲ -struct CThostFtdcInputQuoteActionField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///۲ - TThostFtdcOrderActionRefType QuoteActionRef; - /// - TThostFtdcOrderRefType QuoteRef; - /// - TThostFtdcRequestIDType RequestID; - ///ǰñ - TThostFtdcFrontIDType FrontID; - ///Ự - TThostFtdcSessionIDType SessionID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///۲ - TThostFtdcOrderSysIDType QuoteSysID; - ///־ - TThostFtdcActionFlagType ActionFlag; - ///û - TThostFtdcUserIDType UserID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///ױ - TThostFtdcClientIDType ClientID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -/// -struct CThostFtdcQuoteField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - 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; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///Ա - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve3; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; - /// - TThostFtdcOrderSysIDType ReplaceSysID; -}; - -///۲ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ӫҵ - TThostFtdcBranchIDType BranchID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///۲ѯ -struct CThostFtdcQryQuoteField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///۱ - TThostFtdcOrderSysIDType QuoteSysID; - ///ʼʱ - TThostFtdcTimeType InsertTimeStart; - ///ʱ - TThostFtdcTimeType InsertTimeEnd; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Ϣ -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; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - ///Ա - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///۲ѯ -struct CThostFtdcQryExchangeQuoteField -{ - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcTraderIDType TraderID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; -}; - -///۲ѯ -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; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///۲ѯ -struct CThostFtdcQryExchangeQuoteActionField -{ - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcTraderIDType TraderID; -}; - -///ȨԼdeltaֵ -struct CThostFtdcOptionInstrDeltaField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Deltaֵ - TThostFtdcRatioType Delta; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///̵ѯ -struct CThostFtdcForQuoteRspField -{ - /// - TThostFtdcDateType TradingDay; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ѯ۱ - TThostFtdcOrderSysIDType ForQuoteSysID; - ///ѯʱ - TThostFtdcTimeType ForQuoteTime; - ///ҵ - TThostFtdcDateType ActionDay; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ǰȨԼִƫֵϸ -struct CThostFtdcStrikeOffsetField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///ִƫֵ - TThostFtdcMoneyType Offset; - ///ִƫ - TThostFtdcStrikeOffsetTypeType OffsetType; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Ȩִƫֵѯ -struct CThostFtdcQryStrikeOffsetField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -/// -struct CThostFtdcInputBatchOrderActionField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcOrderActionRefType OrderActionRef; - /// - TThostFtdcRequestIDType RequestID; - ///ǰñ - TThostFtdcFrontIDType FrontID; - ///Ự - TThostFtdcSessionIDType SessionID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///û - TThostFtdcUserIDType UserID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -/// -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; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -/// -struct CThostFtdcExchangeBatchOrderActionField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - /// - TThostFtdcDateType ActionDate; - ///ʱ - TThostFtdcTimeType ActionTime; - ///Ա - TThostFtdcTraderIDType TraderID; - ///װ - TThostFtdcInstallIDType InstallID; - ///ر - TThostFtdcOrderLocalIDType ActionLocalID; - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - ///ҵԪ - TThostFtdcBusinessUnitType BusinessUnit; - ///״̬ - TThostFtdcOrderActionStatusType OrderActionStatus; - ///û - TThostFtdcUserIDType UserID; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯ -struct CThostFtdcQryBatchOrderActionField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcExchangeIDType ExchangeID; -}; - -///ϺԼȫϵ -struct CThostFtdcCombInstrumentGuardField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcRatioType GuarantRatio; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ϺԼȫϵѯ -struct CThostFtdcQryCombInstrumentGuardField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -/// -struct CThostFtdcInputCombActionField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcOrderRefType CombActionRef; - ///û - TThostFtdcUserIDType UserID; - /// - TThostFtdcDirectionType Direction; - /// - TThostFtdcVolumeType Volume; - ///ָ - TThostFtdcCombDirectionType CombDirection; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///ǰñ - TThostFtdcFrontIDType FrontID; - ///Ự - TThostFtdcSessionIDType SessionID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -/// -struct CThostFtdcCombActionField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcOrderRefType CombActionRef; - ///û - TThostFtdcUserIDType UserID; - /// - TThostFtdcDirectionType Direction; - /// - TThostFtdcVolumeType Volume; - ///ָ - TThostFtdcCombDirectionType CombDirection; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ϱ - TThostFtdcOrderLocalIDType ActionLocalID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///Ա - TThostFtdcTraderIDType TraderID; - ///װ - TThostFtdcInstallIDType InstallID; - ///״̬ - TThostFtdcOrderActionStatusType ActionStatus; - ///ʾ - TThostFtdcSequenceNoType NotifySequence; - /// - TThostFtdcDateType TradingDay; - /// - TThostFtdcSettlementIDType SettlementID; - /// - TThostFtdcSequenceNoType SequenceNo; - ///ǰñ - TThostFtdcFrontIDType FrontID; - ///Ự - TThostFtdcSessionIDType SessionID; - ///û˲ƷϢ - TThostFtdcProductInfoType UserProductInfo; - ///״̬Ϣ - TThostFtdcErrorMsgType StatusMsg; - ///Чֶ - TThostFtdcOldIPAddressType reserve3; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///ϱ - TThostFtdcTradeIDType ComTradeID; - ///Ӫҵ - TThostFtdcBranchIDType BranchID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ϲѯ -struct CThostFtdcQryCombActionField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Ϣ -struct CThostFtdcExchangeCombActionField -{ - /// - TThostFtdcDirectionType Direction; - /// - TThostFtdcVolumeType Volume; - ///ָ - TThostFtdcCombDirectionType CombDirection; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ϱ - TThostFtdcOrderLocalIDType ActionLocalID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - ///Ա - TThostFtdcTraderIDType TraderID; - ///װ - TThostFtdcInstallIDType InstallID; - ///״̬ - TThostFtdcOrderActionStatusType ActionStatus; - ///ʾ - TThostFtdcSequenceNoType NotifySequence; - /// - TThostFtdcDateType TradingDay; - /// - TThostFtdcSettlementIDType SettlementID; - /// - TThostFtdcSequenceNoType SequenceNo; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///ϱ - TThostFtdcTradeIDType ComTradeID; - ///Ӫҵ - TThostFtdcBranchIDType BranchID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ϲѯ -struct CThostFtdcQryExchangeCombActionField -{ - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcTraderIDType TraderID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; -}; - -///Ʒۻ -struct CThostFtdcProductExchRateField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///۱ - TThostFtdcCurrencyIDType QuoteCurrencyID; - /// - TThostFtdcExchangeRateType ExchangeRate; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; -}; - -///Ʒۻʲѯ -struct CThostFtdcQryProductExchRateField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; -}; - -///ѯѯۼ۲ -struct CThostFtdcQryForQuoteParamField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯۼ۲ -struct CThostFtdcForQuoteParamField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///¼ - TThostFtdcPriceType LastPrice; - ///۲ - TThostFtdcPriceType PriceInterval; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ǰȨԼѵϸ -struct CThostFtdcMMOptionInstrCommRateField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcRatioType OpenRatioByMoney; - /// - TThostFtdcRatioType OpenRatioByVolume; - ///ƽ - TThostFtdcRatioType CloseRatioByMoney; - ///ƽ - TThostFtdcRatioType CloseRatioByVolume; - ///ƽ - TThostFtdcRatioType CloseTodayRatioByMoney; - ///ƽ - TThostFtdcRatioType CloseTodayRatioByVolume; - ///ִ - TThostFtdcRatioType StrikeRatioByMoney; - ///ִ - TThostFtdcRatioType StrikeRatioByVolume; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Ȩʲѯ -struct CThostFtdcQryMMOptionInstrCommRateField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///̺Լ -struct CThostFtdcMMInstrumentCommissionRateField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcRatioType OpenRatioByMoney; - /// - TThostFtdcRatioType OpenRatioByVolume; - ///ƽ - TThostFtdcRatioType CloseRatioByMoney; - ///ƽ - TThostFtdcRatioType CloseRatioByVolume; - ///ƽ - TThostFtdcRatioType CloseTodayRatioByMoney; - ///ƽ - TThostFtdcRatioType CloseTodayRatioByVolume; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯ̺Լ -struct CThostFtdcQryMMInstrumentCommissionRateField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ǰѵϸ -struct CThostFtdcInstrumentOrderCommRateField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - /// - TThostFtdcRatioType OrderCommByVolume; - /// - TThostFtdcRatioType OrderActionCommByVolume; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - /// - TThostFtdcRatioType OrderCommByTrade; - /// - TThostFtdcRatioType OrderActionCommByTrade; -}; - -///ʲѯ -struct CThostFtdcQryInstrumentOrderCommRateField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ײ -struct CThostFtdcTradeParamField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - /// - TThostFtdcTradeParamIDType TradeParamID; - ///ֵ - TThostFtdcSettlementParamValueType TradeParamValue; - ///ע - TThostFtdcMemoType Memo; -}; - -///Լ֤ʵ -struct CThostFtdcInstrumentMarginRateULField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ͷ֤ - TThostFtdcRatioType LongMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType LongMarginRatioByVolume; - ///ͷ֤ - TThostFtdcRatioType ShortMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType ShortMarginRatioByVolume; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ڻֲƲ -struct CThostFtdcFutureLimitPosiParamField -{ - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷ - TThostFtdcVolumeType SpecOpenVolume; - /// - TThostFtdcVolumeType ArbiOpenVolume; - ///Ͷ+ - TThostFtdcVolumeType OpenVolume; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; -}; - -///ֹ¼IP -struct CThostFtdcLoginForbiddenIPField -{ - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///IPб -struct CThostFtdcIPListField -{ - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///Ƿ - TThostFtdcBoolType IsWhite; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ȨԶԳ -struct CThostFtdcInputOptionSelfCloseField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ȨԶԳ - TThostFtdcOrderRefType OptionSelfCloseRef; - ///û - TThostFtdcUserIDType UserID; - /// - TThostFtdcVolumeType Volume; - /// - TThostFtdcRequestIDType RequestID; - ///ҵԪ - TThostFtdcBusinessUnitType BusinessUnit; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ȨȨͷǷԶԳ - TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///ʽ˺ - TThostFtdcAccountIDType AccountID; - ///ִ - TThostFtdcCurrencyIDType CurrencyID; - ///ױ - TThostFtdcClientIDType ClientID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ȨԶԳ -struct CThostFtdcInputOptionSelfCloseActionField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///ȨԶԳ - TThostFtdcOrderActionRefType OptionSelfCloseActionRef; - ///ȨԶԳ - TThostFtdcOrderRefType OptionSelfCloseRef; - /// - TThostFtdcRequestIDType RequestID; - ///ǰñ - TThostFtdcFrontIDType FrontID; - ///Ự - TThostFtdcSessionIDType SessionID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ȨԶԳ - TThostFtdcOrderSysIDType OptionSelfCloseSysID; - ///־ - TThostFtdcActionFlagType ActionFlag; - ///û - TThostFtdcUserIDType UserID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ȨԶԳ -struct CThostFtdcOptionSelfCloseField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ȨԶԳ - TThostFtdcOrderRefType OptionSelfCloseRef; - ///û - TThostFtdcUserIDType UserID; - /// - TThostFtdcVolumeType Volume; - /// - TThostFtdcRequestIDType RequestID; - ///ҵԪ - TThostFtdcBusinessUnitType BusinessUnit; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ȨȨͷǷԶԳ - TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; - ///ȨԶԳ - TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///Ա - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve3; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ȨԶԳ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ӫҵ - TThostFtdcBranchIDType BranchID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ȨԶԳѯ -struct CThostFtdcQryOptionSelfCloseField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ȨԶԳ - TThostFtdcOrderSysIDType OptionSelfCloseSysID; - ///ʼʱ - TThostFtdcTimeType InsertTimeStart; - ///ʱ - TThostFtdcTimeType InsertTimeEnd; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ȨԶԳϢ -struct CThostFtdcExchangeOptionSelfCloseField -{ - /// - TThostFtdcVolumeType Volume; - /// - TThostFtdcRequestIDType RequestID; - ///ҵԪ - TThostFtdcBusinessUnitType BusinessUnit; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ȨȨͷǷԶԳ - TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; - ///ȨԶԳ - TThostFtdcOrderLocalIDType OptionSelfCloseLocalID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ա - TThostFtdcParticipantIDType ParticipantID; - ///ͻ - TThostFtdcClientIDType ClientID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - ///Ա - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ȨԶԳѯ -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; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///ȨȨͷǷԶԳ - TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; - ///IPַ - TThostFtdcIPAddressType IPAddress; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; -}; - -///ʱͬ -struct CThostFtdcSyncDelaySwapField -{ - ///ˮ - TThostFtdcDepositSeqNoType DelaySwapSeqNo; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Դ - TThostFtdcCurrencyIDType FromCurrencyID; - ///Դ - TThostFtdcMoneyType FromAmount; - ///Դ㶳(ö) - TThostFtdcMoneyType FromFrozenSwap; - ///Դʣ໻(ᶳ) - TThostFtdcMoneyType FromRemainSwap; - ///Ŀ - TThostFtdcCurrencyIDType ToCurrencyID; - ///Ŀ - TThostFtdcMoneyType ToAmount; - ///Ƿֹ - TThostFtdcBoolType IsManualSwap; - ///Ƿҵʣ໻Ϊ0 - TThostFtdcBoolType IsAllRemainSetZero; -}; - -///ѯʱͬ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///¼ - 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; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; -}; - -/// -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 -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///޸ʱ - TThostFtdcTimeType UpdateTime; - ///޸ĺ - TThostFtdcMillisecType UpdateMillisec; - ///ҵ - TThostFtdcDateType ActionDay; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///´ -struct CThostFtdcMarketDataBandingPriceField -{ - ///ϴ - TThostFtdcPriceType BandingUpperPrice; - ///´ - TThostFtdcPriceType BandingLowerPrice; -}; - -///齻 -struct CThostFtdcMarketDataExchangeField -{ - /// - TThostFtdcExchangeIDType ExchangeID; -}; - -///ָĺԼ -struct CThostFtdcSpecificInstrumentField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Լ״̬ -struct CThostFtdcInstrumentStatusField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - /// - TThostFtdcSettlementGroupIDType SettlementGroupID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve2; - ///Լ״̬ - TThostFtdcInstrumentStatusType InstrumentStatus; - ///׽׶α - TThostFtdcTradingSegmentSNType TradingSegmentSN; - ///뱾״̬ʱ - TThostFtdcTimeType EnterTime; - ///뱾״̬ԭ - TThostFtdcInstStatusEnterReasonType EnterReason; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯԼ״̬ -struct CThostFtdcQryInstrumentStatusField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve1; - ///ԼڽĴ - 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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Ͷֲ߳ϸ -struct CThostFtdcInvestorPositionDetailField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - /// - TThostFtdcDirectionType Direction; - /// - TThostFtdcDateType OpenDate; - ///ɽ - TThostFtdcTradeIDType TradeID; - /// - TThostFtdcVolumeType Volume; - ///ּ - TThostFtdcPriceType OpenPrice; - /// - TThostFtdcDateType TradingDay; - /// - TThostFtdcSettlementIDType SettlementID; - ///ɽ - TThostFtdcTradeTypeType TradeType; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve2; - /// - 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; - ///ֱֲ־ - TThostFtdcSpecPosiTypeType SpecPosiType; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ϺԼ - TThostFtdcInstrumentIDType CombInstrumentID; -}; - -///ʽ˻ -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; - ///ʱѡϯλ㷨 - TThostFtdcOrderCancelAlgType OrderCancelAlg; -}; - -///ѯ鱨̻ -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 -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ȱ - TThostFtdcLegIDType LegID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve2; - ///ϺԼ - TThostFtdcInstrumentIDType CombInstrumentID; - ///ȺԼ - TThostFtdcInstrumentIDType LegInstrumentID; -}; - -///ѯϺԼ -struct CThostFtdcQrySyncStatusField -{ - /// - TThostFtdcDateType TradingDay; -}; - -///Ͻ׺Լĵ -struct CThostFtdcCombinationLegField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ȱ - TThostFtdcLegIDType LegID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve2; - /// - TThostFtdcDirectionType Direction; - ///ȳ - TThostFtdcLegMultipleType LegMultiple; - /// - TThostFtdcImplyLevelType ImplyLevel; - ///ϺԼ - TThostFtdcInstrumentIDType CombInstrumentID; - ///ȺԼ - TThostFtdcInstrumentIDType LegInstrumentID; -}; - -///ͬ״̬ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Լ - 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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - /// - TThostFtdcDirectionType Direction; - ///ֲ - TThostFtdcVolumeType TotalAmt; - ///Ͷ֤߱ - TThostFtdcMoneyType Margin; - ///֤ - TThostFtdcMoneyType ExchMargin; - ///֤ - TThostFtdcRatioType MarginRateByMoney; - ///֤() - TThostFtdcRatioType MarginRateByVolume; - ///ȱ - TThostFtdcLegIDType LegID; - ///ȳ - TThostFtdcLegMultipleType LegMultiple; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve2; - ///ɽ - TThostFtdcTradeGroupIDType TradeGroupID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ϳֲֺԼ - TThostFtdcInstrumentIDType CombInstrumentID; -}; - -///Ԥ -struct CThostFtdcParkedOrderField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///Ԥ񵥲 -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ԥ񳷵 - TThostFtdcParkedOrderActionIDType ParkedOrderActionID; - ///û - TThostFtdcUserTypeType UserType; - ///Ԥ񳷵״̬ - TThostFtdcParkedOrderStatusType Status; - /// - TThostFtdcErrorIDType ErrorID; - ///Ϣ - TThostFtdcErrorMsgType ErrorMsg; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯԤ -struct CThostFtdcQryParkedOrderField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯԤ񳷵 -struct CThostFtdcQryParkedOrderActionField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ɾԤ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///ϳֲֺԼ - TThostFtdcInstrumentIDType CombInstrumentID; -}; - -///ɽ -struct CThostFtdcMarketDataAveragePriceField -{ - ///վ - TThostFtdcPriceType AveragePrice; -}; - -///УͶ -struct CThostFtdcVerifyInvestorPasswordField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcPasswordType Password; -}; - -///ûIP -struct CThostFtdcUserIPField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///û - TThostFtdcUserIDType UserID; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///IPַ - TThostFtdcIPAddressType IPAddress; - ///IPַ - TThostFtdcIPAddressType IPMask; -}; - -///û¼֪ͨϢ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯ󱨵 -struct CThostFtdcErrorConditionalOrderField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - 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; - ///Чֶ - TThostFtdcOldExchangeInstIDType reserve2; - ///Ա - 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve3; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯ󱨵 -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ӫҵ - TThostFtdcBranchIDType BranchID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Чֶ - TThostFtdcOldIPAddressType reserve2; - ///Macַ - TThostFtdcMacAddressType MacAddress; - /// - TThostFtdcErrorIDType ErrorID; - ///Ϣ - TThostFtdcErrorMsgType ErrorMsg; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯ״̬ -struct CThostFtdcQryExchangeSequenceField -{ - /// - TThostFtdcExchangeIDType ExchangeID; -}; - -///״̬ -struct CThostFtdcExchangeSequenceField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - /// - TThostFtdcSequenceNoType SequenceNo; - ///Լ״̬ - TThostFtdcInstrumentStatusType MarketStatus; -}; - -///ݼ۸ѯ󱨵 -struct CThostFtdcQryMaxOrderVolumeWithPriceField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcDirectionType Direction; - ///ƽ־ - TThostFtdcOffsetFlagType OffsetFlag; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - /// - TThostFtdcVolumeType MaxVolume; - ///۸ - TThostFtdcPriceType Price; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯ͹˾ײ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///͹˾㷨 -struct CThostFtdcBrokerTradingAlgosField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ֲִ㷨 - TThostFtdcHandlePositionAlgoIDType HandlePositionAlgoID; - ///Ѱұ֤㷨 - TThostFtdcFindMarginRateAlgoIDType FindMarginRateAlgoID; - ///ʽ㷨 - TThostFtdcHandleTradingAccountAlgoIDType HandleTradingAccountAlgoID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯ͹˾ʽ -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; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcDirectionType Direction; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - /// - TThostFtdcVolumeType Volume; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯֵ۵Ϣ -struct CThostFtdcQryEWarrantOffsetField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///ѯͶƷ/Ʒֱ֤ -struct CThostFtdcQryInvestorProductGroupMarginField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; - ///Ʒ/Ʒֱʾ - TThostFtdcInstrumentIDType ProductGroupID; -}; - -///ͶƷ/Ʒֱ֤ -struct CThostFtdcInvestorProductGroupMarginField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///͹˾ - 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; - ///Ʒ/Ʒֱʾ - TThostFtdcInstrumentIDType ProductGroupID; -}; - -///ѯû -struct CThostFtdcQueryCFMMCTradingAccountTokenField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///ͶʵԪ - TThostFtdcInvestUnitIDType InvestUnitID; -}; - -///û -struct CThostFtdcCFMMCTradingAccountTokenField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///͹˾ͳһ - TThostFtdcParticipantIDType ParticipantID; - ///Ͷʺ - TThostFtdcAccountIDType AccountID; - ///Կ - TThostFtdcSequenceNoType KeyID; - ///̬ - TThostFtdcCFMMCTokenType Token; -}; - -///ѯƷ -struct CThostFtdcQryProductGroupField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; -}; - -///ͶƷ/Ʒֱ֤Ʒ -struct CThostFtdcProductGroupField -{ - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve2; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; - ///Ʒ - 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; -}; - -///MulticastInstrument -struct CThostFtdcMulticastInstrumentField -{ - /// - TThostFtdcInstallIDType TopicID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Լ - TThostFtdcInstallIDType InstrumentNo; - ///׼ - TThostFtdcPriceType CodePrice; - ///Լ - TThostFtdcVolumeMultipleType VolumeMultiple; - ///С䶯λ - TThostFtdcPriceType PriceTick; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///QryMulticastInstrument -struct CThostFtdcQryMulticastInstrumentField -{ - /// - TThostFtdcInstallIDType TopicID; - ///Чֶ - TThostFtdcOldInstrumentIDType reserve1; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///AppͻȨ޷ -struct CThostFtdcAppIDAuthAssignField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///App - TThostFtdcAppIDType AppID; - ///Ĵ - TThostFtdcDRIdentityIDType DRIdentityID; -}; - -///תʿ -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; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯֹ¼û -struct CThostFtdcQryLoginForbiddenUserField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///û - TThostFtdcUserIDType UserID; -}; - -///ʽ˻׼ -struct CThostFtdcTradingAccountReserveField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷʺ - TThostFtdcAccountIDType AccountID; - ///׼ - TThostFtdcMoneyType Reserve; - ///ִ - TThostFtdcCurrencyIDType CurrencyID; -}; - -///ѯֹ¼IP -struct CThostFtdcQryLoginForbiddenIPField -{ - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯIPб -struct CThostFtdcQryIPListField -{ - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///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 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; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///¼ע - TThostFtdcLoginRemarkType LoginRemark; - ///ͼ֤ - TThostFtdcPasswordType Captcha; - ///նIP˿ - TThostFtdcIPPortType ClientIPPort; - ///նIPַ - TThostFtdcIPAddressType ClientIPAddress; -}; - -///û֤ĵ¼ -struct CThostFtdcReqUserLoginWithTextField -{ - /// - TThostFtdcDateType TradingDay; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///û - TThostFtdcUserIDType UserID; - /// - TThostFtdcPasswordType Password; - ///û˲ƷϢ - TThostFtdcProductInfoType UserProductInfo; - ///ӿڶ˲ƷϢ - TThostFtdcProductInfoType InterfaceProductInfo; - ///ЭϢ - TThostFtdcProtocolInfoType ProtocolInfo; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///¼ע - TThostFtdcLoginRemarkType LoginRemark; - ///֤ - TThostFtdcPasswordType Text; - ///նIP˿ - TThostFtdcIPPortType ClientIPPort; - ///նIPַ - TThostFtdcIPAddressType ClientIPAddress; -}; - -///û̬֤ĵ¼ -struct CThostFtdcReqUserLoginWithOTPField -{ - /// - TThostFtdcDateType TradingDay; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///û - TThostFtdcUserIDType UserID; - /// - TThostFtdcPasswordType Password; - ///û˲ƷϢ - TThostFtdcProductInfoType UserProductInfo; - ///ӿڶ˲ƷϢ - TThostFtdcProductInfoType InterfaceProductInfo; - ///ЭϢ - TThostFtdcProtocolInfoType ProtocolInfo; - ///Macַ - TThostFtdcMacAddressType MacAddress; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///¼ע - TThostFtdcLoginRemarkType LoginRemark; - ///OTP - TThostFtdcPasswordType OTPPassword; - ///նIP˿ - TThostFtdcIPPortType ClientIPPort; - ///նIPַ - TThostFtdcIPAddressType ClientIPAddress; -}; - -///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; -}; - -///ֹ֤IP -struct CThostFtdcAuthForbiddenIPField -{ - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ѯֹ֤IP -struct CThostFtdcQryAuthForbiddenIPField -{ - ///IPַ - TThostFtdcIPAddressType IPAddress; -}; - -///ᶳ -struct CThostFtdcSyncDelaySwapFrozenField -{ - ///ˮ - TThostFtdcDepositSeqNoType DelaySwapSeqNo; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Դ - TThostFtdcCurrencyIDType FromCurrencyID; - ///Դʣ໻(ᶳ) - TThostFtdcMoneyType FromRemainSwap; - ///Ƿֹ - TThostFtdcBoolType IsManualSwap; -}; - -///ûϵͳϢ -struct CThostFtdcUserSystemInfoField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///û - TThostFtdcUserIDType UserID; - ///ûϵͳڲϢ - TThostFtdcSystemInfoLenType ClientSystemInfoLen; - ///ûϵͳڲϢ - TThostFtdcClientSystemInfoType ClientSystemInfo; - ///Чֶ - TThostFtdcOldIPAddressType reserve1; - ///նIP˿ - TThostFtdcIPPortType ClientIPPort; - ///¼ɹʱ - TThostFtdcTimeType ClientLoginTime; - ///App - TThostFtdcAppIDType ClientAppID; - ///ûIP - TThostFtdcIPAddressType ClientPublicIP; - ///ͻ¼ע2 - TThostFtdcClientLoginRemarkType ClientLoginRemark; -}; - -///նûϢ -struct CThostFtdcAuthUserIDField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///App - TThostFtdcAppIDType AppID; - ///û - TThostFtdcUserIDType UserID; - ///У - TThostFtdcAuthTypeType AuthType; -}; - -///ûIPϢ -struct CThostFtdcAuthIPField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///App - TThostFtdcAppIDType AppID; - ///û - TThostFtdcIPAddressType IPAddress; -}; - -///ѯԼ -struct CThostFtdcQryClassifiedInstrumentField -{ - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; - ///Լ״̬ - TThostFtdcTradingTypeType TradingType; - ///Լ - TThostFtdcClassTypeType ClassType; -}; - -///ѯŻݱ -struct CThostFtdcQryCombPromotionParamField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///Żݱ -struct CThostFtdcCombPromotionParamField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///Ͷױ־ - TThostFtdcCombHedgeFlagType CombHedgeFlag; - ///Ȩϱ֤ - TThostFtdcDiscountRatioType Xparameter; -}; - -///û¼ -struct CThostFtdcReqUserLoginSCField -{ - /// - 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; - ///֤ - TThostFtdcAuthCodeType AuthCode; - ///App - TThostFtdcAppIDType AppID; -}; - -///Ͷ߷սֲֲѯ -struct CThostFtdcQryRiskSettleInvstPositionField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; -}; - -///սƷѯ -struct CThostFtdcQryRiskSettleProductStatusField -{ - ///Ʒ - TThostFtdcInstrumentIDType ProductID; -}; - -///Ͷ߷սֲ -struct CThostFtdcRiskSettleInvstPositionField -{ - ///Լ - 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; - ///tasֲ - TThostFtdcVolumeType TasPosition; - ///tasֲֳɱ - TThostFtdcMoneyType TasPositionCost; -}; - -///Ʒ -struct CThostFtdcRiskSettleProductStatusField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; - ///Ʒ״̬ - TThostFtdcProductStatusType ProductStatus; -}; - -///ս׷ƽϢ -struct CThostFtdcSyncDeltaInfoField -{ - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; - ///׷ƽ״̬ - TThostFtdcSyncDeltaStatusType SyncDeltaStatus; - ///׷ƽ - TThostFtdcSyncDescriptionType SyncDescription; - ///Ƿֻʽ׷ƽ - TThostFtdcBoolType IsOnlyTrdDelta; -}; - -///ս׷ƽƷϢ -struct CThostFtdcSyncDeltaProductStatusField -{ - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; - ///Ƿ - TThostFtdcProductStatusType ProductStatus; -}; - -///ս׷ƽֲϸ -struct CThostFtdcSyncDeltaInvstPosDtlField -{ - ///Լ - 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; - ///ֱֲ־ - TThostFtdcSpecPosiTypeType SpecPosiType; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽϳֲϸ -struct CThostFtdcSyncDeltaInvstPosCombDtlField -{ - /// - 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; - ///ɽ - TThostFtdcTradeGroupIDType TradeGroupID; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽʽ -struct CThostFtdcSyncDeltaTradingAccountField -{ - ///͹˾ - 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; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///Ͷ߷սܱ֤ -struct CThostFtdcSyncDeltaInitInvstMarginField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///׷ƽǰܷձ֤ - TThostFtdcMoneyType LastRiskTotalInvstMargin; - ///׷ƽǰܷձ֤ - TThostFtdcMoneyType LastRiskTotalExchMargin; - ///׷ƽƷܱ֤ - TThostFtdcMoneyType ThisSyncInvstMargin; - ///׷ƽƷֽܱ֤ - TThostFtdcMoneyType ThisSyncExchMargin; - ///δ׷ƽƷܱ֤ - TThostFtdcMoneyType RemainRiskInvstMargin; - ///δ׷ƽƷֽܱ֤ - TThostFtdcMoneyType RemainRiskExchMargin; - ///׷ƽǰƷձ֤ - TThostFtdcMoneyType LastRiskSpecTotalInvstMargin; - ///׷ƽǰƷձ֤ - TThostFtdcMoneyType LastRiskSpecTotalExchMargin; - ///׷ƽƷƷܱ֤ - TThostFtdcMoneyType ThisSyncSpecInvstMargin; - ///׷ƽƷƷܱ֤ - TThostFtdcMoneyType ThisSyncSpecExchMargin; - ///δ׷ƽƷƷܱ֤ - TThostFtdcMoneyType RemainRiskSpecInvstMargin; - ///δ׷ƽƷƷܱ֤ - TThostFtdcMoneyType RemainRiskSpecExchMargin; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽȼ -struct CThostFtdcSyncDeltaDceCombInstrumentField -{ - ///Լ - TThostFtdcInstrumentIDType CombInstrumentID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ԼڽĴ - TThostFtdcExchangeInstIDType ExchangeInstID; - ///ɽ - TThostFtdcTradeGroupIDType TradeGroupID; - ///Ͷױ־ - TThostFtdcHedgeFlagType CombHedgeFlag; - /// - TThostFtdcDceCombinationTypeType CombinationType; - /// - TThostFtdcDirectionType Direction; - ///Ʒ - TThostFtdcInstrumentIDType ProductID; - ///Ȩϱ֤ - TThostFtdcDiscountRatioType Xparameter; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽͶڻ֤ -struct CThostFtdcSyncDeltaInvstMarginRateField -{ - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ͷ֤ - TThostFtdcRatioType LongMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType LongMarginRatioByVolume; - ///ͷ֤ - TThostFtdcRatioType ShortMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType ShortMarginRatioByVolume; - ///ǷԽȡ - TThostFtdcBoolType IsRelative; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽڻ֤ -struct CThostFtdcSyncDeltaExchMarginRateField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ͷ֤ - TThostFtdcRatioType LongMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType LongMarginRatioByVolume; - ///ͷ֤ - TThostFtdcRatioType ShortMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType ShortMarginRatioByVolume; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽнֻȨ֤ -struct CThostFtdcSyncDeltaOptExchMarginField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///Ͷͷ֤ϵ - TThostFtdcRatioType SShortMarginRatioByMoney; - ///Ͷͷ֤ϵ - TThostFtdcMoneyType SShortMarginRatioByVolume; - ///ֵͷ֤ϵ - TThostFtdcRatioType HShortMarginRatioByMoney; - ///ֵͷ֤ϵ - TThostFtdcMoneyType HShortMarginRatioByVolume; - ///ͷ֤ϵ - TThostFtdcRatioType AShortMarginRatioByMoney; - ///ͷ֤ϵ - TThostFtdcMoneyType AShortMarginRatioByVolume; - ///̿ͷ֤ϵ - TThostFtdcRatioType MShortMarginRatioByMoney; - ///̿ͷ֤ϵ - TThostFtdcMoneyType MShortMarginRatioByVolume; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽнֻȨͶ֤߱ -struct CThostFtdcSyncDeltaOptInvstMarginField -{ - ///Լ - 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; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽȨĵ֤ -struct CThostFtdcSyncDeltaInvstMarginRateULField -{ - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - ///ͷ֤ - TThostFtdcRatioType LongMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType LongMarginRatioByVolume; - ///ͷ֤ - TThostFtdcRatioType ShortMarginRatioByMoney; - ///ͷ֤ - TThostFtdcMoneyType ShortMarginRatioByVolume; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽȨ -struct CThostFtdcSyncDeltaOptInvstCommRateField -{ - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcRatioType OpenRatioByMoney; - /// - TThostFtdcRatioType OpenRatioByVolume; - ///ƽ - TThostFtdcRatioType CloseRatioByMoney; - ///ƽ - TThostFtdcRatioType CloseRatioByVolume; - ///ƽ - TThostFtdcRatioType CloseTodayRatioByMoney; - ///ƽ - TThostFtdcRatioType CloseTodayRatioByVolume; - ///ִ - TThostFtdcRatioType StrikeRatioByMoney; - ///ִ - TThostFtdcRatioType StrikeRatioByVolume; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽڻ -struct CThostFtdcSyncDeltaInvstCommRateField -{ - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcRatioType OpenRatioByMoney; - /// - TThostFtdcRatioType OpenRatioByVolume; - ///ƽ - TThostFtdcRatioType CloseRatioByMoney; - ///ƽ - TThostFtdcRatioType CloseRatioByVolume; - ///ƽ - TThostFtdcRatioType CloseTodayRatioByMoney; - ///ƽ - TThostFtdcRatioType CloseTodayRatioByVolume; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽ -struct CThostFtdcSyncDeltaProductExchRateField -{ - ///Ʒ - TThostFtdcInstrumentIDType ProductID; - ///۱ - TThostFtdcCurrencyIDType QuoteCurrencyID; - /// - TThostFtdcExchangeRateType ExchangeRate; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽ -struct CThostFtdcSyncDeltaDepthMarketDataField -{ - /// - 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; - ///ϴ - TThostFtdcPriceType BandingUpperPrice; - ///´ - TThostFtdcPriceType BandingLowerPrice; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽָֻ -struct CThostFtdcSyncDeltaIndexPriceField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///ָֻ̼ - TThostFtdcPriceType ClosePrice; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///ս׷ƽֵ۵ -struct CThostFtdcSyncDeltaEWarrantOffsetField -{ - /// - TThostFtdcTradeDateType TradingDay; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - /// - TThostFtdcDirectionType Direction; - ///Ͷױ־ - TThostFtdcHedgeFlagType HedgeFlag; - /// - TThostFtdcVolumeType Volume; - ///־ - TThostFtdcActionDirectionType ActionDirection; - ///׷ƽ - TThostFtdcSequenceNoType SyncDeltaSequenceNo; -}; - -///SPBMڻԼ֤ -struct CThostFtdcSPBMFutureParameterField -{ - /// - TThostFtdcDateType TradingDay; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///Ʒִ - TThostFtdcInstrumentIDType ProdFamilyCode; - ///ڻԼ - TThostFtdcVolumeMultipleType Cvf; - ///׶αʶ - TThostFtdcTimeRangeType TimeRange; - ///Ʒֱ֤׼ - TThostFtdcRatioType MarginRate; - ///ڻԼڲַۿ۱ - TThostFtdcRatioType LockRateX; - ///֤߱׼ - TThostFtdcRatioType AddOnRate; - /// - TThostFtdcPriceType PreSettlementPrice; -}; - -///SPBMȨԼ֤ -struct CThostFtdcSPBMOptionParameterField -{ - /// - TThostFtdcDateType TradingDay; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///Ʒִ - TThostFtdcInstrumentIDType ProdFamilyCode; - ///ȨԼ - TThostFtdcVolumeMultipleType Cvf; - ///Ȩּ۸ - TThostFtdcPriceType DownPrice; - ///Deltaֵ - TThostFtdcDeltaType Delta; - ///Ȩתֵ - TThostFtdcDeltaType SlimiDelta; - /// - TThostFtdcPriceType PreSettlementPrice; -}; - -///SPBMƷڶۿ۲ -struct CThostFtdcSPBMIntraParameterField -{ - /// - TThostFtdcDateType TradingDay; - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ʒִ - TThostFtdcInstrumentIDType ProdFamilyCode; - ///ƷںԼַۿ۱ - TThostFtdcRatioType IntraRateY; -}; - -///SPBMƷֵֿ۲ -struct CThostFtdcSPBMInterParameterField -{ - /// - TThostFtdcDateType TradingDay; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ȼ - TThostFtdcSpreadIdType SpreadId; - ///Ʒַּۿ۱ - TThostFtdcRatioType InterRateZ; - ///һȹƷ - TThostFtdcInstrumentIDType Leg1ProdFamilyCode; - ///ڶȹƷ - TThostFtdcInstrumentIDType Leg2ProdFamilyCode; -}; - -///ͬSPBM -struct CThostFtdcSyncSPBMParameterEndField -{ - /// - TThostFtdcDateType TradingDay; -}; - -///SPBMڻԼ֤ѯ -struct CThostFtdcQrySPBMFutureParameterField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///Ʒִ - TThostFtdcInstrumentIDType ProdFamilyCode; -}; - -///SPBMȨԼ֤ѯ -struct CThostFtdcQrySPBMOptionParameterField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///Լ - TThostFtdcInstrumentIDType InstrumentID; - ///Ʒִ - TThostFtdcInstrumentIDType ProdFamilyCode; -}; - -///SPBMƷڶۿ۲ѯ -struct CThostFtdcQrySPBMIntraParameterField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///Ʒִ - TThostFtdcInstrumentIDType ProdFamilyCode; -}; - -///SPBMƷֵֿ۲ѯ -struct CThostFtdcQrySPBMInterParameterField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///һȹƷ - TThostFtdcInstrumentIDType Leg1ProdFamilyCode; - ///ڶȹƷ - TThostFtdcInstrumentIDType Leg2ProdFamilyCode; -}; - -///ϱ֤ײ -struct CThostFtdcSPBMPortfDefinitionField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///ϱ֤ײʹ - TThostFtdcPortfolioDefIDType PortfolioDefID; - ///Ʒִ - TThostFtdcInstrumentIDType ProdFamilyCode; - ///ǷSPBM - TThostFtdcBoolType IsSPBM; -}; - -///Ͷײѡ -struct CThostFtdcSPBMInvestorPortfDefField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///ϱ֤ײʹ - TThostFtdcPortfolioDefIDType PortfolioDefID; -}; - -///Ͷϱ֤ϵ -struct CThostFtdcInvestorPortfMarginRatioField -{ - ///Ͷ߷Χ - TThostFtdcInvestorRangeType InvestorRange; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcExchangeIDType ExchangeID; - ///ԱͶȡı֤ͽͶȡı֤ı - TThostFtdcRatioType MarginRatio; -}; - -///ϱ֤ײͲѯ -struct CThostFtdcQrySPBMPortfDefinitionField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///ϱ֤ײʹ - TThostFtdcPortfolioDefIDType PortfolioDefID; - ///Ʒִ - TThostFtdcInstrumentIDType ProdFamilyCode; -}; - -///Ͷײѡѯ -struct CThostFtdcQrySPBMInvestorPortfDefField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; -}; - -///Ͷϱ֤ϵѯ -struct CThostFtdcQryInvestorPortfMarginRatioField -{ - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - /// - TThostFtdcExchangeIDType ExchangeID; -}; - -///Ͷ߲ƷSPBMϸ -struct CThostFtdcInvestorProdSPBMDetailField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ʒִ - TThostFtdcInstrumentIDType ProdFamilyCode; - ///Լڶ֤ - TThostFtdcMoneyType IntraInstrMargin; - ///鼯֤ - TThostFtdcMoneyType BCollectingMargin; - ///鼯֤ - TThostFtdcMoneyType SCollectingMargin; - ///ƷںԼ֤ - TThostFtdcMoneyType IntraProdMargin; - ///֤ - TThostFtdcMoneyType NetMargin; - ///Ʒ֤ - TThostFtdcMoneyType InterProdMargin; - ///㱣֤ - TThostFtdcMoneyType SingleMargin; - ///ӱ֤ - TThostFtdcMoneyType AddOnMargin; - ///±֤ - TThostFtdcMoneyType DeliveryMargin; - ///Ȩͷ - TThostFtdcMoneyType CallOptionMinRisk; - ///Ȩͷ - TThostFtdcMoneyType PutOptionMinRisk; - ///Ȩͷ - TThostFtdcMoneyType OptionMinRisk; - ///Ȩֵּ - TThostFtdcMoneyType OptionValueOffset; - ///ȨȨ - TThostFtdcMoneyType OptionRoyalty; - ///ֵ - TThostFtdcMoneyType RealOptionValueOffset; - ///֤ - TThostFtdcMoneyType Margin; - ///֤ - TThostFtdcMoneyType ExchMargin; -}; - -///Ͷ߲ƷSPBMϸѯ -struct CThostFtdcQryInvestorProdSPBMDetailField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///Ʒִ - TThostFtdcInstrumentIDType ProdFamilyCode; -}; - -///鱣ײ -struct CThostFtdcPortfTradeParamSettingField -{ - /// - TThostFtdcExchangeIDType ExchangeID; - ///͹˾ - TThostFtdcBrokerIDType BrokerID; - ///Ͷߴ - TThostFtdcInvestorIDType InvestorID; - ///鱣㷨 - TThostFtdcPortfolioType Portfolio; - ///Ƿ - TThostFtdcBoolType IsActionVerify; - ///ƽǷ - TThostFtdcBoolType IsCloseVerify; -}; - - - -#endif diff --git a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/error.xml b/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/error.xml deleted file mode 100644 index 552d79c..0000000 --- a/api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/error.xml +++ /dev/null @@ -1,271 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -~ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 25e893d..d34bb02 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -9,15 +9,16 @@ IF(WIN32) set(BOOST_ROOT "C:/Boost") set(Boost_INCLUDE_DIR "${BOOST_ROOT}/include/boost-1_80") set(BOOST_LIBRARY_DIRS "${BOOST_ROOT}/lib") -ELSE(WIN32) +ELSEIF(UNIX) ADD_DEFINITIONS( "-fPIC" ) # set(Boost_NO_SYSTEM_PATHS ON) set(BOOST_ROOT "/usr/include/boost") set(Boost_INCLUDE_DIR "${BOOST_ROOT}/include") set(BOOST_LIBRARY_DIRS "${BOOST_ROOT}/lib") + set(CTP_LIBS thostmduserapi_se thosttraderapi_se) set(SYS_LIBS pthread rt) - set(BOOST_LIBS boost_thread boost_log boost_log_setup boost_system boost_filesystem) -ENDIF(WIN32) + set(BOOST_LIBS boost_log boost_log_setup boost_system boost_filesystem boost_thread) +ENDIF() set(CMAKE_CXX_STANDARD 17) @@ -32,6 +33,7 @@ FIND_PACKAGE(Boost REQUIRED) IF (Boost_FOUND) INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR}) ADD_DEFINITIONS( "-DHAS_BOOST" ) + ADD_DEFINITIONS( "-DBOOST_LOG_DYN_LINK" ) #ADD_DEFINITIONS( "-DBOOST_ALL_NO_LIB" ) ENDIF() diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 8db9ebd..a08e69e 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1,5 +1,12 @@  include_directories(${CMAKE_INCLUDE_PATH}) + +IF(UNIX) + SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} + "${PROJECT_SOURCE_DIR}/../api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/" + ) +ENDIF() + link_directories(${CMAKE_LIBRARY_PATH}) #AUX_SOURCE_DIRECTORY("driver" DRIVER_DIR_VAR) #target_sources(${target} PRIVATE ${A1_DIR_VAR}) diff --git a/src/gallop/CMakeLists.txt b/src/gallop/CMakeLists.txt index 4854426..005461c 100644 --- a/src/gallop/CMakeLists.txt +++ b/src/gallop/CMakeLists.txt @@ -3,6 +3,11 @@ # cmake_minimum_required (VERSION 3.8) +IF(UNIX) + SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} + "${PROJECT_SOURCE_DIR}/../api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/" + ) +ENDIF() include_directories(${CMAKE_INCLUDE_PATH}) link_directories(${CMAKE_LIBRARY_PATH}) diff --git a/src/market/CMakeLists.txt b/src/market/CMakeLists.txt index cfdc75d..29c805e 100644 --- a/src/market/CMakeLists.txt +++ b/src/market/CMakeLists.txt @@ -12,7 +12,11 @@ IF(WIN32) ELSE(WIN32) IF(CMAKE_CL_64) SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} - "${PROJECT_SOURCE_DIR}/../api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/" + "${PROJECT_SOURCE_DIR}/../api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/" + ) + ELSE(CMAKE_CL_64) + SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} + "${PROJECT_SOURCE_DIR}/../api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/" ) ENDIF(CMAKE_CL_64) ENDIF(WIN32) diff --git a/src/trader/CMakeLists.txt b/src/trader/CMakeLists.txt index 427c5b7..973a45e 100644 --- a/src/trader/CMakeLists.txt +++ b/src/trader/CMakeLists.txt @@ -12,12 +12,17 @@ IF(WIN32) ELSE(WIN32) IF(CMAKE_CL_64) SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} - "${PROJECT_SOURCE_DIR}/../api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/v6.6.9_20220914_api/v6.6.9_20220914_20220914_api_traderapi_se_linux64/" + "${PROJECT_SOURCE_DIR}/../api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/" + ) + ELSE(CMAKE_CL_64) + SET(CMAKE_INCLUDE_PATH + ${CMAKE_INCLUDE_PATH} + "${PROJECT_SOURCE_DIR}/../api/v6.6.9_traderapi_20220920/v6.6.9_20220914_api_linux64/" ) ENDIF(CMAKE_CL_64) ENDIF(WIN32) -message("TRADER INCLUDE PATH -> "${CMAKE_INCLUDE_PATH}) +message("TRADER INCLUDE PATH -> ${CMAKE_INCLUDE_PATH}") include_directories(${CMAKE_INCLUDE_PATH}) -- Gitee