diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a41ac52 --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +################################################################################ +# 此 .gitignore 文件已由 Microsoft(R) Visual Studio 自动创建。 +################################################################################ + +/.vs +/CTPInvoke/x64 +/CTPSharp/bin +/CTPSharp/obj +*.filters +*.user +/x64 +/Generated +/CTPSharp/.vs +/Generator/bin +/Generator/obj +*.exp +*.lib +*.pdb +/Generator/Properties/launchSettings.json diff --git a/CTPAPI6.6.9/ThostFtdcMdApi.h b/CTPAPI6.6.9/ThostFtdcMdApi.h new file mode 100644 index 0000000..9b657bb --- /dev/null +++ b/CTPAPI6.6.9/ThostFtdcMdApi.h @@ -0,0 +1,168 @@ +///////////////////////////////////////////////////////////////////////// +///@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/CTPAPI6.6.9/ThostFtdcTraderApi.h b/CTPAPI6.6.9/ThostFtdcTraderApi.h new file mode 100644 index 0000000..0bedfd3 --- /dev/null +++ b/CTPAPI6.6.9/ThostFtdcTraderApi.h @@ -0,0 +1,818 @@ +///////////////////////////////////////////////////////////////////////// +///@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/CTPAPI6.6.9/ThostFtdcUserApiDataType.h b/CTPAPI6.6.9/ThostFtdcUserApiDataType.h new file mode 100644 index 0000000..1a73f9d --- /dev/null +++ b/CTPAPI6.6.9/ThostFtdcUserApiDataType.h @@ -0,0 +1,6917 @@ +///////////////////////////////////////////////////////////////////////// +///@system 新一代交易所系统 +///@company 上海期货信息技术有限公司 +///@file ThostFtdcUserApiDataType.h +///@brief 定义了客户端接口使用的业务数据类型 +///@history +///20060106 赵鸿昊 创建该文件 +///////////////////////////////////////////////////////////////////////// + +#ifndef THOST_FTDCDATATYPE_H +#define THOST_FTDCDATATYPE_H + +enum THOST_TE_RESUME_TYPE +{ + THOST_TERT_RESTART = 0, + THOST_TERT_RESUME, + THOST_TERT_QUICK, + THOST_TERT_NONE +}; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTraderIDType是一个交易所交易员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTraderIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorIDType是一个投资者代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerIDType是一个经纪公司代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerAbbrType是一个经纪公司简称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerAbbrType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerNameType是一个经纪公司名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOldExchangeInstIDType是一个合约在交易所的代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOldExchangeInstIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeInstIDType是一个合约在交易所的代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeInstIDType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderRefType是一个报单引用类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrderRefType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParticipantIDType是一个会员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParticipantIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserIDType是一个用户代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserIDType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPasswordType是一个密码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPasswordType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientIDType是一个交易编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentIDType是一个合约代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentIDType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOldInstrumentIDType是一个合约代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOldInstrumentIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentCodeType是一个合约标识码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentCodeType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarketIDType是一个市场代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMarketIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductNameType是一个产品名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProductNameType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeIDType是一个交易所代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeNameType是一个交易所名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeAbbrType是一个交易所简称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeAbbrType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeFlagType是一个交易所标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMacAddressType是一个Mac地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMacAddressType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemIDType是一个系统编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSystemIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientLoginRemarkType是一个客户登录备注2类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientLoginRemarkType[151]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangePropertyType是一个交易所属性类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_EXP_Normal '0' +///根据成交生成报单 +#define THOST_FTDC_EXP_GenOrderByTrade '1' + +typedef char TThostFtdcExchangePropertyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateType是一个日期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimeType是一个时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTimeType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLongTimeType是一个长时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongTimeType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentNameType是一个合约名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentNameType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementGroupIDType是一个结算组代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettlementGroupIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderSysIDType是一个报单编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrderSysIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeIDType是一个成交编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommandTypeType是一个DB命令类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommandTypeType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOldIPAddressType是一个IP地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOldIPAddressType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIPAddressType是一个IP地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIPAddressType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIPPortType是一个IP端口类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcIPPortType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductInfoType是一个产品信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProductInfoType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProtocolInfoType是一个协议信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProtocolInfoType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessUnitType是一个业务单元类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBusinessUnitType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDepositSeqNoType是一个出入金流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDepositSeqNoType[15]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIdentifiedCardNoType是一个证件号码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIdentifiedCardNoType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIdCardTypeType是一个证件类型类型 +///////////////////////////////////////////////////////////////////////// +///组织机构代码 +#define THOST_FTDC_ICT_EID '0' +///中国公民身份证 +#define THOST_FTDC_ICT_IDCard '1' +///军官证 +#define THOST_FTDC_ICT_OfficerIDCard '2' +///警官证 +#define THOST_FTDC_ICT_PoliceIDCard '3' +///士兵证 +#define THOST_FTDC_ICT_SoldierIDCard '4' +///户口簿 +#define THOST_FTDC_ICT_HouseholdRegister '5' +///护照 +#define THOST_FTDC_ICT_Passport '6' +///台胞证 +#define THOST_FTDC_ICT_TaiwanCompatriotIDCard '7' +///回乡证 +#define THOST_FTDC_ICT_HomeComingCard '8' +///营业执照号 +#define THOST_FTDC_ICT_LicenseNo '9' +///税务登记号/当地纳税ID +#define THOST_FTDC_ICT_TaxNo 'A' +///港澳居民来往内地通行证 +#define THOST_FTDC_ICT_HMMainlandTravelPermit 'B' +///台湾居民来往大陆通行证 +#define THOST_FTDC_ICT_TwMainlandTravelPermit 'C' +///驾照 +#define THOST_FTDC_ICT_DrivingLicense 'D' +///当地社保ID +#define THOST_FTDC_ICT_SocialID 'F' +///当地身份证 +#define THOST_FTDC_ICT_LocalID 'G' +///商业登记证 +#define THOST_FTDC_ICT_BusinessRegistration 'H' +///港澳永久性居民身份证 +#define THOST_FTDC_ICT_HKMCIDCard 'I' +///人行开户许可证 +#define THOST_FTDC_ICT_AccountsPermits 'J' +///外国人永久居留证 +#define THOST_FTDC_ICT_FrgPrmtRdCard 'K' +///资管产品备案函 +#define THOST_FTDC_ICT_CptMngPrdLetter 'L' +///港澳台居民居住证 +#define THOST_FTDC_ICT_HKMCTwResidencePermit 'M' +///统一社会信用代码 +#define THOST_FTDC_ICT_UniformSocialCreditCode 'N' +///机构成立证明文件 +#define THOST_FTDC_ICT_CorporationCertNo 'O' +///其他证件 +#define THOST_FTDC_ICT_OtherCard 'x' + +typedef char TThostFtdcIdCardTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderLocalIDType是一个本地报单编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrderLocalIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserNameType是一个用户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPartyNameType是一个参与人名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPartyNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcErrorMsgType是一个错误信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcErrorMsgType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFieldNameType是一个字段名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFieldNameType[2049]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFieldContentType是一个字段内容类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFieldContentType[2049]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemNameType是一个系统名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSystemNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcContentType是一个消息正文类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcContentType[501]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorRangeType是一个投资者范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_IR_All '1' +///投资者组 +#define THOST_FTDC_IR_Group '2' +///单一投资者 +#define THOST_FTDC_IR_Single '3' + +typedef char TThostFtdcInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDepartmentRangeType是一个投资者范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_DR_All '1' +///组织架构 +#define THOST_FTDC_DR_Group '2' +///单一投资者 +#define THOST_FTDC_DR_Single '3' + +typedef char TThostFtdcDepartmentRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataSyncStatusType是一个数据同步状态类型 +///////////////////////////////////////////////////////////////////////// +///未同步 +#define THOST_FTDC_DS_Asynchronous '1' +///同步中 +#define THOST_FTDC_DS_Synchronizing '2' +///已同步 +#define THOST_FTDC_DS_Synchronized '3' + +typedef char TThostFtdcDataSyncStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerDataSyncStatusType是一个经纪公司数据同步状态类型 +///////////////////////////////////////////////////////////////////////// +///已同步 +#define THOST_FTDC_BDS_Synchronized '1' +///同步中 +#define THOST_FTDC_BDS_Synchronizing '2' + +typedef char TThostFtdcBrokerDataSyncStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeConnectStatusType是一个交易所连接状态类型 +///////////////////////////////////////////////////////////////////////// +///没有任何连接 +#define THOST_FTDC_ECS_NoConnection '1' +///已经发出合约查询请求 +#define THOST_FTDC_ECS_QryInstrumentSent '2' +///已经获取信息 +#define THOST_FTDC_ECS_GotInformation '9' + +typedef char TThostFtdcExchangeConnectStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTraderConnectStatusType是一个交易所交易员连接状态类型 +///////////////////////////////////////////////////////////////////////// +///没有任何连接 +#define THOST_FTDC_TCS_NotConnected '1' +///已经连接 +#define THOST_FTDC_TCS_Connected '2' +///已经发出合约查询请求 +#define THOST_FTDC_TCS_QryInstrumentSent '3' +///订阅私有流 +#define THOST_FTDC_TCS_SubPrivateFlow '4' + +typedef char TThostFtdcTraderConnectStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionCodeType是一个功能代码类型 +///////////////////////////////////////////////////////////////////////// +///数据异步化 +#define THOST_FTDC_FC_DataAsync '1' +///强制用户登出 +#define THOST_FTDC_FC_ForceUserLogout '2' +///变更管理用户口令 +#define THOST_FTDC_FC_UserPasswordUpdate '3' +///变更经纪公司口令 +#define THOST_FTDC_FC_BrokerPasswordUpdate '4' +///变更投资者口令 +#define THOST_FTDC_FC_InvestorPasswordUpdate '5' +///报单插入 +#define THOST_FTDC_FC_OrderInsert '6' +///报单操作 +#define THOST_FTDC_FC_OrderAction '7' +///同步系统数据 +#define THOST_FTDC_FC_SyncSystemData '8' +///同步经纪公司数据 +#define THOST_FTDC_FC_SyncBrokerData '9' +///批量同步经纪公司数据 +#define THOST_FTDC_FC_BachSyncBrokerData 'A' +///超级查询 +#define THOST_FTDC_FC_SuperQuery 'B' +///预埋报单插入 +#define THOST_FTDC_FC_ParkedOrderInsert 'C' +///预埋报单操作 +#define THOST_FTDC_FC_ParkedOrderAction 'D' +///同步动态令牌 +#define THOST_FTDC_FC_SyncOTP 'E' +///删除未知单 +#define THOST_FTDC_FC_DeleteOrder 'F' + +typedef char TThostFtdcFunctionCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerFunctionCodeType是一个经纪公司功能代码类型 +///////////////////////////////////////////////////////////////////////// +///强制用户登出 +#define THOST_FTDC_BFC_ForceUserLogout '1' +///变更用户口令 +#define THOST_FTDC_BFC_UserPasswordUpdate '2' +///同步经纪公司数据 +#define THOST_FTDC_BFC_SyncBrokerData '3' +///批量同步经纪公司数据 +#define THOST_FTDC_BFC_BachSyncBrokerData '4' +///报单插入 +#define THOST_FTDC_BFC_OrderInsert '5' +///报单操作 +#define THOST_FTDC_BFC_OrderAction '6' +///全部查询 +#define THOST_FTDC_BFC_AllQuery '7' +///系统功能:登入/登出/修改密码等 +#define THOST_FTDC_BFC_log 'a' +///基本查询:查询基础数据,如合约,交易所等常量 +#define THOST_FTDC_BFC_BaseQry 'b' +///交易查询:如查成交,委托 +#define THOST_FTDC_BFC_TradeQry 'c' +///交易功能:报单,撤单 +#define THOST_FTDC_BFC_Trade 'd' +///银期转账 +#define THOST_FTDC_BFC_Virement 'e' +///风险监控 +#define THOST_FTDC_BFC_Risk 'f' +///查询/管理:查询会话,踢人等 +#define THOST_FTDC_BFC_Session 'g' +///风控通知控制 +#define THOST_FTDC_BFC_RiskNoticeCtl 'h' +///风控通知发送 +#define THOST_FTDC_BFC_RiskNotice 'i' +///察看经纪公司资金权限 +#define THOST_FTDC_BFC_BrokerDeposit 'j' +///资金查询 +#define THOST_FTDC_BFC_QueryFund 'k' +///报单查询 +#define THOST_FTDC_BFC_QueryOrder 'l' +///成交查询 +#define THOST_FTDC_BFC_QueryTrade 'm' +///持仓查询 +#define THOST_FTDC_BFC_QueryPosition 'n' +///行情查询 +#define THOST_FTDC_BFC_QueryMarketData 'o' +///用户事件查询 +#define THOST_FTDC_BFC_QueryUserEvent 'p' +///风险通知查询 +#define THOST_FTDC_BFC_QueryRiskNotify 'q' +///出入金查询 +#define THOST_FTDC_BFC_QueryFundChange 'r' +///投资者信息查询 +#define THOST_FTDC_BFC_QueryInvestor 's' +///交易编码查询 +#define THOST_FTDC_BFC_QueryTradingCode 't' +///强平 +#define THOST_FTDC_BFC_ForceClose 'u' +///压力测试 +#define THOST_FTDC_BFC_PressTest 'v' +///权益反算 +#define THOST_FTDC_BFC_RemainCalc 'w' +///净持仓保证金指标 +#define THOST_FTDC_BFC_NetPositionInd 'x' +///风险预算 +#define THOST_FTDC_BFC_RiskPredict 'y' +///数据导出 +#define THOST_FTDC_BFC_DataExport 'z' +///风控指标设置 +#define THOST_FTDC_BFC_RiskTargetSetup 'A' +///行情预警 +#define THOST_FTDC_BFC_MarketDataWarn 'B' +///业务通知查询 +#define THOST_FTDC_BFC_QryBizNotice 'C' +///业务通知模板设置 +#define THOST_FTDC_BFC_CfgBizNotice 'D' +///同步动态令牌 +#define THOST_FTDC_BFC_SyncOTP 'E' +///发送业务通知 +#define THOST_FTDC_BFC_SendBizNotice 'F' +///风险级别标准设置 +#define THOST_FTDC_BFC_CfgRiskLevelStd 'G' +///交易终端应急功能 +#define THOST_FTDC_BFC_TbCommand 'H' +///删除未知单 +#define THOST_FTDC_BFC_DeleteOrder 'J' +///预埋报单插入 +#define THOST_FTDC_BFC_ParkedOrderInsert 'K' +///预埋报单操作 +#define THOST_FTDC_BFC_ParkedOrderAction 'L' +///资金不够仍允许行权 +#define THOST_FTDC_BFC_ExecOrderNoCheck 'M' +///指定 +#define THOST_FTDC_BFC_Designate 'N' +///证券处置 +#define THOST_FTDC_BFC_StockDisposal 'O' +///席位资金预警 +#define THOST_FTDC_BFC_BrokerDepositWarn 'Q' +///备兑不足预警 +#define THOST_FTDC_BFC_CoverWarn 'S' +///行权试算 +#define THOST_FTDC_BFC_PreExecOrder 'T' +///行权交收风险 +#define THOST_FTDC_BFC_ExecOrderRisk 'P' +///持仓限额预警 +#define THOST_FTDC_BFC_PosiLimitWarn 'U' +///持仓限额查询 +#define THOST_FTDC_BFC_QryPosiLimit 'V' +///银期签到签退 +#define THOST_FTDC_BFC_FBSign 'W' +///银期签约解约 +#define THOST_FTDC_BFC_FBAccount 'X' + +typedef char TThostFtdcBrokerFunctionCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderActionStatusType是一个报单操作状态类型 +///////////////////////////////////////////////////////////////////////// +///已经提交 +#define THOST_FTDC_OAS_Submitted 'a' +///已经接受 +#define THOST_FTDC_OAS_Accepted 'b' +///已经被拒绝 +#define THOST_FTDC_OAS_Rejected 'c' + +typedef char TThostFtdcOrderActionStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderStatusType是一个报单状态类型 +///////////////////////////////////////////////////////////////////////// +///全部成交 +#define THOST_FTDC_OST_AllTraded '0' +///部分成交还在队列中 +#define THOST_FTDC_OST_PartTradedQueueing '1' +///部分成交不在队列中 +#define THOST_FTDC_OST_PartTradedNotQueueing '2' +///未成交还在队列中 +#define THOST_FTDC_OST_NoTradeQueueing '3' +///未成交不在队列中 +#define THOST_FTDC_OST_NoTradeNotQueueing '4' +///撤单 +#define THOST_FTDC_OST_Canceled '5' +///未知 +#define THOST_FTDC_OST_Unknown 'a' +///尚未触发 +#define THOST_FTDC_OST_NotTouched 'b' +///已触发 +#define THOST_FTDC_OST_Touched 'c' + +typedef char TThostFtdcOrderStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderSubmitStatusType是一个报单提交状态类型 +///////////////////////////////////////////////////////////////////////// +///已经提交 +#define THOST_FTDC_OSS_InsertSubmitted '0' +///撤单已经提交 +#define THOST_FTDC_OSS_CancelSubmitted '1' +///修改已经提交 +#define THOST_FTDC_OSS_ModifySubmitted '2' +///已经接受 +#define THOST_FTDC_OSS_Accepted '3' +///报单已经被拒绝 +#define THOST_FTDC_OSS_InsertRejected '4' +///撤单已经被拒绝 +#define THOST_FTDC_OSS_CancelRejected '5' +///改单已经被拒绝 +#define THOST_FTDC_OSS_ModifyRejected '6' + +typedef char TThostFtdcOrderSubmitStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionDateType是一个持仓日期类型 +///////////////////////////////////////////////////////////////////////// +///今日持仓 +#define THOST_FTDC_PSD_Today '1' +///历史持仓 +#define THOST_FTDC_PSD_History '2' + +typedef char TThostFtdcPositionDateType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionDateTypeType是一个持仓日期类型类型 +///////////////////////////////////////////////////////////////////////// +///使用历史持仓 +#define THOST_FTDC_PDT_UseHistory '1' +///不使用历史持仓 +#define THOST_FTDC_PDT_NoUseHistory '2' + +typedef char TThostFtdcPositionDateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingRoleType是一个交易角色类型 +///////////////////////////////////////////////////////////////////////// +///代理 +#define THOST_FTDC_ER_Broker '1' +///自营 +#define THOST_FTDC_ER_Host '2' +///做市商 +#define THOST_FTDC_ER_Maker '3' + +typedef char TThostFtdcTradingRoleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductClassType是一个产品类型类型 +///////////////////////////////////////////////////////////////////////// +///期货 +#define THOST_FTDC_PC_Futures '1' +///期货期权 +#define THOST_FTDC_PC_Options '2' +///组合 +#define THOST_FTDC_PC_Combination '3' +///即期 +#define THOST_FTDC_PC_Spot '4' +///期转现 +#define THOST_FTDC_PC_EFP '5' +///现货期权 +#define THOST_FTDC_PC_SpotOption '6' +///TAS合约 +#define THOST_FTDC_PC_TAS '7' +///金属指数 +#define THOST_FTDC_PC_MI 'I' + +typedef char TThostFtdcProductClassType; + +///////////////////////////////////////////////////////////////////////// +///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是一个合约生命周期状态类型 +///////////////////////////////////////////////////////////////////////// +///未上市 +#define THOST_FTDC_IP_NotStart '0' +///上市 +#define THOST_FTDC_IP_Started '1' +///停牌 +#define THOST_FTDC_IP_Pause '2' +///到期 +#define THOST_FTDC_IP_Expired '3' + +typedef char TThostFtdcInstLifePhaseType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDirectionType是一个买卖方向类型 +///////////////////////////////////////////////////////////////////////// +///买 +#define THOST_FTDC_D_Buy '0' +///卖 +#define THOST_FTDC_D_Sell '1' + +typedef char TThostFtdcDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionTypeType是一个持仓类型类型 +///////////////////////////////////////////////////////////////////////// +///净持仓 +#define THOST_FTDC_PT_Net '1' +///综合持仓 +#define THOST_FTDC_PT_Gross '2' + +typedef char TThostFtdcPositionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPosiDirectionType是一个持仓多空方向类型 +///////////////////////////////////////////////////////////////////////// +///净 +#define THOST_FTDC_PD_Net '1' +///多头 +#define THOST_FTDC_PD_Long '2' +///空头 +#define THOST_FTDC_PD_Short '3' + +typedef char TThostFtdcPosiDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysSettlementStatusType是一个系统结算状态类型 +///////////////////////////////////////////////////////////////////////// +///不活跃 +#define THOST_FTDC_SS_NonActive '1' +///启动 +#define THOST_FTDC_SS_Startup '2' +///操作 +#define THOST_FTDC_SS_Operating '3' +///结算 +#define THOST_FTDC_SS_Settlement '4' +///结算完成 +#define THOST_FTDC_SS_SettlementFinished '5' + +typedef char TThostFtdcSysSettlementStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRatioAttrType是一个费率属性类型 +///////////////////////////////////////////////////////////////////////// +///交易费率 +#define THOST_FTDC_RA_Trade '0' +///结算费率 +#define THOST_FTDC_RA_Settlement '1' + +typedef char TThostFtdcRatioAttrType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHedgeFlagType是一个投机套保标志类型 +///////////////////////////////////////////////////////////////////////// +///投机 +#define THOST_FTDC_HF_Speculation '1' +///套利 +#define THOST_FTDC_HF_Arbitrage '2' +///套保 +#define THOST_FTDC_HF_Hedge '3' +///做市商 +#define THOST_FTDC_HF_MarketMaker '5' +///第一腿投机第二腿套保 +#define THOST_FTDC_HF_SpecHedge '6' +///第一腿套保第二腿投机 +#define THOST_FTDC_HF_HedgeSpec '7' + +typedef char TThostFtdcHedgeFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillHedgeFlagType是一个投机套保标志类型 +///////////////////////////////////////////////////////////////////////// +///投机 +#define THOST_FTDC_BHF_Speculation '1' +///套利 +#define THOST_FTDC_BHF_Arbitrage '2' +///套保 +#define THOST_FTDC_BHF_Hedge '3' + +typedef char TThostFtdcBillHedgeFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientIDTypeType是一个交易编码类型类型 +///////////////////////////////////////////////////////////////////////// +///投机 +#define THOST_FTDC_CIDT_Speculation '1' +///套利 +#define THOST_FTDC_CIDT_Arbitrage '2' +///套保 +#define THOST_FTDC_CIDT_Hedge '3' +///做市商 +#define THOST_FTDC_CIDT_MarketMaker '5' + +typedef char TThostFtdcClientIDTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderPriceTypeType是一个报单价格条件类型 +///////////////////////////////////////////////////////////////////////// +///任意价 +#define THOST_FTDC_OPT_AnyPrice '1' +///限价 +#define THOST_FTDC_OPT_LimitPrice '2' +///最优价 +#define THOST_FTDC_OPT_BestPrice '3' +///最新价 +#define THOST_FTDC_OPT_LastPrice '4' +///最新价浮动上浮1个ticks +#define THOST_FTDC_OPT_LastPricePlusOneTicks '5' +///最新价浮动上浮2个ticks +#define THOST_FTDC_OPT_LastPricePlusTwoTicks '6' +///最新价浮动上浮3个ticks +#define THOST_FTDC_OPT_LastPricePlusThreeTicks '7' +///卖一价 +#define THOST_FTDC_OPT_AskPrice1 '8' +///卖一价浮动上浮1个ticks +#define THOST_FTDC_OPT_AskPrice1PlusOneTicks '9' +///卖一价浮动上浮2个ticks +#define THOST_FTDC_OPT_AskPrice1PlusTwoTicks 'A' +///卖一价浮动上浮3个ticks +#define THOST_FTDC_OPT_AskPrice1PlusThreeTicks 'B' +///买一价 +#define THOST_FTDC_OPT_BidPrice1 'C' +///买一价浮动上浮1个ticks +#define THOST_FTDC_OPT_BidPrice1PlusOneTicks 'D' +///买一价浮动上浮2个ticks +#define THOST_FTDC_OPT_BidPrice1PlusTwoTicks 'E' +///买一价浮动上浮3个ticks +#define THOST_FTDC_OPT_BidPrice1PlusThreeTicks 'F' +///五档价 +#define THOST_FTDC_OPT_FiveLevelPrice 'G' + +typedef char TThostFtdcOrderPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOffsetFlagType是一个开平标志类型 +///////////////////////////////////////////////////////////////////////// +///开仓 +#define THOST_FTDC_OF_Open '0' +///平仓 +#define THOST_FTDC_OF_Close '1' +///强平 +#define THOST_FTDC_OF_ForceClose '2' +///平今 +#define THOST_FTDC_OF_CloseToday '3' +///平昨 +#define THOST_FTDC_OF_CloseYesterday '4' +///强减 +#define THOST_FTDC_OF_ForceOff '5' +///本地强平 +#define THOST_FTDC_OF_LocalForceClose '6' + +typedef char TThostFtdcOffsetFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForceCloseReasonType是一个强平原因类型 +///////////////////////////////////////////////////////////////////////// +///非强平 +#define THOST_FTDC_FCC_NotForceClose '0' +///资金不足 +#define THOST_FTDC_FCC_LackDeposit '1' +///客户超仓 +#define THOST_FTDC_FCC_ClientOverPositionLimit '2' +///会员超仓 +#define THOST_FTDC_FCC_MemberOverPositionLimit '3' +///持仓非整数倍 +#define THOST_FTDC_FCC_NotMultiple '4' +///违规 +#define THOST_FTDC_FCC_Violation '5' +///其它 +#define THOST_FTDC_FCC_Other '6' +///自然人临近交割 +#define THOST_FTDC_FCC_PersonDeliv '7' +///风控强平不验证资金 +#define THOST_FTDC_FCC_Notverifycapital '8' + +typedef char TThostFtdcForceCloseReasonType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderTypeType是一个报单类型类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_ORDT_Normal '0' +///报价衍生 +#define THOST_FTDC_ORDT_DeriveFromQuote '1' +///组合衍生 +#define THOST_FTDC_ORDT_DeriveFromCombination '2' +///组合报单 +#define THOST_FTDC_ORDT_Combination '3' +///条件单 +#define THOST_FTDC_ORDT_ConditionalOrder '4' +///互换单 +#define THOST_FTDC_ORDT_Swap '5' +///大宗交易成交衍生 +#define THOST_FTDC_ORDT_DeriveFromBlockTrade '6' +///期转现成交衍生 +#define THOST_FTDC_ORDT_DeriveFromEFPTrade '7' + +typedef char TThostFtdcOrderTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimeConditionType是一个有效期类型类型 +///////////////////////////////////////////////////////////////////////// +///立即完成,否则撤销 +#define THOST_FTDC_TC_IOC '1' +///本节有效 +#define THOST_FTDC_TC_GFS '2' +///当日有效 +#define THOST_FTDC_TC_GFD '3' +///指定日期前有效 +#define THOST_FTDC_TC_GTD '4' +///撤销前有效 +#define THOST_FTDC_TC_GTC '5' +///集合竞价有效 +#define THOST_FTDC_TC_GFA '6' + +typedef char TThostFtdcTimeConditionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVolumeConditionType是一个成交量类型类型 +///////////////////////////////////////////////////////////////////////// +///任何数量 +#define THOST_FTDC_VC_AV '1' +///最小数量 +#define THOST_FTDC_VC_MV '2' +///全部数量 +#define THOST_FTDC_VC_CV '3' + +typedef char TThostFtdcVolumeConditionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcContingentConditionType是一个触发条件类型 +///////////////////////////////////////////////////////////////////////// +///立即 +#define THOST_FTDC_CC_Immediately '1' +///止损 +#define THOST_FTDC_CC_Touch '2' +///止赢 +#define THOST_FTDC_CC_TouchProfit '3' +///预埋单 +#define THOST_FTDC_CC_ParkedOrder '4' +///最新价大于条件价 +#define THOST_FTDC_CC_LastPriceGreaterThanStopPrice '5' +///最新价大于等于条件价 +#define THOST_FTDC_CC_LastPriceGreaterEqualStopPrice '6' +///最新价小于条件价 +#define THOST_FTDC_CC_LastPriceLesserThanStopPrice '7' +///最新价小于等于条件价 +#define THOST_FTDC_CC_LastPriceLesserEqualStopPrice '8' +///卖一价大于条件价 +#define THOST_FTDC_CC_AskPriceGreaterThanStopPrice '9' +///卖一价大于等于条件价 +#define THOST_FTDC_CC_AskPriceGreaterEqualStopPrice 'A' +///卖一价小于条件价 +#define THOST_FTDC_CC_AskPriceLesserThanStopPrice 'B' +///卖一价小于等于条件价 +#define THOST_FTDC_CC_AskPriceLesserEqualStopPrice 'C' +///买一价大于条件价 +#define THOST_FTDC_CC_BidPriceGreaterThanStopPrice 'D' +///买一价大于等于条件价 +#define THOST_FTDC_CC_BidPriceGreaterEqualStopPrice 'E' +///买一价小于条件价 +#define THOST_FTDC_CC_BidPriceLesserThanStopPrice 'F' +///买一价小于等于条件价 +#define THOST_FTDC_CC_BidPriceLesserEqualStopPrice 'H' + +typedef char TThostFtdcContingentConditionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcActionFlagType是一个操作标志类型 +///////////////////////////////////////////////////////////////////////// +///删除 +#define THOST_FTDC_AF_Delete '0' +///修改 +#define THOST_FTDC_AF_Modify '3' + +typedef char TThostFtdcActionFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingRightType是一个交易权限类型 +///////////////////////////////////////////////////////////////////////// +///可以交易 +#define THOST_FTDC_TR_Allow '0' +///只能平仓 +#define THOST_FTDC_TR_CloseOnly '1' +///不能交易 +#define THOST_FTDC_TR_Forbidden '2' + +typedef char TThostFtdcTradingRightType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderSourceType是一个报单来源类型 +///////////////////////////////////////////////////////////////////////// +///来自参与者 +#define THOST_FTDC_OSRC_Participant '0' +///来自管理员 +#define THOST_FTDC_OSRC_Administrator '1' + +typedef char TThostFtdcOrderSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeTypeType是一个成交类型类型 +///////////////////////////////////////////////////////////////////////// +///组合持仓拆分为单一持仓,初始化不应包含该类型的持仓 +#define THOST_FTDC_TRDT_SplitCombination '#' +///普通成交 +#define THOST_FTDC_TRDT_Common '0' +///期权执行 +#define THOST_FTDC_TRDT_OptionsExecution '1' +///OTC成交 +#define THOST_FTDC_TRDT_OTC '2' +///期转现衍生成交 +#define THOST_FTDC_TRDT_EFPDerived '3' +///组合衍生成交 +#define THOST_FTDC_TRDT_CombinationDerived '4' +///大宗交易成交 +#define THOST_FTDC_TRDT_BlockTrade '5' + +typedef char TThostFtdcTradeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSpecPosiTypeType是一个特殊持仓明细标识类型 +///////////////////////////////////////////////////////////////////////// +///普通持仓明细 +#define THOST_FTDC_SPOST_Common '#' +///TAS合约成交产生的标的合约持仓明细 +#define THOST_FTDC_SPOST_Tas '0' + +typedef char TThostFtdcSpecPosiTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriceSourceType是一个成交价来源类型 +///////////////////////////////////////////////////////////////////////// +///前成交价 +#define THOST_FTDC_PSRC_LastPrice '0' +///买委托价 +#define THOST_FTDC_PSRC_Buy '1' +///卖委托价 +#define THOST_FTDC_PSRC_Sell '2' +///场外成交价 +#define THOST_FTDC_PSRC_OTC '3' + +typedef char TThostFtdcPriceSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentStatusType是一个合约交易状态类型 +///////////////////////////////////////////////////////////////////////// +///开盘前 +#define THOST_FTDC_IS_BeforeTrading '0' +///非交易 +#define THOST_FTDC_IS_NoTrading '1' +///连续交易 +#define THOST_FTDC_IS_Continous '2' +///集合竞价报单 +#define THOST_FTDC_IS_AuctionOrdering '3' +///集合竞价价格平衡 +#define THOST_FTDC_IS_AuctionBalance '4' +///集合竞价撮合 +#define THOST_FTDC_IS_AuctionMatch '5' +///收盘 +#define THOST_FTDC_IS_Closed '6' + +typedef char TThostFtdcInstrumentStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstStatusEnterReasonType是一个品种进入交易状态原因类型 +///////////////////////////////////////////////////////////////////////// +///自动切换 +#define THOST_FTDC_IER_Automatic '1' +///手动切换 +#define THOST_FTDC_IER_Manual '2' +///熔断 +#define THOST_FTDC_IER_Fuse '3' + +typedef char TThostFtdcInstStatusEnterReasonType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderActionRefType是一个报单操作引用类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcOrderActionRefType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstallCountType是一个安装数量类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcInstallCountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstallIDType是一个安装编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcInstallIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcErrorIDType是一个错误代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcErrorIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementIDType是一个结算编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSettlementIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVolumeType是一个数量类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcVolumeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFrontIDType是一个前置编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFrontIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSessionIDType是一个会话编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSessionIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceNoType是一个序号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSequenceNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommandNoType是一个DB命令序号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCommandNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMillisecType是一个时间(毫秒)类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcMillisecType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSecType是一个时间(秒)类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSecType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVolumeMultipleType是一个合约数量乘数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcVolumeMultipleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingSegmentSNType是一个交易阶段编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTradingSegmentSNType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRequestIDType是一个请求编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRequestIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcYearType是一个年份类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcYearType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMonthType是一个月份类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcMonthType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBoolType是一个布尔型类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcBoolType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriceType是一个价格类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcPriceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombOffsetFlagType是一个组合开平标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombOffsetFlagType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombHedgeFlagType是一个组合投机套保标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombHedgeFlagType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRatioType是一个比率类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcRatioType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMoneyType是一个资金类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLargeVolumeType是一个大额数量类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcLargeVolumeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceSeriesType是一个序列系列号类型 +///////////////////////////////////////////////////////////////////////// +typedef short TThostFtdcSequenceSeriesType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommPhaseNoType是一个通讯时段编号类型 +///////////////////////////////////////////////////////////////////////// +typedef short TThostFtdcCommPhaseNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceLabelType是一个序列编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSequenceLabelType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUnderlyingMultipleType是一个基础商品乘数类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcUnderlyingMultipleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriorityType是一个优先级类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcPriorityType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcContractCodeType是一个合同编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcContractCodeType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCityType是一个市类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCityType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIsStockType是一个是否股民类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIsStockType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcChannelType是一个渠道类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcChannelType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAddressType是一个通讯地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAddressType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcZipCodeType是一个邮政编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcZipCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTelephoneType是一个联系电话类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTelephoneType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFaxType是一个传真类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFaxType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMobileType是一个手机类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMobileType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEMailType是一个电子邮件类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEMailType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMemoType是一个备注类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMemoType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCompanyCodeType是一个企业代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCompanyCodeType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWebsiteType是一个网站地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWebsiteType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTaxNoType是一个税务登记号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTaxNoType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBatchStatusType是一个处理状态类型 +///////////////////////////////////////////////////////////////////////// +///未上传 +#define THOST_FTDC_BS_NoUpload '1' +///已上传 +#define THOST_FTDC_BS_Uploaded '2' +///审核失败 +#define THOST_FTDC_BS_Failed '3' + +typedef char TThostFtdcBatchStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyIDType是一个属性代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPropertyIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyNameType是一个属性名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPropertyNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLicenseNoType是一个营业执照号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLicenseNoType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentIDType是一个经纪人代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentNameType是一个经纪人名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentGroupIDType是一个经纪人组代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentGroupIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentGroupNameType是一个经纪人组名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentGroupNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnStyleType是一个按品种返还方式类型 +///////////////////////////////////////////////////////////////////////// +///按所有品种 +#define THOST_FTDC_RS_All '1' +///按品种 +#define THOST_FTDC_RS_ByProduct '2' + +typedef char TThostFtdcReturnStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnPatternType是一个返还模式类型 +///////////////////////////////////////////////////////////////////////// +///按成交手数 +#define THOST_FTDC_RP_ByVolume '1' +///按留存手续费 +#define THOST_FTDC_RP_ByFeeOnHand '2' + +typedef char TThostFtdcReturnPatternType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnLevelType是一个返还级别类型 +///////////////////////////////////////////////////////////////////////// +///级别1 +#define THOST_FTDC_RL_Level1 '1' +///级别2 +#define THOST_FTDC_RL_Level2 '2' +///级别3 +#define THOST_FTDC_RL_Level3 '3' +///级别4 +#define THOST_FTDC_RL_Level4 '4' +///级别5 +#define THOST_FTDC_RL_Level5 '5' +///级别6 +#define THOST_FTDC_RL_Level6 '6' +///级别7 +#define THOST_FTDC_RL_Level7 '7' +///级别8 +#define THOST_FTDC_RL_Level8 '8' +///级别9 +#define THOST_FTDC_RL_Level9 '9' + +typedef char TThostFtdcReturnLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnStandardType是一个返还标准类型 +///////////////////////////////////////////////////////////////////////// +///分阶段返还 +#define THOST_FTDC_RSD_ByPeriod '1' +///按某一标准 +#define THOST_FTDC_RSD_ByStandard '2' + +typedef char TThostFtdcReturnStandardType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMortgageTypeType是一个质押类型类型 +///////////////////////////////////////////////////////////////////////// +///质出 +#define THOST_FTDC_MT_Out '0' +///质入 +#define THOST_FTDC_MT_In '1' + +typedef char TThostFtdcMortgageTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorSettlementParamIDType是一个投资者结算参数代码类型 +///////////////////////////////////////////////////////////////////////// +///质押比例 +#define THOST_FTDC_ISPI_MortgageRatio '4' +///保证金算法 +#define THOST_FTDC_ISPI_MarginWay '5' +///结算单结存是否包含质押 +#define THOST_FTDC_ISPI_BillDeposit '9' + +typedef char TThostFtdcInvestorSettlementParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeSettlementParamIDType是一个交易所结算参数代码类型 +///////////////////////////////////////////////////////////////////////// +///质押比例 +#define THOST_FTDC_ESPI_MortgageRatio '1' +///分项资金导入项 +#define THOST_FTDC_ESPI_OtherFundItem '2' +///分项资金入交易所出入金 +#define THOST_FTDC_ESPI_OtherFundImport '3' +///中金所开户最低可用金额 +#define THOST_FTDC_ESPI_CFFEXMinPrepa '6' +///郑商所结算方式 +#define THOST_FTDC_ESPI_CZCESettlementType '7' +///交易所交割手续费收取方式 +#define THOST_FTDC_ESPI_ExchDelivFeeMode '9' +///投资者交割手续费收取方式 +#define THOST_FTDC_ESPI_DelivFeeMode '0' +///郑商所组合持仓保证金收取方式 +#define THOST_FTDC_ESPI_CZCEComMarginType 'A' +///大商所套利保证金是否优惠 +#define THOST_FTDC_ESPI_DceComMarginType 'B' +///虚值期权保证金优惠比率 +#define THOST_FTDC_ESPI_OptOutDisCountRate 'a' +///最低保障系数 +#define THOST_FTDC_ESPI_OptMiniGuarantee 'b' + +typedef char TThostFtdcExchangeSettlementParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemParamIDType是一个系统参数代码类型 +///////////////////////////////////////////////////////////////////////// +///投资者代码最小长度 +#define THOST_FTDC_SPI_InvestorIDMinLength '1' +///投资者帐号代码最小长度 +#define THOST_FTDC_SPI_AccountIDMinLength '2' +///投资者开户默认登录权限 +#define THOST_FTDC_SPI_UserRightLogon '3' +///投资者交易结算单成交汇总方式 +#define THOST_FTDC_SPI_SettlementBillTrade '4' +///统一开户更新交易编码方式 +#define THOST_FTDC_SPI_TradingCode '5' +///结算是否判断存在未复核的出入金和分项资金 +#define THOST_FTDC_SPI_CheckFund '6' +///是否启用手续费模板数据权限 +#define THOST_FTDC_SPI_CommModelRight '7' +///是否启用保证金率模板数据权限 +#define THOST_FTDC_SPI_MarginModelRight '9' +///是否规范用户才能激活 +#define THOST_FTDC_SPI_IsStandardActive '8' +///上传的交易所结算文件路径 +#define THOST_FTDC_SPI_UploadSettlementFile 'U' +///上报保证金监控中心文件路径 +#define THOST_FTDC_SPI_DownloadCSRCFile 'D' +///生成的结算单文件路径 +#define THOST_FTDC_SPI_SettlementBillFile 'S' +///证监会文件标识 +#define THOST_FTDC_SPI_CSRCOthersFile 'C' +///投资者照片路径 +#define THOST_FTDC_SPI_InvestorPhoto 'P' +///全结经纪公司上传文件路径 +#define THOST_FTDC_SPI_CSRCData 'R' +///开户密码录入方式 +#define THOST_FTDC_SPI_InvestorPwdModel 'I' +///投资者中金所结算文件下载路径 +#define THOST_FTDC_SPI_CFFEXInvestorSettleFile 'F' +///投资者代码编码方式 +#define THOST_FTDC_SPI_InvestorIDType 'a' +///休眠户最高权益 +#define THOST_FTDC_SPI_FreezeMaxReMain 'r' +///手续费相关操作实时上场开关 +#define THOST_FTDC_SPI_IsSync 'A' +///解除开仓权限限制 +#define THOST_FTDC_SPI_RelieveOpenLimit 'O' +///是否规范用户才能休眠 +#define THOST_FTDC_SPI_IsStandardFreeze 'X' +///郑商所是否开放所有品种套保交易 +#define THOST_FTDC_SPI_CZCENormalProductHedge 'B' + +typedef char TThostFtdcSystemParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeParamIDType是一个交易系统参数代码类型 +///////////////////////////////////////////////////////////////////////// +///系统加密算法 +#define THOST_FTDC_TPID_EncryptionStandard 'E' +///系统风险算法 +#define THOST_FTDC_TPID_RiskMode 'R' +///系统风险算法是否全局 0-否 1-是 +#define THOST_FTDC_TPID_RiskModeGlobal 'G' +///密码加密算法 +#define THOST_FTDC_TPID_modeEncode 'P' +///价格小数位数参数 +#define THOST_FTDC_TPID_tickMode 'T' +///用户最大会话数 +#define THOST_FTDC_TPID_SingleUserSessionMaxNum 'S' +///最大连续登录失败数 +#define THOST_FTDC_TPID_LoginFailMaxNum 'L' +///是否强制认证 +#define THOST_FTDC_TPID_IsAuthForce 'A' +///是否冻结证券持仓 +#define THOST_FTDC_TPID_IsPosiFreeze 'F' +///是否限仓 +#define THOST_FTDC_TPID_IsPosiLimit 'M' +///郑商所询价时间间隔 +#define THOST_FTDC_TPID_ForQuoteTimeInterval 'Q' +///是否期货限仓 +#define THOST_FTDC_TPID_IsFuturePosiLimit 'B' +///是否期货下单频率限制 +#define THOST_FTDC_TPID_IsFutureOrderFreq 'C' +///行权冻结是否计算盈利 +#define THOST_FTDC_TPID_IsExecOrderProfit 'H' +///银期开户是否验证开户银行卡号是否是预留银行账户 +#define THOST_FTDC_TPID_IsCheckBankAcc 'I' +///弱密码最后修改日期 +#define THOST_FTDC_TPID_PasswordDeadLine 'J' +///强密码校验 +#define THOST_FTDC_TPID_IsStrongPassword 'K' +///自有资金质押比 +#define THOST_FTDC_TPID_BalanceMorgage 'a' +///最小密码长度 +#define THOST_FTDC_TPID_MinPwdLen 'O' +///IP当日最大登陆失败次数 +#define THOST_FTDC_TPID_LoginFailMaxNumForIP 'U' +///密码有效期 +#define THOST_FTDC_TPID_PasswordPeriod 'V' + +typedef char TThostFtdcTradeParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementParamValueType是一个参数代码值类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettlementParamValueType[256]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCounterIDType是一个计数器代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCounterIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorGroupNameType是一个投资者分组名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorGroupNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrandCodeType是一个牌号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrandCodeType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWarehouseType是一个仓库类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWarehouseType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductDateType是一个产期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProductDateType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcGradeType是一个等级类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcGradeType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClassifyType是一个类别类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClassifyType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionType是一个货位类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPositionType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcYieldlyType是一个产地类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcYieldlyType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWeightType是一个公定重量类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWeightType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSubEntryFundNoType是一个分项资金流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSubEntryFundNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileIDType是一个文件标识类型 +///////////////////////////////////////////////////////////////////////// +///资金数据 +#define THOST_FTDC_FI_SettlementFund 'F' +///成交数据 +#define THOST_FTDC_FI_Trade 'T' +///投资者持仓数据 +#define THOST_FTDC_FI_InvestorPosition 'P' +///投资者分项资金数据 +#define THOST_FTDC_FI_SubEntryFund 'O' +///组合持仓数据 +#define THOST_FTDC_FI_CZCECombinationPos 'C' +///上报保证金监控中心数据 +#define THOST_FTDC_FI_CSRCData 'R' +///郑商所平仓了结数据 +#define THOST_FTDC_FI_CZCEClose 'L' +///郑商所非平仓了结数据 +#define THOST_FTDC_FI_CZCENoClose 'N' +///持仓明细数据 +#define THOST_FTDC_FI_PositionDtl 'D' +///期权执行文件 +#define THOST_FTDC_FI_OptionStrike 'S' +///结算价比对文件 +#define THOST_FTDC_FI_SettlementPriceComparison 'M' +///上期所非持仓变动明细 +#define THOST_FTDC_FI_NonTradePosChange 'B' + +typedef char TThostFtdcFileIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileNameType是一个文件名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFileNameType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileTypeType是一个文件上传类型类型 +///////////////////////////////////////////////////////////////////////// +///结算 +#define THOST_FTDC_FUT_Settlement '0' +///核对 +#define THOST_FTDC_FUT_Check '1' + +typedef char TThostFtdcFileTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileFormatType是一个文件格式类型 +///////////////////////////////////////////////////////////////////////// +///文本文件(.txt) +#define THOST_FTDC_FFT_Txt '0' +///压缩文件(.zip) +#define THOST_FTDC_FFT_Zip '1' +///DBF文件(.dbf) +#define THOST_FTDC_FFT_DBF '2' + +typedef char TThostFtdcFileFormatType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileUploadStatusType是一个文件状态类型 +///////////////////////////////////////////////////////////////////////// +///上传成功 +#define THOST_FTDC_FUS_SucceedUpload '1' +///上传失败 +#define THOST_FTDC_FUS_FailedUpload '2' +///导入成功 +#define THOST_FTDC_FUS_SucceedLoad '3' +///导入部分成功 +#define THOST_FTDC_FUS_PartSucceedLoad '4' +///导入失败 +#define THOST_FTDC_FUS_FailedLoad '5' + +typedef char TThostFtdcFileUploadStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferDirectionType是一个移仓方向类型 +///////////////////////////////////////////////////////////////////////// +///移出 +#define THOST_FTDC_TD_Out '0' +///移入 +#define THOST_FTDC_TD_In '1' + +typedef char TThostFtdcTransferDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUploadModeType是一个上传文件类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUploadModeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAccountIDType是一个投资者帐号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAccountIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankFlagType是一个银行统一标识类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankFlagType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccountType是一个银行账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankAccountType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenNameType是一个银行账户的开户人名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOpenNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenBankType是一个银行账户的开户行类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOpenBankType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankNameType是一个银行名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPublishPathType是一个发布路径类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPublishPathType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperatorIDType是一个操作员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperatorIDType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMonthCountType是一个月份数量类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcMonthCountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdvanceMonthArrayType是一个月份提前数组类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAdvanceMonthArrayType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateExprType是一个日期表达式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateExprType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentIDExprType是一个合约代码表达式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentIDExprType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentNameExprType是一个合约名称表达式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentNameExprType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSpecialCreateRuleType是一个特殊的创建规则类型 +///////////////////////////////////////////////////////////////////////// +///没有特殊创建规则 +#define THOST_FTDC_SC_NoSpecialRule '0' +///不包含春节 +#define THOST_FTDC_SC_NoSpringFestival '1' + +typedef char TThostFtdcSpecialCreateRuleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBasisPriceTypeType是一个挂牌基准价类型类型 +///////////////////////////////////////////////////////////////////////// +///上一合约结算价 +#define THOST_FTDC_IPT_LastSettlement '1' +///上一合约收盘价 +#define THOST_FTDC_IPT_LaseClose '2' + +typedef char TThostFtdcBasisPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductLifePhaseType是一个产品生命周期状态类型 +///////////////////////////////////////////////////////////////////////// +///活跃 +#define THOST_FTDC_PLP_Active '1' +///不活跃 +#define THOST_FTDC_PLP_NonActive '2' +///注销 +#define THOST_FTDC_PLP_Canceled '3' + +typedef char TThostFtdcProductLifePhaseType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDeliveryModeType是一个交割方式类型 +///////////////////////////////////////////////////////////////////////// +///现金交割 +#define THOST_FTDC_DM_CashDeliv '1' +///实物交割 +#define THOST_FTDC_DM_CommodityDeliv '2' + +typedef char TThostFtdcDeliveryModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLogLevelType是一个日志级别类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLogLevelType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessNameType是一个存储过程名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProcessNameType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperationMemoType是一个操作摘要类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperationMemoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundIOTypeType是一个出入金类型类型 +///////////////////////////////////////////////////////////////////////// +///出入金 +#define THOST_FTDC_FIOT_FundIO '1' +///银期转帐 +#define THOST_FTDC_FIOT_Transfer '2' +///银期换汇 +#define THOST_FTDC_FIOT_SwapCurrency '3' + +typedef char TThostFtdcFundIOTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundTypeType是一个资金类型类型 +///////////////////////////////////////////////////////////////////////// +///银行存款 +#define THOST_FTDC_FT_Deposite '1' +///分项资金 +#define THOST_FTDC_FT_ItemFund '2' +///公司调整 +#define THOST_FTDC_FT_Company '3' +///资金内转 +#define THOST_FTDC_FT_InnerTransfer '4' + +typedef char TThostFtdcFundTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundDirectionType是一个出入金方向类型 +///////////////////////////////////////////////////////////////////////// +///入金 +#define THOST_FTDC_FD_In '1' +///出金 +#define THOST_FTDC_FD_Out '2' + +typedef char TThostFtdcFundDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundStatusType是一个资金状态类型 +///////////////////////////////////////////////////////////////////////// +///已录入 +#define THOST_FTDC_FS_Record '1' +///已复核 +#define THOST_FTDC_FS_Check '2' +///已冲销 +#define THOST_FTDC_FS_Charge '3' + +typedef char TThostFtdcFundStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillNoType是一个票据号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBillNoType[15]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillNameType是一个票据名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBillNameType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPublishStatusType是一个发布状态类型 +///////////////////////////////////////////////////////////////////////// +///未发布 +#define THOST_FTDC_PS_None '1' +///正在发布 +#define THOST_FTDC_PS_Publishing '2' +///已发布 +#define THOST_FTDC_PS_Published '3' + +typedef char TThostFtdcPublishStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueIDType是一个枚举值代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueIDType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueTypeType是一个枚举值类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueTypeType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueLabelType是一个枚举值名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueLabelType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueResultType是一个枚举值结果类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueResultType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemStatusType是一个系统状态类型 +///////////////////////////////////////////////////////////////////////// +///不活跃 +#define THOST_FTDC_ES_NonActive '1' +///启动 +#define THOST_FTDC_ES_Startup '2' +///交易开始初始化 +#define THOST_FTDC_ES_Initialize '3' +///交易完成初始化 +#define THOST_FTDC_ES_Initialized '4' +///收市开始 +#define THOST_FTDC_ES_Close '5' +///收市完成 +#define THOST_FTDC_ES_Closed '6' +///结算 +#define THOST_FTDC_ES_Settlement '7' + +typedef char TThostFtdcSystemStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementStatusType是一个结算状态类型 +///////////////////////////////////////////////////////////////////////// +///初始 +#define THOST_FTDC_STS_Initialize '0' +///结算中 +#define THOST_FTDC_STS_Settlementing '1' +///已结算 +#define THOST_FTDC_STS_Settlemented '2' +///结算完成 +#define THOST_FTDC_STS_Finished '3' + +typedef char TThostFtdcSettlementStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRangeIntTypeType是一个限定值类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRangeIntTypeType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRangeIntFromType是一个限定值下限类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRangeIntFromType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRangeIntToType是一个限定值上限类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRangeIntToType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionIDType是一个功能代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionIDType[25]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionValueCodeType是一个功能编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionValueCodeType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionNameType是一个功能名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRoleIDType是一个角色编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRoleIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRoleNameType是一个角色名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRoleNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDescriptionType是一个描述类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDescriptionType[401]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombineIDType是一个组合编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombineIDType[25]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombineTypeType是一个组合类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombineTypeType[25]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorTypeType是一个投资者类型类型 +///////////////////////////////////////////////////////////////////////// +///自然人 +#define THOST_FTDC_CT_Person '0' +///法人 +#define THOST_FTDC_CT_Company '1' +///投资基金 +#define THOST_FTDC_CT_Fund '2' +///特殊法人 +#define THOST_FTDC_CT_SpecialOrgan '3' +///资管户 +#define THOST_FTDC_CT_Asset '4' + +typedef char TThostFtdcInvestorTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerTypeType是一个经纪公司类型类型 +///////////////////////////////////////////////////////////////////////// +///交易会员 +#define THOST_FTDC_BT_Trade '0' +///交易结算会员 +#define THOST_FTDC_BT_TradeSettle '1' + +typedef char TThostFtdcBrokerTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskLevelType是一个风险等级类型 +///////////////////////////////////////////////////////////////////////// +///低风险客户 +#define THOST_FTDC_FAS_Low '1' +///普通客户 +#define THOST_FTDC_FAS_Normal '2' +///关注客户 +#define THOST_FTDC_FAS_Focus '3' +///风险客户 +#define THOST_FTDC_FAS_Risk '4' + +typedef char TThostFtdcRiskLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFeeAcceptStyleType是一个手续费收取方式类型 +///////////////////////////////////////////////////////////////////////// +///按交易收取 +#define THOST_FTDC_FAS_ByTrade '1' +///按交割收取 +#define THOST_FTDC_FAS_ByDeliv '2' +///不收 +#define THOST_FTDC_FAS_None '3' +///按指定手续费收取 +#define THOST_FTDC_FAS_FixFee '4' + +typedef char TThostFtdcFeeAcceptStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPasswordTypeType是一个密码类型类型 +///////////////////////////////////////////////////////////////////////// +///交易密码 +#define THOST_FTDC_PWDT_Trade '1' +///资金密码 +#define THOST_FTDC_PWDT_Account '2' + +typedef char TThostFtdcPasswordTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAlgorithmType是一个盈亏算法类型 +///////////////////////////////////////////////////////////////////////// +///浮盈浮亏都计算 +#define THOST_FTDC_AG_All '1' +///浮盈不计,浮亏计 +#define THOST_FTDC_AG_OnlyLost '2' +///浮盈计,浮亏不计 +#define THOST_FTDC_AG_OnlyGain '3' +///浮盈浮亏都不计算 +#define THOST_FTDC_AG_None '4' + +typedef char TThostFtdcAlgorithmType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIncludeCloseProfitType是一个是否包含平仓盈利类型 +///////////////////////////////////////////////////////////////////////// +///包含平仓盈利 +#define THOST_FTDC_ICP_Include '0' +///不包含平仓盈利 +#define THOST_FTDC_ICP_NotInclude '2' + +typedef char TThostFtdcIncludeCloseProfitType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAllWithoutTradeType是一个是否受可提比例限制类型 +///////////////////////////////////////////////////////////////////////// +///无仓无成交不受可提比例限制 +#define THOST_FTDC_AWT_Enable '0' +///受可提比例限制 +#define THOST_FTDC_AWT_Disable '2' +///无仓不受可提比例限制 +#define THOST_FTDC_AWT_NoHoldEnable '3' + +typedef char TThostFtdcAllWithoutTradeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommentType是一个盈亏算法说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommentType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVersionType是一个版本号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcVersionType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeCodeType是一个交易代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeDateType是一个交易日期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeDateType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeTimeType是一个交易时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeTimeType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSerialType是一个发起方流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeSerialType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSerialNoType是一个发起方流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTradeSerialNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureIDType是一个期货公司代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankIDType是一个银行代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankIDType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankBrchIDType是一个银行分中心代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankBrchIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankBranchIDType是一个分中心代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankBranchIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperNoType是一个交易柜员类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperNoType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDeviceIDType是一个渠道标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDeviceIDType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRecordNumType是一个记录数类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRecordNumType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccountType是一个期货资金账号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureAccountType[22]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFuturePwdFlagType是一个资金密码核对标志类型 +///////////////////////////////////////////////////////////////////////// +///不核对 +#define THOST_FTDC_FPWD_UnCheck '0' +///核对 +#define THOST_FTDC_FPWD_Check '1' + +typedef char TThostFtdcFuturePwdFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferTypeType是一个银期转账类型类型 +///////////////////////////////////////////////////////////////////////// +///银行转期货 +#define THOST_FTDC_TT_BankToFuture '0' +///期货转银行 +#define THOST_FTDC_TT_FutureToBank '1' + +typedef char TThostFtdcTransferTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccPwdType是一个期货资金密码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureAccPwdType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyCodeType是一个币种类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencyCodeType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRetCodeType是一个响应代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRetCodeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRetInfoType是一个响应信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRetInfoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeAmtType是一个银行总余额类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeAmtType[20]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUseAmtType是一个银行可用余额类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUseAmtType[20]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFetchAmtType是一个银行可取余额类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFetchAmtType[20]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferValidFlagType是一个转账有效标志类型 +///////////////////////////////////////////////////////////////////////// +///无效或失败 +#define THOST_FTDC_TVF_Invalid '0' +///有效 +#define THOST_FTDC_TVF_Valid '1' +///冲正 +#define THOST_FTDC_TVF_Reverse '2' + +typedef char TThostFtdcTransferValidFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCertCodeType是一个证件号码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCertCodeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReasonType是一个事由类型 +///////////////////////////////////////////////////////////////////////// +///错单 +#define THOST_FTDC_RN_CD '0' +///资金在途 +#define THOST_FTDC_RN_ZT '1' +///其它 +#define THOST_FTDC_RN_QT '2' + +typedef char TThostFtdcReasonType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundProjectIDType是一个资金项目编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFundProjectIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSexType是一个性别类型 +///////////////////////////////////////////////////////////////////////// +///未知 +#define THOST_FTDC_SEX_None '0' +///男 +#define THOST_FTDC_SEX_Man '1' +///女 +#define THOST_FTDC_SEX_Woman '2' + +typedef char TThostFtdcSexType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProfessionType是一个职业类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProfessionType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNationalType是一个国籍类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNationalType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProvinceType是一个省类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProvinceType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRegionType是一个区类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRegionType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCountryType是一个国家类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCountryType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLicenseNOType是一个营业执照类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLicenseNOType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCompanyTypeType是一个企业性质类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCompanyTypeType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessScopeType是一个经营范围类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBusinessScopeType[1001]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCapitalCurrencyType是一个注册资本币种类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCapitalCurrencyType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserTypeType是一个用户类型类型 +///////////////////////////////////////////////////////////////////////// +///投资者 +#define THOST_FTDC_UT_Investor '0' +///操作员 +#define THOST_FTDC_UT_Operator '1' +///管理员 +#define THOST_FTDC_UT_SuperUser '2' + +typedef char TThostFtdcUserTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBranchIDType是一个营业部编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBranchIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateTypeType是一个费率类型类型 +///////////////////////////////////////////////////////////////////////// +///保证金率 +#define THOST_FTDC_RATETYPE_MarginRate '2' + +typedef char TThostFtdcRateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNoteTypeType是一个通知类型类型 +///////////////////////////////////////////////////////////////////////// +///交易结算单 +#define THOST_FTDC_NOTETYPE_TradeSettleBill '1' +///交易结算月报 +#define THOST_FTDC_NOTETYPE_TradeSettleMonth '2' +///追加保证金通知书 +#define THOST_FTDC_NOTETYPE_CallMarginNotes '3' +///强行平仓通知书 +#define THOST_FTDC_NOTETYPE_ForceCloseNotes '4' +///成交通知书 +#define THOST_FTDC_NOTETYPE_TradeNotes '5' +///交割通知书 +#define THOST_FTDC_NOTETYPE_DelivNotes '6' + +typedef char TThostFtdcNoteTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementStyleType是一个结算单方式类型 +///////////////////////////////////////////////////////////////////////// +///逐日盯市 +#define THOST_FTDC_SBS_Day '1' +///逐笔对冲 +#define THOST_FTDC_SBS_Volume '2' + +typedef char TThostFtdcSettlementStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerDNSType是一个域名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerDNSType[256]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSentenceType是一个语句类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSentenceType[501]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementBillTypeType是一个结算单类型类型 +///////////////////////////////////////////////////////////////////////// +///日报 +#define THOST_FTDC_ST_Day '0' +///月报 +#define THOST_FTDC_ST_Month '1' + +typedef char TThostFtdcSettlementBillTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserRightTypeType是一个客户权限类型类型 +///////////////////////////////////////////////////////////////////////// +///登录 +#define THOST_FTDC_URT_Logon '1' +///银期转帐 +#define THOST_FTDC_URT_Transfer '2' +///邮寄结算单 +#define THOST_FTDC_URT_EMail '3' +///传真结算单 +#define THOST_FTDC_URT_Fax '4' +///条件单 +#define THOST_FTDC_URT_ConditionOrder '5' + +typedef char TThostFtdcUserRightTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarginPriceTypeType是一个保证金价格类型类型 +///////////////////////////////////////////////////////////////////////// +///昨结算价 +#define THOST_FTDC_MPT_PreSettlementPrice '1' +///最新价 +#define THOST_FTDC_MPT_SettlementPrice '2' +///成交均价 +#define THOST_FTDC_MPT_AveragePrice '3' +///开仓价 +#define THOST_FTDC_MPT_OpenPrice '4' + +typedef char TThostFtdcMarginPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillGenStatusType是一个结算单生成状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成 +#define THOST_FTDC_BGS_None '0' +///生成中 +#define THOST_FTDC_BGS_NoGenerated '1' +///已生成 +#define THOST_FTDC_BGS_Generated '2' + +typedef char TThostFtdcBillGenStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAlgoTypeType是一个算法类型类型 +///////////////////////////////////////////////////////////////////////// +///持仓处理算法 +#define THOST_FTDC_AT_HandlePositionAlgo '1' +///寻找保证金率算法 +#define THOST_FTDC_AT_FindMarginRateAlgo '2' + +typedef char TThostFtdcAlgoTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandlePositionAlgoIDType是一个持仓处理算法编号类型 +///////////////////////////////////////////////////////////////////////// +///基本 +#define THOST_FTDC_HPA_Base '1' +///大连商品交易所 +#define THOST_FTDC_HPA_DCE '2' +///郑州商品交易所 +#define THOST_FTDC_HPA_CZCE '3' + +typedef char TThostFtdcHandlePositionAlgoIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFindMarginRateAlgoIDType是一个寻找保证金率算法编号类型 +///////////////////////////////////////////////////////////////////////// +///基本 +#define THOST_FTDC_FMRA_Base '1' +///大连商品交易所 +#define THOST_FTDC_FMRA_DCE '2' +///郑州商品交易所 +#define THOST_FTDC_FMRA_CZCE '3' + +typedef char TThostFtdcFindMarginRateAlgoIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandleTradingAccountAlgoIDType是一个资金处理算法编号类型 +///////////////////////////////////////////////////////////////////////// +///基本 +#define THOST_FTDC_HTAA_Base '1' +///大连商品交易所 +#define THOST_FTDC_HTAA_DCE '2' +///郑州商品交易所 +#define THOST_FTDC_HTAA_CZCE '3' + +typedef char TThostFtdcHandleTradingAccountAlgoIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPersonTypeType是一个联系人类型类型 +///////////////////////////////////////////////////////////////////////// +///指定下单人 +#define THOST_FTDC_PST_Order '1' +///开户授权人 +#define THOST_FTDC_PST_Open '2' +///资金调拨人 +#define THOST_FTDC_PST_Fund '3' +///结算单确认人 +#define THOST_FTDC_PST_Settlement '4' +///法人 +#define THOST_FTDC_PST_Company '5' +///法人代表 +#define THOST_FTDC_PST_Corporation '6' +///投资者联系人 +#define THOST_FTDC_PST_LinkMan '7' +///分户管理资产负责人 +#define THOST_FTDC_PST_Ledger '8' +///托(保)管人 +#define THOST_FTDC_PST_Trustee '9' +///托(保)管机构法人代表 +#define THOST_FTDC_PST_TrusteeCorporation 'A' +///托(保)管机构开户授权人 +#define THOST_FTDC_PST_TrusteeOpen 'B' +///托(保)管机构联系人 +#define THOST_FTDC_PST_TrusteeContact 'C' +///境外自然人参考证件 +#define THOST_FTDC_PST_ForeignerRefer 'D' +///法人代表参考证件 +#define THOST_FTDC_PST_CorporationRefer 'E' + +typedef char TThostFtdcPersonTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryInvestorRangeType是一个查询范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_QIR_All '1' +///查询分类 +#define THOST_FTDC_QIR_Group '2' +///单一投资者 +#define THOST_FTDC_QIR_Single '3' + +typedef char TThostFtdcQueryInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorRiskStatusType是一个投资者风险状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_IRS_Normal '1' +///警告 +#define THOST_FTDC_IRS_Warn '2' +///追保 +#define THOST_FTDC_IRS_Call '3' +///强平 +#define THOST_FTDC_IRS_Force '4' +///异常 +#define THOST_FTDC_IRS_Exception '5' + +typedef char TThostFtdcInvestorRiskStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLegIDType是一个单腿编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLegIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLegMultipleType是一个单腿乘数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLegMultipleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcImplyLevelType是一个派生层数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcImplyLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearAccountType是一个结算账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearAccountType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganNOType是一个结算账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganNOType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearbarchIDType是一个结算账户联行号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearbarchIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserEventTypeType是一个用户事件类型类型 +///////////////////////////////////////////////////////////////////////// +///登录 +#define THOST_FTDC_UET_Login '1' +///登出 +#define THOST_FTDC_UET_Logout '2' +///交易成功 +#define THOST_FTDC_UET_Trading '3' +///交易失败 +#define THOST_FTDC_UET_TradingError '4' +///修改密码 +#define THOST_FTDC_UET_UpdatePassword '5' +///客户端认证 +#define THOST_FTDC_UET_Authenticate '6' +///终端信息上报 +#define THOST_FTDC_UET_SubmitSysInfo '7' +///转账 +#define THOST_FTDC_UET_Transfer '8' +///其他 +#define THOST_FTDC_UET_Other '9' + +typedef char TThostFtdcUserEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserEventInfoType是一个用户事件信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserEventInfoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCloseStyleType是一个平仓方式类型 +///////////////////////////////////////////////////////////////////////// +///先开先平 +#define THOST_FTDC_ICS_Close '0' +///先平今再平昨 +#define THOST_FTDC_ICS_CloseToday '1' + +typedef char TThostFtdcCloseStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStatModeType是一个统计方式类型 +///////////////////////////////////////////////////////////////////////// +///---- +#define THOST_FTDC_SM_Non '0' +///按合约统计 +#define THOST_FTDC_SM_Instrument '1' +///按产品统计 +#define THOST_FTDC_SM_Product '2' +///按投资者统计 +#define THOST_FTDC_SM_Investor '3' + +typedef char TThostFtdcStatModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParkedOrderStatusType是一个预埋单状态类型 +///////////////////////////////////////////////////////////////////////// +///未发送 +#define THOST_FTDC_PAOS_NotSend '1' +///已发送 +#define THOST_FTDC_PAOS_Send '2' +///已删除 +#define THOST_FTDC_PAOS_Deleted '3' + +typedef char TThostFtdcParkedOrderStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParkedOrderIDType是一个预埋报单编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParkedOrderIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParkedOrderActionIDType是一个预埋撤单编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParkedOrderActionIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirDealStatusType是一个处理状态类型 +///////////////////////////////////////////////////////////////////////// +///正在处理 +#define THOST_FTDC_VDS_Dealing '1' +///处理成功 +#define THOST_FTDC_VDS_DeaclSucceed '2' + +typedef char TThostFtdcVirDealStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrgSystemIDType是一个原有系统代码类型 +///////////////////////////////////////////////////////////////////////// +///综合交易平台 +#define THOST_FTDC_ORGS_Standard '0' +///易盛系统 +#define THOST_FTDC_ORGS_ESunny '1' +///金仕达V6系统 +#define THOST_FTDC_ORGS_KingStarV6 '2' + +typedef char TThostFtdcOrgSystemIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirTradeStatusType是一个交易状态类型 +///////////////////////////////////////////////////////////////////////// +///正常处理中 +#define THOST_FTDC_VTS_NaturalDeal '0' +///成功结束 +#define THOST_FTDC_VTS_SucceedEnd '1' +///失败结束 +#define THOST_FTDC_VTS_FailedEND '2' +///异常中 +#define THOST_FTDC_VTS_Exception '3' +///已人工异常处理 +#define THOST_FTDC_VTS_ManualDeal '4' +///通讯异常 ,请人工处理 +#define THOST_FTDC_VTS_MesException '5' +///系统出错,请人工处理 +#define THOST_FTDC_VTS_SysException '6' + +typedef char TThostFtdcVirTradeStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirBankAccTypeType是一个银行帐户类型类型 +///////////////////////////////////////////////////////////////////////// +///存折 +#define THOST_FTDC_VBAT_BankBook '1' +///储蓄卡 +#define THOST_FTDC_VBAT_BankCard '2' +///信用卡 +#define THOST_FTDC_VBAT_CreditCard '3' + +typedef char TThostFtdcVirBankAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirementStatusType是一个银行帐户类型类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_VMS_Natural '0' +///销户 +#define THOST_FTDC_VMS_Canceled '9' + +typedef char TThostFtdcVirementStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirementAvailAbilityType是一个有效标志类型 +///////////////////////////////////////////////////////////////////////// +///未确认 +#define THOST_FTDC_VAA_NoAvailAbility '0' +///有效 +#define THOST_FTDC_VAA_AvailAbility '1' +///冲正 +#define THOST_FTDC_VAA_Repeal '2' + +typedef char TThostFtdcVirementAvailAbilityType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirementTradeCodeType是一个交易代码类型 +///////////////////////////////////////////////////////////////////////// +///银行发起银行资金转期货 +#define THOST_FTDC_VTC_BankBankToFuture '102001' +///银行发起期货资金转银行 +#define THOST_FTDC_VTC_BankFutureToBank '102002' +///期货发起银行资金转期货 +#define THOST_FTDC_VTC_FutureBankToFuture '202001' +///期货发起期货资金转银行 +#define THOST_FTDC_VTC_FutureFutureToBank '202002' + +typedef char TThostFtdcVirementTradeCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPhotoTypeNameType是一个影像类型名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPhotoTypeNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPhotoTypeIDType是一个影像类型代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPhotoTypeIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPhotoNameType是一个影像名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPhotoNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTopicIDType是一个主题代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTopicIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReportTypeIDType是一个交易报告类型标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcReportTypeIDType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCharacterIDType是一个交易特征代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCharacterIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLParamIDType是一个参数代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLParamIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInvestorTypeType是一个投资者类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInvestorTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLIdCardTypeType是一个证件类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLIdCardTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTradeDirectType是一个资金进出方向类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTradeDirectType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTradeModelType是一个资金进出方式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTradeModelType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLOpParamValueType是一个业务参数代码值类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcAMLOpParamValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCustomerCardTypeType是一个客户身份证件/证明文件类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLCustomerCardTypeType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInstitutionNameType是一个金融机构网点名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInstitutionNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLDistrictIDType是一个金融机构网点所在地区行政区划代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLDistrictIDType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLRelationShipType是一个金融机构网点与大额交易的关系类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLRelationShipType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInstitutionTypeType是一个金融机构网点代码类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInstitutionTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInstitutionIDType是一个金融机构网点代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInstitutionIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLAccountTypeType是一个账户类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLAccountTypeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTradingTypeType是一个交易方式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTradingTypeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTransactClassType是一个涉外收支交易分类与代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTransactClassType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCapitalIOType是一个资金收付标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLCapitalIOType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLSiteType是一个交易地点类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLSiteType[10]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCapitalPurposeType是一个资金用途类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLCapitalPurposeType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLReportTypeType是一个报文类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLReportTypeType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLSerialNoType是一个编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLSerialNoType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLStatusType是一个状态类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLStatusType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLGenStatusType是一个Aml生成方式类型 +///////////////////////////////////////////////////////////////////////// +///程序生成 +#define THOST_FTDC_GEN_Program '0' +///人工生成 +#define THOST_FTDC_GEN_HandWork '1' + +typedef char TThostFtdcAMLGenStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLSeqCodeType是一个业务标识号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLSeqCodeType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLFileNameType是一个AML文件名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLFileNameType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLMoneyType是一个反洗钱资金类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcAMLMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLFileAmountType是一个反洗钱资金类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcAMLFileAmountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFMMCKeyType是一个密钥类型(保证金监管)类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCFMMCKeyType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFMMCTokenType是一个令牌类型(保证金监管)类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCFMMCTokenType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFMMCKeyKindType是一个动态密钥类别(保证金监管)类型 +///////////////////////////////////////////////////////////////////////// +///主动请求更新 +#define THOST_FTDC_CFMMCKK_REQUEST 'R' +///CFMMC自动更新 +#define THOST_FTDC_CFMMCKK_AUTO 'A' +///CFMMC手动更新 +#define THOST_FTDC_CFMMCKK_MANUAL 'M' + +typedef char TThostFtdcCFMMCKeyKindType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLReportNameType是一个报文名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLReportNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIndividualNameType是一个个人姓名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIndividualNameType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyIDType是一个币种代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencyIDType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCustNumberType是一个客户编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCustNumberType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganCodeType是一个机构编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganCodeType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganNameType是一个机构名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSuperOrganCodeType是一个上级机构编码,即期货公司总部、银行总行类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSuperOrganCodeType[12]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSubBranchIDType是一个分支机构类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSubBranchIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSubBranchNameType是一个分支机构名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSubBranchNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBranchNetCodeType是一个机构网点号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBranchNetCodeType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBranchNetNameType是一个机构网点名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBranchNetNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganFlagType是一个机构标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankCodingForFutureType是一个银行对期货公司的编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankCodingForFutureType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankReturnCodeType是一个银行对返回码的定义类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankReturnCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPlateReturnCodeType是一个银期转帐平台对返回码的定义类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPlateReturnCodeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankSubBranchIDType是一个银行分支机构编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankSubBranchIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureBranchIDType是一个期货分支机构编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureBranchIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnCodeType是一个返回代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcReturnCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperatorCodeType是一个操作员类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperatorCodeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearDepIDType是一个机构结算帐户机构号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearDepIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearBrchIDType是一个机构结算帐户联行号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearBrchIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearNameType是一个机构结算帐户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccountNameType是一个银行帐户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankAccountNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvDepIDType是一个机构投资人账号机构号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvDepIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvBrchIDType是一个机构投资人联行号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvBrchIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMessageFormatVersionType是一个信息格式版本类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMessageFormatVersionType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDigestType是一个摘要类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDigestType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthenticDataType是一个认证数据类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthenticDataType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPasswordKeyType是一个密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPasswordKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccountNameType是一个期货帐户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureAccountNameType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMobilePhoneType是一个手机类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMobilePhoneType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureMainKeyType是一个期货公司主密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureMainKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureWorkKeyType是一个期货公司工作密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureWorkKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureTransKeyType是一个期货公司传输密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureTransKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankMainKeyType是一个银行主密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankMainKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankWorkKeyType是一个银行工作密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankWorkKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankTransKeyType是一个银行传输密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankTransKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankServerDescriptionType是一个银行服务器描述信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankServerDescriptionType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAddInfoType是一个附加信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAddInfoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDescrInfoForReturnCodeType是一个返回码描述类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDescrInfoForReturnCodeType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCountryCodeType是一个国家代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCountryCodeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSerialType是一个流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPlateSerialType是一个平台流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcPlateSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankSerialType是一个银行流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankSerialType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCorrectSerialType是一个被冲正交易流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCorrectSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureSerialType是一个期货公司流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFutureSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplicationIDType是一个应用标识类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcApplicationIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankProxyIDType是一个银行代理标识类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcBankProxyIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTCoreIDType是一个银期转帐核心系统标识类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFBTCoreIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServerPortType是一个服务端口号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcServerPortType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRepealedTimesType是一个已经冲正次数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRepealedTimesType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRepealTimeIntervalType是一个冲正时间间隔类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRepealTimeIntervalType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTotalTimesType是一个每日累计转帐次数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTotalTimesType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTRequestIDType是一个请求ID类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFBTRequestIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTIDType是一个交易ID类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeAmountType是一个交易金额(元)类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcTradeAmountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCustFeeType是一个应收客户费用(元)类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCustFeeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureFeeType是一个应收期货公司费用(元)类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcFutureFeeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSingleMaxAmtType是一个单笔最高限额类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcSingleMaxAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSingleMinAmtType是一个单笔最低限额类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcSingleMinAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTotalAmtType是一个每日累计转帐额度类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcTotalAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCertificationTypeType是一个证件类型类型 +///////////////////////////////////////////////////////////////////////// +///身份证 +#define THOST_FTDC_CFT_IDCard '0' +///护照 +#define THOST_FTDC_CFT_Passport '1' +///军官证 +#define THOST_FTDC_CFT_OfficerIDCard '2' +///士兵证 +#define THOST_FTDC_CFT_SoldierIDCard '3' +///回乡证 +#define THOST_FTDC_CFT_HomeComingCard '4' +///户口簿 +#define THOST_FTDC_CFT_HouseholdRegister '5' +///营业执照号 +#define THOST_FTDC_CFT_LicenseNo '6' +///组织机构代码证 +#define THOST_FTDC_CFT_InstitutionCodeCard '7' +///临时营业执照号 +#define THOST_FTDC_CFT_TempLicenseNo '8' +///民办非企业登记证书 +#define THOST_FTDC_CFT_NoEnterpriseLicenseNo '9' +///其他证件 +#define THOST_FTDC_CFT_OtherCard 'x' +///主管部门批文 +#define THOST_FTDC_CFT_SuperDepAgree 'a' + +typedef char TThostFtdcCertificationTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileBusinessCodeType是一个文件业务功能类型 +///////////////////////////////////////////////////////////////////////// +///其他 +#define THOST_FTDC_FBC_Others '0' +///转账交易明细对账 +#define THOST_FTDC_FBC_TransferDetails '1' +///客户账户状态对账 +#define THOST_FTDC_FBC_CustAccStatus '2' +///账户类交易明细对账 +#define THOST_FTDC_FBC_AccountTradeDetails '3' +///期货账户信息变更明细对账 +#define THOST_FTDC_FBC_FutureAccountChangeInfoDetails '4' +///客户资金台账余额明细对账 +#define THOST_FTDC_FBC_CustMoneyDetail '5' +///客户销户结息明细对账 +#define THOST_FTDC_FBC_CustCancelAccountInfo '6' +///客户资金余额对账结果 +#define THOST_FTDC_FBC_CustMoneyResult '7' +///其它对账异常结果文件 +#define THOST_FTDC_FBC_OthersExceptionResult '8' +///客户结息净额明细 +#define THOST_FTDC_FBC_CustInterestNetMoneyDetails '9' +///客户资金交收明细 +#define THOST_FTDC_FBC_CustMoneySendAndReceiveDetails 'a' +///法人存管银行资金交收汇总 +#define THOST_FTDC_FBC_CorporationMoneyTotal 'b' +///主体间资金交收汇总 +#define THOST_FTDC_FBC_MainbodyMoneyTotal 'c' +///总分平衡监管数据 +#define THOST_FTDC_FBC_MainPartMonitorData 'd' +///存管银行备付金余额 +#define THOST_FTDC_FBC_PreparationMoney 'e' +///协办存管银行资金监管数据 +#define THOST_FTDC_FBC_BankMoneyMonitorData 'f' + +typedef char TThostFtdcFileBusinessCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCashExchangeCodeType是一个汇钞标志类型 +///////////////////////////////////////////////////////////////////////// +///汇 +#define THOST_FTDC_CEC_Exchange '1' +///钞 +#define THOST_FTDC_CEC_Cash '2' + +typedef char TThostFtdcCashExchangeCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcYesNoIndicatorType是一个是或否标识类型 +///////////////////////////////////////////////////////////////////////// +///是 +#define THOST_FTDC_YNI_Yes '0' +///否 +#define THOST_FTDC_YNI_No '1' + +typedef char TThostFtdcYesNoIndicatorType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBanlanceTypeType是一个余额类型类型 +///////////////////////////////////////////////////////////////////////// +///当前余额 +#define THOST_FTDC_BLT_CurrentMoney '0' +///可用余额 +#define THOST_FTDC_BLT_UsableMoney '1' +///可取余额 +#define THOST_FTDC_BLT_FetchableMoney '2' +///冻结余额 +#define THOST_FTDC_BLT_FreezeMoney '3' + +typedef char TThostFtdcBanlanceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcGenderType是一个性别类型 +///////////////////////////////////////////////////////////////////////// +///未知状态 +#define THOST_FTDC_GD_Unknown '0' +///男 +#define THOST_FTDC_GD_Male '1' +///女 +#define THOST_FTDC_GD_Female '2' + +typedef char TThostFtdcGenderType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFeePayFlagType是一个费用支付标志类型 +///////////////////////////////////////////////////////////////////////// +///由受益方支付费用 +#define THOST_FTDC_FPF_BEN '0' +///由发送方支付费用 +#define THOST_FTDC_FPF_OUR '1' +///由发送方支付发起的费用,受益方支付接受的费用 +#define THOST_FTDC_FPF_SHA '2' + +typedef char TThostFtdcFeePayFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPassWordKeyTypeType是一个密钥类型类型 +///////////////////////////////////////////////////////////////////////// +///交换密钥 +#define THOST_FTDC_PWKT_ExchangeKey '0' +///密码密钥 +#define THOST_FTDC_PWKT_PassWordKey '1' +///MAC密钥 +#define THOST_FTDC_PWKT_MACKey '2' +///报文密钥 +#define THOST_FTDC_PWKT_MessageKey '3' + +typedef char TThostFtdcPassWordKeyTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTPassWordTypeType是一个密码类型类型 +///////////////////////////////////////////////////////////////////////// +///查询 +#define THOST_FTDC_PWT_Query '0' +///取款 +#define THOST_FTDC_PWT_Fetch '1' +///转帐 +#define THOST_FTDC_PWT_Transfer '2' +///交易 +#define THOST_FTDC_PWT_Trade '3' + +typedef char TThostFtdcFBTPassWordTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTEncryModeType是一个加密方式类型 +///////////////////////////////////////////////////////////////////////// +///不加密 +#define THOST_FTDC_EM_NoEncry '0' +///DES +#define THOST_FTDC_EM_DES '1' +///3DES +#define THOST_FTDC_EM_3DES '2' + +typedef char TThostFtdcFBTEncryModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankRepealFlagType是一个银行冲正标志类型 +///////////////////////////////////////////////////////////////////////// +///银行无需自动冲正 +#define THOST_FTDC_BRF_BankNotNeedRepeal '0' +///银行待自动冲正 +#define THOST_FTDC_BRF_BankWaitingRepeal '1' +///银行已自动冲正 +#define THOST_FTDC_BRF_BankBeenRepealed '2' + +typedef char TThostFtdcBankRepealFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerRepealFlagType是一个期商冲正标志类型 +///////////////////////////////////////////////////////////////////////// +///期商无需自动冲正 +#define THOST_FTDC_BRORF_BrokerNotNeedRepeal '0' +///期商待自动冲正 +#define THOST_FTDC_BRORF_BrokerWaitingRepeal '1' +///期商已自动冲正 +#define THOST_FTDC_BRORF_BrokerBeenRepealed '2' + +typedef char TThostFtdcBrokerRepealFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstitutionTypeType是一个机构类别类型 +///////////////////////////////////////////////////////////////////////// +///银行 +#define THOST_FTDC_TS_Bank '0' +///期商 +#define THOST_FTDC_TS_Future '1' +///券商 +#define THOST_FTDC_TS_Store '2' + +typedef char TThostFtdcInstitutionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLastFragmentType是一个最后分片标志类型 +///////////////////////////////////////////////////////////////////////// +///是最后分片 +#define THOST_FTDC_LF_Yes '0' +///不是最后分片 +#define THOST_FTDC_LF_No '1' + +typedef char TThostFtdcLastFragmentType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccStatusType是一个银行账户状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_BAS_Normal '0' +///冻结 +#define THOST_FTDC_BAS_Freeze '1' +///挂失 +#define THOST_FTDC_BAS_ReportLoss '2' + +typedef char TThostFtdcBankAccStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMoneyAccountStatusType是一个资金账户状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_MAS_Normal '0' +///销户 +#define THOST_FTDC_MAS_Cancel '1' + +typedef char TThostFtdcMoneyAccountStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcManageStatusType是一个存管状态类型 +///////////////////////////////////////////////////////////////////////// +///指定存管 +#define THOST_FTDC_MSS_Point '0' +///预指定 +#define THOST_FTDC_MSS_PrePoint '1' +///撤销指定 +#define THOST_FTDC_MSS_CancelPoint '2' + +typedef char TThostFtdcManageStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemTypeType是一个应用系统类型类型 +///////////////////////////////////////////////////////////////////////// +///银期转帐 +#define THOST_FTDC_SYT_FutureBankTransfer '0' +///银证转帐 +#define THOST_FTDC_SYT_StockBankTransfer '1' +///第三方存管 +#define THOST_FTDC_SYT_TheThirdPartStore '2' + +typedef char TThostFtdcSystemTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTxnEndFlagType是一个银期转帐划转结果标志类型 +///////////////////////////////////////////////////////////////////////// +///正常处理中 +#define THOST_FTDC_TEF_NormalProcessing '0' +///成功结束 +#define THOST_FTDC_TEF_Success '1' +///失败结束 +#define THOST_FTDC_TEF_Failed '2' +///异常中 +#define THOST_FTDC_TEF_Abnormal '3' +///已人工异常处理 +#define THOST_FTDC_TEF_ManualProcessedForException '4' +///通讯异常 ,请人工处理 +#define THOST_FTDC_TEF_CommuFailedNeedManualProcess '5' +///系统出错,请人工处理 +#define THOST_FTDC_TEF_SysErrorNeedManualProcess '6' + +typedef char TThostFtdcTxnEndFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessStatusType是一个银期转帐服务处理状态类型 +///////////////////////////////////////////////////////////////////////// +///未处理 +#define THOST_FTDC_PSS_NotProcess '0' +///开始处理 +#define THOST_FTDC_PSS_StartProcess '1' +///处理完成 +#define THOST_FTDC_PSS_Finished '2' + +typedef char TThostFtdcProcessStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCustTypeType是一个客户类型类型 +///////////////////////////////////////////////////////////////////////// +///自然人 +#define THOST_FTDC_CUSTT_Person '0' +///机构户 +#define THOST_FTDC_CUSTT_Institution '1' + +typedef char TThostFtdcCustTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTTransferDirectionType是一个银期转帐方向类型 +///////////////////////////////////////////////////////////////////////// +///入金,银行转期货 +#define THOST_FTDC_FBTTD_FromBankToFuture '1' +///出金,期货转银行 +#define THOST_FTDC_FBTTD_FromFutureToBank '2' + +typedef char TThostFtdcFBTTransferDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenOrDestroyType是一个开销户类别类型 +///////////////////////////////////////////////////////////////////////// +///开户 +#define THOST_FTDC_OOD_Open '1' +///销户 +#define THOST_FTDC_OOD_Destroy '0' + +typedef char TThostFtdcOpenOrDestroyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAvailabilityFlagType是一个有效标志类型 +///////////////////////////////////////////////////////////////////////// +///未确认 +#define THOST_FTDC_AVAF_Invalid '0' +///有效 +#define THOST_FTDC_AVAF_Valid '1' +///冲正 +#define THOST_FTDC_AVAF_Repeal '2' + +typedef char TThostFtdcAvailabilityFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganTypeType是一个机构类型类型 +///////////////////////////////////////////////////////////////////////// +///银行代理 +#define THOST_FTDC_OT_Bank '1' +///交易前置 +#define THOST_FTDC_OT_Future '2' +///银期转帐平台管理 +#define THOST_FTDC_OT_PlateForm '9' + +typedef char TThostFtdcOrganTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganLevelType是一个机构级别类型 +///////////////////////////////////////////////////////////////////////// +///银行总行或期商总部 +#define THOST_FTDC_OL_HeadQuarters '1' +///银行分中心或期货公司营业部 +#define THOST_FTDC_OL_Branch '2' + +typedef char TThostFtdcOrganLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProtocalIDType是一个协议类型类型 +///////////////////////////////////////////////////////////////////////// +///期商协议 +#define THOST_FTDC_PID_FutureProtocal '0' +///工行协议 +#define THOST_FTDC_PID_ICBCProtocal '1' +///农行协议 +#define THOST_FTDC_PID_ABCProtocal '2' +///中国银行协议 +#define THOST_FTDC_PID_CBCProtocal '3' +///建行协议 +#define THOST_FTDC_PID_CCBProtocal '4' +///交行协议 +#define THOST_FTDC_PID_BOCOMProtocal '5' +///银期转帐平台协议 +#define THOST_FTDC_PID_FBTPlateFormProtocal 'X' + +typedef char TThostFtdcProtocalIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcConnectModeType是一个套接字连接方式类型 +///////////////////////////////////////////////////////////////////////// +///短连接 +#define THOST_FTDC_CM_ShortConnect '0' +///长连接 +#define THOST_FTDC_CM_LongConnect '1' + +typedef char TThostFtdcConnectModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncModeType是一个套接字通信方式类型 +///////////////////////////////////////////////////////////////////////// +///异步 +#define THOST_FTDC_SRM_ASync '0' +///同步 +#define THOST_FTDC_SRM_Sync '1' + +typedef char TThostFtdcSyncModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccTypeType是一个银行帐号类型类型 +///////////////////////////////////////////////////////////////////////// +///银行存折 +#define THOST_FTDC_BAT_BankBook '1' +///储蓄卡 +#define THOST_FTDC_BAT_SavingCard '2' +///信用卡 +#define THOST_FTDC_BAT_CreditCard '3' + +typedef char TThostFtdcBankAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccTypeType是一个期货公司帐号类型类型 +///////////////////////////////////////////////////////////////////////// +///银行存折 +#define THOST_FTDC_FAT_BankBook '1' +///储蓄卡 +#define THOST_FTDC_FAT_SavingCard '2' +///信用卡 +#define THOST_FTDC_FAT_CreditCard '3' + +typedef char TThostFtdcFutureAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganStatusType是一个接入机构状态类型 +///////////////////////////////////////////////////////////////////////// +///启用 +#define THOST_FTDC_OS_Ready '0' +///签到 +#define THOST_FTDC_OS_CheckIn '1' +///签退 +#define THOST_FTDC_OS_CheckOut '2' +///对帐文件到达 +#define THOST_FTDC_OS_CheckFileArrived '3' +///对帐 +#define THOST_FTDC_OS_CheckDetail '4' +///日终清理 +#define THOST_FTDC_OS_DayEndClean '5' +///注销 +#define THOST_FTDC_OS_Invalid '9' + +typedef char TThostFtdcOrganStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCCBFeeModeType是一个建行收费模式类型 +///////////////////////////////////////////////////////////////////////// +///按金额扣收 +#define THOST_FTDC_CCBFM_ByAmount '1' +///按月扣收 +#define THOST_FTDC_CCBFM_ByMonth '2' + +typedef char TThostFtdcCCBFeeModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommApiTypeType是一个通讯API类型类型 +///////////////////////////////////////////////////////////////////////// +///客户端 +#define THOST_FTDC_CAPIT_Client '1' +///服务端 +#define THOST_FTDC_CAPIT_Server '2' +///交易系统的UserApi +#define THOST_FTDC_CAPIT_UserApi '3' + +typedef char TThostFtdcCommApiTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServiceIDType是一个服务编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcServiceIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServiceLineNoType是一个服务线路编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcServiceLineNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServiceNameType是一个服务名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcServiceNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLinkStatusType是一个连接状态类型 +///////////////////////////////////////////////////////////////////////// +///已经连接 +#define THOST_FTDC_LS_Connected '1' +///没有连接 +#define THOST_FTDC_LS_Disconnected '2' + +typedef char TThostFtdcLinkStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommApiPointerType是一个通讯API指针类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCommApiPointerType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPwdFlagType是一个密码核对标志类型 +///////////////////////////////////////////////////////////////////////// +///不核对 +#define THOST_FTDC_BPWDF_NoCheck '0' +///明文核对 +#define THOST_FTDC_BPWDF_BlankCheck '1' +///密文核对 +#define THOST_FTDC_BPWDF_EncryptCheck '2' + +typedef char TThostFtdcPwdFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSecuAccTypeType是一个期货帐号类型类型 +///////////////////////////////////////////////////////////////////////// +///资金帐号 +#define THOST_FTDC_SAT_AccountID '1' +///资金卡号 +#define THOST_FTDC_SAT_CardID '2' +///上海股东帐号 +#define THOST_FTDC_SAT_SHStockholderID '3' +///深圳股东帐号 +#define THOST_FTDC_SAT_SZStockholderID '4' + +typedef char TThostFtdcSecuAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferStatusType是一个转账交易状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_TRFS_Normal '0' +///被冲正 +#define THOST_FTDC_TRFS_Repealed '1' + +typedef char TThostFtdcTransferStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSponsorTypeType是一个发起方类型 +///////////////////////////////////////////////////////////////////////// +///期商 +#define THOST_FTDC_SPTYPE_Broker '0' +///银行 +#define THOST_FTDC_SPTYPE_Bank '1' + +typedef char TThostFtdcSponsorTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReqRspTypeType是一个请求响应类别类型 +///////////////////////////////////////////////////////////////////////// +///请求 +#define THOST_FTDC_REQRSP_Request '0' +///响应 +#define THOST_FTDC_REQRSP_Response '1' + +typedef char TThostFtdcReqRspTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTUserEventTypeType是一个银期转帐用户事件类型类型 +///////////////////////////////////////////////////////////////////////// +///签到 +#define THOST_FTDC_FBTUET_SignIn '0' +///银行转期货 +#define THOST_FTDC_FBTUET_FromBankToFuture '1' +///期货转银行 +#define THOST_FTDC_FBTUET_FromFutureToBank '2' +///开户 +#define THOST_FTDC_FBTUET_OpenAccount '3' +///销户 +#define THOST_FTDC_FBTUET_CancelAccount '4' +///变更银行账户 +#define THOST_FTDC_FBTUET_ChangeAccount '5' +///冲正银行转期货 +#define THOST_FTDC_FBTUET_RepealFromBankToFuture '6' +///冲正期货转银行 +#define THOST_FTDC_FBTUET_RepealFromFutureToBank '7' +///查询银行账户 +#define THOST_FTDC_FBTUET_QueryBankAccount '8' +///查询期货账户 +#define THOST_FTDC_FBTUET_QueryFutureAccount '9' +///签退 +#define THOST_FTDC_FBTUET_SignOut 'A' +///密钥同步 +#define THOST_FTDC_FBTUET_SyncKey 'B' +///预约开户 +#define THOST_FTDC_FBTUET_ReserveOpenAccount 'C' +///撤销预约开户 +#define THOST_FTDC_FBTUET_CancelReserveOpenAccount 'D' +///预约开户确认 +#define THOST_FTDC_FBTUET_ReserveOpenAccountConfirm 'E' +///其他 +#define THOST_FTDC_FBTUET_Other 'Z' + +typedef char TThostFtdcFBTUserEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankIDByBankType是一个银行自己的编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankIDByBankType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankOperNoType是一个银行操作员号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankOperNoType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankCustNoType是一个银行客户号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankCustNoType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDBOPSeqNoType是一个递增的序列号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDBOPSeqNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTableNameType是一个FBT表名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTableNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPKNameType是一个FBT表操作主键名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPKNameType[201]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPKValueType是一个FBT表操作主键值类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPKValueType[501]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDBOperationType是一个记录操作类型类型 +///////////////////////////////////////////////////////////////////////// +///插入 +#define THOST_FTDC_DBOP_Insert '0' +///更新 +#define THOST_FTDC_DBOP_Update '1' +///删除 +#define THOST_FTDC_DBOP_Delete '2' + +typedef char TThostFtdcDBOperationType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncFlagType是一个同步标记类型 +///////////////////////////////////////////////////////////////////////// +///已同步 +#define THOST_FTDC_SYNF_Yes '0' +///未同步 +#define THOST_FTDC_SYNF_No '1' + +typedef char TThostFtdcSyncFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTargetIDType是一个同步目标编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTargetIDType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncTypeType是一个同步类型类型 +///////////////////////////////////////////////////////////////////////// +///一次同步 +#define THOST_FTDC_SYNT_OneOffSync '0' +///定时同步 +#define THOST_FTDC_SYNT_TimerSync '1' +///定时完全同步 +#define THOST_FTDC_SYNT_TimerFullSync '2' + +typedef char TThostFtdcSyncTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBETimeType是一个各种换汇时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBETimeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBankNoType是一个换汇银行行号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBankNoType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBECertNoType是一个换汇凭证号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBECertNoType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExDirectionType是一个换汇方向类型 +///////////////////////////////////////////////////////////////////////// +///结汇 +#define THOST_FTDC_FBEDIR_Settlement '0' +///售汇 +#define THOST_FTDC_FBEDIR_Sale '1' + +typedef char TThostFtdcExDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBankAccountType是一个换汇银行账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBankAccountType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBankAccountNameType是一个换汇银行账户名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBankAccountNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEAmtType是一个各种换汇金额类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcFBEAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBusinessTypeType是一个换汇业务类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBusinessTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEPostScriptType是一个换汇附言类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEPostScriptType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBERemarkType是一个换汇备注类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBERemarkType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExRateType是一个换汇汇率类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcExRateType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEResultFlagType是一个换汇成功标志类型 +///////////////////////////////////////////////////////////////////////// +///成功 +#define THOST_FTDC_FBERES_Success '0' +///账户余额不足 +#define THOST_FTDC_FBERES_InsufficientBalance '1' +///交易结果未知 +#define THOST_FTDC_FBERES_UnknownTrading '8' +///失败 +#define THOST_FTDC_FBERES_Fail 'x' + +typedef char TThostFtdcFBEResultFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBERtnMsgType是一个换汇返回信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBERtnMsgType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEExtendMsgType是一个换汇扩展信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEExtendMsgType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBusinessSerialType是一个换汇记账流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBusinessSerialType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBESystemSerialType是一个换汇流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBESystemSerialType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBETotalExCntType是一个换汇交易总笔数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFBETotalExCntType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEExchStatusType是一个换汇交易状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_FBEES_Normal '0' +///交易重发 +#define THOST_FTDC_FBEES_ReExchange '1' + +typedef char TThostFtdcFBEExchStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEFileFlagType是一个换汇文件标志类型 +///////////////////////////////////////////////////////////////////////// +///数据包 +#define THOST_FTDC_FBEFG_DataPackage '0' +///文件 +#define THOST_FTDC_FBEFG_File '1' + +typedef char TThostFtdcFBEFileFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEAlreadyTradeType是一个换汇已交易标志类型 +///////////////////////////////////////////////////////////////////////// +///未交易 +#define THOST_FTDC_FBEAT_NotTrade '0' +///已交易 +#define THOST_FTDC_FBEAT_Trade '1' + +typedef char TThostFtdcFBEAlreadyTradeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEOpenBankType是一个换汇账户开户行类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEOpenBankType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEUserEventTypeType是一个银期换汇用户事件类型类型 +///////////////////////////////////////////////////////////////////////// +///签到 +#define THOST_FTDC_FBEUET_SignIn '0' +///换汇 +#define THOST_FTDC_FBEUET_Exchange '1' +///换汇重发 +#define THOST_FTDC_FBEUET_ReExchange '2' +///银行账户查询 +#define THOST_FTDC_FBEUET_QueryBankAccount '3' +///换汇明细查询 +#define THOST_FTDC_FBEUET_QueryExchDetial '4' +///换汇汇总查询 +#define THOST_FTDC_FBEUET_QueryExchSummary '5' +///换汇汇率查询 +#define THOST_FTDC_FBEUET_QueryExchRate '6' +///对账文件通知 +#define THOST_FTDC_FBEUET_CheckBankAccount '7' +///签退 +#define THOST_FTDC_FBEUET_SignOut '8' +///其他 +#define THOST_FTDC_FBEUET_Other 'Z' + +typedef char TThostFtdcFBEUserEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEFileNameType是一个换汇相关文件名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEFileNameType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBatchSerialType是一个换汇批次号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBatchSerialType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEReqFlagType是一个换汇发送标志类型 +///////////////////////////////////////////////////////////////////////// +///未处理 +#define THOST_FTDC_FBERF_UnProcessed '0' +///等待发送 +#define THOST_FTDC_FBERF_WaitSend '1' +///发送成功 +#define THOST_FTDC_FBERF_SendSuccess '2' +///发送失败 +#define THOST_FTDC_FBERF_SendFailed '3' +///等待重发 +#define THOST_FTDC_FBERF_WaitReSend '4' + +typedef char TThostFtdcFBEReqFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNotifyClassType是一个风险通知类型类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_NC_NOERROR '0' +///警示 +#define THOST_FTDC_NC_Warn '1' +///追保 +#define THOST_FTDC_NC_Call '2' +///强平 +#define THOST_FTDC_NC_Force '3' +///穿仓 +#define THOST_FTDC_NC_CHUANCANG '4' +///异常 +#define THOST_FTDC_NC_Exception '5' + +typedef char TThostFtdcNotifyClassType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskNofityInfoType是一个客户风险通知消息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRiskNofityInfoType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForceCloseSceneIdType是一个强平场景编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcForceCloseSceneIdType[24]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForceCloseTypeType是一个强平单类型类型 +///////////////////////////////////////////////////////////////////////// +///手工强平 +#define THOST_FTDC_FCT_Manual '0' +///单一投资者辅助强平 +#define THOST_FTDC_FCT_Single '1' +///批量投资者辅助强平 +#define THOST_FTDC_FCT_Group '2' + +typedef char TThostFtdcForceCloseTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentIDsType是一个多个产品代码,用+分隔,如cu+zn类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentIDsType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskNotifyMethodType是一个风险通知途径类型 +///////////////////////////////////////////////////////////////////////// +///系统通知 +#define THOST_FTDC_RNM_System '0' +///短信通知 +#define THOST_FTDC_RNM_SMS '1' +///邮件通知 +#define THOST_FTDC_RNM_EMail '2' +///人工通知 +#define THOST_FTDC_RNM_Manual '3' + +typedef char TThostFtdcRiskNotifyMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskNotifyStatusType是一个风险通知状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成 +#define THOST_FTDC_RNS_NotGen '0' +///已生成未发送 +#define THOST_FTDC_RNS_Generated '1' +///发送失败 +#define THOST_FTDC_RNS_SendError '2' +///已发送未接收 +#define THOST_FTDC_RNS_SendOk '3' +///已接收未确认 +#define THOST_FTDC_RNS_Received '4' +///已确认 +#define THOST_FTDC_RNS_Confirmed '5' + +typedef char TThostFtdcRiskNotifyStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskUserEventType是一个风控用户操作事件类型 +///////////////////////////////////////////////////////////////////////// +///导出数据 +#define THOST_FTDC_RUE_ExportData '0' + +typedef char TThostFtdcRiskUserEventType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParamIDType是一个参数代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParamNameType是一个参数名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParamNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParamValueType是一个参数值类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParamValueType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcConditionalOrderSortTypeType是一个条件单索引条件类型 +///////////////////////////////////////////////////////////////////////// +///使用最新价升序 +#define THOST_FTDC_COST_LastPriceAsc '0' +///使用最新价降序 +#define THOST_FTDC_COST_LastPriceDesc '1' +///使用卖价升序 +#define THOST_FTDC_COST_AskPriceAsc '2' +///使用卖价降序 +#define THOST_FTDC_COST_AskPriceDesc '3' +///使用买价升序 +#define THOST_FTDC_COST_BidPriceAsc '4' +///使用买价降序 +#define THOST_FTDC_COST_BidPriceDesc '5' + +typedef char TThostFtdcConditionalOrderSortTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSendTypeType是一个报送状态类型 +///////////////////////////////////////////////////////////////////////// +///未发送 +#define THOST_FTDC_UOAST_NoSend '0' +///已发送 +#define THOST_FTDC_UOAST_Sended '1' +///已生成 +#define THOST_FTDC_UOAST_Generated '2' +///报送失败 +#define THOST_FTDC_UOAST_SendFail '3' +///接收成功 +#define THOST_FTDC_UOAST_Success '4' +///接收失败 +#define THOST_FTDC_UOAST_Fail '5' +///取消报送 +#define THOST_FTDC_UOAST_Cancel '6' + +typedef char TThostFtdcSendTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientIDStatusType是一个交易编码状态类型 +///////////////////////////////////////////////////////////////////////// +///未申请 +#define THOST_FTDC_UOACS_NoApply '1' +///已提交申请 +#define THOST_FTDC_UOACS_Submited '2' +///已发送申请 +#define THOST_FTDC_UOACS_Sended '3' +///完成 +#define THOST_FTDC_UOACS_Success '4' +///拒绝 +#define THOST_FTDC_UOACS_Refuse '5' +///已撤销编码 +#define THOST_FTDC_UOACS_Cancel '6' + +typedef char TThostFtdcClientIDStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIndustryIDType是一个行业编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIndustryIDType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQuestionIDType是一个特有信息编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcQuestionIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQuestionContentType是一个特有信息说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcQuestionContentType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionIDType是一个选项编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOptionIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionContentType是一个选项说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOptionContentType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQuestionTypeType是一个特有信息类型类型 +///////////////////////////////////////////////////////////////////////// +///单选 +#define THOST_FTDC_QT_Radio '1' +///多选 +#define THOST_FTDC_QT_Option '2' +///填空 +#define THOST_FTDC_QT_Blank '3' + +typedef char TThostFtdcQuestionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessIDType是一个业务流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProcessIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSeqNoType是一个流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSeqNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAProcessStatusType是一个流程状态类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAProcessStatusType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessTypeType是一个流程功能类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProcessTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessTypeType是一个业务类型类型 +///////////////////////////////////////////////////////////////////////// +///请求 +#define THOST_FTDC_BT_Request '1' +///应答 +#define THOST_FTDC_BT_Response '2' +///通知 +#define THOST_FTDC_BT_Notice '3' + +typedef char TThostFtdcBusinessTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCfmmcReturnCodeType是一个监控中心返回码类型 +///////////////////////////////////////////////////////////////////////// +///成功 +#define THOST_FTDC_CRC_Success '0' +///该客户已经有流程在处理中 +#define THOST_FTDC_CRC_Working '1' +///监控中客户资料检查失败 +#define THOST_FTDC_CRC_InfoFail '2' +///监控中实名制检查失败 +#define THOST_FTDC_CRC_IDCardFail '3' +///其他错误 +#define THOST_FTDC_CRC_OtherFail '4' + +typedef char TThostFtdcCfmmcReturnCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExReturnCodeType是一个交易所返回码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcExReturnCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientTypeType是一个客户类型类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_CfMMCCT_All '0' +///个人 +#define THOST_FTDC_CfMMCCT_Person '1' +///单位 +#define THOST_FTDC_CfMMCCT_Company '2' +///其他 +#define THOST_FTDC_CfMMCCT_Other '3' +///特殊法人 +#define THOST_FTDC_CfMMCCT_SpecialOrgan '4' +///资管户 +#define THOST_FTDC_CfMMCCT_Asset '5' + +typedef char TThostFtdcClientTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeIDTypeType是一个交易所编号类型 +///////////////////////////////////////////////////////////////////////// +///上海期货交易所 +#define THOST_FTDC_EIDT_SHFE 'S' +///郑州商品交易所 +#define THOST_FTDC_EIDT_CZCE 'Z' +///大连商品交易所 +#define THOST_FTDC_EIDT_DCE 'D' +///中国金融期货交易所 +#define THOST_FTDC_EIDT_CFFEX 'J' +///上海国际能源交易中心股份有限公司 +#define THOST_FTDC_EIDT_INE 'N' + +typedef char TThostFtdcExchangeIDTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExClientIDTypeType是一个交易编码类型类型 +///////////////////////////////////////////////////////////////////////// +///套保 +#define THOST_FTDC_ECIDT_Hedge '1' +///套利 +#define THOST_FTDC_ECIDT_Arbitrage '2' +///投机 +#define THOST_FTDC_ECIDT_Speculation '3' + +typedef char TThostFtdcExClientIDTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientClassifyType是一个客户分类码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientClassifyType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAOrganTypeType是一个单位性质类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAOrganTypeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOACountryCodeType是一个国家代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOACountryCodeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAreaCodeType是一个区号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAreaCodeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFuturesIDType是一个监控中心为客户分配的代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFuturesIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffmcDateType是一个日期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffmcDateType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffmcTimeType是一个时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffmcTimeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNocIDType是一个组织机构代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNocIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUpdateFlagType是一个更新状态类型 +///////////////////////////////////////////////////////////////////////// +///未更新 +#define THOST_FTDC_UF_NoUpdate '0' +///更新全部信息成功 +#define THOST_FTDC_UF_Success '1' +///更新全部信息失败 +#define THOST_FTDC_UF_Fail '2' +///更新交易编码成功 +#define THOST_FTDC_UF_TCSuccess '3' +///更新交易编码失败 +#define THOST_FTDC_UF_TCFail '4' +///已丢弃 +#define THOST_FTDC_UF_Cancel '5' + +typedef char TThostFtdcUpdateFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplyOperateIDType是一个申请动作类型 +///////////////////////////////////////////////////////////////////////// +///开户 +#define THOST_FTDC_AOID_OpenInvestor '1' +///修改身份信息 +#define THOST_FTDC_AOID_ModifyIDCard '2' +///修改一般信息 +#define THOST_FTDC_AOID_ModifyNoIDCard '3' +///申请交易编码 +#define THOST_FTDC_AOID_ApplyTradingCode '4' +///撤销交易编码 +#define THOST_FTDC_AOID_CancelTradingCode '5' +///销户 +#define THOST_FTDC_AOID_CancelInvestor '6' +///账户休眠 +#define THOST_FTDC_AOID_FreezeAccount '8' +///激活休眠账户 +#define THOST_FTDC_AOID_ActiveFreezeAccount '9' + +typedef char TThostFtdcApplyOperateIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplyStatusIDType是一个申请状态类型 +///////////////////////////////////////////////////////////////////////// +///未补全 +#define THOST_FTDC_ASID_NoComplete '1' +///已提交 +#define THOST_FTDC_ASID_Submited '2' +///已审核 +#define THOST_FTDC_ASID_Checked '3' +///已拒绝 +#define THOST_FTDC_ASID_Refused '4' +///已删除 +#define THOST_FTDC_ASID_Deleted '5' + +typedef char TThostFtdcApplyStatusIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSendMethodType是一个发送方式类型 +///////////////////////////////////////////////////////////////////////// +///文件发送 +#define THOST_FTDC_UOASM_ByAPI '1' +///电子发送 +#define THOST_FTDC_UOASM_ByFile '2' + +typedef char TThostFtdcSendMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEventTypeType是一个业务操作类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEventTypeType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEventModeType是一个操作方法类型 +///////////////////////////////////////////////////////////////////////// +///增加 +#define THOST_FTDC_EvM_ADD '1' +///修改 +#define THOST_FTDC_EvM_UPDATE '2' +///删除 +#define THOST_FTDC_EvM_DELETE '3' +///复核 +#define THOST_FTDC_EvM_CHECK '4' +///复制 +#define THOST_FTDC_EvM_COPY '5' +///注销 +#define THOST_FTDC_EvM_CANCEL '6' +///冲销 +#define THOST_FTDC_EvM_Reverse '7' + +typedef char TThostFtdcEventModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAAutoSendType是一个统一开户申请自动发送类型 +///////////////////////////////////////////////////////////////////////// +///自动发送并接收 +#define THOST_FTDC_UOAA_ASR '1' +///自动发送,不自动接收 +#define THOST_FTDC_UOAA_ASNR '2' +///不自动发送,自动接收 +#define THOST_FTDC_UOAA_NSAR '3' +///不自动发送,也不自动接收 +#define THOST_FTDC_UOAA_NSR '4' + +typedef char TThostFtdcUOAAutoSendType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryDepthType是一个查询深度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcQueryDepthType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataCenterIDType是一个数据中心代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDataCenterIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFlowIDType是一个流程ID类型 +///////////////////////////////////////////////////////////////////////// +///投资者对应投资者组设置 +#define THOST_FTDC_EvM_InvestorGroupFlow '1' +///投资者手续费率设置 +#define THOST_FTDC_EvM_InvestorRate '2' +///投资者手续费率模板关系设置 +#define THOST_FTDC_EvM_InvestorCommRateModel '3' + +typedef char TThostFtdcFlowIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckLevelType是一个复核级别类型 +///////////////////////////////////////////////////////////////////////// +///零级复核 +#define THOST_FTDC_CL_Zero '0' +///一级复核 +#define THOST_FTDC_CL_One '1' +///二级复核 +#define THOST_FTDC_CL_Two '2' + +typedef char TThostFtdcCheckLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckNoType是一个操作次数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCheckNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckStatusType是一个复核级别类型 +///////////////////////////////////////////////////////////////////////// +///未复核 +#define THOST_FTDC_CHS_Init '0' +///复核中 +#define THOST_FTDC_CHS_Checking '1' +///已复核 +#define THOST_FTDC_CHS_Checked '2' +///拒绝 +#define THOST_FTDC_CHS_Refuse '3' +///作废 +#define THOST_FTDC_CHS_Cancel '4' + +typedef char TThostFtdcCheckStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUsedStatusType是一个生效状态类型 +///////////////////////////////////////////////////////////////////////// +///未生效 +#define THOST_FTDC_CHU_Unused '0' +///已生效 +#define THOST_FTDC_CHU_Used '1' +///生效失败 +#define THOST_FTDC_CHU_Fail '2' + +typedef char TThostFtdcUsedStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateTemplateNameType是一个模型名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRateTemplateNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyStringType是一个用于查询的投资属性字段类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPropertyStringType[2049]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAcountOriginType是一个账户来源类型 +///////////////////////////////////////////////////////////////////////// +///手工录入 +#define THOST_FTDC_BAO_ByAccProperty '0' +///银期转账 +#define THOST_FTDC_BAO_ByFBTransfer '1' + +typedef char TThostFtdcBankAcountOriginType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMonthBillTradeSumType是一个结算单月报成交汇总方式类型 +///////////////////////////////////////////////////////////////////////// +///同日同合约 +#define THOST_FTDC_MBTS_ByInstrument '0' +///同日同合约同价格 +#define THOST_FTDC_MBTS_ByDayInsPrc '1' +///同合约 +#define THOST_FTDC_MBTS_ByDayIns '2' + +typedef char TThostFtdcMonthBillTradeSumType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTTradeCodeEnumType是一个银期交易代码枚举类型 +///////////////////////////////////////////////////////////////////////// +///银行发起银行转期货 +#define THOST_FTDC_FTC_BankLaunchBankToBroker '102001' +///期货发起银行转期货 +#define THOST_FTDC_FTC_BrokerLaunchBankToBroker '202001' +///银行发起期货转银行 +#define THOST_FTDC_FTC_BankLaunchBrokerToBank '102002' +///期货发起期货转银行 +#define THOST_FTDC_FTC_BrokerLaunchBrokerToBank '202002' + +typedef char TThostFtdcFBTTradeCodeEnumType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateTemplateIDType是一个模型代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRateTemplateIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskRateType是一个风险度类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRiskRateType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimestampType是一个时间戳类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTimestampType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorIDRuleNameType是一个号段规则名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorIDRuleNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorIDRuleExprType是一个号段规则表达式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorIDRuleExprType[513]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLastDriftType是一个上次OTP漂移值类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLastDriftType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLastSuccessType是一个上次OTP成功值类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLastSuccessType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthKeyType是一个令牌密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthKeyType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSerialNumberType是一个序列号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSerialNumberType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPTypeType是一个动态令牌类型类型 +///////////////////////////////////////////////////////////////////////// +///无动态令牌 +#define THOST_FTDC_OTP_NONE '0' +///时间令牌 +#define THOST_FTDC_OTP_TOTP '1' + +typedef char TThostFtdcOTPTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPVendorsIDType是一个动态令牌提供商类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTPVendorsIDType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPVendorsNameType是一个动态令牌提供商名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTPVendorsNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPStatusType是一个动态令牌状态类型 +///////////////////////////////////////////////////////////////////////// +///未使用 +#define THOST_FTDC_OTPS_Unused '0' +///已使用 +#define THOST_FTDC_OTPS_Used '1' +///注销 +#define THOST_FTDC_OTPS_Disuse '2' + +typedef char TThostFtdcOTPStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerUserTypeType是一个经济公司用户类型类型 +///////////////////////////////////////////////////////////////////////// +///投资者 +#define THOST_FTDC_BUT_Investor '1' +///操作员 +#define THOST_FTDC_BUT_BrokerUser '2' + +typedef char TThostFtdcBrokerUserTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureTypeType是一个期货类型类型 +///////////////////////////////////////////////////////////////////////// +///商品期货 +#define THOST_FTDC_FUTT_Commodity '1' +///金融期货 +#define THOST_FTDC_FUTT_Financial '2' + +typedef char TThostFtdcFutureTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundEventTypeType是一个资金管理操作类型类型 +///////////////////////////////////////////////////////////////////////// +///转账限额 +#define THOST_FTDC_FET_Restriction '0' +///当日转账限额 +#define THOST_FTDC_FET_TodayRestriction '1' +///期商流水 +#define THOST_FTDC_FET_Transfer '2' +///资金冻结 +#define THOST_FTDC_FET_Credit '3' +///投资者可提资金比例 +#define THOST_FTDC_FET_InvestorWithdrawAlm '4' +///单个银行帐户转账限额 +#define THOST_FTDC_FET_BankRestriction '5' +///银期签约账户 +#define THOST_FTDC_FET_Accountregister '6' +///交易所出入金 +#define THOST_FTDC_FET_ExchangeFundIO '7' +///投资者出入金 +#define THOST_FTDC_FET_InvestorFundIO '8' + +typedef char TThostFtdcFundEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAccountSourceTypeType是一个资金账户来源类型 +///////////////////////////////////////////////////////////////////////// +///银期同步 +#define THOST_FTDC_AST_FBTransfer '0' +///手工录入 +#define THOST_FTDC_AST_ManualEntry '1' + +typedef char TThostFtdcAccountSourceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCodeSourceTypeType是一个交易编码来源类型 +///////////////////////////////////////////////////////////////////////// +///统一开户(已规范) +#define THOST_FTDC_CST_UnifyAccount '0' +///手工录入(未规范) +#define THOST_FTDC_CST_ManualEntry '1' + +typedef char TThostFtdcCodeSourceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserRangeType是一个操作员范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_UR_All '0' +///单一操作员 +#define THOST_FTDC_UR_Single '1' + +typedef char TThostFtdcUserRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimeSpanType是一个时间跨度类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTimeSpanType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcImportSequenceIDType是一个动态令牌导入批次编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcImportSequenceIDType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcByGroupType是一个交易统计表按客户统计方式类型 +///////////////////////////////////////////////////////////////////////// +///按投资者统计 +#define THOST_FTDC_BG_Investor '2' +///按类统计 +#define THOST_FTDC_BG_Group '1' + +typedef char TThostFtdcByGroupType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSumStatModeType是一个交易统计表按范围统计方式类型 +///////////////////////////////////////////////////////////////////////// +///按合约统计 +#define THOST_FTDC_TSSM_Instrument '1' +///按产品统计 +#define THOST_FTDC_TSSM_Product '2' +///按交易所统计 +#define THOST_FTDC_TSSM_Exchange '3' + +typedef char TThostFtdcTradeSumStatModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcComTypeType是一个组合成交类型类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcComTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserProductIDType是一个产品标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserProductIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserProductNameType是一个产品名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserProductNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserProductMemoType是一个产品说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserProductMemoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCCancelFlagType是一个新增或变更标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCCancelFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCDateType是一个日期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCDateType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCInvestorNameType是一个客户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCInvestorNameType[201]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCOpenInvestorNameType是一个客户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCOpenInvestorNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCInvestorIDType是一个客户代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCInvestorIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCIdentifiedCardNoType是一个证件号码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCIdentifiedCardNoType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCClientIDType是一个交易编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCClientIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCBankFlagType是一个银行标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCBankFlagType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCBankAccountType是一个银行账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCBankAccountType[23]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCOpenNameType是一个开户人类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCOpenNameType[401]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMemoType是一个说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCMemoType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTimeType是一个时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTimeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTradeIDType是一个成交流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTradeIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCExchangeInstIDType是一个合约代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCExchangeInstIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMortgageNameType是一个质押品名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCMortgageNameType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCReasonType是一个事由类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCReasonType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIsSettlementType是一个是否为非结算会员类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIsSettlementType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMoneyType是一个资金类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCSRCMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCPriceType是一个价格类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCSRCPriceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCOptionsTypeType是一个期权类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCOptionsTypeType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCStrikePriceType是一个执行价类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCSRCStrikePriceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTargetProductIDType是一个标的品种类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTargetProductIDType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTargetInstrIDType是一个标的合约类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTargetInstrIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommModelNameType是一个手续费率模板名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommModelNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommModelMemoType是一个手续费率模板备注类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommModelMemoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExprSetModeType是一个日期表达式设置类型类型 +///////////////////////////////////////////////////////////////////////// +///相对已有规则设置 +#define THOST_FTDC_ESM_Relative '1' +///典型设置 +#define THOST_FTDC_ESM_Typical '2' + +typedef char TThostFtdcExprSetModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateInvestorRangeType是一个投资者范围类型 +///////////////////////////////////////////////////////////////////////// +///公司标准 +#define THOST_FTDC_RIR_All '1' +///模板 +#define THOST_FTDC_RIR_Model '2' +///单一投资者 +#define THOST_FTDC_RIR_Single '3' + +typedef char TThostFtdcRateInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentBrokerIDType是一个代理经纪公司代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentBrokerIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDRIdentityIDType是一个交易中心代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDRIdentityIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDRIdentityNameType是一个交易中心名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDRIdentityNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDBLinkIDType是一个DBLink标识号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDBLinkIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncDataStatusType是一个主次用系统数据同步状态类型 +///////////////////////////////////////////////////////////////////////// +///未同步 +#define THOST_FTDC_SDS_Initialize '0' +///同步中 +#define THOST_FTDC_SDS_Settlementing '1' +///已同步 +#define THOST_FTDC_SDS_Settlemented '2' + +typedef char TThostFtdcSyncDataStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSourceType是一个成交来源类型 +///////////////////////////////////////////////////////////////////////// +///来自交易所普通回报 +#define THOST_FTDC_TSRC_NORMAL '0' +///来自查询 +#define THOST_FTDC_TSRC_QUERY '1' + +typedef char TThostFtdcTradeSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFlexStatModeType是一个产品合约统计方式类型 +///////////////////////////////////////////////////////////////////////// +///产品统计 +#define THOST_FTDC_FSM_Product '1' +///交易所统计 +#define THOST_FTDC_FSM_Exchange '2' +///统计所有 +#define THOST_FTDC_FSM_All '3' + +typedef char TThostFtdcFlexStatModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcByInvestorRangeType是一个投资者范围统计方式类型 +///////////////////////////////////////////////////////////////////////// +///属性统计 +#define THOST_FTDC_BIR_Property '1' +///统计所有 +#define THOST_FTDC_BIR_All '2' + +typedef char TThostFtdcByInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSRiskRateType是一个风险度类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSRiskRateType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceNo12Type是一个序号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSequenceNo12Type; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyInvestorRangeType是一个投资者范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_PIR_All '1' +///投资者属性 +#define THOST_FTDC_PIR_Property '2' +///单一投资者 +#define THOST_FTDC_PIR_Single '3' + +typedef char TThostFtdcPropertyInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileStatusType是一个文件状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成 +#define THOST_FTDC_FIS_NoCreate '0' +///已生成 +#define THOST_FTDC_FIS_Created '1' +///生成失败 +#define THOST_FTDC_FIS_Failed '2' + +typedef char TThostFtdcFileStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileGenStyleType是一个文件生成方式类型 +///////////////////////////////////////////////////////////////////////// +///下发 +#define THOST_FTDC_FGS_FileTransmit '0' +///生成 +#define THOST_FTDC_FGS_FileGen '1' + +typedef char TThostFtdcFileGenStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysOperModeType是一个系统日志操作方法类型 +///////////////////////////////////////////////////////////////////////// +///增加 +#define THOST_FTDC_SoM_Add '1' +///修改 +#define THOST_FTDC_SoM_Update '2' +///删除 +#define THOST_FTDC_SoM_Delete '3' +///复制 +#define THOST_FTDC_SoM_Copy '4' +///激活 +#define THOST_FTDC_SoM_AcTive '5' +///注销 +#define THOST_FTDC_SoM_CanCel '6' +///重置 +#define THOST_FTDC_SoM_ReSet '7' + +typedef char TThostFtdcSysOperModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysOperTypeType是一个系统日志操作类型类型 +///////////////////////////////////////////////////////////////////////// +///修改操作员密码 +#define THOST_FTDC_SoT_UpdatePassword '0' +///操作员组织架构关系 +#define THOST_FTDC_SoT_UserDepartment '1' +///角色管理 +#define THOST_FTDC_SoT_RoleManager '2' +///角色功能设置 +#define THOST_FTDC_SoT_RoleFunction '3' +///基础参数设置 +#define THOST_FTDC_SoT_BaseParam '4' +///设置操作员 +#define THOST_FTDC_SoT_SetUserID '5' +///用户角色设置 +#define THOST_FTDC_SoT_SetUserRole '6' +///用户IP限制 +#define THOST_FTDC_SoT_UserIpRestriction '7' +///组织架构管理 +#define THOST_FTDC_SoT_DepartmentManager '8' +///组织架构向查询分类复制 +#define THOST_FTDC_SoT_DepartmentCopy '9' +///交易编码管理 +#define THOST_FTDC_SoT_Tradingcode 'A' +///投资者状态维护 +#define THOST_FTDC_SoT_InvestorStatus 'B' +///投资者权限管理 +#define THOST_FTDC_SoT_InvestorAuthority 'C' +///属性设置 +#define THOST_FTDC_SoT_PropertySet 'D' +///重置投资者密码 +#define THOST_FTDC_SoT_ReSetInvestorPasswd 'E' +///投资者个性信息维护 +#define THOST_FTDC_SoT_InvestorPersonalityInfo 'F' + +typedef char TThostFtdcSysOperTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCDataQueyTypeType是一个上报数据查询类型类型 +///////////////////////////////////////////////////////////////////////// +///查询当前交易日报送的数据 +#define THOST_FTDC_CSRCQ_Current '0' +///查询历史报送的代理经纪公司的数据 +#define THOST_FTDC_CSRCQ_History '1' + +typedef char TThostFtdcCSRCDataQueyTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFreezeStatusType是一个休眠状态类型 +///////////////////////////////////////////////////////////////////////// +///活跃 +#define THOST_FTDC_FRS_Normal '1' +///休眠 +#define THOST_FTDC_FRS_Freeze '0' + +typedef char TThostFtdcFreezeStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStandardStatusType是一个规范状态类型 +///////////////////////////////////////////////////////////////////////// +///已规范 +#define THOST_FTDC_STST_Standard '0' +///未规范 +#define THOST_FTDC_STST_NonStandard '1' + +typedef char TThostFtdcStandardStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCFreezeStatusType是一个休眠状态类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCFreezeStatusType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRightParamTypeType是一个配置类型类型 +///////////////////////////////////////////////////////////////////////// +///休眠户 +#define THOST_FTDC_RPT_Freeze '1' +///激活休眠户 +#define THOST_FTDC_RPT_FreezeActive '2' +///开仓权限限制 +#define THOST_FTDC_RPT_OpenLimit '3' +///解除开仓权限限制 +#define THOST_FTDC_RPT_RelieveOpenLimit '4' + +typedef char TThostFtdcRightParamTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRightTemplateIDType是一个模板代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRightTemplateIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRightTemplateNameType是一个模板名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRightTemplateNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataStatusType是一个反洗钱审核表数据状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_AMLDS_Normal '0' +///已删除 +#define THOST_FTDC_AMLDS_Deleted '1' + +typedef char TThostFtdcDataStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCheckStatusType是一个审核状态类型 +///////////////////////////////////////////////////////////////////////// +///未复核 +#define THOST_FTDC_AMLCHS_Init '0' +///复核中 +#define THOST_FTDC_AMLCHS_Checking '1' +///已复核 +#define THOST_FTDC_AMLCHS_Checked '2' +///拒绝上报 +#define THOST_FTDC_AMLCHS_RefuseReport '3' + +typedef char TThostFtdcAMLCheckStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmlDateTypeType是一个日期类型类型 +///////////////////////////////////////////////////////////////////////// +///检查日期 +#define THOST_FTDC_AMLDT_DrawDay '0' +///发生日期 +#define THOST_FTDC_AMLDT_TouchDay '1' + +typedef char TThostFtdcAmlDateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmlCheckLevelType是一个审核级别类型 +///////////////////////////////////////////////////////////////////////// +///零级审核 +#define THOST_FTDC_AMLCL_CheckLevel0 '0' +///一级审核 +#define THOST_FTDC_AMLCL_CheckLevel1 '1' +///二级审核 +#define THOST_FTDC_AMLCL_CheckLevel2 '2' +///三级审核 +#define THOST_FTDC_AMLCL_CheckLevel3 '3' + +typedef char TThostFtdcAmlCheckLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmlCheckFlowType是一个反洗钱数据抽取审核流程类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAmlCheckFlowType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataTypeType是一个数据类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDataTypeType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExportFileTypeType是一个导出文件类型类型 +///////////////////////////////////////////////////////////////////////// +///CSV +#define THOST_FTDC_EFT_CSV '0' +///Excel +#define THOST_FTDC_EFT_EXCEL '1' +///DBF +#define THOST_FTDC_EFT_DBF '2' + +typedef char TThostFtdcExportFileTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerTypeType是一个结算配置类型类型 +///////////////////////////////////////////////////////////////////////// +///结算前准备 +#define THOST_FTDC_SMT_Before '1' +///结算 +#define THOST_FTDC_SMT_Settlement '2' +///结算后核对 +#define THOST_FTDC_SMT_After '3' +///结算后处理 +#define THOST_FTDC_SMT_Settlemented '4' + +typedef char TThostFtdcSettleManagerTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerIDType是一个结算配置代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettleManagerIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerNameType是一个结算配置名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettleManagerNameType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerLevelType是一个结算配置等级类型 +///////////////////////////////////////////////////////////////////////// +///必要 +#define THOST_FTDC_SML_Must '1' +///警告 +#define THOST_FTDC_SML_Alarm '2' +///提示 +#define THOST_FTDC_SML_Prompt '3' +///不检查 +#define THOST_FTDC_SML_Ignore '4' + +typedef char TThostFtdcSettleManagerLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerGroupType是一个模块分组类型 +///////////////////////////////////////////////////////////////////////// +///交易所核对 +#define THOST_FTDC_SMG_Exhcange '1' +///内部核对 +#define THOST_FTDC_SMG_ASP '2' +///上报数据核对 +#define THOST_FTDC_SMG_CSRC '3' + +typedef char TThostFtdcSettleManagerGroupType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckResultMemoType是一个核对结果说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCheckResultMemoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionUrlType是一个功能链接类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionUrlType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthInfoType是一个客户端认证信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthInfoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthCodeType是一个客户端认证码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthCodeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLimitUseTypeType是一个保值额度使用类型类型 +///////////////////////////////////////////////////////////////////////// +///可重复使用 +#define THOST_FTDC_LUT_Repeatable '1' +///不可重复使用 +#define THOST_FTDC_LUT_Unrepeatable '2' + +typedef char TThostFtdcLimitUseTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataResourceType是一个数据来源类型 +///////////////////////////////////////////////////////////////////////// +///本系统 +#define THOST_FTDC_DAR_Settle '1' +///交易所 +#define THOST_FTDC_DAR_Exchange '2' +///报送数据 +#define THOST_FTDC_DAR_CSRC '3' + +typedef char TThostFtdcDataResourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarginTypeType是一个保证金类型类型 +///////////////////////////////////////////////////////////////////////// +///交易所保证金率 +#define THOST_FTDC_MGT_ExchMarginRate '0' +///投资者保证金率 +#define THOST_FTDC_MGT_InstrMarginRate '1' +///投资者交易保证金率 +#define THOST_FTDC_MGT_InstrMarginRateTrade '2' + +typedef char TThostFtdcMarginTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcActiveTypeType是一个生效类型类型 +///////////////////////////////////////////////////////////////////////// +///仅当日生效 +#define THOST_FTDC_ACT_Intraday '1' +///长期生效 +#define THOST_FTDC_ACT_Long '2' + +typedef char TThostFtdcActiveTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarginRateTypeType是一个冲突保证金率类型类型 +///////////////////////////////////////////////////////////////////////// +///交易所保证金率 +#define THOST_FTDC_MRT_Exchange '1' +///投资者保证金率 +#define THOST_FTDC_MRT_Investor '2' +///投资者交易保证金率 +#define THOST_FTDC_MRT_InvestorTrade '3' + +typedef char TThostFtdcMarginRateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBackUpStatusType是一个备份数据状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成备份数据 +#define THOST_FTDC_BUS_UnBak '0' +///备份数据生成中 +#define THOST_FTDC_BUS_BakUp '1' +///已生成备份数据 +#define THOST_FTDC_BUS_BakUped '2' +///备份数据失败 +#define THOST_FTDC_BUS_BakFail '3' + +typedef char TThostFtdcBackUpStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInitSettlementType是一个结算初始化状态类型 +///////////////////////////////////////////////////////////////////////// +///结算初始化未开始 +#define THOST_FTDC_SIS_UnInitialize '0' +///结算初始化中 +#define THOST_FTDC_SIS_Initialize '1' +///结算初始化完成 +#define THOST_FTDC_SIS_Initialized '2' + +typedef char TThostFtdcInitSettlementType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReportStatusType是一个报表数据生成状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成报表数据 +#define THOST_FTDC_SRS_NoCreate '0' +///报表数据生成中 +#define THOST_FTDC_SRS_Create '1' +///已生成报表数据 +#define THOST_FTDC_SRS_Created '2' +///生成报表数据失败 +#define THOST_FTDC_SRS_CreateFail '3' + +typedef char TThostFtdcReportStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSaveStatusType是一个数据归档状态类型 +///////////////////////////////////////////////////////////////////////// +///归档未完成 +#define THOST_FTDC_SSS_UnSaveData '0' +///归档完成 +#define THOST_FTDC_SSS_SaveDatad '1' + +typedef char TThostFtdcSaveStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettArchiveStatusType是一个结算确认数据归档状态类型 +///////////////////////////////////////////////////////////////////////// +///未归档数据 +#define THOST_FTDC_SAS_UnArchived '0' +///数据归档中 +#define THOST_FTDC_SAS_Archiving '1' +///已归档数据 +#define THOST_FTDC_SAS_Archived '2' +///归档数据失败 +#define THOST_FTDC_SAS_ArchiveFail '3' + +typedef char TThostFtdcSettArchiveStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCTPTypeType是一个CTP交易系统类型类型 +///////////////////////////////////////////////////////////////////////// +///未知类型 +#define THOST_FTDC_CTPT_Unkown '0' +///主中心 +#define THOST_FTDC_CTPT_MainCenter '1' +///备中心 +#define THOST_FTDC_CTPT_BackUp '2' + +typedef char TThostFtdcCTPTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcToolIDType是一个工具代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcToolIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcToolNameType是一个工具名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcToolNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCloseDealTypeType是一个平仓处理类型类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_CDT_Normal '0' +///投机平仓优先 +#define THOST_FTDC_CDT_SpecFirst '1' + +typedef char TThostFtdcCloseDealTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMortgageFundUseRangeType是一个货币质押资金可用范围类型 +///////////////////////////////////////////////////////////////////////// +///不能使用 +#define THOST_FTDC_MFUR_None '0' +///用于保证金 +#define THOST_FTDC_MFUR_Margin '1' +///用于手续费、盈亏、保证金 +#define THOST_FTDC_MFUR_All '2' +///人民币方案3 +#define THOST_FTDC_MFUR_CNY3 '3' + +typedef char TThostFtdcMortgageFundUseRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyUnitType是一个币种单位数量类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCurrencyUnitType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeRateType是一个汇率类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcExchangeRateType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSpecProductTypeType是一个特殊产品类型类型 +///////////////////////////////////////////////////////////////////////// +///郑商所套保产品 +#define THOST_FTDC_SPT_CzceHedge '1' +///货币质押产品 +#define THOST_FTDC_SPT_IneForeignCurrency '2' +///大连短线开平仓产品 +#define THOST_FTDC_SPT_DceOpenClose '3' + +typedef char TThostFtdcSpecProductTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundMortgageTypeType是一个货币质押类型类型 +///////////////////////////////////////////////////////////////////////// +///质押 +#define THOST_FTDC_FMT_Mortgage '1' +///解质 +#define THOST_FTDC_FMT_Redemption '2' + +typedef char TThostFtdcFundMortgageTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAccountSettlementParamIDType是一个投资者账户结算参数代码类型 +///////////////////////////////////////////////////////////////////////// +///基础保证金 +#define THOST_FTDC_ASPI_BaseMargin '1' +///最低权益标准 +#define THOST_FTDC_ASPI_LowestInterest '2' + +typedef char TThostFtdcAccountSettlementParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyNameType是一个币种名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencyNameType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencySignType是一个币种符号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencySignType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundMortDirectionType是一个货币质押方向类型 +///////////////////////////////////////////////////////////////////////// +///货币质入 +#define THOST_FTDC_FMD_In '1' +///货币质出 +#define THOST_FTDC_FMD_Out '2' + +typedef char TThostFtdcFundMortDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessClassType是一个换汇类别类型 +///////////////////////////////////////////////////////////////////////// +///盈利 +#define THOST_FTDC_BT_Profit '0' +///亏损 +#define THOST_FTDC_BT_Loss '1' +///其他 +#define THOST_FTDC_BT_Other 'Z' + +typedef char TThostFtdcBusinessClassType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSwapSourceTypeType是一个换汇数据来源类型 +///////////////////////////////////////////////////////////////////////// +///手工 +#define THOST_FTDC_SST_Manual '0' +///自动生成 +#define THOST_FTDC_SST_Automatic '1' + +typedef char TThostFtdcSwapSourceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrExDirectionType是一个换汇类型类型 +///////////////////////////////////////////////////////////////////////// +///结汇 +#define THOST_FTDC_CED_Settlement '0' +///售汇 +#define THOST_FTDC_CED_Sale '1' + +typedef char TThostFtdcCurrExDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencySwapStatusType是一个申请状态类型 +///////////////////////////////////////////////////////////////////////// +///已录入 +#define THOST_FTDC_CSS_Entry '1' +///已审核 +#define THOST_FTDC_CSS_Approve '2' +///已拒绝 +#define THOST_FTDC_CSS_Refuse '3' +///已撤销 +#define THOST_FTDC_CSS_Revoke '4' +///已发送 +#define THOST_FTDC_CSS_Send '5' +///换汇成功 +#define THOST_FTDC_CSS_Success '6' +///换汇失败 +#define THOST_FTDC_CSS_Failure '7' + +typedef char TThostFtdcCurrencySwapStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrExchCertNoType是一个凭证号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrExchCertNoType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBatchSerialNoType是一个批次号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBatchSerialNoType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReqFlagType是一个换汇发送标志类型 +///////////////////////////////////////////////////////////////////////// +///未发送 +#define THOST_FTDC_REQF_NoSend '0' +///发送成功 +#define THOST_FTDC_REQF_SendSuccess '1' +///发送失败 +#define THOST_FTDC_REQF_SendFailed '2' +///等待重发 +#define THOST_FTDC_REQF_WaitReSend '3' + +typedef char TThostFtdcReqFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcResFlagType是一个换汇返回成功标志类型 +///////////////////////////////////////////////////////////////////////// +///成功 +#define THOST_FTDC_RESF_Success '0' +///账户余额不足 +#define THOST_FTDC_RESF_InsuffiCient '1' +///交易结果未知 +#define THOST_FTDC_RESF_UnKnown '8' + +typedef char TThostFtdcResFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPageControlType是一个换汇页面控制类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPageControlType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRecordCountType是一个记录数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRecordCountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencySwapMemoType是一个换汇需确认信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencySwapMemoType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExStatusType是一个修改状态类型 +///////////////////////////////////////////////////////////////////////// +///修改前 +#define THOST_FTDC_EXS_Before '0' +///修改后 +#define THOST_FTDC_EXS_After '1' + +typedef char TThostFtdcExStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientRegionType是一个开户客户地域类型 +///////////////////////////////////////////////////////////////////////// +///国内客户 +#define THOST_FTDC_CR_Domestic '1' +///港澳台客户 +#define THOST_FTDC_CR_GMT '2' +///国外客户 +#define THOST_FTDC_CR_Foreign '3' + +typedef char TThostFtdcClientRegionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWorkPlaceType是一个工作单位类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWorkPlaceType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessPeriodType是一个经营期限类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBusinessPeriodType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWebSiteType是一个网址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWebSiteType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAIdCardTypeType是一个统一开户证件类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAIdCardTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientModeType是一个开户模式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientModeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorFullNameType是一个投资者全称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorFullNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOABrokerIDType是一个境外中介机构ID类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOABrokerIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAZipCodeType是一个邮政编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAZipCodeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAEMailType是一个电子邮箱类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAEMailType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOldCityType是一个城市类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOldCityType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCorporateIdentifiedCardNoType是一个法人代表证件号码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCorporateIdentifiedCardNoType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHasBoardType是一个是否有董事会类型 +///////////////////////////////////////////////////////////////////////// +///没有 +#define THOST_FTDC_HB_No '0' +///有 +#define THOST_FTDC_HB_Yes '1' + +typedef char TThostFtdcHasBoardType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStartModeType是一个启动模式类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_SM_Normal '1' +///应急 +#define THOST_FTDC_SM_Emerge '2' +///恢复 +#define THOST_FTDC_SM_Restore '3' + +typedef char TThostFtdcStartModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTemplateTypeType是一个模型类型类型 +///////////////////////////////////////////////////////////////////////// +///全量 +#define THOST_FTDC_TPT_Full '1' +///增量 +#define THOST_FTDC_TPT_Increment '2' +///备份 +#define THOST_FTDC_TPT_BackUp '3' + +typedef char TThostFtdcTemplateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLoginModeType是一个登录模式类型 +///////////////////////////////////////////////////////////////////////// +///交易 +#define THOST_FTDC_LM_Trade '0' +///转账 +#define THOST_FTDC_LM_Transfer '1' + +typedef char TThostFtdcLoginModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPromptTypeType是一个日历提示类型类型 +///////////////////////////////////////////////////////////////////////// +///合约上下市 +#define THOST_FTDC_CPT_Instrument '1' +///保证金分段生效 +#define THOST_FTDC_CPT_Margin '2' + +typedef char TThostFtdcPromptTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLedgerManageIDType是一个分户管理资产编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLedgerManageIDType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestVarietyType是一个投资品种类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestVarietyType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccountTypeType是一个账户类别类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankAccountTypeType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLedgerManageBankType是一个开户银行类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLedgerManageBankType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffexDepartmentNameType是一个开户营业部类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffexDepartmentNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffexDepartmentCodeType是一个营业部代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffexDepartmentCodeType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHasTrusteeType是一个是否有托管人类型 +///////////////////////////////////////////////////////////////////////// +///有 +#define THOST_FTDC_HT_Yes '1' +///没有 +#define THOST_FTDC_HT_No '0' + +typedef char TThostFtdcHasTrusteeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMemo1Type是一个说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCMemo1Type[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrCFullNameType是一个代理资产管理业务的期货公司全称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAssetmgrCFullNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrApprovalNOType是一个资产管理业务批文号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAssetmgrApprovalNOType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrMgrNameType是一个资产管理业务负责人姓名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAssetmgrMgrNameType[401]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmTypeType是一个机构类型类型 +///////////////////////////////////////////////////////////////////////// +///银行 +#define THOST_FTDC_AMT_Bank '1' +///证券公司 +#define THOST_FTDC_AMT_Securities '2' +///基金公司 +#define THOST_FTDC_AMT_Fund '3' +///保险公司 +#define THOST_FTDC_AMT_Insurance '4' +///信托公司 +#define THOST_FTDC_AMT_Trust '5' +///其他 +#define THOST_FTDC_AMT_Other '9' + +typedef char TThostFtdcAmTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCAmTypeType是一个机构类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCAmTypeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCFundIOTypeType是一个出入金类型类型 +///////////////////////////////////////////////////////////////////////// +///出入金 +#define THOST_FTDC_CFIOT_FundIO '0' +///银期换汇 +#define THOST_FTDC_CFIOT_SwapCurrency '1' + +typedef char TThostFtdcCSRCFundIOTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCusAccountTypeType是一个结算账户类型类型 +///////////////////////////////////////////////////////////////////////// +///期货结算账户 +#define THOST_FTDC_CAT_Futures '1' +///纯期货资管业务下的资管结算账户 +#define THOST_FTDC_CAT_AssetmgrFuture '2' +///综合类资管业务下的期货资管托管账户 +#define THOST_FTDC_CAT_AssetmgrTrustee '3' +///综合类资管业务下的资金中转账户 +#define THOST_FTDC_CAT_AssetmgrTransfer '4' + +typedef char TThostFtdcCusAccountTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCNationalType是一个国籍类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCNationalType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCSecAgentIDType是一个二级代理ID类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCSecAgentIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLanguageTypeType是一个通知语言类型类型 +///////////////////////////////////////////////////////////////////////// +///中文 +#define THOST_FTDC_LT_Chinese '1' +///英文 +#define THOST_FTDC_LT_English '2' + +typedef char TThostFtdcLanguageTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmAccountType是一个投资账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAmAccountType[23]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrClientTypeType是一个资产管理客户类型类型 +///////////////////////////////////////////////////////////////////////// +///个人资管客户 +#define THOST_FTDC_AMCT_Person '1' +///单位资管客户 +#define THOST_FTDC_AMCT_Organ '2' +///特殊单位资管客户 +#define THOST_FTDC_AMCT_SpecialOrgan '4' + +typedef char TThostFtdcAssetmgrClientTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrTypeType是一个投资类型类型 +///////////////////////////////////////////////////////////////////////// +///期货类 +#define THOST_FTDC_ASST_Futures '3' +///综合类 +#define THOST_FTDC_ASST_SpecialOrgan '4' + +typedef char TThostFtdcAssetmgrTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOMType是一个计量单位类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOMType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSHFEInstLifePhaseType是一个上期所合约生命周期状态类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSHFEInstLifePhaseType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSHFEProductClassType是一个产品类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSHFEProductClassType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriceDecimalType是一个价格小数位类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPriceDecimalType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInTheMoneyFlagType是一个平值期权标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInTheMoneyFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckInstrTypeType是一个合约比较类型类型 +///////////////////////////////////////////////////////////////////////// +///合约交易所不存在 +#define THOST_FTDC_CIT_HasExch '0' +///合约本系统不存在 +#define THOST_FTDC_CIT_HasATP '1' +///合约比较不一致 +#define THOST_FTDC_CIT_HasDiff '2' + +typedef char TThostFtdcCheckInstrTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDeliveryTypeType是一个交割类型类型 +///////////////////////////////////////////////////////////////////////// +///手工交割 +#define THOST_FTDC_DT_HandDeliv '1' +///到期交割 +#define THOST_FTDC_DT_PersonDeliv '2' + +typedef char TThostFtdcDeliveryTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBigMoneyType是一个资金类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcBigMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMaxMarginSideAlgorithmType是一个大额单边保证金算法类型 +///////////////////////////////////////////////////////////////////////// +///不使用大额单边保证金算法 +#define THOST_FTDC_MMSA_NO '0' +///使用大额单边保证金算法 +#define THOST_FTDC_MMSA_YES '1' + +typedef char TThostFtdcMaxMarginSideAlgorithmType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDAClientTypeType是一个资产管理客户类型类型 +///////////////////////////////////////////////////////////////////////// +///自然人 +#define THOST_FTDC_CACT_Person '0' +///法人 +#define THOST_FTDC_CACT_Company '1' +///其他 +#define THOST_FTDC_CACT_Other '2' + +typedef char TThostFtdcDAClientTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombinInstrIDType是一个套利合约代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombinInstrIDType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombinSettlePriceType是一个各腿结算价类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombinSettlePriceType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDCEPriorityType是一个优先级类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDCEPriorityType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeGroupIDType是一个成交组号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTradeGroupIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIsCheckPrepaType是一个是否校验开户可用资金类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcIsCheckPrepaType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAAssetmgrTypeType是一个投资类型类型 +///////////////////////////////////////////////////////////////////////// +///期货类 +#define THOST_FTDC_UOAAT_Futures '1' +///综合类 +#define THOST_FTDC_UOAAT_SpecialOrgan '2' + +typedef char TThostFtdcUOAAssetmgrTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDirectionEnType是一个买卖方向类型 +///////////////////////////////////////////////////////////////////////// +///Buy +#define THOST_FTDC_DEN_Buy '0' +///Sell +#define THOST_FTDC_DEN_Sell '1' + +typedef char TThostFtdcDirectionEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOffsetFlagEnType是一个开平标志类型 +///////////////////////////////////////////////////////////////////////// +///Position Opening +#define THOST_FTDC_OFEN_Open '0' +///Position Close +#define THOST_FTDC_OFEN_Close '1' +///Forced Liquidation +#define THOST_FTDC_OFEN_ForceClose '2' +///Close Today +#define THOST_FTDC_OFEN_CloseToday '3' +///Close Prev. +#define THOST_FTDC_OFEN_CloseYesterday '4' +///Forced Reduction +#define THOST_FTDC_OFEN_ForceOff '5' +///Local Forced Liquidation +#define THOST_FTDC_OFEN_LocalForceClose '6' + +typedef char TThostFtdcOffsetFlagEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHedgeFlagEnType是一个投机套保标志类型 +///////////////////////////////////////////////////////////////////////// +///Speculation +#define THOST_FTDC_HFEN_Speculation '1' +///Arbitrage +#define THOST_FTDC_HFEN_Arbitrage '2' +///Hedge +#define THOST_FTDC_HFEN_Hedge '3' + +typedef char TThostFtdcHedgeFlagEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundIOTypeEnType是一个出入金类型类型 +///////////////////////////////////////////////////////////////////////// +///Deposit/Withdrawal +#define THOST_FTDC_FIOTEN_FundIO '1' +///Bank-Futures Transfer +#define THOST_FTDC_FIOTEN_Transfer '2' +///Bank-Futures FX Exchange +#define THOST_FTDC_FIOTEN_SwapCurrency '3' + +typedef char TThostFtdcFundIOTypeEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundTypeEnType是一个资金类型类型 +///////////////////////////////////////////////////////////////////////// +///Bank Deposit +#define THOST_FTDC_FTEN_Deposite '1' +///Payment/Fee +#define THOST_FTDC_FTEN_ItemFund '2' +///Brokerage Adj +#define THOST_FTDC_FTEN_Company '3' +///Internal Transfer +#define THOST_FTDC_FTEN_InnerTransfer '4' + +typedef char TThostFtdcFundTypeEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundDirectionEnType是一个出入金方向类型 +///////////////////////////////////////////////////////////////////////// +///Deposit +#define THOST_FTDC_FDEN_In '1' +///Withdrawal +#define THOST_FTDC_FDEN_Out '2' + +typedef char TThostFtdcFundDirectionEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundMortDirectionEnType是一个货币质押方向类型 +///////////////////////////////////////////////////////////////////////// +///Pledge +#define THOST_FTDC_FMDEN_In '1' +///Redemption +#define THOST_FTDC_FMDEN_Out '2' + +typedef char TThostFtdcFundMortDirectionEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSwapBusinessTypeType是一个换汇业务种类类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSwapBusinessTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionsTypeType是一个期权类型类型 +///////////////////////////////////////////////////////////////////////// +///看涨 +#define THOST_FTDC_CP_CallOptions '1' +///看跌 +#define THOST_FTDC_CP_PutOptions '2' + +typedef char TThostFtdcOptionsTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeModeType是一个执行方式类型 +///////////////////////////////////////////////////////////////////////// +///欧式 +#define THOST_FTDC_STM_Continental '0' +///美式 +#define THOST_FTDC_STM_American '1' +///百慕大 +#define THOST_FTDC_STM_Bermuda '2' + +typedef char TThostFtdcStrikeModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeTypeType是一个执行类型类型 +///////////////////////////////////////////////////////////////////////// +///自身对冲 +#define THOST_FTDC_STT_Hedge '0' +///匹配执行 +#define THOST_FTDC_STT_Match '1' + +typedef char TThostFtdcStrikeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplyTypeType是一个中金所期权放弃执行申请类型类型 +///////////////////////////////////////////////////////////////////////// +///不执行数量 +#define THOST_FTDC_APPT_NotStrikeNum '4' + +typedef char TThostFtdcApplyTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcGiveUpDataSourceType是一个放弃执行申请数据来源类型 +///////////////////////////////////////////////////////////////////////// +///系统生成 +#define THOST_FTDC_GUDS_Gen '0' +///手工添加 +#define THOST_FTDC_GUDS_Hand '1' + +typedef char TThostFtdcGiveUpDataSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecOrderSysIDType是一个执行宣告系统编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExecOrderSysIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecResultType是一个执行结果类型 +///////////////////////////////////////////////////////////////////////// +///没有执行 +#define THOST_FTDC_OER_NoExec 'n' +///已经取消 +#define THOST_FTDC_OER_Canceled 'c' +///执行成功 +#define THOST_FTDC_OER_OK '0' +///期权持仓不够 +#define THOST_FTDC_OER_NoPosition '1' +///资金不够 +#define THOST_FTDC_OER_NoDeposit '2' +///会员不存在 +#define THOST_FTDC_OER_NoParticipant '3' +///客户不存在 +#define THOST_FTDC_OER_NoClient '4' +///合约不存在 +#define THOST_FTDC_OER_NoInstrument '6' +///没有执行权限 +#define THOST_FTDC_OER_NoRight '7' +///不合理的数量 +#define THOST_FTDC_OER_InvalidVolume '8' +///没有足够的历史成交 +#define THOST_FTDC_OER_NoEnoughHistoryTrade '9' +///未知 +#define THOST_FTDC_OER_Unknown 'a' + +typedef char TThostFtdcExecResultType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeSequenceType是一个执行序号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcStrikeSequenceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeTimeType是一个执行时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcStrikeTimeType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombinationTypeType是一个组合类型类型 +///////////////////////////////////////////////////////////////////////// +///期货组合 +#define THOST_FTDC_COMBT_Future '0' +///垂直价差BUL +#define THOST_FTDC_COMBT_BUL '1' +///垂直价差BER +#define THOST_FTDC_COMBT_BER '2' +///跨式组合 +#define THOST_FTDC_COMBT_STD '3' +///宽跨式组合 +#define THOST_FTDC_COMBT_STG '4' +///备兑组合 +#define THOST_FTDC_COMBT_PRT '5' +///时间价差组合 +#define THOST_FTDC_COMBT_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是一个组合类型类型 +///////////////////////////////////////////////////////////////////////// +///期货对锁组合 +#define THOST_FTDC_DCECOMBT_SPL '0' +///期权对锁组合 +#define THOST_FTDC_DCECOMBT_OPL '1' +///期货跨期组合 +#define THOST_FTDC_DCECOMBT_SP '2' +///期货跨品种组合 +#define THOST_FTDC_DCECOMBT_SPC '3' +///买入期权垂直价差组合 +#define THOST_FTDC_DCECOMBT_BLS '4' +///卖出期权垂直价差组合 +#define THOST_FTDC_DCECOMBT_BES '5' +///期权日历价差组合 +#define THOST_FTDC_DCECOMBT_CAS '6' +///期权跨式组合 +#define THOST_FTDC_DCECOMBT_STD '7' +///期权宽跨式组合 +#define THOST_FTDC_DCECOMBT_STG '8' +///买入期货期权组合 +#define THOST_FTDC_DCECOMBT_BFO '9' +///卖出期货期权组合 +#define THOST_FTDC_DCECOMBT_SFO 'a' + +typedef char TThostFtdcDceCombinationTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionRoyaltyPriceTypeType是一个期权权利金价格类型类型 +///////////////////////////////////////////////////////////////////////// +///昨结算价 +#define THOST_FTDC_ORPT_PreSettlementPrice '1' +///开仓价 +#define THOST_FTDC_ORPT_OpenPrice '4' +///最新价与昨结算价较大值 +#define THOST_FTDC_ORPT_MaxPreSettlementPrice '5' + +typedef char TThostFtdcOptionRoyaltyPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBalanceAlgorithmType是一个权益算法类型 +///////////////////////////////////////////////////////////////////////// +///不计算期权市值盈亏 +#define THOST_FTDC_BLAG_Default '1' +///计算期权市值亏损 +#define THOST_FTDC_BLAG_IncludeOptValLost '2' + +typedef char TThostFtdcBalanceAlgorithmType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcActionTypeType是一个执行类型类型 +///////////////////////////////////////////////////////////////////////// +///执行 +#define THOST_FTDC_ACTP_Exec '1' +///放弃 +#define THOST_FTDC_ACTP_Abandon '2' + +typedef char TThostFtdcActionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForQuoteStatusType是一个询价状态类型 +///////////////////////////////////////////////////////////////////////// +///已经提交 +#define THOST_FTDC_FQST_Submitted 'a' +///已经接受 +#define THOST_FTDC_FQST_Accepted 'b' +///已经被拒绝 +#define THOST_FTDC_FQST_Rejected 'c' + +typedef char TThostFtdcForQuoteStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcValueMethodType是一个取值方式类型 +///////////////////////////////////////////////////////////////////////// +///按绝对值 +#define THOST_FTDC_VM_Absolute '0' +///按比率 +#define THOST_FTDC_VM_Ratio '1' + +typedef char TThostFtdcValueMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecOrderPositionFlagType是一个期权行权后是否保留期货头寸的标记类型 +///////////////////////////////////////////////////////////////////////// +///保留 +#define THOST_FTDC_EOPF_Reserve '0' +///不保留 +#define THOST_FTDC_EOPF_UnReserve '1' + +typedef char TThostFtdcExecOrderPositionFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecOrderCloseFlagType是一个期权行权后生成的头寸是否自动平仓类型 +///////////////////////////////////////////////////////////////////////// +///自动平仓 +#define THOST_FTDC_EOCF_AutoClose '0' +///免于自动平仓 +#define THOST_FTDC_EOCF_NotToClose '1' + +typedef char TThostFtdcExecOrderCloseFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductTypeType是一个产品类型类型 +///////////////////////////////////////////////////////////////////////// +///期货 +#define THOST_FTDC_PTE_Futures '1' +///期权 +#define THOST_FTDC_PTE_Options '2' + +typedef char TThostFtdcProductTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCZCEUploadFileNameType是一个郑商所结算文件名类型 +///////////////////////////////////////////////////////////////////////// +///^\d{8}_zz_\d{4} +#define THOST_FTDC_CUFN_CUFN_O 'O' +///^\d{8}成交表 +#define THOST_FTDC_CUFN_CUFN_T 'T' +///^\d{8}单腿持仓表new +#define THOST_FTDC_CUFN_CUFN_P 'P' +///^\d{8}非平仓了结表 +#define THOST_FTDC_CUFN_CUFN_N 'N' +///^\d{8}平仓表 +#define THOST_FTDC_CUFN_CUFN_L 'L' +///^\d{8}资金表 +#define THOST_FTDC_CUFN_CUFN_F 'F' +///^\d{8}组合持仓表 +#define THOST_FTDC_CUFN_CUFN_C 'C' +///^\d{8}保证金参数表 +#define THOST_FTDC_CUFN_CUFN_M 'M' + +typedef char TThostFtdcCZCEUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDCEUploadFileNameType是一个大商所结算文件名类型 +///////////////////////////////////////////////////////////////////////// +///^\d{8}_dl_\d{3} +#define THOST_FTDC_DUFN_DUFN_O 'O' +///^\d{8}_成交表 +#define THOST_FTDC_DUFN_DUFN_T 'T' +///^\d{8}_持仓表 +#define THOST_FTDC_DUFN_DUFN_P 'P' +///^\d{8}_资金结算表 +#define THOST_FTDC_DUFN_DUFN_F 'F' +///^\d{8}_优惠组合持仓明细表 +#define THOST_FTDC_DUFN_DUFN_C 'C' +///^\d{8}_持仓明细表 +#define THOST_FTDC_DUFN_DUFN_D 'D' +///^\d{8}_保证金参数表 +#define THOST_FTDC_DUFN_DUFN_M 'M' +///^\d{8}_期权执行表 +#define THOST_FTDC_DUFN_DUFN_S 'S' + +typedef char TThostFtdcDCEUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSHFEUploadFileNameType是一个上期所结算文件名类型 +///////////////////////////////////////////////////////////////////////// +///^\d{4}_\d{8}_\d{8}_DailyFundChg +#define THOST_FTDC_SUFN_SUFN_O 'O' +///^\d{4}_\d{8}_\d{8}_Trade +#define THOST_FTDC_SUFN_SUFN_T 'T' +///^\d{4}_\d{8}_\d{8}_SettlementDetail +#define THOST_FTDC_SUFN_SUFN_P 'P' +///^\d{4}_\d{8}_\d{8}_Capital +#define THOST_FTDC_SUFN_SUFN_F 'F' + +typedef char TThostFtdcSHFEUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFFEXUploadFileNameType是一个中金所结算文件名类型 +///////////////////////////////////////////////////////////////////////// +///^\d{4}_SG\d{1}_\d{8}_\d{1}_Trade +#define THOST_FTDC_CFUFN_SUFN_T 'T' +///^\d{4}_SG\d{1}_\d{8}_\d{1}_SettlementDetail +#define THOST_FTDC_CFUFN_SUFN_P 'P' +///^\d{4}_SG\d{1}_\d{8}_\d{1}_Capital +#define THOST_FTDC_CFUFN_SUFN_F 'F' +///^\d{4}_SG\d{1}_\d{8}_\d{1}_OptionExec +#define THOST_FTDC_CFUFN_SUFN_S 'S' + +typedef char TThostFtdcCFFEXUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombDirectionType是一个组合指令方向类型 +///////////////////////////////////////////////////////////////////////// +///申请组合 +#define THOST_FTDC_CMDR_Comb '0' +///申请拆分 +#define THOST_FTDC_CMDR_UnComb '1' +///操作员删组合单 +#define THOST_FTDC_CMDR_DelComb '2' + +typedef char TThostFtdcCombDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeOffsetTypeType是一个行权偏移类型类型 +///////////////////////////////////////////////////////////////////////// +///实值额 +#define THOST_FTDC_STOV_RealValue '1' +///盈利额 +#define THOST_FTDC_STOV_ProfitValue '2' +///实值比例 +#define THOST_FTDC_STOV_RealRatio '3' +///盈利比例 +#define THOST_FTDC_STOV_ProfitRatio '4' + +typedef char TThostFtdcStrikeOffsetTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReserveOpenAccStasType是一个预约开户状态类型 +///////////////////////////////////////////////////////////////////////// +///等待处理中 +#define THOST_FTDC_ROAST_Processing '0' +///已撤销 +#define THOST_FTDC_ROAST_Cancelled '1' +///已开户 +#define THOST_FTDC_ROAST_Opened '2' +///无效请求 +#define THOST_FTDC_ROAST_Invalid '3' + +typedef char TThostFtdcReserveOpenAccStasType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLoginRemarkType是一个登录备注类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLoginRemarkType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestUnitIDType是一个投资单元代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestUnitIDType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBulletinIDType是一个公告编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcBulletinIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNewsTypeType是一个公告类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNewsTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNewsUrgencyType是一个紧急程度类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNewsUrgencyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAbstractType是一个消息摘要类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAbstractType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcComeFromType是一个消息来源类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcComeFromType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcURLLinkType是一个WEB地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcURLLinkType[201]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLongIndividualNameType是一个长个人姓名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongIndividualNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLongFBEBankAccountNameType是一个长换汇银行账户名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongFBEBankAccountNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateTimeType是一个日期时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateTimeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWeakPasswordSourceType是一个弱密码来源类型 +///////////////////////////////////////////////////////////////////////// +///弱密码库 +#define THOST_FTDC_WPSR_Lib '1' +///手工录入 +#define THOST_FTDC_WPSR_Manual '2' + +typedef char TThostFtdcWeakPasswordSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRandomStringType是一个随机串类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRandomStringType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptSelfCloseFlagType是一个期权行权的头寸是否自对冲类型 +///////////////////////////////////////////////////////////////////////// +///自对冲期权仓位 +#define THOST_FTDC_OSCF_CloseSelfOptionPosition '1' +///保留期权仓位 +#define THOST_FTDC_OSCF_ReserveOptionPosition '2' +///自对冲卖方履约后的期货仓位 +#define THOST_FTDC_OSCF_SellCloseSelfFuturePosition '3' +///保留卖方履约后的期货仓位 +#define THOST_FTDC_OSCF_ReserveFuturePosition '4' + +typedef char TThostFtdcOptSelfCloseFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBizTypeType是一个业务类型类型 +///////////////////////////////////////////////////////////////////////// +///期货 +#define THOST_FTDC_BZTP_Future '1' +///证券 +#define THOST_FTDC_BZTP_Stock '2' + +typedef char TThostFtdcBizTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAppTypeType是一个用户App类型类型 +///////////////////////////////////////////////////////////////////////// +///直连的投资者 +#define THOST_FTDC_APP_TYPE_Investor '1' +///为每个投资者都创建连接的中继 +#define THOST_FTDC_APP_TYPE_InvestorRelay '2' +///所有投资者共享一个操作员连接的中继 +#define THOST_FTDC_APP_TYPE_OperatorRelay '3' +///未知 +#define THOST_FTDC_APP_TYPE_UnKnown '4' + +typedef char TThostFtdcAppTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAppIDType是一个App代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAppIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemInfoLenType是一个系统信息长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSystemInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdditionalInfoLenType是一个补充信息长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcAdditionalInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientSystemInfoType是一个交易终端系统信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientSystemInfoType[273]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdditionalInfoType是一个系统外部信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAdditionalInfoType[261]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBase64ClientSystemInfoType是一个base64交易终端系统信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBase64ClientSystemInfoType[365]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBase64AdditionalInfoType是一个base64系统外部信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBase64AdditionalInfoType[349]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrentAuthMethodType是一个当前可用的认证模式,0代表无需认证模式 A从低位开始最后一位代表图片验证码,倒数第二位代表动态口令,倒数第三位代表短信验证码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCurrentAuthMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCaptchaInfoLenType是一个图片验证信息长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCaptchaInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCaptchaInfoType是一个图片验证信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCaptchaInfoType[2561]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserTextSeqType是一个用户短信验证码的编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcUserTextSeqType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandshakeDataType是一个握手数据内容类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcHandshakeDataType[301]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandshakeDataLenType是一个握手数据内容长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcHandshakeDataLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCryptoKeyVersionType是一个api与front通信密钥版本号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCryptoKeyVersionType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRsaKeyVersionType是一个公钥版本号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRsaKeyVersionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSoftwareProviderIDType是一个交易软件商ID类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSoftwareProviderIDType[22]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCollectTimeType是一个信息采集时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCollectTimeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryFreqType是一个查询频率类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcQueryFreqType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcResponseValueType是一个应答类型类型 +///////////////////////////////////////////////////////////////////////// +///检查成功 +#define THOST_FTDC_RV_Right '0' +///检查失败 +#define THOST_FTDC_RV_Refuse '1' + +typedef char TThostFtdcResponseValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTCTradeTypeType是一个OTC成交类型类型 +///////////////////////////////////////////////////////////////////////// +///大宗交易 +#define THOST_FTDC_OTC_TRDT_Block '0' +///期转现 +#define THOST_FTDC_OTC_TRDT_EFP '1' + +typedef char TThostFtdcOTCTradeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMatchTypeType是一个期现风险匹配方式类型 +///////////////////////////////////////////////////////////////////////// +///基点价值 +#define THOST_FTDC_OTC_MT_DV01 '1' +///面值 +#define THOST_FTDC_OTC_MT_ParValue '2' + +typedef char TThostFtdcMatchTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTCTraderIDType是一个OTC交易员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTCTraderIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskValueType是一个期货风险值类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcRiskValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIDBNameType是一个握手数据内容类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIDBNameType[100]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDiscountRatioType是一个折扣率类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcDiscountRatioType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthTypeType是一个用户终端认证方式类型 +///////////////////////////////////////////////////////////////////////// +///白名单校验 +#define THOST_FTDC_AU_WHITE '0' +///黑名单校验 +#define THOST_FTDC_AU_BLACK '1' + +typedef char TThostFtdcAuthTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClassTypeType是一个合约分类方式类型 +///////////////////////////////////////////////////////////////////////// +///所有合约 +#define THOST_FTDC_INS_ALL '0' +///期货、即期、期转现、Tas、金属指数合约 +#define THOST_FTDC_INS_FUTURE '1' +///期货、现货期权合约 +#define THOST_FTDC_INS_OPTION '2' +///组合合约 +#define THOST_FTDC_INS_COMB '3' + +typedef char TThostFtdcClassTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingTypeType是一个合约交易状态分类方式类型 +///////////////////////////////////////////////////////////////////////// +///所有状态 +#define THOST_FTDC_TD_ALL '0' +///交易 +#define THOST_FTDC_TD_TRADE '1' +///非交易 +#define THOST_FTDC_TD_UNTRADE '2' + +typedef char TThostFtdcTradingTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductStatusType是一个产品状态类型 +///////////////////////////////////////////////////////////////////////// +///可交易 +#define THOST_FTDC_PS_tradeable '1' +///不可交易 +#define THOST_FTDC_PS_untradeable '2' + +typedef char TThostFtdcProductStatusType; + +///////////////////////////////////////////////////////////////////////// +///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是一个操作标志类型 +///////////////////////////////////////////////////////////////////////// +///增加 +#define THOST_FTDC_ACD_Add '1' +///删除 +#define THOST_FTDC_ACD_Del '2' +///更新 +#define THOST_FTDC_ACD_Upd '3' + +typedef char TThostFtdcActionDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderCancelAlgType是一个撤单时选择席位算法类型 +///////////////////////////////////////////////////////////////////////// +///轮询席位撤单 +#define THOST_FTDC_OAC_Balance '1' +///优先原报单席位撤单 +#define THOST_FTDC_OAC_OrigFirst '2' + +typedef char TThostFtdcOrderCancelAlgType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncDescriptionType是一个追平描述类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSyncDescriptionType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommonIntType是一个通用int类型类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCommonIntType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysVersionType是一个系统版本类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSysVersionType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenLimitControlLevelType是一个开仓量限制粒度类型 +///////////////////////////////////////////////////////////////////////// +///不控制 +#define THOST_FTDC_PLCL_None '0' +///产品级别 +#define THOST_FTDC_PLCL_Product '1' +///合约级别 +#define THOST_FTDC_PLCL_Inst '2' + +typedef char TThostFtdcOpenLimitControlLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderFreqControlLevelType是一个报单频率控制粒度类型 +///////////////////////////////////////////////////////////////////////// +///不控制 +#define THOST_FTDC_OFCL_None '0' +///产品级别 +#define THOST_FTDC_OFCL_Product '1' +///合约级别 +#define THOST_FTDC_OFCL_Inst '2' + +typedef char TThostFtdcOrderFreqControlLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumBoolType是一个枚举bool类型类型 +///////////////////////////////////////////////////////////////////////// +///false +#define THOST_FTDC_EBL_False '0' +///true +#define THOST_FTDC_EBL_True '1' + +typedef char TThostFtdcEnumBoolType; + +///////////////////////////////////////////////////////////////////////// +///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类型类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcDeltaType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSpreadIdType是一个抵扣组优先级类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSpreadIdType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPortfolioType是一个新型组保算法类型 +///////////////////////////////////////////////////////////////////////// +///不使用新型组保算法 +#define THOST_FTDC_EPF_None '0' +///SPBM算法 +#define THOST_FTDC_EPF_SPBM '1' + +typedef char TThostFtdcPortfolioType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPortfolioDefIDType是一个SPBM组合套餐ID类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcPortfolioDefIDType; + +#endif diff --git a/CTPAPI6.6.9/ThostFtdcUserApiStruct.h b/CTPAPI6.6.9/ThostFtdcUserApiStruct.h new file mode 100644 index 0000000..f2076df --- /dev/null +++ b/CTPAPI6.6.9/ThostFtdcUserApiStruct.h @@ -0,0 +1,11195 @@ +///////////////////////////////////////////////////////////////////////// +///@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/CTPAPI6.6.9/error.dtd b/CTPAPI6.6.9/error.dtd new file mode 100644 index 0000000..15e50b7 --- /dev/null +++ b/CTPAPI6.6.9/error.dtd @@ -0,0 +1,9 @@ + + + + + diff --git a/CTPAPI6.6.9/error.xml b/CTPAPI6.6.9/error.xml new file mode 100644 index 0000000..552d79c --- /dev/null +++ b/CTPAPI6.6.9/error.xml @@ -0,0 +1,271 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +~ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CTPAPI6.6.9/generated/CTPMd.cpp b/CTPAPI6.6.9/generated/CTPMd.cpp new file mode 100644 index 0000000..bfec027 --- /dev/null +++ b/CTPAPI6.6.9/generated/CTPMd.cpp @@ -0,0 +1,262 @@ +//由 generator生成的文件,不要手工修改 + +#include "ThostFtdcMdApi.h" + +#ifndef CTPSHARP_STDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define CTPSHARP_STDCALL __stdcall +# else +# define CTPSHARP_STDCALL +# endif +#endif + +#ifndef CTPSHARP_EXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define CTPSHARP_EXPORT +# else +# define CTPSHARP_EXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define CTPSHARP_EXPORT __attribute__ ((visibility("default"))) +# else +# define CTPSHARP_EXPORT +# endif +# endif +#endif + +struct CTPSharp_CThostFtdcMdSpi +{ + void (CTPSHARP_STDCALL *OnFrontConnected)(); + void (CTPSHARP_STDCALL *OnFrontDisconnected)(int nReason); + void (CTPSHARP_STDCALL *OnHeartBeatWarning)(int nTimeLapse); + void (CTPSHARP_STDCALL *OnRspUserLogin)(CThostFtdcRspUserLoginField* pRspUserLogin,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspUserLogout)(CThostFtdcUserLogoutField* pUserLogout,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryMulticastInstrument)(CThostFtdcMulticastInstrumentField* pMulticastInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspError)(CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspSubMarketData)(CThostFtdcSpecificInstrumentField* pSpecificInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspUnSubMarketData)(CThostFtdcSpecificInstrumentField* pSpecificInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspSubForQuoteRsp)(CThostFtdcSpecificInstrumentField* pSpecificInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspUnSubForQuoteRsp)(CThostFtdcSpecificInstrumentField* pSpecificInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRtnDepthMarketData)(CThostFtdcDepthMarketDataField* pDepthMarketData); + void (CTPSHARP_STDCALL *OnRtnForQuoteRsp)(CThostFtdcForQuoteRspField* pForQuoteRsp); +}; +class CThostFtdcMdSpi_Ex: public CThostFtdcMdSpi +{ + CTPSharp_CThostFtdcMdSpi _callbacks; +public: + CThostFtdcMdSpi_Ex(const CTPSharp_CThostFtdcMdSpi* callbacks){ _callbacks = *callbacks; } + virtual void OnFrontConnected() + { + _callbacks.OnFrontConnected(); + } + + virtual void OnFrontDisconnected(int nReason) + { + _callbacks.OnFrontDisconnected(nReason); + } + + virtual void OnHeartBeatWarning(int nTimeLapse) + { + _callbacks.OnHeartBeatWarning(nTimeLapse); + } + + virtual void OnRspUserLogin(CThostFtdcRspUserLoginField* pRspUserLogin,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pRspUserLogin 回调 C# 参数 不能为 NULL + CThostFtdcRspUserLoginField zero0 = {0}; + if (!pRspUserLogin) pRspUserLogin = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspUserLogin(pRspUserLogin,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspUserLogout(CThostFtdcUserLogoutField* pUserLogout,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pUserLogout 回调 C# 参数 不能为 NULL + CThostFtdcUserLogoutField zero0 = {0}; + if (!pUserLogout) pUserLogout = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspUserLogout(pUserLogout,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryMulticastInstrument(CThostFtdcMulticastInstrumentField* pMulticastInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pMulticastInstrument 回调 C# 参数 不能为 NULL + CThostFtdcMulticastInstrumentField zero0 = {0}; + if (!pMulticastInstrument) pMulticastInstrument = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryMulticastInstrument(pMulticastInstrument,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspError(CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero0 = {0}; + if (!pRspInfo) pRspInfo = &zero0; + _callbacks.OnRspError(pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspSubMarketData(CThostFtdcSpecificInstrumentField* pSpecificInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSpecificInstrument 回调 C# 参数 不能为 NULL + CThostFtdcSpecificInstrumentField zero0 = {0}; + if (!pSpecificInstrument) pSpecificInstrument = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspSubMarketData(pSpecificInstrument,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField* pSpecificInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSpecificInstrument 回调 C# 参数 不能为 NULL + CThostFtdcSpecificInstrumentField zero0 = {0}; + if (!pSpecificInstrument) pSpecificInstrument = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspUnSubMarketData(pSpecificInstrument,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspSubForQuoteRsp(CThostFtdcSpecificInstrumentField* pSpecificInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSpecificInstrument 回调 C# 参数 不能为 NULL + CThostFtdcSpecificInstrumentField zero0 = {0}; + if (!pSpecificInstrument) pSpecificInstrument = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspSubForQuoteRsp(pSpecificInstrument,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspUnSubForQuoteRsp(CThostFtdcSpecificInstrumentField* pSpecificInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSpecificInstrument 回调 C# 参数 不能为 NULL + CThostFtdcSpecificInstrumentField zero0 = {0}; + if (!pSpecificInstrument) pSpecificInstrument = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspUnSubForQuoteRsp(pSpecificInstrument,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField* pDepthMarketData) + { + //pDepthMarketData 回调 C# 参数 不能为 NULL + CThostFtdcDepthMarketDataField zero0 = {0}; + if (!pDepthMarketData) pDepthMarketData = &zero0; + _callbacks.OnRtnDepthMarketData(pDepthMarketData); + } + + virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField* pForQuoteRsp) + { + //pForQuoteRsp 回调 C# 参数 不能为 NULL + CThostFtdcForQuoteRspField zero0 = {0}; + if (!pForQuoteRsp) pForQuoteRsp = &zero0; + _callbacks.OnRtnForQuoteRsp(pForQuoteRsp); + } + +}; +extern "C" +CTPSHARP_EXPORT void* CTPSHARP_STDCALL CThostFtdcMdSpi_New(const CTPSharp_CThostFtdcMdSpi* callbacks) +{ + return new CThostFtdcMdSpi_Ex(callbacks); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcMdSpi_Delete(void* spi) +{ + delete (CThostFtdcMdSpi_Ex*)spi; +} +extern "C" +CTPSHARP_EXPORT CThostFtdcMdApi* CTPSHARP_STDCALL CThostFtdcMdApi_Create(const char* pszFlowPath,const bool bIsUsingUdp,const bool bIsMulticast) +{ + return CThostFtdcMdApi::CreateFtdcMdApi(pszFlowPath,bIsUsingUdp,bIsMulticast); +} +extern "C" +CTPSHARP_EXPORT const char* CTPSHARP_STDCALL CThostFtdcMdApi_GetApiVersion() +{ + return CThostFtdcMdApi::GetApiVersion(); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcMdApi_Release(CThostFtdcMdApi* api) +{ + api->Release(); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcMdApi_Init(CThostFtdcMdApi* api) +{ + api->Init(); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcMdApi_Join(CThostFtdcMdApi* api) +{ + return api->Join(); +} +extern "C" +CTPSHARP_EXPORT const char* CTPSHARP_STDCALL CThostFtdcMdApi_GetTradingDay(CThostFtdcMdApi* api) +{ + return api->GetTradingDay(); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcMdApi_RegisterFront(CThostFtdcMdApi * api,char* pszFrontAddress) +{ + api->RegisterFront(pszFrontAddress); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcMdApi_RegisterNameServer(CThostFtdcMdApi * api,char* pszNsAddress) +{ + api->RegisterNameServer(pszNsAddress); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcMdApi_RegisterFensUserInfo(CThostFtdcMdApi * api,CThostFtdcFensUserInfoField* pFensUserInfo) +{ + api->RegisterFensUserInfo(pFensUserInfo); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcMdApi_RegisterSpi(CThostFtdcMdApi * api,CThostFtdcMdSpi* pSpi) +{ + api->RegisterSpi(pSpi); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcMdApi_SubscribeMarketData(CThostFtdcMdApi * api,char** ppInstrumentID,int nCount) +{ + return api->SubscribeMarketData(ppInstrumentID,nCount); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcMdApi_UnSubscribeMarketData(CThostFtdcMdApi * api,char** ppInstrumentID,int nCount) +{ + return api->UnSubscribeMarketData(ppInstrumentID,nCount); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcMdApi_SubscribeForQuoteRsp(CThostFtdcMdApi * api,char** ppInstrumentID,int nCount) +{ + return api->SubscribeForQuoteRsp(ppInstrumentID,nCount); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcMdApi_UnSubscribeForQuoteRsp(CThostFtdcMdApi * api,char** ppInstrumentID,int nCount) +{ + return api->UnSubscribeForQuoteRsp(ppInstrumentID,nCount); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcMdApi_ReqUserLogin(CThostFtdcMdApi * api,CThostFtdcReqUserLoginField* pReqUserLoginField,int nRequestID) +{ + return api->ReqUserLogin(pReqUserLoginField,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcMdApi_ReqUserLogout(CThostFtdcMdApi * api,CThostFtdcUserLogoutField* pUserLogout,int nRequestID) +{ + return api->ReqUserLogout(pUserLogout,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcMdApi_ReqQryMulticastInstrument(CThostFtdcMdApi * api,CThostFtdcQryMulticastInstrumentField* pQryMulticastInstrument,int nRequestID) +{ + return api->ReqQryMulticastInstrument(pQryMulticastInstrument,nRequestID); +} + diff --git a/CTPAPI6.6.9/generated/CTPTd.cpp b/CTPAPI6.6.9/generated/CTPTd.cpp new file mode 100644 index 0000000..c940e47 --- /dev/null +++ b/CTPAPI6.6.9/generated/CTPTd.cpp @@ -0,0 +1,2150 @@ +//由 generator生成的文件,不要手工修改 + +#include "ThostFtdcTraderApi.h" + +#ifndef CTPSHARP_STDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define CTPSHARP_STDCALL __stdcall +# else +# define CTPSHARP_STDCALL +# endif +#endif + +#ifndef CTPSHARP_EXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define CTPSHARP_EXPORT +# else +# define CTPSHARP_EXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define CTPSHARP_EXPORT __attribute__ ((visibility("default"))) +# else +# define CTPSHARP_EXPORT +# endif +# endif +#endif + +struct CTPSharp_CThostFtdcTraderSpi +{ + void (CTPSHARP_STDCALL *OnFrontConnected)(); + void (CTPSHARP_STDCALL *OnFrontDisconnected)(int nReason); + void (CTPSHARP_STDCALL *OnHeartBeatWarning)(int nTimeLapse); + void (CTPSHARP_STDCALL *OnRspAuthenticate)(CThostFtdcRspAuthenticateField* pRspAuthenticateField,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspUserLogin)(CThostFtdcRspUserLoginField* pRspUserLogin,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspUserLogout)(CThostFtdcUserLogoutField* pUserLogout,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspUserPasswordUpdate)(CThostFtdcUserPasswordUpdateField* pUserPasswordUpdate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspTradingAccountPasswordUpdate)(CThostFtdcTradingAccountPasswordUpdateField* pTradingAccountPasswordUpdate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspUserAuthMethod)(CThostFtdcRspUserAuthMethodField* pRspUserAuthMethod,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspGenUserCaptcha)(CThostFtdcRspGenUserCaptchaField* pRspGenUserCaptcha,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspGenUserText)(CThostFtdcRspGenUserTextField* pRspGenUserText,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspOrderInsert)(CThostFtdcInputOrderField* pInputOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspParkedOrderInsert)(CThostFtdcParkedOrderField* pParkedOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspParkedOrderAction)(CThostFtdcParkedOrderActionField* pParkedOrderAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspOrderAction)(CThostFtdcInputOrderActionField* pInputOrderAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryMaxOrderVolume)(CThostFtdcQryMaxOrderVolumeField* pQryMaxOrderVolume,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspSettlementInfoConfirm)(CThostFtdcSettlementInfoConfirmField* pSettlementInfoConfirm,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspRemoveParkedOrder)(CThostFtdcRemoveParkedOrderField* pRemoveParkedOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspRemoveParkedOrderAction)(CThostFtdcRemoveParkedOrderActionField* pRemoveParkedOrderAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspExecOrderInsert)(CThostFtdcInputExecOrderField* pInputExecOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspExecOrderAction)(CThostFtdcInputExecOrderActionField* pInputExecOrderAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspForQuoteInsert)(CThostFtdcInputForQuoteField* pInputForQuote,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQuoteInsert)(CThostFtdcInputQuoteField* pInputQuote,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQuoteAction)(CThostFtdcInputQuoteActionField* pInputQuoteAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspBatchOrderAction)(CThostFtdcInputBatchOrderActionField* pInputBatchOrderAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspOptionSelfCloseInsert)(CThostFtdcInputOptionSelfCloseField* pInputOptionSelfClose,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspOptionSelfCloseAction)(CThostFtdcInputOptionSelfCloseActionField* pInputOptionSelfCloseAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspCombActionInsert)(CThostFtdcInputCombActionField* pInputCombAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryOrder)(CThostFtdcOrderField* pOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryTrade)(CThostFtdcTradeField* pTrade,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryInvestorPosition)(CThostFtdcInvestorPositionField* pInvestorPosition,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryTradingAccount)(CThostFtdcTradingAccountField* pTradingAccount,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryInvestor)(CThostFtdcInvestorField* pInvestor,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryTradingCode)(CThostFtdcTradingCodeField* pTradingCode,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryInstrumentMarginRate)(CThostFtdcInstrumentMarginRateField* pInstrumentMarginRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryInstrumentCommissionRate)(CThostFtdcInstrumentCommissionRateField* pInstrumentCommissionRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryExchange)(CThostFtdcExchangeField* pExchange,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryProduct)(CThostFtdcProductField* pProduct,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryInstrument)(CThostFtdcInstrumentField* pInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryDepthMarketData)(CThostFtdcDepthMarketDataField* pDepthMarketData,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryTraderOffer)(CThostFtdcTraderOfferField* pTraderOffer,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQrySettlementInfo)(CThostFtdcSettlementInfoField* pSettlementInfo,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryTransferBank)(CThostFtdcTransferBankField* pTransferBank,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryInvestorPositionDetail)(CThostFtdcInvestorPositionDetailField* pInvestorPositionDetail,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryNotice)(CThostFtdcNoticeField* pNotice,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQrySettlementInfoConfirm)(CThostFtdcSettlementInfoConfirmField* pSettlementInfoConfirm,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryInvestorPositionCombineDetail)(CThostFtdcInvestorPositionCombineDetailField* pInvestorPositionCombineDetail,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryCFMMCTradingAccountKey)(CThostFtdcCFMMCTradingAccountKeyField* pCFMMCTradingAccountKey,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryEWarrantOffset)(CThostFtdcEWarrantOffsetField* pEWarrantOffset,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryInvestorProductGroupMargin)(CThostFtdcInvestorProductGroupMarginField* pInvestorProductGroupMargin,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryExchangeMarginRate)(CThostFtdcExchangeMarginRateField* pExchangeMarginRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryExchangeMarginRateAdjust)(CThostFtdcExchangeMarginRateAdjustField* pExchangeMarginRateAdjust,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryExchangeRate)(CThostFtdcExchangeRateField* pExchangeRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQrySecAgentACIDMap)(CThostFtdcSecAgentACIDMapField* pSecAgentACIDMap,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryProductExchRate)(CThostFtdcProductExchRateField* pProductExchRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryProductGroup)(CThostFtdcProductGroupField* pProductGroup,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryMMInstrumentCommissionRate)(CThostFtdcMMInstrumentCommissionRateField* pMMInstrumentCommissionRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryMMOptionInstrCommRate)(CThostFtdcMMOptionInstrCommRateField* pMMOptionInstrCommRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryInstrumentOrderCommRate)(CThostFtdcInstrumentOrderCommRateField* pInstrumentOrderCommRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQrySecAgentTradingAccount)(CThostFtdcTradingAccountField* pTradingAccount,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQrySecAgentCheckMode)(CThostFtdcSecAgentCheckModeField* pSecAgentCheckMode,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQrySecAgentTradeInfo)(CThostFtdcSecAgentTradeInfoField* pSecAgentTradeInfo,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryOptionInstrTradeCost)(CThostFtdcOptionInstrTradeCostField* pOptionInstrTradeCost,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryOptionInstrCommRate)(CThostFtdcOptionInstrCommRateField* pOptionInstrCommRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryExecOrder)(CThostFtdcExecOrderField* pExecOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryForQuote)(CThostFtdcForQuoteField* pForQuote,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryQuote)(CThostFtdcQuoteField* pQuote,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryOptionSelfClose)(CThostFtdcOptionSelfCloseField* pOptionSelfClose,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryInvestUnit)(CThostFtdcInvestUnitField* pInvestUnit,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryCombInstrumentGuard)(CThostFtdcCombInstrumentGuardField* pCombInstrumentGuard,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryCombAction)(CThostFtdcCombActionField* pCombAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryTransferSerial)(CThostFtdcTransferSerialField* pTransferSerial,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryAccountregister)(CThostFtdcAccountregisterField* pAccountregister,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspError)(CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRtnOrder)(CThostFtdcOrderField* pOrder); + void (CTPSHARP_STDCALL *OnRtnTrade)(CThostFtdcTradeField* pTrade); + void (CTPSHARP_STDCALL *OnErrRtnOrderInsert)(CThostFtdcInputOrderField* pInputOrder,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnErrRtnOrderAction)(CThostFtdcOrderActionField* pOrderAction,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnRtnInstrumentStatus)(CThostFtdcInstrumentStatusField* pInstrumentStatus); + void (CTPSHARP_STDCALL *OnRtnBulletin)(CThostFtdcBulletinField* pBulletin); + void (CTPSHARP_STDCALL *OnRtnTradingNotice)(CThostFtdcTradingNoticeInfoField* pTradingNoticeInfo); + void (CTPSHARP_STDCALL *OnRtnErrorConditionalOrder)(CThostFtdcErrorConditionalOrderField* pErrorConditionalOrder); + void (CTPSHARP_STDCALL *OnRtnExecOrder)(CThostFtdcExecOrderField* pExecOrder); + void (CTPSHARP_STDCALL *OnErrRtnExecOrderInsert)(CThostFtdcInputExecOrderField* pInputExecOrder,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnErrRtnExecOrderAction)(CThostFtdcExecOrderActionField* pExecOrderAction,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnErrRtnForQuoteInsert)(CThostFtdcInputForQuoteField* pInputForQuote,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnRtnQuote)(CThostFtdcQuoteField* pQuote); + void (CTPSHARP_STDCALL *OnErrRtnQuoteInsert)(CThostFtdcInputQuoteField* pInputQuote,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnErrRtnQuoteAction)(CThostFtdcQuoteActionField* pQuoteAction,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnRtnForQuoteRsp)(CThostFtdcForQuoteRspField* pForQuoteRsp); + void (CTPSHARP_STDCALL *OnRtnCFMMCTradingAccountToken)(CThostFtdcCFMMCTradingAccountTokenField* pCFMMCTradingAccountToken); + void (CTPSHARP_STDCALL *OnErrRtnBatchOrderAction)(CThostFtdcBatchOrderActionField* pBatchOrderAction,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnRtnOptionSelfClose)(CThostFtdcOptionSelfCloseField* pOptionSelfClose); + void (CTPSHARP_STDCALL *OnErrRtnOptionSelfCloseInsert)(CThostFtdcInputOptionSelfCloseField* pInputOptionSelfClose,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnErrRtnOptionSelfCloseAction)(CThostFtdcOptionSelfCloseActionField* pOptionSelfCloseAction,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnRtnCombAction)(CThostFtdcCombActionField* pCombAction); + void (CTPSHARP_STDCALL *OnErrRtnCombActionInsert)(CThostFtdcInputCombActionField* pInputCombAction,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnRspQryContractBank)(CThostFtdcContractBankField* pContractBank,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryParkedOrder)(CThostFtdcParkedOrderField* pParkedOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryParkedOrderAction)(CThostFtdcParkedOrderActionField* pParkedOrderAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryTradingNotice)(CThostFtdcTradingNoticeField* pTradingNotice,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryBrokerTradingParams)(CThostFtdcBrokerTradingParamsField* pBrokerTradingParams,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryBrokerTradingAlgos)(CThostFtdcBrokerTradingAlgosField* pBrokerTradingAlgos,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQueryCFMMCTradingAccountToken)(CThostFtdcQueryCFMMCTradingAccountTokenField* pQueryCFMMCTradingAccountToken,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRtnFromBankToFutureByBank)(CThostFtdcRspTransferField* pRspTransfer); + void (CTPSHARP_STDCALL *OnRtnFromFutureToBankByBank)(CThostFtdcRspTransferField* pRspTransfer); + void (CTPSHARP_STDCALL *OnRtnRepealFromBankToFutureByBank)(CThostFtdcRspRepealField* pRspRepeal); + void (CTPSHARP_STDCALL *OnRtnRepealFromFutureToBankByBank)(CThostFtdcRspRepealField* pRspRepeal); + void (CTPSHARP_STDCALL *OnRtnFromBankToFutureByFuture)(CThostFtdcRspTransferField* pRspTransfer); + void (CTPSHARP_STDCALL *OnRtnFromFutureToBankByFuture)(CThostFtdcRspTransferField* pRspTransfer); + void (CTPSHARP_STDCALL *OnRtnRepealFromBankToFutureByFutureManual)(CThostFtdcRspRepealField* pRspRepeal); + void (CTPSHARP_STDCALL *OnRtnRepealFromFutureToBankByFutureManual)(CThostFtdcRspRepealField* pRspRepeal); + void (CTPSHARP_STDCALL *OnRtnQueryBankBalanceByFuture)(CThostFtdcNotifyQueryAccountField* pNotifyQueryAccount); + void (CTPSHARP_STDCALL *OnErrRtnBankToFutureByFuture)(CThostFtdcReqTransferField* pReqTransfer,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnErrRtnFutureToBankByFuture)(CThostFtdcReqTransferField* pReqTransfer,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnErrRtnRepealBankToFutureByFutureManual)(CThostFtdcReqRepealField* pReqRepeal,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnErrRtnRepealFutureToBankByFutureManual)(CThostFtdcReqRepealField* pReqRepeal,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnErrRtnQueryBankBalanceByFuture)(CThostFtdcReqQueryAccountField* pReqQueryAccount,CThostFtdcRspInfoField* pRspInfo); + void (CTPSHARP_STDCALL *OnRtnRepealFromBankToFutureByFuture)(CThostFtdcRspRepealField* pRspRepeal); + void (CTPSHARP_STDCALL *OnRtnRepealFromFutureToBankByFuture)(CThostFtdcRspRepealField* pRspRepeal); + void (CTPSHARP_STDCALL *OnRspFromBankToFutureByFuture)(CThostFtdcReqTransferField* pReqTransfer,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspFromFutureToBankByFuture)(CThostFtdcReqTransferField* pReqTransfer,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQueryBankAccountMoneyByFuture)(CThostFtdcReqQueryAccountField* pReqQueryAccount,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRtnOpenAccountByBank)(CThostFtdcOpenAccountField* pOpenAccount); + void (CTPSHARP_STDCALL *OnRtnCancelAccountByBank)(CThostFtdcCancelAccountField* pCancelAccount); + void (CTPSHARP_STDCALL *OnRtnChangeAccountByBank)(CThostFtdcChangeAccountField* pChangeAccount); + void (CTPSHARP_STDCALL *OnRspQryClassifiedInstrument)(CThostFtdcInstrumentField* pInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryCombPromotionParam)(CThostFtdcCombPromotionParamField* pCombPromotionParam,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryRiskSettleInvstPosition)(CThostFtdcRiskSettleInvstPositionField* pRiskSettleInvstPosition,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryRiskSettleProductStatus)(CThostFtdcRiskSettleProductStatusField* pRiskSettleProductStatus,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQrySPBMFutureParameter)(CThostFtdcSPBMFutureParameterField* pSPBMFutureParameter,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQrySPBMOptionParameter)(CThostFtdcSPBMOptionParameterField* pSPBMOptionParameter,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQrySPBMIntraParameter)(CThostFtdcSPBMIntraParameterField* pSPBMIntraParameter,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQrySPBMInterParameter)(CThostFtdcSPBMInterParameterField* pSPBMInterParameter,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQrySPBMPortfDefinition)(CThostFtdcSPBMPortfDefinitionField* pSPBMPortfDefinition,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQrySPBMInvestorPortfDef)(CThostFtdcSPBMInvestorPortfDefField* pSPBMInvestorPortfDef,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryInvestorPortfMarginRatio)(CThostFtdcInvestorPortfMarginRatioField* pInvestorPortfMarginRatio,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); + void (CTPSHARP_STDCALL *OnRspQryInvestorProdSPBMDetail)(CThostFtdcInvestorProdSPBMDetailField* pInvestorProdSPBMDetail,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast); +}; +class CThostFtdcTraderSpi_Ex: public CThostFtdcTraderSpi +{ + CTPSharp_CThostFtdcTraderSpi _callbacks; +public: + CThostFtdcTraderSpi_Ex(const CTPSharp_CThostFtdcTraderSpi* callbacks){ _callbacks = *callbacks; } + virtual void OnFrontConnected() + { + _callbacks.OnFrontConnected(); + } + + virtual void OnFrontDisconnected(int nReason) + { + _callbacks.OnFrontDisconnected(nReason); + } + + virtual void OnHeartBeatWarning(int nTimeLapse) + { + _callbacks.OnHeartBeatWarning(nTimeLapse); + } + + virtual void OnRspAuthenticate(CThostFtdcRspAuthenticateField* pRspAuthenticateField,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pRspAuthenticateField 回调 C# 参数 不能为 NULL + CThostFtdcRspAuthenticateField zero0 = {0}; + if (!pRspAuthenticateField) pRspAuthenticateField = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspAuthenticate(pRspAuthenticateField,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspUserLogin(CThostFtdcRspUserLoginField* pRspUserLogin,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pRspUserLogin 回调 C# 参数 不能为 NULL + CThostFtdcRspUserLoginField zero0 = {0}; + if (!pRspUserLogin) pRspUserLogin = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspUserLogin(pRspUserLogin,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspUserLogout(CThostFtdcUserLogoutField* pUserLogout,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pUserLogout 回调 C# 参数 不能为 NULL + CThostFtdcUserLogoutField zero0 = {0}; + if (!pUserLogout) pUserLogout = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspUserLogout(pUserLogout,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspUserPasswordUpdate(CThostFtdcUserPasswordUpdateField* pUserPasswordUpdate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pUserPasswordUpdate 回调 C# 参数 不能为 NULL + CThostFtdcUserPasswordUpdateField zero0 = {0}; + if (!pUserPasswordUpdate) pUserPasswordUpdate = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspUserPasswordUpdate(pUserPasswordUpdate,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField* pTradingAccountPasswordUpdate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pTradingAccountPasswordUpdate 回调 C# 参数 不能为 NULL + CThostFtdcTradingAccountPasswordUpdateField zero0 = {0}; + if (!pTradingAccountPasswordUpdate) pTradingAccountPasswordUpdate = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspTradingAccountPasswordUpdate(pTradingAccountPasswordUpdate,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspUserAuthMethod(CThostFtdcRspUserAuthMethodField* pRspUserAuthMethod,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pRspUserAuthMethod 回调 C# 参数 不能为 NULL + CThostFtdcRspUserAuthMethodField zero0 = {0}; + if (!pRspUserAuthMethod) pRspUserAuthMethod = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspUserAuthMethod(pRspUserAuthMethod,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspGenUserCaptcha(CThostFtdcRspGenUserCaptchaField* pRspGenUserCaptcha,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pRspGenUserCaptcha 回调 C# 参数 不能为 NULL + CThostFtdcRspGenUserCaptchaField zero0 = {0}; + if (!pRspGenUserCaptcha) pRspGenUserCaptcha = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspGenUserCaptcha(pRspGenUserCaptcha,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspGenUserText(CThostFtdcRspGenUserTextField* pRspGenUserText,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pRspGenUserText 回调 C# 参数 不能为 NULL + CThostFtdcRspGenUserTextField zero0 = {0}; + if (!pRspGenUserText) pRspGenUserText = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspGenUserText(pRspGenUserText,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspOrderInsert(CThostFtdcInputOrderField* pInputOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInputOrder 回调 C# 参数 不能为 NULL + CThostFtdcInputOrderField zero0 = {0}; + if (!pInputOrder) pInputOrder = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspOrderInsert(pInputOrder,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspParkedOrderInsert(CThostFtdcParkedOrderField* pParkedOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pParkedOrder 回调 C# 参数 不能为 NULL + CThostFtdcParkedOrderField zero0 = {0}; + if (!pParkedOrder) pParkedOrder = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspParkedOrderInsert(pParkedOrder,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspParkedOrderAction(CThostFtdcParkedOrderActionField* pParkedOrderAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pParkedOrderAction 回调 C# 参数 不能为 NULL + CThostFtdcParkedOrderActionField zero0 = {0}; + if (!pParkedOrderAction) pParkedOrderAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspParkedOrderAction(pParkedOrderAction,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspOrderAction(CThostFtdcInputOrderActionField* pInputOrderAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInputOrderAction 回调 C# 参数 不能为 NULL + CThostFtdcInputOrderActionField zero0 = {0}; + if (!pInputOrderAction) pInputOrderAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspOrderAction(pInputOrderAction,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryMaxOrderVolume(CThostFtdcQryMaxOrderVolumeField* pQryMaxOrderVolume,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pQryMaxOrderVolume 回调 C# 参数 不能为 NULL + CThostFtdcQryMaxOrderVolumeField zero0 = {0}; + if (!pQryMaxOrderVolume) pQryMaxOrderVolume = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryMaxOrderVolume(pQryMaxOrderVolume,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField* pSettlementInfoConfirm,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSettlementInfoConfirm 回调 C# 参数 不能为 NULL + CThostFtdcSettlementInfoConfirmField zero0 = {0}; + if (!pSettlementInfoConfirm) pSettlementInfoConfirm = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspSettlementInfoConfirm(pSettlementInfoConfirm,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspRemoveParkedOrder(CThostFtdcRemoveParkedOrderField* pRemoveParkedOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pRemoveParkedOrder 回调 C# 参数 不能为 NULL + CThostFtdcRemoveParkedOrderField zero0 = {0}; + if (!pRemoveParkedOrder) pRemoveParkedOrder = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspRemoveParkedOrder(pRemoveParkedOrder,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField* pRemoveParkedOrderAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pRemoveParkedOrderAction 回调 C# 参数 不能为 NULL + CThostFtdcRemoveParkedOrderActionField zero0 = {0}; + if (!pRemoveParkedOrderAction) pRemoveParkedOrderAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspRemoveParkedOrderAction(pRemoveParkedOrderAction,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspExecOrderInsert(CThostFtdcInputExecOrderField* pInputExecOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInputExecOrder 回调 C# 参数 不能为 NULL + CThostFtdcInputExecOrderField zero0 = {0}; + if (!pInputExecOrder) pInputExecOrder = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspExecOrderInsert(pInputExecOrder,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspExecOrderAction(CThostFtdcInputExecOrderActionField* pInputExecOrderAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInputExecOrderAction 回调 C# 参数 不能为 NULL + CThostFtdcInputExecOrderActionField zero0 = {0}; + if (!pInputExecOrderAction) pInputExecOrderAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspExecOrderAction(pInputExecOrderAction,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspForQuoteInsert(CThostFtdcInputForQuoteField* pInputForQuote,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInputForQuote 回调 C# 参数 不能为 NULL + CThostFtdcInputForQuoteField zero0 = {0}; + if (!pInputForQuote) pInputForQuote = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspForQuoteInsert(pInputForQuote,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQuoteInsert(CThostFtdcInputQuoteField* pInputQuote,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInputQuote 回调 C# 参数 不能为 NULL + CThostFtdcInputQuoteField zero0 = {0}; + if (!pInputQuote) pInputQuote = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQuoteInsert(pInputQuote,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQuoteAction(CThostFtdcInputQuoteActionField* pInputQuoteAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInputQuoteAction 回调 C# 参数 不能为 NULL + CThostFtdcInputQuoteActionField zero0 = {0}; + if (!pInputQuoteAction) pInputQuoteAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQuoteAction(pInputQuoteAction,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspBatchOrderAction(CThostFtdcInputBatchOrderActionField* pInputBatchOrderAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInputBatchOrderAction 回调 C# 参数 不能为 NULL + CThostFtdcInputBatchOrderActionField zero0 = {0}; + if (!pInputBatchOrderAction) pInputBatchOrderAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspBatchOrderAction(pInputBatchOrderAction,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField* pInputOptionSelfClose,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInputOptionSelfClose 回调 C# 参数 不能为 NULL + CThostFtdcInputOptionSelfCloseField zero0 = {0}; + if (!pInputOptionSelfClose) pInputOptionSelfClose = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspOptionSelfCloseInsert(pInputOptionSelfClose,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField* pInputOptionSelfCloseAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInputOptionSelfCloseAction 回调 C# 参数 不能为 NULL + CThostFtdcInputOptionSelfCloseActionField zero0 = {0}; + if (!pInputOptionSelfCloseAction) pInputOptionSelfCloseAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspOptionSelfCloseAction(pInputOptionSelfCloseAction,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspCombActionInsert(CThostFtdcInputCombActionField* pInputCombAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInputCombAction 回调 C# 参数 不能为 NULL + CThostFtdcInputCombActionField zero0 = {0}; + if (!pInputCombAction) pInputCombAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspCombActionInsert(pInputCombAction,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryOrder(CThostFtdcOrderField* pOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pOrder 回调 C# 参数 不能为 NULL + CThostFtdcOrderField zero0 = {0}; + if (!pOrder) pOrder = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryOrder(pOrder,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryTrade(CThostFtdcTradeField* pTrade,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pTrade 回调 C# 参数 不能为 NULL + CThostFtdcTradeField zero0 = {0}; + if (!pTrade) pTrade = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryTrade(pTrade,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryInvestorPosition(CThostFtdcInvestorPositionField* pInvestorPosition,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInvestorPosition 回调 C# 参数 不能为 NULL + CThostFtdcInvestorPositionField zero0 = {0}; + if (!pInvestorPosition) pInvestorPosition = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryInvestorPosition(pInvestorPosition,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryTradingAccount(CThostFtdcTradingAccountField* pTradingAccount,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pTradingAccount 回调 C# 参数 不能为 NULL + CThostFtdcTradingAccountField zero0 = {0}; + if (!pTradingAccount) pTradingAccount = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryTradingAccount(pTradingAccount,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryInvestor(CThostFtdcInvestorField* pInvestor,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInvestor 回调 C# 参数 不能为 NULL + CThostFtdcInvestorField zero0 = {0}; + if (!pInvestor) pInvestor = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryInvestor(pInvestor,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryTradingCode(CThostFtdcTradingCodeField* pTradingCode,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pTradingCode 回调 C# 参数 不能为 NULL + CThostFtdcTradingCodeField zero0 = {0}; + if (!pTradingCode) pTradingCode = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryTradingCode(pTradingCode,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryInstrumentMarginRate(CThostFtdcInstrumentMarginRateField* pInstrumentMarginRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInstrumentMarginRate 回调 C# 参数 不能为 NULL + CThostFtdcInstrumentMarginRateField zero0 = {0}; + if (!pInstrumentMarginRate) pInstrumentMarginRate = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryInstrumentMarginRate(pInstrumentMarginRate,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryInstrumentCommissionRate(CThostFtdcInstrumentCommissionRateField* pInstrumentCommissionRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInstrumentCommissionRate 回调 C# 参数 不能为 NULL + CThostFtdcInstrumentCommissionRateField zero0 = {0}; + if (!pInstrumentCommissionRate) pInstrumentCommissionRate = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryInstrumentCommissionRate(pInstrumentCommissionRate,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryExchange(CThostFtdcExchangeField* pExchange,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pExchange 回调 C# 参数 不能为 NULL + CThostFtdcExchangeField zero0 = {0}; + if (!pExchange) pExchange = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryExchange(pExchange,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryProduct(CThostFtdcProductField* pProduct,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pProduct 回调 C# 参数 不能为 NULL + CThostFtdcProductField zero0 = {0}; + if (!pProduct) pProduct = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryProduct(pProduct,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryInstrument(CThostFtdcInstrumentField* pInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInstrument 回调 C# 参数 不能为 NULL + CThostFtdcInstrumentField zero0 = {0}; + if (!pInstrument) pInstrument = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryInstrument(pInstrument,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryDepthMarketData(CThostFtdcDepthMarketDataField* pDepthMarketData,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pDepthMarketData 回调 C# 参数 不能为 NULL + CThostFtdcDepthMarketDataField zero0 = {0}; + if (!pDepthMarketData) pDepthMarketData = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryDepthMarketData(pDepthMarketData,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryTraderOffer(CThostFtdcTraderOfferField* pTraderOffer,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pTraderOffer 回调 C# 参数 不能为 NULL + CThostFtdcTraderOfferField zero0 = {0}; + if (!pTraderOffer) pTraderOffer = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryTraderOffer(pTraderOffer,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQrySettlementInfo(CThostFtdcSettlementInfoField* pSettlementInfo,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSettlementInfo 回调 C# 参数 不能为 NULL + CThostFtdcSettlementInfoField zero0 = {0}; + if (!pSettlementInfo) pSettlementInfo = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQrySettlementInfo(pSettlementInfo,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryTransferBank(CThostFtdcTransferBankField* pTransferBank,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pTransferBank 回调 C# 参数 不能为 NULL + CThostFtdcTransferBankField zero0 = {0}; + if (!pTransferBank) pTransferBank = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryTransferBank(pTransferBank,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryInvestorPositionDetail(CThostFtdcInvestorPositionDetailField* pInvestorPositionDetail,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInvestorPositionDetail 回调 C# 参数 不能为 NULL + CThostFtdcInvestorPositionDetailField zero0 = {0}; + if (!pInvestorPositionDetail) pInvestorPositionDetail = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryInvestorPositionDetail(pInvestorPositionDetail,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryNotice(CThostFtdcNoticeField* pNotice,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pNotice 回调 C# 参数 不能为 NULL + CThostFtdcNoticeField zero0 = {0}; + if (!pNotice) pNotice = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryNotice(pNotice,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQrySettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField* pSettlementInfoConfirm,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSettlementInfoConfirm 回调 C# 参数 不能为 NULL + CThostFtdcSettlementInfoConfirmField zero0 = {0}; + if (!pSettlementInfoConfirm) pSettlementInfoConfirm = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQrySettlementInfoConfirm(pSettlementInfoConfirm,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryInvestorPositionCombineDetail(CThostFtdcInvestorPositionCombineDetailField* pInvestorPositionCombineDetail,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInvestorPositionCombineDetail 回调 C# 参数 不能为 NULL + CThostFtdcInvestorPositionCombineDetailField zero0 = {0}; + if (!pInvestorPositionCombineDetail) pInvestorPositionCombineDetail = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryInvestorPositionCombineDetail(pInvestorPositionCombineDetail,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryCFMMCTradingAccountKey(CThostFtdcCFMMCTradingAccountKeyField* pCFMMCTradingAccountKey,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pCFMMCTradingAccountKey 回调 C# 参数 不能为 NULL + CThostFtdcCFMMCTradingAccountKeyField zero0 = {0}; + if (!pCFMMCTradingAccountKey) pCFMMCTradingAccountKey = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryCFMMCTradingAccountKey(pCFMMCTradingAccountKey,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryEWarrantOffset(CThostFtdcEWarrantOffsetField* pEWarrantOffset,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pEWarrantOffset 回调 C# 参数 不能为 NULL + CThostFtdcEWarrantOffsetField zero0 = {0}; + if (!pEWarrantOffset) pEWarrantOffset = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryEWarrantOffset(pEWarrantOffset,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryInvestorProductGroupMargin(CThostFtdcInvestorProductGroupMarginField* pInvestorProductGroupMargin,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInvestorProductGroupMargin 回调 C# 参数 不能为 NULL + CThostFtdcInvestorProductGroupMarginField zero0 = {0}; + if (!pInvestorProductGroupMargin) pInvestorProductGroupMargin = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryInvestorProductGroupMargin(pInvestorProductGroupMargin,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryExchangeMarginRate(CThostFtdcExchangeMarginRateField* pExchangeMarginRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pExchangeMarginRate 回调 C# 参数 不能为 NULL + CThostFtdcExchangeMarginRateField zero0 = {0}; + if (!pExchangeMarginRate) pExchangeMarginRate = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryExchangeMarginRate(pExchangeMarginRate,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryExchangeMarginRateAdjust(CThostFtdcExchangeMarginRateAdjustField* pExchangeMarginRateAdjust,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pExchangeMarginRateAdjust 回调 C# 参数 不能为 NULL + CThostFtdcExchangeMarginRateAdjustField zero0 = {0}; + if (!pExchangeMarginRateAdjust) pExchangeMarginRateAdjust = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryExchangeMarginRateAdjust(pExchangeMarginRateAdjust,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryExchangeRate(CThostFtdcExchangeRateField* pExchangeRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pExchangeRate 回调 C# 参数 不能为 NULL + CThostFtdcExchangeRateField zero0 = {0}; + if (!pExchangeRate) pExchangeRate = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryExchangeRate(pExchangeRate,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQrySecAgentACIDMap(CThostFtdcSecAgentACIDMapField* pSecAgentACIDMap,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSecAgentACIDMap 回调 C# 参数 不能为 NULL + CThostFtdcSecAgentACIDMapField zero0 = {0}; + if (!pSecAgentACIDMap) pSecAgentACIDMap = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQrySecAgentACIDMap(pSecAgentACIDMap,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryProductExchRate(CThostFtdcProductExchRateField* pProductExchRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pProductExchRate 回调 C# 参数 不能为 NULL + CThostFtdcProductExchRateField zero0 = {0}; + if (!pProductExchRate) pProductExchRate = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryProductExchRate(pProductExchRate,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryProductGroup(CThostFtdcProductGroupField* pProductGroup,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pProductGroup 回调 C# 参数 不能为 NULL + CThostFtdcProductGroupField zero0 = {0}; + if (!pProductGroup) pProductGroup = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryProductGroup(pProductGroup,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryMMInstrumentCommissionRate(CThostFtdcMMInstrumentCommissionRateField* pMMInstrumentCommissionRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pMMInstrumentCommissionRate 回调 C# 参数 不能为 NULL + CThostFtdcMMInstrumentCommissionRateField zero0 = {0}; + if (!pMMInstrumentCommissionRate) pMMInstrumentCommissionRate = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryMMInstrumentCommissionRate(pMMInstrumentCommissionRate,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryMMOptionInstrCommRate(CThostFtdcMMOptionInstrCommRateField* pMMOptionInstrCommRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pMMOptionInstrCommRate 回调 C# 参数 不能为 NULL + CThostFtdcMMOptionInstrCommRateField zero0 = {0}; + if (!pMMOptionInstrCommRate) pMMOptionInstrCommRate = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryMMOptionInstrCommRate(pMMOptionInstrCommRate,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryInstrumentOrderCommRate(CThostFtdcInstrumentOrderCommRateField* pInstrumentOrderCommRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInstrumentOrderCommRate 回调 C# 参数 不能为 NULL + CThostFtdcInstrumentOrderCommRateField zero0 = {0}; + if (!pInstrumentOrderCommRate) pInstrumentOrderCommRate = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryInstrumentOrderCommRate(pInstrumentOrderCommRate,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQrySecAgentTradingAccount(CThostFtdcTradingAccountField* pTradingAccount,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pTradingAccount 回调 C# 参数 不能为 NULL + CThostFtdcTradingAccountField zero0 = {0}; + if (!pTradingAccount) pTradingAccount = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQrySecAgentTradingAccount(pTradingAccount,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQrySecAgentCheckMode(CThostFtdcSecAgentCheckModeField* pSecAgentCheckMode,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSecAgentCheckMode 回调 C# 参数 不能为 NULL + CThostFtdcSecAgentCheckModeField zero0 = {0}; + if (!pSecAgentCheckMode) pSecAgentCheckMode = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQrySecAgentCheckMode(pSecAgentCheckMode,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQrySecAgentTradeInfo(CThostFtdcSecAgentTradeInfoField* pSecAgentTradeInfo,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSecAgentTradeInfo 回调 C# 参数 不能为 NULL + CThostFtdcSecAgentTradeInfoField zero0 = {0}; + if (!pSecAgentTradeInfo) pSecAgentTradeInfo = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQrySecAgentTradeInfo(pSecAgentTradeInfo,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryOptionInstrTradeCost(CThostFtdcOptionInstrTradeCostField* pOptionInstrTradeCost,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pOptionInstrTradeCost 回调 C# 参数 不能为 NULL + CThostFtdcOptionInstrTradeCostField zero0 = {0}; + if (!pOptionInstrTradeCost) pOptionInstrTradeCost = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryOptionInstrTradeCost(pOptionInstrTradeCost,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryOptionInstrCommRate(CThostFtdcOptionInstrCommRateField* pOptionInstrCommRate,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pOptionInstrCommRate 回调 C# 参数 不能为 NULL + CThostFtdcOptionInstrCommRateField zero0 = {0}; + if (!pOptionInstrCommRate) pOptionInstrCommRate = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryOptionInstrCommRate(pOptionInstrCommRate,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryExecOrder(CThostFtdcExecOrderField* pExecOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pExecOrder 回调 C# 参数 不能为 NULL + CThostFtdcExecOrderField zero0 = {0}; + if (!pExecOrder) pExecOrder = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryExecOrder(pExecOrder,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryForQuote(CThostFtdcForQuoteField* pForQuote,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pForQuote 回调 C# 参数 不能为 NULL + CThostFtdcForQuoteField zero0 = {0}; + if (!pForQuote) pForQuote = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryForQuote(pForQuote,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryQuote(CThostFtdcQuoteField* pQuote,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pQuote 回调 C# 参数 不能为 NULL + CThostFtdcQuoteField zero0 = {0}; + if (!pQuote) pQuote = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryQuote(pQuote,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryOptionSelfClose(CThostFtdcOptionSelfCloseField* pOptionSelfClose,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pOptionSelfClose 回调 C# 参数 不能为 NULL + CThostFtdcOptionSelfCloseField zero0 = {0}; + if (!pOptionSelfClose) pOptionSelfClose = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryOptionSelfClose(pOptionSelfClose,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryInvestUnit(CThostFtdcInvestUnitField* pInvestUnit,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInvestUnit 回调 C# 参数 不能为 NULL + CThostFtdcInvestUnitField zero0 = {0}; + if (!pInvestUnit) pInvestUnit = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryInvestUnit(pInvestUnit,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryCombInstrumentGuard(CThostFtdcCombInstrumentGuardField* pCombInstrumentGuard,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pCombInstrumentGuard 回调 C# 参数 不能为 NULL + CThostFtdcCombInstrumentGuardField zero0 = {0}; + if (!pCombInstrumentGuard) pCombInstrumentGuard = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryCombInstrumentGuard(pCombInstrumentGuard,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryCombAction(CThostFtdcCombActionField* pCombAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pCombAction 回调 C# 参数 不能为 NULL + CThostFtdcCombActionField zero0 = {0}; + if (!pCombAction) pCombAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryCombAction(pCombAction,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryTransferSerial(CThostFtdcTransferSerialField* pTransferSerial,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pTransferSerial 回调 C# 参数 不能为 NULL + CThostFtdcTransferSerialField zero0 = {0}; + if (!pTransferSerial) pTransferSerial = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryTransferSerial(pTransferSerial,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryAccountregister(CThostFtdcAccountregisterField* pAccountregister,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pAccountregister 回调 C# 参数 不能为 NULL + CThostFtdcAccountregisterField zero0 = {0}; + if (!pAccountregister) pAccountregister = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryAccountregister(pAccountregister,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspError(CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero0 = {0}; + if (!pRspInfo) pRspInfo = &zero0; + _callbacks.OnRspError(pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRtnOrder(CThostFtdcOrderField* pOrder) + { + //pOrder 回调 C# 参数 不能为 NULL + CThostFtdcOrderField zero0 = {0}; + if (!pOrder) pOrder = &zero0; + _callbacks.OnRtnOrder(pOrder); + } + + virtual void OnRtnTrade(CThostFtdcTradeField* pTrade) + { + //pTrade 回调 C# 参数 不能为 NULL + CThostFtdcTradeField zero0 = {0}; + if (!pTrade) pTrade = &zero0; + _callbacks.OnRtnTrade(pTrade); + } + + virtual void OnErrRtnOrderInsert(CThostFtdcInputOrderField* pInputOrder,CThostFtdcRspInfoField* pRspInfo) + { + //pInputOrder 回调 C# 参数 不能为 NULL + CThostFtdcInputOrderField zero0 = {0}; + if (!pInputOrder) pInputOrder = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnOrderInsert(pInputOrder,pRspInfo); + } + + virtual void OnErrRtnOrderAction(CThostFtdcOrderActionField* pOrderAction,CThostFtdcRspInfoField* pRspInfo) + { + //pOrderAction 回调 C# 参数 不能为 NULL + CThostFtdcOrderActionField zero0 = {0}; + if (!pOrderAction) pOrderAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnOrderAction(pOrderAction,pRspInfo); + } + + virtual void OnRtnInstrumentStatus(CThostFtdcInstrumentStatusField* pInstrumentStatus) + { + //pInstrumentStatus 回调 C# 参数 不能为 NULL + CThostFtdcInstrumentStatusField zero0 = {0}; + if (!pInstrumentStatus) pInstrumentStatus = &zero0; + _callbacks.OnRtnInstrumentStatus(pInstrumentStatus); + } + + virtual void OnRtnBulletin(CThostFtdcBulletinField* pBulletin) + { + //pBulletin 回调 C# 参数 不能为 NULL + CThostFtdcBulletinField zero0 = {0}; + if (!pBulletin) pBulletin = &zero0; + _callbacks.OnRtnBulletin(pBulletin); + } + + virtual void OnRtnTradingNotice(CThostFtdcTradingNoticeInfoField* pTradingNoticeInfo) + { + //pTradingNoticeInfo 回调 C# 参数 不能为 NULL + CThostFtdcTradingNoticeInfoField zero0 = {0}; + if (!pTradingNoticeInfo) pTradingNoticeInfo = &zero0; + _callbacks.OnRtnTradingNotice(pTradingNoticeInfo); + } + + virtual void OnRtnErrorConditionalOrder(CThostFtdcErrorConditionalOrderField* pErrorConditionalOrder) + { + //pErrorConditionalOrder 回调 C# 参数 不能为 NULL + CThostFtdcErrorConditionalOrderField zero0 = {0}; + if (!pErrorConditionalOrder) pErrorConditionalOrder = &zero0; + _callbacks.OnRtnErrorConditionalOrder(pErrorConditionalOrder); + } + + virtual void OnRtnExecOrder(CThostFtdcExecOrderField* pExecOrder) + { + //pExecOrder 回调 C# 参数 不能为 NULL + CThostFtdcExecOrderField zero0 = {0}; + if (!pExecOrder) pExecOrder = &zero0; + _callbacks.OnRtnExecOrder(pExecOrder); + } + + virtual void OnErrRtnExecOrderInsert(CThostFtdcInputExecOrderField* pInputExecOrder,CThostFtdcRspInfoField* pRspInfo) + { + //pInputExecOrder 回调 C# 参数 不能为 NULL + CThostFtdcInputExecOrderField zero0 = {0}; + if (!pInputExecOrder) pInputExecOrder = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnExecOrderInsert(pInputExecOrder,pRspInfo); + } + + virtual void OnErrRtnExecOrderAction(CThostFtdcExecOrderActionField* pExecOrderAction,CThostFtdcRspInfoField* pRspInfo) + { + //pExecOrderAction 回调 C# 参数 不能为 NULL + CThostFtdcExecOrderActionField zero0 = {0}; + if (!pExecOrderAction) pExecOrderAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnExecOrderAction(pExecOrderAction,pRspInfo); + } + + virtual void OnErrRtnForQuoteInsert(CThostFtdcInputForQuoteField* pInputForQuote,CThostFtdcRspInfoField* pRspInfo) + { + //pInputForQuote 回调 C# 参数 不能为 NULL + CThostFtdcInputForQuoteField zero0 = {0}; + if (!pInputForQuote) pInputForQuote = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnForQuoteInsert(pInputForQuote,pRspInfo); + } + + virtual void OnRtnQuote(CThostFtdcQuoteField* pQuote) + { + //pQuote 回调 C# 参数 不能为 NULL + CThostFtdcQuoteField zero0 = {0}; + if (!pQuote) pQuote = &zero0; + _callbacks.OnRtnQuote(pQuote); + } + + virtual void OnErrRtnQuoteInsert(CThostFtdcInputQuoteField* pInputQuote,CThostFtdcRspInfoField* pRspInfo) + { + //pInputQuote 回调 C# 参数 不能为 NULL + CThostFtdcInputQuoteField zero0 = {0}; + if (!pInputQuote) pInputQuote = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnQuoteInsert(pInputQuote,pRspInfo); + } + + virtual void OnErrRtnQuoteAction(CThostFtdcQuoteActionField* pQuoteAction,CThostFtdcRspInfoField* pRspInfo) + { + //pQuoteAction 回调 C# 参数 不能为 NULL + CThostFtdcQuoteActionField zero0 = {0}; + if (!pQuoteAction) pQuoteAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnQuoteAction(pQuoteAction,pRspInfo); + } + + virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField* pForQuoteRsp) + { + //pForQuoteRsp 回调 C# 参数 不能为 NULL + CThostFtdcForQuoteRspField zero0 = {0}; + if (!pForQuoteRsp) pForQuoteRsp = &zero0; + _callbacks.OnRtnForQuoteRsp(pForQuoteRsp); + } + + virtual void OnRtnCFMMCTradingAccountToken(CThostFtdcCFMMCTradingAccountTokenField* pCFMMCTradingAccountToken) + { + //pCFMMCTradingAccountToken 回调 C# 参数 不能为 NULL + CThostFtdcCFMMCTradingAccountTokenField zero0 = {0}; + if (!pCFMMCTradingAccountToken) pCFMMCTradingAccountToken = &zero0; + _callbacks.OnRtnCFMMCTradingAccountToken(pCFMMCTradingAccountToken); + } + + virtual void OnErrRtnBatchOrderAction(CThostFtdcBatchOrderActionField* pBatchOrderAction,CThostFtdcRspInfoField* pRspInfo) + { + //pBatchOrderAction 回调 C# 参数 不能为 NULL + CThostFtdcBatchOrderActionField zero0 = {0}; + if (!pBatchOrderAction) pBatchOrderAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnBatchOrderAction(pBatchOrderAction,pRspInfo); + } + + virtual void OnRtnOptionSelfClose(CThostFtdcOptionSelfCloseField* pOptionSelfClose) + { + //pOptionSelfClose 回调 C# 参数 不能为 NULL + CThostFtdcOptionSelfCloseField zero0 = {0}; + if (!pOptionSelfClose) pOptionSelfClose = &zero0; + _callbacks.OnRtnOptionSelfClose(pOptionSelfClose); + } + + virtual void OnErrRtnOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField* pInputOptionSelfClose,CThostFtdcRspInfoField* pRspInfo) + { + //pInputOptionSelfClose 回调 C# 参数 不能为 NULL + CThostFtdcInputOptionSelfCloseField zero0 = {0}; + if (!pInputOptionSelfClose) pInputOptionSelfClose = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnOptionSelfCloseInsert(pInputOptionSelfClose,pRspInfo); + } + + virtual void OnErrRtnOptionSelfCloseAction(CThostFtdcOptionSelfCloseActionField* pOptionSelfCloseAction,CThostFtdcRspInfoField* pRspInfo) + { + //pOptionSelfCloseAction 回调 C# 参数 不能为 NULL + CThostFtdcOptionSelfCloseActionField zero0 = {0}; + if (!pOptionSelfCloseAction) pOptionSelfCloseAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnOptionSelfCloseAction(pOptionSelfCloseAction,pRspInfo); + } + + virtual void OnRtnCombAction(CThostFtdcCombActionField* pCombAction) + { + //pCombAction 回调 C# 参数 不能为 NULL + CThostFtdcCombActionField zero0 = {0}; + if (!pCombAction) pCombAction = &zero0; + _callbacks.OnRtnCombAction(pCombAction); + } + + virtual void OnErrRtnCombActionInsert(CThostFtdcInputCombActionField* pInputCombAction,CThostFtdcRspInfoField* pRspInfo) + { + //pInputCombAction 回调 C# 参数 不能为 NULL + CThostFtdcInputCombActionField zero0 = {0}; + if (!pInputCombAction) pInputCombAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnCombActionInsert(pInputCombAction,pRspInfo); + } + + virtual void OnRspQryContractBank(CThostFtdcContractBankField* pContractBank,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pContractBank 回调 C# 参数 不能为 NULL + CThostFtdcContractBankField zero0 = {0}; + if (!pContractBank) pContractBank = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryContractBank(pContractBank,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryParkedOrder(CThostFtdcParkedOrderField* pParkedOrder,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pParkedOrder 回调 C# 参数 不能为 NULL + CThostFtdcParkedOrderField zero0 = {0}; + if (!pParkedOrder) pParkedOrder = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryParkedOrder(pParkedOrder,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryParkedOrderAction(CThostFtdcParkedOrderActionField* pParkedOrderAction,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pParkedOrderAction 回调 C# 参数 不能为 NULL + CThostFtdcParkedOrderActionField zero0 = {0}; + if (!pParkedOrderAction) pParkedOrderAction = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryParkedOrderAction(pParkedOrderAction,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryTradingNotice(CThostFtdcTradingNoticeField* pTradingNotice,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pTradingNotice 回调 C# 参数 不能为 NULL + CThostFtdcTradingNoticeField zero0 = {0}; + if (!pTradingNotice) pTradingNotice = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryTradingNotice(pTradingNotice,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryBrokerTradingParams(CThostFtdcBrokerTradingParamsField* pBrokerTradingParams,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pBrokerTradingParams 回调 C# 参数 不能为 NULL + CThostFtdcBrokerTradingParamsField zero0 = {0}; + if (!pBrokerTradingParams) pBrokerTradingParams = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryBrokerTradingParams(pBrokerTradingParams,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryBrokerTradingAlgos(CThostFtdcBrokerTradingAlgosField* pBrokerTradingAlgos,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pBrokerTradingAlgos 回调 C# 参数 不能为 NULL + CThostFtdcBrokerTradingAlgosField zero0 = {0}; + if (!pBrokerTradingAlgos) pBrokerTradingAlgos = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryBrokerTradingAlgos(pBrokerTradingAlgos,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField* pQueryCFMMCTradingAccountToken,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pQueryCFMMCTradingAccountToken 回调 C# 参数 不能为 NULL + CThostFtdcQueryCFMMCTradingAccountTokenField zero0 = {0}; + if (!pQueryCFMMCTradingAccountToken) pQueryCFMMCTradingAccountToken = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQueryCFMMCTradingAccountToken(pQueryCFMMCTradingAccountToken,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRtnFromBankToFutureByBank(CThostFtdcRspTransferField* pRspTransfer) + { + //pRspTransfer 回调 C# 参数 不能为 NULL + CThostFtdcRspTransferField zero0 = {0}; + if (!pRspTransfer) pRspTransfer = &zero0; + _callbacks.OnRtnFromBankToFutureByBank(pRspTransfer); + } + + virtual void OnRtnFromFutureToBankByBank(CThostFtdcRspTransferField* pRspTransfer) + { + //pRspTransfer 回调 C# 参数 不能为 NULL + CThostFtdcRspTransferField zero0 = {0}; + if (!pRspTransfer) pRspTransfer = &zero0; + _callbacks.OnRtnFromFutureToBankByBank(pRspTransfer); + } + + virtual void OnRtnRepealFromBankToFutureByBank(CThostFtdcRspRepealField* pRspRepeal) + { + //pRspRepeal 回调 C# 参数 不能为 NULL + CThostFtdcRspRepealField zero0 = {0}; + if (!pRspRepeal) pRspRepeal = &zero0; + _callbacks.OnRtnRepealFromBankToFutureByBank(pRspRepeal); + } + + virtual void OnRtnRepealFromFutureToBankByBank(CThostFtdcRspRepealField* pRspRepeal) + { + //pRspRepeal 回调 C# 参数 不能为 NULL + CThostFtdcRspRepealField zero0 = {0}; + if (!pRspRepeal) pRspRepeal = &zero0; + _callbacks.OnRtnRepealFromFutureToBankByBank(pRspRepeal); + } + + virtual void OnRtnFromBankToFutureByFuture(CThostFtdcRspTransferField* pRspTransfer) + { + //pRspTransfer 回调 C# 参数 不能为 NULL + CThostFtdcRspTransferField zero0 = {0}; + if (!pRspTransfer) pRspTransfer = &zero0; + _callbacks.OnRtnFromBankToFutureByFuture(pRspTransfer); + } + + virtual void OnRtnFromFutureToBankByFuture(CThostFtdcRspTransferField* pRspTransfer) + { + //pRspTransfer 回调 C# 参数 不能为 NULL + CThostFtdcRspTransferField zero0 = {0}; + if (!pRspTransfer) pRspTransfer = &zero0; + _callbacks.OnRtnFromFutureToBankByFuture(pRspTransfer); + } + + virtual void OnRtnRepealFromBankToFutureByFutureManual(CThostFtdcRspRepealField* pRspRepeal) + { + //pRspRepeal 回调 C# 参数 不能为 NULL + CThostFtdcRspRepealField zero0 = {0}; + if (!pRspRepeal) pRspRepeal = &zero0; + _callbacks.OnRtnRepealFromBankToFutureByFutureManual(pRspRepeal); + } + + virtual void OnRtnRepealFromFutureToBankByFutureManual(CThostFtdcRspRepealField* pRspRepeal) + { + //pRspRepeal 回调 C# 参数 不能为 NULL + CThostFtdcRspRepealField zero0 = {0}; + if (!pRspRepeal) pRspRepeal = &zero0; + _callbacks.OnRtnRepealFromFutureToBankByFutureManual(pRspRepeal); + } + + virtual void OnRtnQueryBankBalanceByFuture(CThostFtdcNotifyQueryAccountField* pNotifyQueryAccount) + { + //pNotifyQueryAccount 回调 C# 参数 不能为 NULL + CThostFtdcNotifyQueryAccountField zero0 = {0}; + if (!pNotifyQueryAccount) pNotifyQueryAccount = &zero0; + _callbacks.OnRtnQueryBankBalanceByFuture(pNotifyQueryAccount); + } + + virtual void OnErrRtnBankToFutureByFuture(CThostFtdcReqTransferField* pReqTransfer,CThostFtdcRspInfoField* pRspInfo) + { + //pReqTransfer 回调 C# 参数 不能为 NULL + CThostFtdcReqTransferField zero0 = {0}; + if (!pReqTransfer) pReqTransfer = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnBankToFutureByFuture(pReqTransfer,pRspInfo); + } + + virtual void OnErrRtnFutureToBankByFuture(CThostFtdcReqTransferField* pReqTransfer,CThostFtdcRspInfoField* pRspInfo) + { + //pReqTransfer 回调 C# 参数 不能为 NULL + CThostFtdcReqTransferField zero0 = {0}; + if (!pReqTransfer) pReqTransfer = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnFutureToBankByFuture(pReqTransfer,pRspInfo); + } + + virtual void OnErrRtnRepealBankToFutureByFutureManual(CThostFtdcReqRepealField* pReqRepeal,CThostFtdcRspInfoField* pRspInfo) + { + //pReqRepeal 回调 C# 参数 不能为 NULL + CThostFtdcReqRepealField zero0 = {0}; + if (!pReqRepeal) pReqRepeal = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnRepealBankToFutureByFutureManual(pReqRepeal,pRspInfo); + } + + virtual void OnErrRtnRepealFutureToBankByFutureManual(CThostFtdcReqRepealField* pReqRepeal,CThostFtdcRspInfoField* pRspInfo) + { + //pReqRepeal 回调 C# 参数 不能为 NULL + CThostFtdcReqRepealField zero0 = {0}; + if (!pReqRepeal) pReqRepeal = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnRepealFutureToBankByFutureManual(pReqRepeal,pRspInfo); + } + + virtual void OnErrRtnQueryBankBalanceByFuture(CThostFtdcReqQueryAccountField* pReqQueryAccount,CThostFtdcRspInfoField* pRspInfo) + { + //pReqQueryAccount 回调 C# 参数 不能为 NULL + CThostFtdcReqQueryAccountField zero0 = {0}; + if (!pReqQueryAccount) pReqQueryAccount = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnErrRtnQueryBankBalanceByFuture(pReqQueryAccount,pRspInfo); + } + + virtual void OnRtnRepealFromBankToFutureByFuture(CThostFtdcRspRepealField* pRspRepeal) + { + //pRspRepeal 回调 C# 参数 不能为 NULL + CThostFtdcRspRepealField zero0 = {0}; + if (!pRspRepeal) pRspRepeal = &zero0; + _callbacks.OnRtnRepealFromBankToFutureByFuture(pRspRepeal); + } + + virtual void OnRtnRepealFromFutureToBankByFuture(CThostFtdcRspRepealField* pRspRepeal) + { + //pRspRepeal 回调 C# 参数 不能为 NULL + CThostFtdcRspRepealField zero0 = {0}; + if (!pRspRepeal) pRspRepeal = &zero0; + _callbacks.OnRtnRepealFromFutureToBankByFuture(pRspRepeal); + } + + virtual void OnRspFromBankToFutureByFuture(CThostFtdcReqTransferField* pReqTransfer,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pReqTransfer 回调 C# 参数 不能为 NULL + CThostFtdcReqTransferField zero0 = {0}; + if (!pReqTransfer) pReqTransfer = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspFromBankToFutureByFuture(pReqTransfer,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspFromFutureToBankByFuture(CThostFtdcReqTransferField* pReqTransfer,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pReqTransfer 回调 C# 参数 不能为 NULL + CThostFtdcReqTransferField zero0 = {0}; + if (!pReqTransfer) pReqTransfer = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspFromFutureToBankByFuture(pReqTransfer,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField* pReqQueryAccount,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pReqQueryAccount 回调 C# 参数 不能为 NULL + CThostFtdcReqQueryAccountField zero0 = {0}; + if (!pReqQueryAccount) pReqQueryAccount = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQueryBankAccountMoneyByFuture(pReqQueryAccount,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRtnOpenAccountByBank(CThostFtdcOpenAccountField* pOpenAccount) + { + //pOpenAccount 回调 C# 参数 不能为 NULL + CThostFtdcOpenAccountField zero0 = {0}; + if (!pOpenAccount) pOpenAccount = &zero0; + _callbacks.OnRtnOpenAccountByBank(pOpenAccount); + } + + virtual void OnRtnCancelAccountByBank(CThostFtdcCancelAccountField* pCancelAccount) + { + //pCancelAccount 回调 C# 参数 不能为 NULL + CThostFtdcCancelAccountField zero0 = {0}; + if (!pCancelAccount) pCancelAccount = &zero0; + _callbacks.OnRtnCancelAccountByBank(pCancelAccount); + } + + virtual void OnRtnChangeAccountByBank(CThostFtdcChangeAccountField* pChangeAccount) + { + //pChangeAccount 回调 C# 参数 不能为 NULL + CThostFtdcChangeAccountField zero0 = {0}; + if (!pChangeAccount) pChangeAccount = &zero0; + _callbacks.OnRtnChangeAccountByBank(pChangeAccount); + } + + virtual void OnRspQryClassifiedInstrument(CThostFtdcInstrumentField* pInstrument,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInstrument 回调 C# 参数 不能为 NULL + CThostFtdcInstrumentField zero0 = {0}; + if (!pInstrument) pInstrument = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryClassifiedInstrument(pInstrument,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryCombPromotionParam(CThostFtdcCombPromotionParamField* pCombPromotionParam,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pCombPromotionParam 回调 C# 参数 不能为 NULL + CThostFtdcCombPromotionParamField zero0 = {0}; + if (!pCombPromotionParam) pCombPromotionParam = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryCombPromotionParam(pCombPromotionParam,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryRiskSettleInvstPosition(CThostFtdcRiskSettleInvstPositionField* pRiskSettleInvstPosition,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pRiskSettleInvstPosition 回调 C# 参数 不能为 NULL + CThostFtdcRiskSettleInvstPositionField zero0 = {0}; + if (!pRiskSettleInvstPosition) pRiskSettleInvstPosition = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryRiskSettleInvstPosition(pRiskSettleInvstPosition,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryRiskSettleProductStatus(CThostFtdcRiskSettleProductStatusField* pRiskSettleProductStatus,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pRiskSettleProductStatus 回调 C# 参数 不能为 NULL + CThostFtdcRiskSettleProductStatusField zero0 = {0}; + if (!pRiskSettleProductStatus) pRiskSettleProductStatus = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryRiskSettleProductStatus(pRiskSettleProductStatus,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQrySPBMFutureParameter(CThostFtdcSPBMFutureParameterField* pSPBMFutureParameter,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSPBMFutureParameter 回调 C# 参数 不能为 NULL + CThostFtdcSPBMFutureParameterField zero0 = {0}; + if (!pSPBMFutureParameter) pSPBMFutureParameter = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQrySPBMFutureParameter(pSPBMFutureParameter,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQrySPBMOptionParameter(CThostFtdcSPBMOptionParameterField* pSPBMOptionParameter,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSPBMOptionParameter 回调 C# 参数 不能为 NULL + CThostFtdcSPBMOptionParameterField zero0 = {0}; + if (!pSPBMOptionParameter) pSPBMOptionParameter = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQrySPBMOptionParameter(pSPBMOptionParameter,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQrySPBMIntraParameter(CThostFtdcSPBMIntraParameterField* pSPBMIntraParameter,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSPBMIntraParameter 回调 C# 参数 不能为 NULL + CThostFtdcSPBMIntraParameterField zero0 = {0}; + if (!pSPBMIntraParameter) pSPBMIntraParameter = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQrySPBMIntraParameter(pSPBMIntraParameter,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQrySPBMInterParameter(CThostFtdcSPBMInterParameterField* pSPBMInterParameter,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSPBMInterParameter 回调 C# 参数 不能为 NULL + CThostFtdcSPBMInterParameterField zero0 = {0}; + if (!pSPBMInterParameter) pSPBMInterParameter = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQrySPBMInterParameter(pSPBMInterParameter,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQrySPBMPortfDefinition(CThostFtdcSPBMPortfDefinitionField* pSPBMPortfDefinition,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSPBMPortfDefinition 回调 C# 参数 不能为 NULL + CThostFtdcSPBMPortfDefinitionField zero0 = {0}; + if (!pSPBMPortfDefinition) pSPBMPortfDefinition = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQrySPBMPortfDefinition(pSPBMPortfDefinition,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQrySPBMInvestorPortfDef(CThostFtdcSPBMInvestorPortfDefField* pSPBMInvestorPortfDef,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pSPBMInvestorPortfDef 回调 C# 参数 不能为 NULL + CThostFtdcSPBMInvestorPortfDefField zero0 = {0}; + if (!pSPBMInvestorPortfDef) pSPBMInvestorPortfDef = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQrySPBMInvestorPortfDef(pSPBMInvestorPortfDef,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryInvestorPortfMarginRatio(CThostFtdcInvestorPortfMarginRatioField* pInvestorPortfMarginRatio,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInvestorPortfMarginRatio 回调 C# 参数 不能为 NULL + CThostFtdcInvestorPortfMarginRatioField zero0 = {0}; + if (!pInvestorPortfMarginRatio) pInvestorPortfMarginRatio = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryInvestorPortfMarginRatio(pInvestorPortfMarginRatio,pRspInfo,nRequestID,bIsLast); + } + + virtual void OnRspQryInvestorProdSPBMDetail(CThostFtdcInvestorProdSPBMDetailField* pInvestorProdSPBMDetail,CThostFtdcRspInfoField* pRspInfo,int nRequestID,bool bIsLast) + { + //pInvestorProdSPBMDetail 回调 C# 参数 不能为 NULL + CThostFtdcInvestorProdSPBMDetailField zero0 = {0}; + if (!pInvestorProdSPBMDetail) pInvestorProdSPBMDetail = &zero0; + //pRspInfo 回调 C# 参数 不能为 NULL + CThostFtdcRspInfoField zero1 = {0}; + if (!pRspInfo) pRspInfo = &zero1; + _callbacks.OnRspQryInvestorProdSPBMDetail(pInvestorProdSPBMDetail,pRspInfo,nRequestID,bIsLast); + } + +}; +extern "C" +CTPSHARP_EXPORT void* CTPSHARP_STDCALL CThostFtdcTraderSpi_New(const CTPSharp_CThostFtdcTraderSpi* callbacks) +{ + return new CThostFtdcTraderSpi_Ex(callbacks); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcTraderSpi_Delete(void* spi) +{ + delete (CThostFtdcTraderSpi_Ex*)spi; +} +extern "C" +CTPSHARP_EXPORT CThostFtdcTraderApi* CTPSHARP_STDCALL CThostFtdcTraderApi_Create(const char* pszFlowPath) +{ + return CThostFtdcTraderApi::CreateFtdcTraderApi(pszFlowPath); +} +extern "C" +CTPSHARP_EXPORT const char* CTPSHARP_STDCALL CThostFtdcTraderApi_GetApiVersion() +{ + return CThostFtdcTraderApi::GetApiVersion(); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcTraderApi_Release(CThostFtdcTraderApi* api) +{ + api->Release(); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcTraderApi_Init(CThostFtdcTraderApi* api) +{ + api->Init(); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_Join(CThostFtdcTraderApi* api) +{ + return api->Join(); +} +extern "C" +CTPSHARP_EXPORT const char* CTPSHARP_STDCALL CThostFtdcTraderApi_GetTradingDay(CThostFtdcTraderApi* api) +{ + return api->GetTradingDay(); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcTraderApi_RegisterFront(CThostFtdcTraderApi * api,char* pszFrontAddress) +{ + api->RegisterFront(pszFrontAddress); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcTraderApi_RegisterNameServer(CThostFtdcTraderApi * api,char* pszNsAddress) +{ + api->RegisterNameServer(pszNsAddress); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcTraderApi_RegisterFensUserInfo(CThostFtdcTraderApi * api,CThostFtdcFensUserInfoField* pFensUserInfo) +{ + api->RegisterFensUserInfo(pFensUserInfo); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcTraderApi_RegisterSpi(CThostFtdcTraderApi * api,CThostFtdcTraderSpi* pSpi) +{ + api->RegisterSpi(pSpi); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcTraderApi_SubscribePrivateTopic(CThostFtdcTraderApi * api,THOST_TE_RESUME_TYPE nResumeType) +{ + api->SubscribePrivateTopic(nResumeType); +} +extern "C" +CTPSHARP_EXPORT void CTPSHARP_STDCALL CThostFtdcTraderApi_SubscribePublicTopic(CThostFtdcTraderApi * api,THOST_TE_RESUME_TYPE nResumeType) +{ + api->SubscribePublicTopic(nResumeType); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqAuthenticate(CThostFtdcTraderApi * api,CThostFtdcReqAuthenticateField* pReqAuthenticateField,int nRequestID) +{ + return api->ReqAuthenticate(pReqAuthenticateField,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_RegisterUserSystemInfo(CThostFtdcTraderApi * api,CThostFtdcUserSystemInfoField* pUserSystemInfo) +{ + return api->RegisterUserSystemInfo(pUserSystemInfo); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_SubmitUserSystemInfo(CThostFtdcTraderApi * api,CThostFtdcUserSystemInfoField* pUserSystemInfo) +{ + return api->SubmitUserSystemInfo(pUserSystemInfo); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqUserLogin(CThostFtdcTraderApi * api,CThostFtdcReqUserLoginField* pReqUserLoginField,int nRequestID) +{ + return api->ReqUserLogin(pReqUserLoginField,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqUserLogout(CThostFtdcTraderApi * api,CThostFtdcUserLogoutField* pUserLogout,int nRequestID) +{ + return api->ReqUserLogout(pUserLogout,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqUserPasswordUpdate(CThostFtdcTraderApi * api,CThostFtdcUserPasswordUpdateField* pUserPasswordUpdate,int nRequestID) +{ + return api->ReqUserPasswordUpdate(pUserPasswordUpdate,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqTradingAccountPasswordUpdate(CThostFtdcTraderApi * api,CThostFtdcTradingAccountPasswordUpdateField* pTradingAccountPasswordUpdate,int nRequestID) +{ + return api->ReqTradingAccountPasswordUpdate(pTradingAccountPasswordUpdate,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqUserAuthMethod(CThostFtdcTraderApi * api,CThostFtdcReqUserAuthMethodField* pReqUserAuthMethod,int nRequestID) +{ + return api->ReqUserAuthMethod(pReqUserAuthMethod,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqGenUserCaptcha(CThostFtdcTraderApi * api,CThostFtdcReqGenUserCaptchaField* pReqGenUserCaptcha,int nRequestID) +{ + return api->ReqGenUserCaptcha(pReqGenUserCaptcha,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqGenUserText(CThostFtdcTraderApi * api,CThostFtdcReqGenUserTextField* pReqGenUserText,int nRequestID) +{ + return api->ReqGenUserText(pReqGenUserText,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqUserLoginWithCaptcha(CThostFtdcTraderApi * api,CThostFtdcReqUserLoginWithCaptchaField* pReqUserLoginWithCaptcha,int nRequestID) +{ + return api->ReqUserLoginWithCaptcha(pReqUserLoginWithCaptcha,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqUserLoginWithText(CThostFtdcTraderApi * api,CThostFtdcReqUserLoginWithTextField* pReqUserLoginWithText,int nRequestID) +{ + return api->ReqUserLoginWithText(pReqUserLoginWithText,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqUserLoginWithOTP(CThostFtdcTraderApi * api,CThostFtdcReqUserLoginWithOTPField* pReqUserLoginWithOTP,int nRequestID) +{ + return api->ReqUserLoginWithOTP(pReqUserLoginWithOTP,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqOrderInsert(CThostFtdcTraderApi * api,CThostFtdcInputOrderField* pInputOrder,int nRequestID) +{ + return api->ReqOrderInsert(pInputOrder,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqParkedOrderInsert(CThostFtdcTraderApi * api,CThostFtdcParkedOrderField* pParkedOrder,int nRequestID) +{ + return api->ReqParkedOrderInsert(pParkedOrder,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqParkedOrderAction(CThostFtdcTraderApi * api,CThostFtdcParkedOrderActionField* pParkedOrderAction,int nRequestID) +{ + return api->ReqParkedOrderAction(pParkedOrderAction,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqOrderAction(CThostFtdcTraderApi * api,CThostFtdcInputOrderActionField* pInputOrderAction,int nRequestID) +{ + return api->ReqOrderAction(pInputOrderAction,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryMaxOrderVolume(CThostFtdcTraderApi * api,CThostFtdcQryMaxOrderVolumeField* pQryMaxOrderVolume,int nRequestID) +{ + return api->ReqQryMaxOrderVolume(pQryMaxOrderVolume,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqSettlementInfoConfirm(CThostFtdcTraderApi * api,CThostFtdcSettlementInfoConfirmField* pSettlementInfoConfirm,int nRequestID) +{ + return api->ReqSettlementInfoConfirm(pSettlementInfoConfirm,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqRemoveParkedOrder(CThostFtdcTraderApi * api,CThostFtdcRemoveParkedOrderField* pRemoveParkedOrder,int nRequestID) +{ + return api->ReqRemoveParkedOrder(pRemoveParkedOrder,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqRemoveParkedOrderAction(CThostFtdcTraderApi * api,CThostFtdcRemoveParkedOrderActionField* pRemoveParkedOrderAction,int nRequestID) +{ + return api->ReqRemoveParkedOrderAction(pRemoveParkedOrderAction,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqExecOrderInsert(CThostFtdcTraderApi * api,CThostFtdcInputExecOrderField* pInputExecOrder,int nRequestID) +{ + return api->ReqExecOrderInsert(pInputExecOrder,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqExecOrderAction(CThostFtdcTraderApi * api,CThostFtdcInputExecOrderActionField* pInputExecOrderAction,int nRequestID) +{ + return api->ReqExecOrderAction(pInputExecOrderAction,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqForQuoteInsert(CThostFtdcTraderApi * api,CThostFtdcInputForQuoteField* pInputForQuote,int nRequestID) +{ + return api->ReqForQuoteInsert(pInputForQuote,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQuoteInsert(CThostFtdcTraderApi * api,CThostFtdcInputQuoteField* pInputQuote,int nRequestID) +{ + return api->ReqQuoteInsert(pInputQuote,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQuoteAction(CThostFtdcTraderApi * api,CThostFtdcInputQuoteActionField* pInputQuoteAction,int nRequestID) +{ + return api->ReqQuoteAction(pInputQuoteAction,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqBatchOrderAction(CThostFtdcTraderApi * api,CThostFtdcInputBatchOrderActionField* pInputBatchOrderAction,int nRequestID) +{ + return api->ReqBatchOrderAction(pInputBatchOrderAction,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqOptionSelfCloseInsert(CThostFtdcTraderApi * api,CThostFtdcInputOptionSelfCloseField* pInputOptionSelfClose,int nRequestID) +{ + return api->ReqOptionSelfCloseInsert(pInputOptionSelfClose,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqOptionSelfCloseAction(CThostFtdcTraderApi * api,CThostFtdcInputOptionSelfCloseActionField* pInputOptionSelfCloseAction,int nRequestID) +{ + return api->ReqOptionSelfCloseAction(pInputOptionSelfCloseAction,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqCombActionInsert(CThostFtdcTraderApi * api,CThostFtdcInputCombActionField* pInputCombAction,int nRequestID) +{ + return api->ReqCombActionInsert(pInputCombAction,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryOrder(CThostFtdcTraderApi * api,CThostFtdcQryOrderField* pQryOrder,int nRequestID) +{ + return api->ReqQryOrder(pQryOrder,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryTrade(CThostFtdcTraderApi * api,CThostFtdcQryTradeField* pQryTrade,int nRequestID) +{ + return api->ReqQryTrade(pQryTrade,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryInvestorPosition(CThostFtdcTraderApi * api,CThostFtdcQryInvestorPositionField* pQryInvestorPosition,int nRequestID) +{ + return api->ReqQryInvestorPosition(pQryInvestorPosition,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryTradingAccount(CThostFtdcTraderApi * api,CThostFtdcQryTradingAccountField* pQryTradingAccount,int nRequestID) +{ + return api->ReqQryTradingAccount(pQryTradingAccount,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryInvestor(CThostFtdcTraderApi * api,CThostFtdcQryInvestorField* pQryInvestor,int nRequestID) +{ + return api->ReqQryInvestor(pQryInvestor,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryTradingCode(CThostFtdcTraderApi * api,CThostFtdcQryTradingCodeField* pQryTradingCode,int nRequestID) +{ + return api->ReqQryTradingCode(pQryTradingCode,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryInstrumentMarginRate(CThostFtdcTraderApi * api,CThostFtdcQryInstrumentMarginRateField* pQryInstrumentMarginRate,int nRequestID) +{ + return api->ReqQryInstrumentMarginRate(pQryInstrumentMarginRate,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryInstrumentCommissionRate(CThostFtdcTraderApi * api,CThostFtdcQryInstrumentCommissionRateField* pQryInstrumentCommissionRate,int nRequestID) +{ + return api->ReqQryInstrumentCommissionRate(pQryInstrumentCommissionRate,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryExchange(CThostFtdcTraderApi * api,CThostFtdcQryExchangeField* pQryExchange,int nRequestID) +{ + return api->ReqQryExchange(pQryExchange,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryProduct(CThostFtdcTraderApi * api,CThostFtdcQryProductField* pQryProduct,int nRequestID) +{ + return api->ReqQryProduct(pQryProduct,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryInstrument(CThostFtdcTraderApi * api,CThostFtdcQryInstrumentField* pQryInstrument,int nRequestID) +{ + return api->ReqQryInstrument(pQryInstrument,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryDepthMarketData(CThostFtdcTraderApi * api,CThostFtdcQryDepthMarketDataField* pQryDepthMarketData,int nRequestID) +{ + return api->ReqQryDepthMarketData(pQryDepthMarketData,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryTraderOffer(CThostFtdcTraderApi * api,CThostFtdcQryTraderOfferField* pQryTraderOffer,int nRequestID) +{ + return api->ReqQryTraderOffer(pQryTraderOffer,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQrySettlementInfo(CThostFtdcTraderApi * api,CThostFtdcQrySettlementInfoField* pQrySettlementInfo,int nRequestID) +{ + return api->ReqQrySettlementInfo(pQrySettlementInfo,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryTransferBank(CThostFtdcTraderApi * api,CThostFtdcQryTransferBankField* pQryTransferBank,int nRequestID) +{ + return api->ReqQryTransferBank(pQryTransferBank,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryInvestorPositionDetail(CThostFtdcTraderApi * api,CThostFtdcQryInvestorPositionDetailField* pQryInvestorPositionDetail,int nRequestID) +{ + return api->ReqQryInvestorPositionDetail(pQryInvestorPositionDetail,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryNotice(CThostFtdcTraderApi * api,CThostFtdcQryNoticeField* pQryNotice,int nRequestID) +{ + return api->ReqQryNotice(pQryNotice,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQrySettlementInfoConfirm(CThostFtdcTraderApi * api,CThostFtdcQrySettlementInfoConfirmField* pQrySettlementInfoConfirm,int nRequestID) +{ + return api->ReqQrySettlementInfoConfirm(pQrySettlementInfoConfirm,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryInvestorPositionCombineDetail(CThostFtdcTraderApi * api,CThostFtdcQryInvestorPositionCombineDetailField* pQryInvestorPositionCombineDetail,int nRequestID) +{ + return api->ReqQryInvestorPositionCombineDetail(pQryInvestorPositionCombineDetail,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryCFMMCTradingAccountKey(CThostFtdcTraderApi * api,CThostFtdcQryCFMMCTradingAccountKeyField* pQryCFMMCTradingAccountKey,int nRequestID) +{ + return api->ReqQryCFMMCTradingAccountKey(pQryCFMMCTradingAccountKey,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryEWarrantOffset(CThostFtdcTraderApi * api,CThostFtdcQryEWarrantOffsetField* pQryEWarrantOffset,int nRequestID) +{ + return api->ReqQryEWarrantOffset(pQryEWarrantOffset,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryInvestorProductGroupMargin(CThostFtdcTraderApi * api,CThostFtdcQryInvestorProductGroupMarginField* pQryInvestorProductGroupMargin,int nRequestID) +{ + return api->ReqQryInvestorProductGroupMargin(pQryInvestorProductGroupMargin,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryExchangeMarginRate(CThostFtdcTraderApi * api,CThostFtdcQryExchangeMarginRateField* pQryExchangeMarginRate,int nRequestID) +{ + return api->ReqQryExchangeMarginRate(pQryExchangeMarginRate,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryExchangeMarginRateAdjust(CThostFtdcTraderApi * api,CThostFtdcQryExchangeMarginRateAdjustField* pQryExchangeMarginRateAdjust,int nRequestID) +{ + return api->ReqQryExchangeMarginRateAdjust(pQryExchangeMarginRateAdjust,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryExchangeRate(CThostFtdcTraderApi * api,CThostFtdcQryExchangeRateField* pQryExchangeRate,int nRequestID) +{ + return api->ReqQryExchangeRate(pQryExchangeRate,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQrySecAgentACIDMap(CThostFtdcTraderApi * api,CThostFtdcQrySecAgentACIDMapField* pQrySecAgentACIDMap,int nRequestID) +{ + return api->ReqQrySecAgentACIDMap(pQrySecAgentACIDMap,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryProductExchRate(CThostFtdcTraderApi * api,CThostFtdcQryProductExchRateField* pQryProductExchRate,int nRequestID) +{ + return api->ReqQryProductExchRate(pQryProductExchRate,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryProductGroup(CThostFtdcTraderApi * api,CThostFtdcQryProductGroupField* pQryProductGroup,int nRequestID) +{ + return api->ReqQryProductGroup(pQryProductGroup,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryMMInstrumentCommissionRate(CThostFtdcTraderApi * api,CThostFtdcQryMMInstrumentCommissionRateField* pQryMMInstrumentCommissionRate,int nRequestID) +{ + return api->ReqQryMMInstrumentCommissionRate(pQryMMInstrumentCommissionRate,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryMMOptionInstrCommRate(CThostFtdcTraderApi * api,CThostFtdcQryMMOptionInstrCommRateField* pQryMMOptionInstrCommRate,int nRequestID) +{ + return api->ReqQryMMOptionInstrCommRate(pQryMMOptionInstrCommRate,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryInstrumentOrderCommRate(CThostFtdcTraderApi * api,CThostFtdcQryInstrumentOrderCommRateField* pQryInstrumentOrderCommRate,int nRequestID) +{ + return api->ReqQryInstrumentOrderCommRate(pQryInstrumentOrderCommRate,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQrySecAgentTradingAccount(CThostFtdcTraderApi * api,CThostFtdcQryTradingAccountField* pQryTradingAccount,int nRequestID) +{ + return api->ReqQrySecAgentTradingAccount(pQryTradingAccount,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQrySecAgentCheckMode(CThostFtdcTraderApi * api,CThostFtdcQrySecAgentCheckModeField* pQrySecAgentCheckMode,int nRequestID) +{ + return api->ReqQrySecAgentCheckMode(pQrySecAgentCheckMode,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQrySecAgentTradeInfo(CThostFtdcTraderApi * api,CThostFtdcQrySecAgentTradeInfoField* pQrySecAgentTradeInfo,int nRequestID) +{ + return api->ReqQrySecAgentTradeInfo(pQrySecAgentTradeInfo,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryOptionInstrTradeCost(CThostFtdcTraderApi * api,CThostFtdcQryOptionInstrTradeCostField* pQryOptionInstrTradeCost,int nRequestID) +{ + return api->ReqQryOptionInstrTradeCost(pQryOptionInstrTradeCost,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryOptionInstrCommRate(CThostFtdcTraderApi * api,CThostFtdcQryOptionInstrCommRateField* pQryOptionInstrCommRate,int nRequestID) +{ + return api->ReqQryOptionInstrCommRate(pQryOptionInstrCommRate,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryExecOrder(CThostFtdcTraderApi * api,CThostFtdcQryExecOrderField* pQryExecOrder,int nRequestID) +{ + return api->ReqQryExecOrder(pQryExecOrder,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryForQuote(CThostFtdcTraderApi * api,CThostFtdcQryForQuoteField* pQryForQuote,int nRequestID) +{ + return api->ReqQryForQuote(pQryForQuote,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryQuote(CThostFtdcTraderApi * api,CThostFtdcQryQuoteField* pQryQuote,int nRequestID) +{ + return api->ReqQryQuote(pQryQuote,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryOptionSelfClose(CThostFtdcTraderApi * api,CThostFtdcQryOptionSelfCloseField* pQryOptionSelfClose,int nRequestID) +{ + return api->ReqQryOptionSelfClose(pQryOptionSelfClose,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryInvestUnit(CThostFtdcTraderApi * api,CThostFtdcQryInvestUnitField* pQryInvestUnit,int nRequestID) +{ + return api->ReqQryInvestUnit(pQryInvestUnit,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryCombInstrumentGuard(CThostFtdcTraderApi * api,CThostFtdcQryCombInstrumentGuardField* pQryCombInstrumentGuard,int nRequestID) +{ + return api->ReqQryCombInstrumentGuard(pQryCombInstrumentGuard,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryCombAction(CThostFtdcTraderApi * api,CThostFtdcQryCombActionField* pQryCombAction,int nRequestID) +{ + return api->ReqQryCombAction(pQryCombAction,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryTransferSerial(CThostFtdcTraderApi * api,CThostFtdcQryTransferSerialField* pQryTransferSerial,int nRequestID) +{ + return api->ReqQryTransferSerial(pQryTransferSerial,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryAccountregister(CThostFtdcTraderApi * api,CThostFtdcQryAccountregisterField* pQryAccountregister,int nRequestID) +{ + return api->ReqQryAccountregister(pQryAccountregister,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryContractBank(CThostFtdcTraderApi * api,CThostFtdcQryContractBankField* pQryContractBank,int nRequestID) +{ + return api->ReqQryContractBank(pQryContractBank,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryParkedOrder(CThostFtdcTraderApi * api,CThostFtdcQryParkedOrderField* pQryParkedOrder,int nRequestID) +{ + return api->ReqQryParkedOrder(pQryParkedOrder,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryParkedOrderAction(CThostFtdcTraderApi * api,CThostFtdcQryParkedOrderActionField* pQryParkedOrderAction,int nRequestID) +{ + return api->ReqQryParkedOrderAction(pQryParkedOrderAction,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryTradingNotice(CThostFtdcTraderApi * api,CThostFtdcQryTradingNoticeField* pQryTradingNotice,int nRequestID) +{ + return api->ReqQryTradingNotice(pQryTradingNotice,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryBrokerTradingParams(CThostFtdcTraderApi * api,CThostFtdcQryBrokerTradingParamsField* pQryBrokerTradingParams,int nRequestID) +{ + return api->ReqQryBrokerTradingParams(pQryBrokerTradingParams,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryBrokerTradingAlgos(CThostFtdcTraderApi * api,CThostFtdcQryBrokerTradingAlgosField* pQryBrokerTradingAlgos,int nRequestID) +{ + return api->ReqQryBrokerTradingAlgos(pQryBrokerTradingAlgos,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQueryCFMMCTradingAccountToken(CThostFtdcTraderApi * api,CThostFtdcQueryCFMMCTradingAccountTokenField* pQueryCFMMCTradingAccountToken,int nRequestID) +{ + return api->ReqQueryCFMMCTradingAccountToken(pQueryCFMMCTradingAccountToken,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqFromBankToFutureByFuture(CThostFtdcTraderApi * api,CThostFtdcReqTransferField* pReqTransfer,int nRequestID) +{ + return api->ReqFromBankToFutureByFuture(pReqTransfer,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqFromFutureToBankByFuture(CThostFtdcTraderApi * api,CThostFtdcReqTransferField* pReqTransfer,int nRequestID) +{ + return api->ReqFromFutureToBankByFuture(pReqTransfer,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQueryBankAccountMoneyByFuture(CThostFtdcTraderApi * api,CThostFtdcReqQueryAccountField* pReqQueryAccount,int nRequestID) +{ + return api->ReqQueryBankAccountMoneyByFuture(pReqQueryAccount,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryClassifiedInstrument(CThostFtdcTraderApi * api,CThostFtdcQryClassifiedInstrumentField* pQryClassifiedInstrument,int nRequestID) +{ + return api->ReqQryClassifiedInstrument(pQryClassifiedInstrument,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryCombPromotionParam(CThostFtdcTraderApi * api,CThostFtdcQryCombPromotionParamField* pQryCombPromotionParam,int nRequestID) +{ + return api->ReqQryCombPromotionParam(pQryCombPromotionParam,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryRiskSettleInvstPosition(CThostFtdcTraderApi * api,CThostFtdcQryRiskSettleInvstPositionField* pQryRiskSettleInvstPosition,int nRequestID) +{ + return api->ReqQryRiskSettleInvstPosition(pQryRiskSettleInvstPosition,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryRiskSettleProductStatus(CThostFtdcTraderApi * api,CThostFtdcQryRiskSettleProductStatusField* pQryRiskSettleProductStatus,int nRequestID) +{ + return api->ReqQryRiskSettleProductStatus(pQryRiskSettleProductStatus,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQrySPBMFutureParameter(CThostFtdcTraderApi * api,CThostFtdcQrySPBMFutureParameterField* pQrySPBMFutureParameter,int nRequestID) +{ + return api->ReqQrySPBMFutureParameter(pQrySPBMFutureParameter,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQrySPBMOptionParameter(CThostFtdcTraderApi * api,CThostFtdcQrySPBMOptionParameterField* pQrySPBMOptionParameter,int nRequestID) +{ + return api->ReqQrySPBMOptionParameter(pQrySPBMOptionParameter,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQrySPBMIntraParameter(CThostFtdcTraderApi * api,CThostFtdcQrySPBMIntraParameterField* pQrySPBMIntraParameter,int nRequestID) +{ + return api->ReqQrySPBMIntraParameter(pQrySPBMIntraParameter,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQrySPBMInterParameter(CThostFtdcTraderApi * api,CThostFtdcQrySPBMInterParameterField* pQrySPBMInterParameter,int nRequestID) +{ + return api->ReqQrySPBMInterParameter(pQrySPBMInterParameter,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQrySPBMPortfDefinition(CThostFtdcTraderApi * api,CThostFtdcQrySPBMPortfDefinitionField* pQrySPBMPortfDefinition,int nRequestID) +{ + return api->ReqQrySPBMPortfDefinition(pQrySPBMPortfDefinition,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQrySPBMInvestorPortfDef(CThostFtdcTraderApi * api,CThostFtdcQrySPBMInvestorPortfDefField* pQrySPBMInvestorPortfDef,int nRequestID) +{ + return api->ReqQrySPBMInvestorPortfDef(pQrySPBMInvestorPortfDef,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryInvestorPortfMarginRatio(CThostFtdcTraderApi * api,CThostFtdcQryInvestorPortfMarginRatioField* pQryInvestorPortfMarginRatio,int nRequestID) +{ + return api->ReqQryInvestorPortfMarginRatio(pQryInvestorPortfMarginRatio,nRequestID); +} +extern "C" +CTPSHARP_EXPORT int CTPSHARP_STDCALL CThostFtdcTraderApi_ReqQryInvestorProdSPBMDetail(CThostFtdcTraderApi * api,CThostFtdcQryInvestorProdSPBMDetailField* pQryInvestorProdSPBMDetail,int nRequestID) +{ + return api->ReqQryInvestorProdSPBMDetail(pQryInvestorProdSPBMDetail,nRequestID); +} + diff --git a/CTPAPI6.6.9/generated/CThostFtdcTraderApi_gen.cs b/CTPAPI6.6.9/generated/CThostFtdcTraderApi_gen.cs new file mode 100644 index 0000000..3fddec0 --- /dev/null +++ b/CTPAPI6.6.9/generated/CThostFtdcTraderApi_gen.cs @@ -0,0 +1,1376 @@ +using System.Diagnostics; +namespace XP.CTPSharp; + +public partial class TdAPI +{ + /// + /// 当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。 + /// + public event Action? FrontConnected; + /// + /// 当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。 + /// + public event Action? FrontDisconnected; + /// + /// 心跳超时警告。当长时间未收到报文时,该方法被调用。 + /// + public event Action? HeartBeatWarning; + /// + /// 报单通知 + /// + public event Action? RtnOrder; + /// + /// 成交通知 + /// + public event Action? RtnTrade; + /// + /// 报单录入错误回报 + /// + public event Action>? ErrRtnOrderInsert; + /// + /// 报单操作错误回报 + /// + public event Action>? ErrRtnOrderAction; + /// + /// 合约交易状态通知 + /// + public event Action? RtnInstrumentStatus; + /// + /// 交易所公告通知 + /// + public event Action? RtnBulletin; + /// + /// 交易通知 + /// + public event Action? RtnTradingNotice; + /// + /// 提示条件单校验错误 + /// + public event Action? RtnErrorConditionalOrder; + /// + /// 执行宣告通知 + /// + public event Action? RtnExecOrder; + /// + /// 执行宣告录入错误回报 + /// + public event Action>? ErrRtnExecOrderInsert; + /// + /// 执行宣告操作错误回报 + /// + public event Action>? ErrRtnExecOrderAction; + /// + /// 询价录入错误回报 + /// + public event Action>? ErrRtnForQuoteInsert; + /// + /// 报价通知 + /// + public event Action? RtnQuote; + /// + /// 报价录入错误回报 + /// + public event Action>? ErrRtnQuoteInsert; + /// + /// 报价操作错误回报 + /// + public event Action>? ErrRtnQuoteAction; + /// + /// 询价通知 + /// + public event Action? RtnForQuoteRsp; + /// + /// 保证金监控中心用户令牌 + /// + public event Action? RtnCFMMCTradingAccountToken; + /// + /// 批量报单操作错误回报 + /// + public event Action>? ErrRtnBatchOrderAction; + /// + /// 期权自对冲通知 + /// + public event Action? RtnOptionSelfClose; + /// + /// 期权自对冲录入错误回报 + /// + public event Action>? ErrRtnOptionSelfCloseInsert; + /// + /// 期权自对冲操作错误回报 + /// + public event Action>? ErrRtnOptionSelfCloseAction; + /// + /// 申请组合通知 + /// + public event Action? RtnCombAction; + /// + /// 申请组合录入错误回报 + /// + public event Action>? ErrRtnCombActionInsert; + /// + /// 银行发起银行资金转期货通知 + /// + public event Action? RtnFromBankToFutureByBank; + /// + /// 银行发起期货资金转银行通知 + /// + public event Action? RtnFromFutureToBankByBank; + /// + /// 银行发起冲正银行转期货通知 + /// + public event Action? RtnRepealFromBankToFutureByBank; + /// + /// 银行发起冲正期货转银行通知 + /// + public event Action? RtnRepealFromFutureToBankByBank; + /// + /// 期货发起银行资金转期货通知 + /// + public event Action? RtnFromBankToFutureByFuture; + /// + /// 期货发起期货资金转银行通知 + /// + public event Action? RtnFromFutureToBankByFuture; + /// + /// 系统运行时期货端手工发起冲正银行转期货请求,银行处理完毕后报盘发回的通知 + /// + public event Action? RtnRepealFromBankToFutureByFutureManual; + /// + /// 系统运行时期货端手工发起冲正期货转银行请求,银行处理完毕后报盘发回的通知 + /// + public event Action? RtnRepealFromFutureToBankByFutureManual; + /// + /// 期货发起查询银行余额通知 + /// + public event Action? RtnQueryBankBalanceByFuture; + /// + /// 期货发起银行资金转期货错误回报 + /// + public event Action>? ErrRtnBankToFutureByFuture; + /// + /// 期货发起期货资金转银行错误回报 + /// + public event Action>? ErrRtnFutureToBankByFuture; + /// + /// 系统运行时期货端手工发起冲正银行转期货错误回报 + /// + public event Action>? ErrRtnRepealBankToFutureByFutureManual; + /// + /// 系统运行时期货端手工发起冲正期货转银行错误回报 + /// + public event Action>? ErrRtnRepealFutureToBankByFutureManual; + /// + /// 期货发起查询银行余额错误回报 + /// + public event Action>? ErrRtnQueryBankBalanceByFuture; + /// + /// 期货发起冲正银行转期货请求,银行处理完毕后报盘发回的通知 + /// + public event Action? RtnRepealFromBankToFutureByFuture; + /// + /// 期货发起冲正期货转银行请求,银行处理完毕后报盘发回的通知 + /// + public event Action? RtnRepealFromFutureToBankByFuture; + /// + /// 银行发起银期开户通知 + /// + public event Action? RtnOpenAccountByBank; + /// + /// 银行发起银期销户通知 + /// + public event Action? RtnCancelAccountByBank; + /// + /// 银行发起变更银行账号通知 + /// + public event Action? RtnChangeAccountByBank; + + private void SubscribeSPI() + { + _spi.FrontConnected += () => FrontConnected?.Invoke(); + _spi.FrontDisconnected += (_1) => FrontDisconnected?.Invoke(_1); + _spi.HeartBeatWarning += (_1) => HeartBeatWarning?.Invoke(_1); + _spi.RtnOrder += (_1) => RtnOrder?.Invoke(_1); + _spi.RtnTrade += (_1) => RtnTrade?.Invoke(_1); + _spi.ErrRtnOrderInsert += (_1) => ErrRtnOrderInsert?.Invoke(_1); + _spi.ErrRtnOrderAction += (_1) => ErrRtnOrderAction?.Invoke(_1); + _spi.RtnInstrumentStatus += (_1) => RtnInstrumentStatus?.Invoke(_1); + _spi.RtnBulletin += (_1) => RtnBulletin?.Invoke(_1); + _spi.RtnTradingNotice += (_1) => RtnTradingNotice?.Invoke(_1); + _spi.RtnErrorConditionalOrder += (_1) => RtnErrorConditionalOrder?.Invoke(_1); + _spi.RtnExecOrder += (_1) => RtnExecOrder?.Invoke(_1); + _spi.ErrRtnExecOrderInsert += (_1) => ErrRtnExecOrderInsert?.Invoke(_1); + _spi.ErrRtnExecOrderAction += (_1) => ErrRtnExecOrderAction?.Invoke(_1); + _spi.ErrRtnForQuoteInsert += (_1) => ErrRtnForQuoteInsert?.Invoke(_1); + _spi.RtnQuote += (_1) => RtnQuote?.Invoke(_1); + _spi.ErrRtnQuoteInsert += (_1) => ErrRtnQuoteInsert?.Invoke(_1); + _spi.ErrRtnQuoteAction += (_1) => ErrRtnQuoteAction?.Invoke(_1); + _spi.RtnForQuoteRsp += (_1) => RtnForQuoteRsp?.Invoke(_1); + _spi.RtnCFMMCTradingAccountToken += (_1) => RtnCFMMCTradingAccountToken?.Invoke(_1); + _spi.ErrRtnBatchOrderAction += (_1) => ErrRtnBatchOrderAction?.Invoke(_1); + _spi.RtnOptionSelfClose += (_1) => RtnOptionSelfClose?.Invoke(_1); + _spi.ErrRtnOptionSelfCloseInsert += (_1) => ErrRtnOptionSelfCloseInsert?.Invoke(_1); + _spi.ErrRtnOptionSelfCloseAction += (_1) => ErrRtnOptionSelfCloseAction?.Invoke(_1); + _spi.RtnCombAction += (_1) => RtnCombAction?.Invoke(_1); + _spi.ErrRtnCombActionInsert += (_1) => ErrRtnCombActionInsert?.Invoke(_1); + _spi.RtnFromBankToFutureByBank += (_1) => RtnFromBankToFutureByBank?.Invoke(_1); + _spi.RtnFromFutureToBankByBank += (_1) => RtnFromFutureToBankByBank?.Invoke(_1); + _spi.RtnRepealFromBankToFutureByBank += (_1) => RtnRepealFromBankToFutureByBank?.Invoke(_1); + _spi.RtnRepealFromFutureToBankByBank += (_1) => RtnRepealFromFutureToBankByBank?.Invoke(_1); + _spi.RtnFromBankToFutureByFuture += (_1) => RtnFromBankToFutureByFuture?.Invoke(_1); + _spi.RtnFromFutureToBankByFuture += (_1) => RtnFromFutureToBankByFuture?.Invoke(_1); + _spi.RtnRepealFromBankToFutureByFutureManual += (_1) => RtnRepealFromBankToFutureByFutureManual?.Invoke(_1); + _spi.RtnRepealFromFutureToBankByFutureManual += (_1) => RtnRepealFromFutureToBankByFutureManual?.Invoke(_1); + _spi.RtnQueryBankBalanceByFuture += (_1) => RtnQueryBankBalanceByFuture?.Invoke(_1); + _spi.ErrRtnBankToFutureByFuture += (_1) => ErrRtnBankToFutureByFuture?.Invoke(_1); + _spi.ErrRtnFutureToBankByFuture += (_1) => ErrRtnFutureToBankByFuture?.Invoke(_1); + _spi.ErrRtnRepealBankToFutureByFutureManual += (_1) => ErrRtnRepealBankToFutureByFutureManual?.Invoke(_1); + _spi.ErrRtnRepealFutureToBankByFutureManual += (_1) => ErrRtnRepealFutureToBankByFutureManual?.Invoke(_1); + _spi.ErrRtnQueryBankBalanceByFuture += (_1) => ErrRtnQueryBankBalanceByFuture?.Invoke(_1); + _spi.RtnRepealFromBankToFutureByFuture += (_1) => RtnRepealFromBankToFutureByFuture?.Invoke(_1); + _spi.RtnRepealFromFutureToBankByFuture += (_1) => RtnRepealFromFutureToBankByFuture?.Invoke(_1); + _spi.RtnOpenAccountByBank += (_1) => RtnOpenAccountByBank?.Invoke(_1); + _spi.RtnCancelAccountByBank += (_1) => RtnCancelAccountByBank?.Invoke(_1); + _spi.RtnChangeAccountByBank += (_1) => RtnChangeAccountByBank?.Invoke(_1); + } + + + /// + /// 客户端认证请求 + /// + public async Task>> + ReqAuthenticateAsync(CThostFtdcReqAuthenticateField pReqAuthenticateField) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqAuthenticate(ref pReqAuthenticateField, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 用户登录请求 + /// + public async Task>> + ReqUserLoginAsync(CThostFtdcReqUserLoginField pReqUserLoginField) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqUserLogin(ref pReqUserLoginField, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 登出请求 + /// + public async Task>> + ReqUserLogoutAsync(CThostFtdcUserLogoutField pUserLogout) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqUserLogout(ref pUserLogout, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 用户口令更新请求 + /// + public async Task>> + ReqUserPasswordUpdateAsync(CThostFtdcUserPasswordUpdateField pUserPasswordUpdate) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqUserPasswordUpdate(ref pUserPasswordUpdate, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 资金账户口令更新请求 + /// + public async Task>> + ReqTradingAccountPasswordUpdateAsync(CThostFtdcTradingAccountPasswordUpdateField pTradingAccountPasswordUpdate) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqTradingAccountPasswordUpdate(ref pTradingAccountPasswordUpdate, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 查询用户当前支持的认证模式 + /// + public async Task>> + ReqUserAuthMethodAsync(CThostFtdcReqUserAuthMethodField pReqUserAuthMethod) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqUserAuthMethod(ref pReqUserAuthMethod, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 用户发出获取图形验证码请求 + /// + public async Task>> + ReqGenUserCaptchaAsync(CThostFtdcReqGenUserCaptchaField pReqGenUserCaptcha) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqGenUserCaptcha(ref pReqGenUserCaptcha, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 用户发出获取短信验证码请求 + /// + public async Task>> + ReqGenUserTextAsync(CThostFtdcReqGenUserTextField pReqGenUserText) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqGenUserText(ref pReqGenUserText, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 用户发出带有图片验证码的登陆请求 + /// + public async Task>> + ReqUserLoginWithCaptchaAsync(CThostFtdcReqUserLoginWithCaptchaField pReqUserLoginWithCaptcha) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqUserLoginWithCaptcha(ref pReqUserLoginWithCaptcha, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 用户发出带有短信验证码的登陆请求 + /// + public async Task>> + ReqUserLoginWithTextAsync(CThostFtdcReqUserLoginWithTextField pReqUserLoginWithText) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqUserLoginWithText(ref pReqUserLoginWithText, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 用户发出带有动态口令的登陆请求 + /// + public async Task>> + ReqUserLoginWithOTPAsync(CThostFtdcReqUserLoginWithOTPField pReqUserLoginWithOTP) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqUserLoginWithOTP(ref pReqUserLoginWithOTP, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 报单录入请求 + /// + public async Task>> + ReqOrderInsertAsync(CThostFtdcInputOrderField pInputOrder) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqOrderInsert(ref pInputOrder, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 预埋单录入请求 + /// + public async Task>> + ReqParkedOrderInsertAsync(CThostFtdcParkedOrderField pParkedOrder) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqParkedOrderInsert(ref pParkedOrder, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 预埋撤单录入请求 + /// + public async Task>> + ReqParkedOrderActionAsync(CThostFtdcParkedOrderActionField pParkedOrderAction) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqParkedOrderAction(ref pParkedOrderAction, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 报单操作请求 + /// + public async Task>> + ReqOrderActionAsync(CThostFtdcInputOrderActionField pInputOrderAction) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqOrderAction(ref pInputOrderAction, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 查询最大报单数量请求 + /// + public async Task>> + ReqQryMaxOrderVolumeAsync(CThostFtdcQryMaxOrderVolumeField pQryMaxOrderVolume) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryMaxOrderVolume(ref pQryMaxOrderVolume, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 投资者结算结果确认 + /// + public async Task>> + ReqSettlementInfoConfirmAsync(CThostFtdcSettlementInfoConfirmField pSettlementInfoConfirm) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqSettlementInfoConfirm(ref pSettlementInfoConfirm, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求删除预埋单 + /// + public async Task>> + ReqRemoveParkedOrderAsync(CThostFtdcRemoveParkedOrderField pRemoveParkedOrder) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqRemoveParkedOrder(ref pRemoveParkedOrder, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求删除预埋撤单 + /// + public async Task>> + ReqRemoveParkedOrderActionAsync(CThostFtdcRemoveParkedOrderActionField pRemoveParkedOrderAction) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqRemoveParkedOrderAction(ref pRemoveParkedOrderAction, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 执行宣告录入请求 + /// + public async Task>> + ReqExecOrderInsertAsync(CThostFtdcInputExecOrderField pInputExecOrder) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqExecOrderInsert(ref pInputExecOrder, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 执行宣告操作请求 + /// + public async Task>> + ReqExecOrderActionAsync(CThostFtdcInputExecOrderActionField pInputExecOrderAction) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqExecOrderAction(ref pInputExecOrderAction, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 询价录入请求 + /// + public async Task>> + ReqForQuoteInsertAsync(CThostFtdcInputForQuoteField pInputForQuote) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqForQuoteInsert(ref pInputForQuote, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 报价录入请求 + /// + public async Task>> + ReqQuoteInsertAsync(CThostFtdcInputQuoteField pInputQuote) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQuoteInsert(ref pInputQuote, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 报价操作请求 + /// + public async Task>> + ReqQuoteActionAsync(CThostFtdcInputQuoteActionField pInputQuoteAction) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQuoteAction(ref pInputQuoteAction, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 批量报单操作请求 + /// + public async Task>> + ReqBatchOrderActionAsync(CThostFtdcInputBatchOrderActionField pInputBatchOrderAction) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqBatchOrderAction(ref pInputBatchOrderAction, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 期权自对冲录入请求 + /// + public async Task>> + ReqOptionSelfCloseInsertAsync(CThostFtdcInputOptionSelfCloseField pInputOptionSelfClose) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqOptionSelfCloseInsert(ref pInputOptionSelfClose, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 期权自对冲操作请求 + /// + public async Task>> + ReqOptionSelfCloseActionAsync(CThostFtdcInputOptionSelfCloseActionField pInputOptionSelfCloseAction) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqOptionSelfCloseAction(ref pInputOptionSelfCloseAction, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 申请组合录入请求 + /// + public async Task>> + ReqCombActionInsertAsync(CThostFtdcInputCombActionField pInputCombAction) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqCombActionInsert(ref pInputCombAction, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询报单 + /// + public async Task>> + ReqQryOrderAsync(CThostFtdcQryOrderField pQryOrder) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryOrder(ref pQryOrder, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询成交 + /// + public async Task>> + ReqQryTradeAsync(CThostFtdcQryTradeField pQryTrade) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryTrade(ref pQryTrade, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询投资者持仓 + /// + public async Task>> + ReqQryInvestorPositionAsync(CThostFtdcQryInvestorPositionField pQryInvestorPosition) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryInvestorPosition(ref pQryInvestorPosition, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询资金账户 + /// + public async Task>> + ReqQryTradingAccountAsync(CThostFtdcQryTradingAccountField pQryTradingAccount) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryTradingAccount(ref pQryTradingAccount, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询投资者 + /// + public async Task>> + ReqQryInvestorAsync(CThostFtdcQryInvestorField pQryInvestor) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryInvestor(ref pQryInvestor, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询交易编码 + /// + public async Task>> + ReqQryTradingCodeAsync(CThostFtdcQryTradingCodeField pQryTradingCode) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryTradingCode(ref pQryTradingCode, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询合约保证金率 + /// + public async Task>> + ReqQryInstrumentMarginRateAsync(CThostFtdcQryInstrumentMarginRateField pQryInstrumentMarginRate) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryInstrumentMarginRate(ref pQryInstrumentMarginRate, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询合约手续费率 + /// + public async Task>> + ReqQryInstrumentCommissionRateAsync(CThostFtdcQryInstrumentCommissionRateField pQryInstrumentCommissionRate) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryInstrumentCommissionRate(ref pQryInstrumentCommissionRate, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询交易所 + /// + public async Task>> + ReqQryExchangeAsync(CThostFtdcQryExchangeField pQryExchange) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryExchange(ref pQryExchange, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询产品 + /// + public async Task>> + ReqQryProductAsync(CThostFtdcQryProductField pQryProduct) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryProduct(ref pQryProduct, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询合约 + /// + public async Task>> + ReqQryInstrumentAsync(CThostFtdcQryInstrumentField pQryInstrument) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryInstrument(ref pQryInstrument, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询行情 + /// + public async Task>> + ReqQryDepthMarketDataAsync(CThostFtdcQryDepthMarketDataField pQryDepthMarketData) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryDepthMarketData(ref pQryDepthMarketData, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询交易员报盘机 + /// + public async Task>> + ReqQryTraderOfferAsync(CThostFtdcQryTraderOfferField pQryTraderOffer) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryTraderOffer(ref pQryTraderOffer, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询投资者结算结果 + /// + public async Task>> + ReqQrySettlementInfoAsync(CThostFtdcQrySettlementInfoField pQrySettlementInfo) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQrySettlementInfo(ref pQrySettlementInfo, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询转帐银行 + /// + public async Task>> + ReqQryTransferBankAsync(CThostFtdcQryTransferBankField pQryTransferBank) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryTransferBank(ref pQryTransferBank, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询投资者持仓明细 + /// + public async Task>> + ReqQryInvestorPositionDetailAsync(CThostFtdcQryInvestorPositionDetailField pQryInvestorPositionDetail) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryInvestorPositionDetail(ref pQryInvestorPositionDetail, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询客户通知 + /// + public async Task>> + ReqQryNoticeAsync(CThostFtdcQryNoticeField pQryNotice) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryNotice(ref pQryNotice, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询结算信息确认 + /// + public async Task>> + ReqQrySettlementInfoConfirmAsync(CThostFtdcQrySettlementInfoConfirmField pQrySettlementInfoConfirm) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQrySettlementInfoConfirm(ref pQrySettlementInfoConfirm, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询投资者持仓明细 + /// + public async Task>> + ReqQryInvestorPositionCombineDetailAsync(CThostFtdcQryInvestorPositionCombineDetailField pQryInvestorPositionCombineDetail) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryInvestorPositionCombineDetail(ref pQryInvestorPositionCombineDetail, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询保证金监管系统经纪公司资金账户密钥 + /// + public async Task>> + ReqQryCFMMCTradingAccountKeyAsync(CThostFtdcQryCFMMCTradingAccountKeyField pQryCFMMCTradingAccountKey) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryCFMMCTradingAccountKey(ref pQryCFMMCTradingAccountKey, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询仓单折抵信息 + /// + public async Task>> + ReqQryEWarrantOffsetAsync(CThostFtdcQryEWarrantOffsetField pQryEWarrantOffset) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryEWarrantOffset(ref pQryEWarrantOffset, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询投资者品种/跨品种保证金 + /// + public async Task>> + ReqQryInvestorProductGroupMarginAsync(CThostFtdcQryInvestorProductGroupMarginField pQryInvestorProductGroupMargin) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryInvestorProductGroupMargin(ref pQryInvestorProductGroupMargin, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询交易所保证金率 + /// + public async Task>> + ReqQryExchangeMarginRateAsync(CThostFtdcQryExchangeMarginRateField pQryExchangeMarginRate) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryExchangeMarginRate(ref pQryExchangeMarginRate, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询交易所调整保证金率 + /// + public async Task>> + ReqQryExchangeMarginRateAdjustAsync(CThostFtdcQryExchangeMarginRateAdjustField pQryExchangeMarginRateAdjust) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryExchangeMarginRateAdjust(ref pQryExchangeMarginRateAdjust, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询汇率 + /// + public async Task>> + ReqQryExchangeRateAsync(CThostFtdcQryExchangeRateField pQryExchangeRate) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryExchangeRate(ref pQryExchangeRate, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询二级代理操作员银期权限 + /// + public async Task>> + ReqQrySecAgentACIDMapAsync(CThostFtdcQrySecAgentACIDMapField pQrySecAgentACIDMap) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQrySecAgentACIDMap(ref pQrySecAgentACIDMap, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询产品报价汇率 + /// + public async Task>> + ReqQryProductExchRateAsync(CThostFtdcQryProductExchRateField pQryProductExchRate) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryProductExchRate(ref pQryProductExchRate, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询产品组 + /// + public async Task>> + ReqQryProductGroupAsync(CThostFtdcQryProductGroupField pQryProductGroup) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryProductGroup(ref pQryProductGroup, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询做市商合约手续费率 + /// + public async Task>> + ReqQryMMInstrumentCommissionRateAsync(CThostFtdcQryMMInstrumentCommissionRateField pQryMMInstrumentCommissionRate) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryMMInstrumentCommissionRate(ref pQryMMInstrumentCommissionRate, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询做市商期权合约手续费 + /// + public async Task>> + ReqQryMMOptionInstrCommRateAsync(CThostFtdcQryMMOptionInstrCommRateField pQryMMOptionInstrCommRate) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryMMOptionInstrCommRate(ref pQryMMOptionInstrCommRate, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询报单手续费 + /// + public async Task>> + ReqQryInstrumentOrderCommRateAsync(CThostFtdcQryInstrumentOrderCommRateField pQryInstrumentOrderCommRate) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryInstrumentOrderCommRate(ref pQryInstrumentOrderCommRate, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询资金账户 + /// + public async Task>> + ReqQrySecAgentTradingAccountAsync(CThostFtdcQryTradingAccountField pQryTradingAccount) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQrySecAgentTradingAccount(ref pQryTradingAccount, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询二级代理商资金校验模式 + /// + public async Task>> + ReqQrySecAgentCheckModeAsync(CThostFtdcQrySecAgentCheckModeField pQrySecAgentCheckMode) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQrySecAgentCheckMode(ref pQrySecAgentCheckMode, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询二级代理商信息 + /// + public async Task>> + ReqQrySecAgentTradeInfoAsync(CThostFtdcQrySecAgentTradeInfoField pQrySecAgentTradeInfo) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQrySecAgentTradeInfo(ref pQrySecAgentTradeInfo, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询期权交易成本 + /// + public async Task>> + ReqQryOptionInstrTradeCostAsync(CThostFtdcQryOptionInstrTradeCostField pQryOptionInstrTradeCost) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryOptionInstrTradeCost(ref pQryOptionInstrTradeCost, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询期权合约手续费 + /// + public async Task>> + ReqQryOptionInstrCommRateAsync(CThostFtdcQryOptionInstrCommRateField pQryOptionInstrCommRate) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryOptionInstrCommRate(ref pQryOptionInstrCommRate, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询执行宣告 + /// + public async Task>> + ReqQryExecOrderAsync(CThostFtdcQryExecOrderField pQryExecOrder) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryExecOrder(ref pQryExecOrder, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询询价 + /// + public async Task>> + ReqQryForQuoteAsync(CThostFtdcQryForQuoteField pQryForQuote) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryForQuote(ref pQryForQuote, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询报价 + /// + public async Task>> + ReqQryQuoteAsync(CThostFtdcQryQuoteField pQryQuote) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryQuote(ref pQryQuote, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询期权自对冲 + /// + public async Task>> + ReqQryOptionSelfCloseAsync(CThostFtdcQryOptionSelfCloseField pQryOptionSelfClose) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryOptionSelfClose(ref pQryOptionSelfClose, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询投资单元 + /// + public async Task>> + ReqQryInvestUnitAsync(CThostFtdcQryInvestUnitField pQryInvestUnit) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryInvestUnit(ref pQryInvestUnit, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询组合合约安全系数 + /// + public async Task>> + ReqQryCombInstrumentGuardAsync(CThostFtdcQryCombInstrumentGuardField pQryCombInstrumentGuard) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryCombInstrumentGuard(ref pQryCombInstrumentGuard, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询申请组合 + /// + public async Task>> + ReqQryCombActionAsync(CThostFtdcQryCombActionField pQryCombAction) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryCombAction(ref pQryCombAction, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询转帐流水 + /// + public async Task>> + ReqQryTransferSerialAsync(CThostFtdcQryTransferSerialField pQryTransferSerial) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryTransferSerial(ref pQryTransferSerial, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询银期签约关系 + /// + public async Task>> + ReqQryAccountregisterAsync(CThostFtdcQryAccountregisterField pQryAccountregister) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryAccountregister(ref pQryAccountregister, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询签约银行 + /// + public async Task>> + ReqQryContractBankAsync(CThostFtdcQryContractBankField pQryContractBank) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryContractBank(ref pQryContractBank, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询预埋单 + /// + public async Task>> + ReqQryParkedOrderAsync(CThostFtdcQryParkedOrderField pQryParkedOrder) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryParkedOrder(ref pQryParkedOrder, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询预埋撤单 + /// + public async Task>> + ReqQryParkedOrderActionAsync(CThostFtdcQryParkedOrderActionField pQryParkedOrderAction) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryParkedOrderAction(ref pQryParkedOrderAction, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询交易通知 + /// + public async Task>> + ReqQryTradingNoticeAsync(CThostFtdcQryTradingNoticeField pQryTradingNotice) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryTradingNotice(ref pQryTradingNotice, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询经纪公司交易参数 + /// + public async Task>> + ReqQryBrokerTradingParamsAsync(CThostFtdcQryBrokerTradingParamsField pQryBrokerTradingParams) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryBrokerTradingParams(ref pQryBrokerTradingParams, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询经纪公司交易算法 + /// + public async Task>> + ReqQryBrokerTradingAlgosAsync(CThostFtdcQryBrokerTradingAlgosField pQryBrokerTradingAlgos) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryBrokerTradingAlgos(ref pQryBrokerTradingAlgos, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询监控中心用户令牌 + /// + public async Task>> + ReqQueryCFMMCTradingAccountTokenAsync(CThostFtdcQueryCFMMCTradingAccountTokenField pQueryCFMMCTradingAccountToken) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQueryCFMMCTradingAccountToken(ref pQueryCFMMCTradingAccountToken, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 期货发起银行资金转期货请求 + /// + public async Task>> + ReqFromBankToFutureByFutureAsync(CThostFtdcReqTransferField pReqTransfer) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqFromBankToFutureByFuture(ref pReqTransfer, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 期货发起期货资金转银行请求 + /// + public async Task>> + ReqFromFutureToBankByFutureAsync(CThostFtdcReqTransferField pReqTransfer) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqFromFutureToBankByFuture(ref pReqTransfer, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 期货发起查询银行余额请求 + /// + public async Task>> + ReqQueryBankAccountMoneyByFutureAsync(CThostFtdcReqQueryAccountField pReqQueryAccount) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQueryBankAccountMoneyByFuture(ref pReqQueryAccount, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求查询分类合约 + /// + public async Task>> + ReqQryClassifiedInstrumentAsync(CThostFtdcQryClassifiedInstrumentField pQryClassifiedInstrument) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryClassifiedInstrument(ref pQryClassifiedInstrument, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 请求组合优惠比例 + /// + public async Task>> + ReqQryCombPromotionParamAsync(CThostFtdcQryCombPromotionParamField pQryCombPromotionParam) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryCombPromotionParam(ref pQryCombPromotionParam, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 投资者风险结算持仓查询 + /// + public async Task>> + ReqQryRiskSettleInvstPositionAsync(CThostFtdcQryRiskSettleInvstPositionField pQryRiskSettleInvstPosition) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryRiskSettleInvstPosition(ref pQryRiskSettleInvstPosition, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 风险结算产品查询 + /// + public async Task>> + ReqQryRiskSettleProductStatusAsync(CThostFtdcQryRiskSettleProductStatusField pQryRiskSettleProductStatus) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryRiskSettleProductStatus(ref pQryRiskSettleProductStatus, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// SPBM期货合约参数查询 + /// + public async Task>> + ReqQrySPBMFutureParameterAsync(CThostFtdcQrySPBMFutureParameterField pQrySPBMFutureParameter) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQrySPBMFutureParameter(ref pQrySPBMFutureParameter, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// SPBM期权合约参数查询 + /// + public async Task>> + ReqQrySPBMOptionParameterAsync(CThostFtdcQrySPBMOptionParameterField pQrySPBMOptionParameter) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQrySPBMOptionParameter(ref pQrySPBMOptionParameter, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// SPBM品种内对锁仓折扣参数查询 + /// + public async Task>> + ReqQrySPBMIntraParameterAsync(CThostFtdcQrySPBMIntraParameterField pQrySPBMIntraParameter) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQrySPBMIntraParameter(ref pQrySPBMIntraParameter, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// SPBM跨品种抵扣参数查询 + /// + public async Task>> + ReqQrySPBMInterParameterAsync(CThostFtdcQrySPBMInterParameterField pQrySPBMInterParameter) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQrySPBMInterParameter(ref pQrySPBMInterParameter, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// SPBM组合保证金套餐查询 + /// + public async Task>> + ReqQrySPBMPortfDefinitionAsync(CThostFtdcQrySPBMPortfDefinitionField pQrySPBMPortfDefinition) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQrySPBMPortfDefinition(ref pQrySPBMPortfDefinition, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 投资者SPBM套餐选择查询 + /// + public async Task>> + ReqQrySPBMInvestorPortfDefAsync(CThostFtdcQrySPBMInvestorPortfDefField pQrySPBMInvestorPortfDef) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQrySPBMInvestorPortfDef(ref pQrySPBMInvestorPortfDef, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 投资者新型组合保证金系数查询 + /// + public async Task>> + ReqQryInvestorPortfMarginRatioAsync(CThostFtdcQryInvestorPortfMarginRatioField pQryInvestorPortfMarginRatio) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryInvestorPortfMarginRatio(ref pQryInvestorPortfMarginRatio, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } + + /// + /// 投资者产品SPBM明细查询 + /// + public async Task>> + ReqQryInvestorProdSPBMDetailAsync(CThostFtdcQryInvestorProdSPBMDetailField pQryInvestorProdSPBMDetail) + { + var pending = new PendingRequest> (_requestId.Next()); + _spi.CachePendingRequest(pending); + while (_api.ReqQryInvestorProdSPBMDetail(ref pQryInvestorProdSPBMDetail, pending.RequestId) != 0) await Task.Delay(1000); + return await pending.Task.ConfigureAwait(false); + } +} diff --git a/CTPAPI6.6.9/generated/CThostFtdcTraderSpi_gen.cs b/CTPAPI6.6.9/generated/CThostFtdcTraderSpi_gen.cs new file mode 100644 index 0000000..07ef9f5 --- /dev/null +++ b/CTPAPI6.6.9/generated/CThostFtdcTraderSpi_gen.cs @@ -0,0 +1,598 @@ +using System.Diagnostics; +namespace XP.CTPSharp; +internal partial class TdSPI +{ + internal event Action? FrontConnected; + internal event Action? FrontDisconnected; + internal event Action? HeartBeatWarning; + internal event Action? RtnOrder; + internal event Action? RtnTrade; + internal event Action>? ErrRtnOrderInsert; + internal event Action>? ErrRtnOrderAction; + internal event Action? RtnInstrumentStatus; + internal event Action? RtnBulletin; + internal event Action? RtnTradingNotice; + internal event Action? RtnErrorConditionalOrder; + internal event Action? RtnExecOrder; + internal event Action>? ErrRtnExecOrderInsert; + internal event Action>? ErrRtnExecOrderAction; + internal event Action>? ErrRtnForQuoteInsert; + internal event Action? RtnQuote; + internal event Action>? ErrRtnQuoteInsert; + internal event Action>? ErrRtnQuoteAction; + internal event Action? RtnForQuoteRsp; + internal event Action? RtnCFMMCTradingAccountToken; + internal event Action>? ErrRtnBatchOrderAction; + internal event Action? RtnOptionSelfClose; + internal event Action>? ErrRtnOptionSelfCloseInsert; + internal event Action>? ErrRtnOptionSelfCloseAction; + internal event Action? RtnCombAction; + internal event Action>? ErrRtnCombActionInsert; + internal event Action? RtnFromBankToFutureByBank; + internal event Action? RtnFromFutureToBankByBank; + internal event Action? RtnRepealFromBankToFutureByBank; + internal event Action? RtnRepealFromFutureToBankByBank; + internal event Action? RtnFromBankToFutureByFuture; + internal event Action? RtnFromFutureToBankByFuture; + internal event Action? RtnRepealFromBankToFutureByFutureManual; + internal event Action? RtnRepealFromFutureToBankByFutureManual; + internal event Action? RtnQueryBankBalanceByFuture; + internal event Action>? ErrRtnBankToFutureByFuture; + internal event Action>? ErrRtnFutureToBankByFuture; + internal event Action>? ErrRtnRepealBankToFutureByFutureManual; + internal event Action>? ErrRtnRepealFutureToBankByFutureManual; + internal event Action>? ErrRtnQueryBankBalanceByFuture; + internal event Action? RtnRepealFromBankToFutureByFuture; + internal event Action? RtnRepealFromFutureToBankByFuture; + internal event Action? RtnOpenAccountByBank; + internal event Action? RtnCancelAccountByBank; + internal event Action? RtnChangeAccountByBank; + public sealed override void OnFrontConnected() + { + FrontConnected?.Invoke(); + } + public sealed override void OnFrontDisconnected(int nReason) + { + FrontDisconnected?.Invoke(nReason); + } + public sealed override void OnHeartBeatWarning(int nTimeLapse) + { + HeartBeatWarning?.Invoke(nTimeLapse); + } + public sealed override void OnRtnOrder(ref CThostFtdcOrderField pOrder) + { + RtnOrder?.Invoke(pOrder); + } + public sealed override void OnRtnTrade(ref CThostFtdcTradeField pTrade) + { + RtnTrade?.Invoke(pTrade); + } + public sealed override void OnErrRtnOrderInsert(ref CThostFtdcInputOrderField pInputOrder,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnOrderInsert?.Invoke(new ErrorReturn(pInputOrder, pRspInfo)); + } + public sealed override void OnErrRtnOrderAction(ref CThostFtdcOrderActionField pOrderAction,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnOrderAction?.Invoke(new ErrorReturn(pOrderAction, pRspInfo)); + } + public sealed override void OnRtnInstrumentStatus(ref CThostFtdcInstrumentStatusField pInstrumentStatus) + { + RtnInstrumentStatus?.Invoke(pInstrumentStatus); + } + public sealed override void OnRtnBulletin(ref CThostFtdcBulletinField pBulletin) + { + RtnBulletin?.Invoke(pBulletin); + } + public sealed override void OnRtnTradingNotice(ref CThostFtdcTradingNoticeInfoField pTradingNoticeInfo) + { + RtnTradingNotice?.Invoke(pTradingNoticeInfo); + } + public sealed override void OnRtnErrorConditionalOrder(ref CThostFtdcErrorConditionalOrderField pErrorConditionalOrder) + { + RtnErrorConditionalOrder?.Invoke(pErrorConditionalOrder); + } + public sealed override void OnRtnExecOrder(ref CThostFtdcExecOrderField pExecOrder) + { + RtnExecOrder?.Invoke(pExecOrder); + } + public sealed override void OnErrRtnExecOrderInsert(ref CThostFtdcInputExecOrderField pInputExecOrder,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnExecOrderInsert?.Invoke(new ErrorReturn(pInputExecOrder, pRspInfo)); + } + public sealed override void OnErrRtnExecOrderAction(ref CThostFtdcExecOrderActionField pExecOrderAction,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnExecOrderAction?.Invoke(new ErrorReturn(pExecOrderAction, pRspInfo)); + } + public sealed override void OnErrRtnForQuoteInsert(ref CThostFtdcInputForQuoteField pInputForQuote,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnForQuoteInsert?.Invoke(new ErrorReturn(pInputForQuote, pRspInfo)); + } + public sealed override void OnRtnQuote(ref CThostFtdcQuoteField pQuote) + { + RtnQuote?.Invoke(pQuote); + } + public sealed override void OnErrRtnQuoteInsert(ref CThostFtdcInputQuoteField pInputQuote,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnQuoteInsert?.Invoke(new ErrorReturn(pInputQuote, pRspInfo)); + } + public sealed override void OnErrRtnQuoteAction(ref CThostFtdcQuoteActionField pQuoteAction,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnQuoteAction?.Invoke(new ErrorReturn(pQuoteAction, pRspInfo)); + } + public sealed override void OnRtnForQuoteRsp(ref CThostFtdcForQuoteRspField pForQuoteRsp) + { + RtnForQuoteRsp?.Invoke(pForQuoteRsp); + } + public sealed override void OnRtnCFMMCTradingAccountToken(ref CThostFtdcCFMMCTradingAccountTokenField pCFMMCTradingAccountToken) + { + RtnCFMMCTradingAccountToken?.Invoke(pCFMMCTradingAccountToken); + } + public sealed override void OnErrRtnBatchOrderAction(ref CThostFtdcBatchOrderActionField pBatchOrderAction,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnBatchOrderAction?.Invoke(new ErrorReturn(pBatchOrderAction, pRspInfo)); + } + public sealed override void OnRtnOptionSelfClose(ref CThostFtdcOptionSelfCloseField pOptionSelfClose) + { + RtnOptionSelfClose?.Invoke(pOptionSelfClose); + } + public sealed override void OnErrRtnOptionSelfCloseInsert(ref CThostFtdcInputOptionSelfCloseField pInputOptionSelfClose,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnOptionSelfCloseInsert?.Invoke(new ErrorReturn(pInputOptionSelfClose, pRspInfo)); + } + public sealed override void OnErrRtnOptionSelfCloseAction(ref CThostFtdcOptionSelfCloseActionField pOptionSelfCloseAction,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnOptionSelfCloseAction?.Invoke(new ErrorReturn(pOptionSelfCloseAction, pRspInfo)); + } + public sealed override void OnRtnCombAction(ref CThostFtdcCombActionField pCombAction) + { + RtnCombAction?.Invoke(pCombAction); + } + public sealed override void OnErrRtnCombActionInsert(ref CThostFtdcInputCombActionField pInputCombAction,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnCombActionInsert?.Invoke(new ErrorReturn(pInputCombAction, pRspInfo)); + } + public sealed override void OnRtnFromBankToFutureByBank(ref CThostFtdcRspTransferField pRspTransfer) + { + RtnFromBankToFutureByBank?.Invoke(pRspTransfer); + } + public sealed override void OnRtnFromFutureToBankByBank(ref CThostFtdcRspTransferField pRspTransfer) + { + RtnFromFutureToBankByBank?.Invoke(pRspTransfer); + } + public sealed override void OnRtnRepealFromBankToFutureByBank(ref CThostFtdcRspRepealField pRspRepeal) + { + RtnRepealFromBankToFutureByBank?.Invoke(pRspRepeal); + } + public sealed override void OnRtnRepealFromFutureToBankByBank(ref CThostFtdcRspRepealField pRspRepeal) + { + RtnRepealFromFutureToBankByBank?.Invoke(pRspRepeal); + } + public sealed override void OnRtnFromBankToFutureByFuture(ref CThostFtdcRspTransferField pRspTransfer) + { + RtnFromBankToFutureByFuture?.Invoke(pRspTransfer); + } + public sealed override void OnRtnFromFutureToBankByFuture(ref CThostFtdcRspTransferField pRspTransfer) + { + RtnFromFutureToBankByFuture?.Invoke(pRspTransfer); + } + public sealed override void OnRtnRepealFromBankToFutureByFutureManual(ref CThostFtdcRspRepealField pRspRepeal) + { + RtnRepealFromBankToFutureByFutureManual?.Invoke(pRspRepeal); + } + public sealed override void OnRtnRepealFromFutureToBankByFutureManual(ref CThostFtdcRspRepealField pRspRepeal) + { + RtnRepealFromFutureToBankByFutureManual?.Invoke(pRspRepeal); + } + public sealed override void OnRtnQueryBankBalanceByFuture(ref CThostFtdcNotifyQueryAccountField pNotifyQueryAccount) + { + RtnQueryBankBalanceByFuture?.Invoke(pNotifyQueryAccount); + } + public sealed override void OnErrRtnBankToFutureByFuture(ref CThostFtdcReqTransferField pReqTransfer,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnBankToFutureByFuture?.Invoke(new ErrorReturn(pReqTransfer, pRspInfo)); + } + public sealed override void OnErrRtnFutureToBankByFuture(ref CThostFtdcReqTransferField pReqTransfer,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnFutureToBankByFuture?.Invoke(new ErrorReturn(pReqTransfer, pRspInfo)); + } + public sealed override void OnErrRtnRepealBankToFutureByFutureManual(ref CThostFtdcReqRepealField pReqRepeal,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnRepealBankToFutureByFutureManual?.Invoke(new ErrorReturn(pReqRepeal, pRspInfo)); + } + public sealed override void OnErrRtnRepealFutureToBankByFutureManual(ref CThostFtdcReqRepealField pReqRepeal,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnRepealFutureToBankByFutureManual?.Invoke(new ErrorReturn(pReqRepeal, pRspInfo)); + } + public sealed override void OnErrRtnQueryBankBalanceByFuture(ref CThostFtdcReqQueryAccountField pReqQueryAccount,ref CThostFtdcRspInfoField pRspInfo) + { + ErrRtnQueryBankBalanceByFuture?.Invoke(new ErrorReturn(pReqQueryAccount, pRspInfo)); + } + public sealed override void OnRtnRepealFromBankToFutureByFuture(ref CThostFtdcRspRepealField pRspRepeal) + { + RtnRepealFromBankToFutureByFuture?.Invoke(pRspRepeal); + } + public sealed override void OnRtnRepealFromFutureToBankByFuture(ref CThostFtdcRspRepealField pRspRepeal) + { + RtnRepealFromFutureToBankByFuture?.Invoke(pRspRepeal); + } + public sealed override void OnRtnOpenAccountByBank(ref CThostFtdcOpenAccountField pOpenAccount) + { + RtnOpenAccountByBank?.Invoke(pOpenAccount); + } + public sealed override void OnRtnCancelAccountByBank(ref CThostFtdcCancelAccountField pCancelAccount) + { + RtnCancelAccountByBank?.Invoke(pCancelAccount); + } + public sealed override void OnRtnChangeAccountByBank(ref CThostFtdcChangeAccountField pChangeAccount) + { + RtnChangeAccountByBank?.Invoke(pChangeAccount); + } + public sealed override void OnRspAuthenticate(ref CThostFtdcRspAuthenticateField pRspAuthenticateField,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pRspAuthenticateField,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspUserLogin(ref CThostFtdcRspUserLoginField pRspUserLogin,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pRspUserLogin,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspUserLogout(ref CThostFtdcUserLogoutField pUserLogout,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pUserLogout,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspUserPasswordUpdate(ref CThostFtdcUserPasswordUpdateField pUserPasswordUpdate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pUserPasswordUpdate,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspTradingAccountPasswordUpdate(ref CThostFtdcTradingAccountPasswordUpdateField pTradingAccountPasswordUpdate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pTradingAccountPasswordUpdate,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspUserAuthMethod(ref CThostFtdcRspUserAuthMethodField pRspUserAuthMethod,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pRspUserAuthMethod,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspGenUserCaptcha(ref CThostFtdcRspGenUserCaptchaField pRspGenUserCaptcha,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pRspGenUserCaptcha,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspGenUserText(ref CThostFtdcRspGenUserTextField pRspGenUserText,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pRspGenUserText,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspOrderInsert(ref CThostFtdcInputOrderField pInputOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInputOrder,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspParkedOrderInsert(ref CThostFtdcParkedOrderField pParkedOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pParkedOrder,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspParkedOrderAction(ref CThostFtdcParkedOrderActionField pParkedOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pParkedOrderAction,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspOrderAction(ref CThostFtdcInputOrderActionField pInputOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInputOrderAction,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryMaxOrderVolume(ref CThostFtdcQryMaxOrderVolumeField pQryMaxOrderVolume,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pQryMaxOrderVolume,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspSettlementInfoConfirm(ref CThostFtdcSettlementInfoConfirmField pSettlementInfoConfirm,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pSettlementInfoConfirm,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspRemoveParkedOrder(ref CThostFtdcRemoveParkedOrderField pRemoveParkedOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pRemoveParkedOrder,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspRemoveParkedOrderAction(ref CThostFtdcRemoveParkedOrderActionField pRemoveParkedOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pRemoveParkedOrderAction,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspExecOrderInsert(ref CThostFtdcInputExecOrderField pInputExecOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInputExecOrder,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspExecOrderAction(ref CThostFtdcInputExecOrderActionField pInputExecOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInputExecOrderAction,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspForQuoteInsert(ref CThostFtdcInputForQuoteField pInputForQuote,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInputForQuote,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQuoteInsert(ref CThostFtdcInputQuoteField pInputQuote,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInputQuote,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQuoteAction(ref CThostFtdcInputQuoteActionField pInputQuoteAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInputQuoteAction,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspBatchOrderAction(ref CThostFtdcInputBatchOrderActionField pInputBatchOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInputBatchOrderAction,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspOptionSelfCloseInsert(ref CThostFtdcInputOptionSelfCloseField pInputOptionSelfClose,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInputOptionSelfClose,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspOptionSelfCloseAction(ref CThostFtdcInputOptionSelfCloseActionField pInputOptionSelfCloseAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInputOptionSelfCloseAction,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspCombActionInsert(ref CThostFtdcInputCombActionField pInputCombAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInputCombAction,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryOrder(ref CThostFtdcOrderField pOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pOrder,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryTrade(ref CThostFtdcTradeField pTrade,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pTrade,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryInvestorPosition(ref CThostFtdcInvestorPositionField pInvestorPosition,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInvestorPosition,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryTradingAccount(ref CThostFtdcTradingAccountField pTradingAccount,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pTradingAccount,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryInvestor(ref CThostFtdcInvestorField pInvestor,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInvestor,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryTradingCode(ref CThostFtdcTradingCodeField pTradingCode,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pTradingCode,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryInstrumentMarginRate(ref CThostFtdcInstrumentMarginRateField pInstrumentMarginRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInstrumentMarginRate,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryInstrumentCommissionRate(ref CThostFtdcInstrumentCommissionRateField pInstrumentCommissionRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInstrumentCommissionRate,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryExchange(ref CThostFtdcExchangeField pExchange,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pExchange,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryProduct(ref CThostFtdcProductField pProduct,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pProduct,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryInstrument(ref CThostFtdcInstrumentField pInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInstrument,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryDepthMarketData(ref CThostFtdcDepthMarketDataField pDepthMarketData,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pDepthMarketData,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryTraderOffer(ref CThostFtdcTraderOfferField pTraderOffer,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pTraderOffer,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQrySettlementInfo(ref CThostFtdcSettlementInfoField pSettlementInfo,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pSettlementInfo,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryTransferBank(ref CThostFtdcTransferBankField pTransferBank,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pTransferBank,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryInvestorPositionDetail(ref CThostFtdcInvestorPositionDetailField pInvestorPositionDetail,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInvestorPositionDetail,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryNotice(ref CThostFtdcNoticeField pNotice,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pNotice,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQrySettlementInfoConfirm(ref CThostFtdcSettlementInfoConfirmField pSettlementInfoConfirm,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pSettlementInfoConfirm,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryInvestorPositionCombineDetail(ref CThostFtdcInvestorPositionCombineDetailField pInvestorPositionCombineDetail,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInvestorPositionCombineDetail,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryCFMMCTradingAccountKey(ref CThostFtdcCFMMCTradingAccountKeyField pCFMMCTradingAccountKey,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pCFMMCTradingAccountKey,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryEWarrantOffset(ref CThostFtdcEWarrantOffsetField pEWarrantOffset,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pEWarrantOffset,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryInvestorProductGroupMargin(ref CThostFtdcInvestorProductGroupMarginField pInvestorProductGroupMargin,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInvestorProductGroupMargin,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryExchangeMarginRate(ref CThostFtdcExchangeMarginRateField pExchangeMarginRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pExchangeMarginRate,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryExchangeMarginRateAdjust(ref CThostFtdcExchangeMarginRateAdjustField pExchangeMarginRateAdjust,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pExchangeMarginRateAdjust,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryExchangeRate(ref CThostFtdcExchangeRateField pExchangeRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pExchangeRate,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQrySecAgentACIDMap(ref CThostFtdcSecAgentACIDMapField pSecAgentACIDMap,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pSecAgentACIDMap,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryProductExchRate(ref CThostFtdcProductExchRateField pProductExchRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pProductExchRate,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryProductGroup(ref CThostFtdcProductGroupField pProductGroup,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pProductGroup,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryMMInstrumentCommissionRate(ref CThostFtdcMMInstrumentCommissionRateField pMMInstrumentCommissionRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pMMInstrumentCommissionRate,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryMMOptionInstrCommRate(ref CThostFtdcMMOptionInstrCommRateField pMMOptionInstrCommRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pMMOptionInstrCommRate,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryInstrumentOrderCommRate(ref CThostFtdcInstrumentOrderCommRateField pInstrumentOrderCommRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInstrumentOrderCommRate,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQrySecAgentTradingAccount(ref CThostFtdcTradingAccountField pTradingAccount,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pTradingAccount,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQrySecAgentCheckMode(ref CThostFtdcSecAgentCheckModeField pSecAgentCheckMode,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pSecAgentCheckMode,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQrySecAgentTradeInfo(ref CThostFtdcSecAgentTradeInfoField pSecAgentTradeInfo,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pSecAgentTradeInfo,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryOptionInstrTradeCost(ref CThostFtdcOptionInstrTradeCostField pOptionInstrTradeCost,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pOptionInstrTradeCost,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryOptionInstrCommRate(ref CThostFtdcOptionInstrCommRateField pOptionInstrCommRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pOptionInstrCommRate,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryExecOrder(ref CThostFtdcExecOrderField pExecOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pExecOrder,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryForQuote(ref CThostFtdcForQuoteField pForQuote,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pForQuote,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryQuote(ref CThostFtdcQuoteField pQuote,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pQuote,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryOptionSelfClose(ref CThostFtdcOptionSelfCloseField pOptionSelfClose,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pOptionSelfClose,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryInvestUnit(ref CThostFtdcInvestUnitField pInvestUnit,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInvestUnit,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryCombInstrumentGuard(ref CThostFtdcCombInstrumentGuardField pCombInstrumentGuard,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pCombInstrumentGuard,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryCombAction(ref CThostFtdcCombActionField pCombAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pCombAction,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryTransferSerial(ref CThostFtdcTransferSerialField pTransferSerial,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pTransferSerial,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryAccountregister(ref CThostFtdcAccountregisterField pAccountregister,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pAccountregister,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryContractBank(ref CThostFtdcContractBankField pContractBank,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pContractBank,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryParkedOrder(ref CThostFtdcParkedOrderField pParkedOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pParkedOrder,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryParkedOrderAction(ref CThostFtdcParkedOrderActionField pParkedOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pParkedOrderAction,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryTradingNotice(ref CThostFtdcTradingNoticeField pTradingNotice,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pTradingNotice,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryBrokerTradingParams(ref CThostFtdcBrokerTradingParamsField pBrokerTradingParams,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pBrokerTradingParams,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryBrokerTradingAlgos(ref CThostFtdcBrokerTradingAlgosField pBrokerTradingAlgos,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pBrokerTradingAlgos,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQueryCFMMCTradingAccountToken(ref CThostFtdcQueryCFMMCTradingAccountTokenField pQueryCFMMCTradingAccountToken,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pQueryCFMMCTradingAccountToken,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspFromBankToFutureByFuture(ref CThostFtdcReqTransferField pReqTransfer,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pReqTransfer,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspFromFutureToBankByFuture(ref CThostFtdcReqTransferField pReqTransfer,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pReqTransfer,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQueryBankAccountMoneyByFuture(ref CThostFtdcReqQueryAccountField pReqQueryAccount,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pReqQueryAccount,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryClassifiedInstrument(ref CThostFtdcInstrumentField pInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInstrument,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryCombPromotionParam(ref CThostFtdcCombPromotionParamField pCombPromotionParam,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pCombPromotionParam,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryRiskSettleInvstPosition(ref CThostFtdcRiskSettleInvstPositionField pRiskSettleInvstPosition,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pRiskSettleInvstPosition,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryRiskSettleProductStatus(ref CThostFtdcRiskSettleProductStatusField pRiskSettleProductStatus,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pRiskSettleProductStatus,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQrySPBMFutureParameter(ref CThostFtdcSPBMFutureParameterField pSPBMFutureParameter,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pSPBMFutureParameter,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQrySPBMOptionParameter(ref CThostFtdcSPBMOptionParameterField pSPBMOptionParameter,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pSPBMOptionParameter,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQrySPBMIntraParameter(ref CThostFtdcSPBMIntraParameterField pSPBMIntraParameter,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pSPBMIntraParameter,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQrySPBMInterParameter(ref CThostFtdcSPBMInterParameterField pSPBMInterParameter,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pSPBMInterParameter,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQrySPBMPortfDefinition(ref CThostFtdcSPBMPortfDefinitionField pSPBMPortfDefinition,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pSPBMPortfDefinition,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQrySPBMInvestorPortfDef(ref CThostFtdcSPBMInvestorPortfDefField pSPBMInvestorPortfDef,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pSPBMInvestorPortfDef,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryInvestorPortfMarginRatio(ref CThostFtdcInvestorPortfMarginRatioField pInvestorPortfMarginRatio,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInvestorPortfMarginRatio,pRspInfo,nRequestID,bIsLast); + } + public sealed override void OnRspQryInvestorProdSPBMDetail(ref CThostFtdcInvestorProdSPBMDetailField pInvestorProdSPBMDetail,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast) + { + CompleteListPending(pInvestorProdSPBMDetail,pRspInfo,nRequestID,bIsLast); + } +} diff --git a/CTPAPI6.6.9/generated/PInvokeCThostFtdcMdApi.cs b/CTPAPI6.6.9/generated/PInvokeCThostFtdcMdApi.cs new file mode 100644 index 0000000..7c1b36e --- /dev/null +++ b/CTPAPI6.6.9/generated/PInvokeCThostFtdcMdApi.cs @@ -0,0 +1,213 @@ +using System.Runtime.InteropServices; +namespace XP.CTPSharp; + +internal partial class CTPSharpPInvoke +{ + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_Create", CharSet=CharSet.Ansi)] + public extern static IntPtr CThostFtdcMdApi_Create([MarshalAs(UnmanagedType.LPStr)] string pszFlowPath="",bool bIsUsingUdp=false,bool bIsMulticast=false); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_GetApiVersion", CharSet=CharSet.Ansi)] + public extern static IntPtr CThostFtdcMdApi_GetApiVersion(); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_Release", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcMdApi_Release(IntPtr handle); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_Init", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcMdApi_Init(IntPtr handle); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_Join", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcMdApi_Join(IntPtr handle); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_GetTradingDay", CharSet=CharSet.Ansi)] + public extern static IntPtr CThostFtdcMdApi_GetTradingDay(IntPtr handle); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_RegisterFront", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcMdApi_RegisterFront(IntPtr handle, [MarshalAs(UnmanagedType.LPStr)] string pszFrontAddress); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_RegisterNameServer", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcMdApi_RegisterNameServer(IntPtr handle, [MarshalAs(UnmanagedType.LPStr)] string pszNsAddress); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_RegisterFensUserInfo", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcMdApi_RegisterFensUserInfo(IntPtr handle, ref CThostFtdcFensUserInfoField pFensUserInfo); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_RegisterSpi", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcMdApi_RegisterSpi(IntPtr handle, IntPtr pSpi); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_SubscribeMarketData", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcMdApi_SubscribeMarketData(IntPtr handle, IntPtr ppInstrumentID,int nCount); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_UnSubscribeMarketData", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcMdApi_UnSubscribeMarketData(IntPtr handle, IntPtr ppInstrumentID,int nCount); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_SubscribeForQuoteRsp", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcMdApi_SubscribeForQuoteRsp(IntPtr handle, IntPtr ppInstrumentID,int nCount); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_UnSubscribeForQuoteRsp", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcMdApi_UnSubscribeForQuoteRsp(IntPtr handle, IntPtr ppInstrumentID,int nCount); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_ReqUserLogin", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcMdApi_ReqUserLogin(IntPtr handle, ref CThostFtdcReqUserLoginField pReqUserLoginField,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_ReqUserLogout", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcMdApi_ReqUserLogout(IntPtr handle, ref CThostFtdcUserLogoutField pUserLogout,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdApi_ReqQryMulticastInstrument", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcMdApi_ReqQryMulticastInstrument(IntPtr handle, ref CThostFtdcQryMulticastInstrumentField pQryMulticastInstrument,int nRequestID); + +} +public sealed class CThostFtdcMdApi +{ + IntPtr _handle; + public CThostFtdcMdApi(string flowPath) + { + _handle = CTPSharpPInvoke.CThostFtdcMdApi_Create(flowPath); + } + + /// + /// 获取API的版本信息 + /// + public string GetApiVersion() + { + return GBKConvert.Instance.GetString(CTPSharpPInvoke.CThostFtdcMdApi_GetApiVersion()); + } + + /// + /// 删除接口对象本身 + /// + public void Release() + { + CTPSharpPInvoke.CThostFtdcMdApi_Release(_handle); + } + + /// + /// 初始化 + /// + public void Init() + { + CTPSharpPInvoke.CThostFtdcMdApi_Init(_handle); + } + + /// + /// 等待接口线程结束运行 + /// + public int Join() + { + return CTPSharpPInvoke.CThostFtdcMdApi_Join(_handle); + } + + /// + /// 获取当前交易日 + /// + public string GetTradingDay() + { + return GBKConvert.Instance.GetString(CTPSharpPInvoke.CThostFtdcMdApi_GetTradingDay(_handle)); + } + + /// + /// 注册前置机网络地址 + /// + /// 前置机网络地址。 + public void RegisterFront([MarshalAs(UnmanagedType.LPStr)] string pszFrontAddress) + { + CTPSharpPInvoke.CThostFtdcMdApi_RegisterFront(_handle, pszFrontAddress); + } + + /// + /// 注册名字服务器网络地址 + /// + /// 名字服务器网络地址。 + public void RegisterNameServer([MarshalAs(UnmanagedType.LPStr)] string pszNsAddress) + { + CTPSharpPInvoke.CThostFtdcMdApi_RegisterNameServer(_handle, pszNsAddress); + } + + /// + /// 注册名字服务器用户信息 + /// + /// 用户信息。 + public void RegisterFensUserInfo(ref CThostFtdcFensUserInfoField pFensUserInfo) + { + CTPSharpPInvoke.CThostFtdcMdApi_RegisterFensUserInfo(_handle, ref pFensUserInfo); + } + + /// + /// 注册回调接口 + /// + /// 派生自回调接口类的实例 + public void RegisterSpi(IntPtr pSpi) + { + CTPSharpPInvoke.CThostFtdcMdApi_RegisterSpi(_handle, pSpi); + } + + /// + /// 订阅行情。 + /// + /// 合约ID + /// 要订阅/退订行情的合约个数 + public int SubscribeMarketData(IntPtr ppInstrumentID,int nCount) + { + return CTPSharpPInvoke.CThostFtdcMdApi_SubscribeMarketData(_handle, ppInstrumentID,nCount); + } + + /// + /// 退订行情。 + /// + /// 合约ID + /// 要订阅/退订行情的合约个数 + public int UnSubscribeMarketData(IntPtr ppInstrumentID,int nCount) + { + return CTPSharpPInvoke.CThostFtdcMdApi_UnSubscribeMarketData(_handle, ppInstrumentID,nCount); + } + + /// + /// 订阅询价。 + /// + /// 合约ID + /// 要订阅/退订行情的合约个数 + public int SubscribeForQuoteRsp(IntPtr ppInstrumentID,int nCount) + { + return CTPSharpPInvoke.CThostFtdcMdApi_SubscribeForQuoteRsp(_handle, ppInstrumentID,nCount); + } + + /// + /// 退订询价。 + /// + /// 合约ID + /// 要订阅/退订行情的合约个数 + public int UnSubscribeForQuoteRsp(IntPtr ppInstrumentID,int nCount) + { + return CTPSharpPInvoke.CThostFtdcMdApi_UnSubscribeForQuoteRsp(_handle, ppInstrumentID,nCount); + } + + /// + /// 用户登录请求 + /// + public int ReqUserLogin(ref CThostFtdcReqUserLoginField pReqUserLoginField,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcMdApi_ReqUserLogin(_handle, ref pReqUserLoginField,nRequestID); + } + + /// + /// 登出请求 + /// + public int ReqUserLogout(ref CThostFtdcUserLogoutField pUserLogout,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcMdApi_ReqUserLogout(_handle, ref pUserLogout,nRequestID); + } + + /// + /// 请求查询组播合约 + /// + public int ReqQryMulticastInstrument(ref CThostFtdcQryMulticastInstrumentField pQryMulticastInstrument,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcMdApi_ReqQryMulticastInstrument(_handle, ref pQryMulticastInstrument,nRequestID); + } + + public void Dispose() + { + if (_handle == 0) return; + CTPSharpPInvoke.CThostFtdcMdApi_Release(_handle); + //CTPSharpPInvoke.CThostFtdcMdApi_Join(_handle); + _handle = 0; + } +} diff --git a/CTPAPI6.6.9/generated/PInvokeCThostFtdcMdSpi.cs b/CTPAPI6.6.9/generated/PInvokeCThostFtdcMdSpi.cs new file mode 100644 index 0000000..2c3bcbe --- /dev/null +++ b/CTPAPI6.6.9/generated/PInvokeCThostFtdcMdSpi.cs @@ -0,0 +1,181 @@ +using System.Runtime.InteropServices; +namespace XP.CTPSharp; + +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +internal struct CTPSharp_CThostFtdcMdSpi +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnFrontConnected(); + internal DelOnFrontConnected OnFrontConnected; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnFrontDisconnected(int nReason); + internal DelOnFrontDisconnected OnFrontDisconnected; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnHeartBeatWarning(int nTimeLapse); + internal DelOnHeartBeatWarning OnHeartBeatWarning; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspUserLogin(ref CThostFtdcRspUserLoginField pRspUserLogin,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspUserLogin OnRspUserLogin; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspUserLogout(ref CThostFtdcUserLogoutField pUserLogout,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspUserLogout OnRspUserLogout; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryMulticastInstrument(ref CThostFtdcMulticastInstrumentField pMulticastInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryMulticastInstrument OnRspQryMulticastInstrument; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspError(ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspError OnRspError; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspSubMarketData(ref CThostFtdcSpecificInstrumentField pSpecificInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspSubMarketData OnRspSubMarketData; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspUnSubMarketData(ref CThostFtdcSpecificInstrumentField pSpecificInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspUnSubMarketData OnRspUnSubMarketData; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspSubForQuoteRsp(ref CThostFtdcSpecificInstrumentField pSpecificInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspSubForQuoteRsp OnRspSubForQuoteRsp; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspUnSubForQuoteRsp(ref CThostFtdcSpecificInstrumentField pSpecificInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspUnSubForQuoteRsp OnRspUnSubForQuoteRsp; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnDepthMarketData(ref CThostFtdcDepthMarketDataField pDepthMarketData); + internal DelOnRtnDepthMarketData OnRtnDepthMarketData; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnForQuoteRsp(ref CThostFtdcForQuoteRspField pForQuoteRsp); + internal DelOnRtnForQuoteRsp OnRtnForQuoteRsp; + +} +internal partial class CTPSharpPInvoke +{ + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdSpi_New", CharSet=CharSet.Ansi)] + public extern static IntPtr CThostFtdcMdSpi_New(ref CTPSharp_CThostFtdcMdSpi callback); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcMdSpi_Delete", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcMdSpi_Delete(IntPtr spi); +} +public class CThostFtdcMdSpi: IDisposable +{ + CTPSharp_CThostFtdcMdSpi _spi = new(); + IntPtr _handle; + internal IntPtr Handle => _handle; + public CThostFtdcMdSpi() + { + _spi.OnFrontConnected = this.OnFrontConnected; + _spi.OnFrontDisconnected = this.OnFrontDisconnected; + _spi.OnHeartBeatWarning = this.OnHeartBeatWarning; + _spi.OnRspUserLogin = this.OnRspUserLogin; + _spi.OnRspUserLogout = this.OnRspUserLogout; + _spi.OnRspQryMulticastInstrument = this.OnRspQryMulticastInstrument; + _spi.OnRspError = this.OnRspError; + _spi.OnRspSubMarketData = this.OnRspSubMarketData; + _spi.OnRspUnSubMarketData = this.OnRspUnSubMarketData; + _spi.OnRspSubForQuoteRsp = this.OnRspSubForQuoteRsp; + _spi.OnRspUnSubForQuoteRsp = this.OnRspUnSubForQuoteRsp; + _spi.OnRtnDepthMarketData = this.OnRtnDepthMarketData; + _spi.OnRtnForQuoteRsp = this.OnRtnForQuoteRsp; + _handle = CTPSharpPInvoke.CThostFtdcMdSpi_New(ref _spi); + } + /// + /// 当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。 + /// + public virtual void OnFrontConnected(){} + + /// + /// 当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。 + /// + /// 错误原因 + public virtual void OnFrontDisconnected(int nReason){} + + /// + /// 心跳超时警告。当长时间未收到报文时,该方法被调用。 + /// + /// 距离上次接收报文的时间 + public virtual void OnHeartBeatWarning(int nTimeLapse){} + + /// + /// 登录请求响应 + /// + public virtual void OnRspUserLogin(ref CThostFtdcRspUserLoginField pRspUserLogin,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 登出请求响应 + /// + public virtual void OnRspUserLogout(ref CThostFtdcUserLogoutField pUserLogout,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询组播合约响应 + /// + public virtual void OnRspQryMulticastInstrument(ref CThostFtdcMulticastInstrumentField pMulticastInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 错误应答 + /// + public virtual void OnRspError(ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 订阅行情应答 + /// + public virtual void OnRspSubMarketData(ref CThostFtdcSpecificInstrumentField pSpecificInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 取消订阅行情应答 + /// + public virtual void OnRspUnSubMarketData(ref CThostFtdcSpecificInstrumentField pSpecificInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 订阅询价应答 + /// + public virtual void OnRspSubForQuoteRsp(ref CThostFtdcSpecificInstrumentField pSpecificInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 取消订阅询价应答 + /// + public virtual void OnRspUnSubForQuoteRsp(ref CThostFtdcSpecificInstrumentField pSpecificInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 深度行情通知 + /// + public virtual void OnRtnDepthMarketData(ref CThostFtdcDepthMarketDataField pDepthMarketData){} + + /// + /// 询价通知 + /// + public virtual void OnRtnForQuoteRsp(ref CThostFtdcForQuoteRspField pForQuoteRsp){} + + private void Close() + { + CTPSharpPInvoke.CThostFtdcMdSpi_Delete(_handle); + _handle = 0; + } +private bool disposedValue = false; +protected virtual void Dispose(bool disposing) +{ + if (!disposedValue) + { + if (disposing) + { + Close(); + } + disposedValue = true; + } +} + +public void Dispose() +{ + Dispose(disposing: true); + GC.SuppressFinalize(this); +} + +} diff --git a/CTPAPI6.6.9/generated/PInvokeCThostFtdcTraderApi.cs b/CTPAPI6.6.9/generated/PInvokeCThostFtdcTraderApi.cs new file mode 100644 index 0000000..88134e9 --- /dev/null +++ b/CTPAPI6.6.9/generated/PInvokeCThostFtdcTraderApi.cs @@ -0,0 +1,1219 @@ +using System.Runtime.InteropServices; +namespace XP.CTPSharp; + +internal partial class CTPSharpPInvoke +{ + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_Create", CharSet=CharSet.Ansi)] + public extern static IntPtr CThostFtdcTraderApi_Create([MarshalAs(UnmanagedType.LPStr)] string pszFlowPath=""); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_GetApiVersion", CharSet=CharSet.Ansi)] + public extern static IntPtr CThostFtdcTraderApi_GetApiVersion(); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_Release", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcTraderApi_Release(IntPtr handle); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_Init", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcTraderApi_Init(IntPtr handle); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_Join", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_Join(IntPtr handle); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_GetTradingDay", CharSet=CharSet.Ansi)] + public extern static IntPtr CThostFtdcTraderApi_GetTradingDay(IntPtr handle); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_RegisterFront", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcTraderApi_RegisterFront(IntPtr handle, [MarshalAs(UnmanagedType.LPStr)] string pszFrontAddress); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_RegisterNameServer", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcTraderApi_RegisterNameServer(IntPtr handle, [MarshalAs(UnmanagedType.LPStr)] string pszNsAddress); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_RegisterFensUserInfo", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcTraderApi_RegisterFensUserInfo(IntPtr handle, ref CThostFtdcFensUserInfoField pFensUserInfo); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_RegisterSpi", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcTraderApi_RegisterSpi(IntPtr handle, IntPtr pSpi); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_SubscribePrivateTopic", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcTraderApi_SubscribePrivateTopic(IntPtr handle, THOST_TE_RESUME_TYPE nResumeType); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_SubscribePublicTopic", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcTraderApi_SubscribePublicTopic(IntPtr handle, THOST_TE_RESUME_TYPE nResumeType); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqAuthenticate", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqAuthenticate(IntPtr handle, ref CThostFtdcReqAuthenticateField pReqAuthenticateField,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_RegisterUserSystemInfo", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_RegisterUserSystemInfo(IntPtr handle, ref CThostFtdcUserSystemInfoField pUserSystemInfo); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_SubmitUserSystemInfo", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_SubmitUserSystemInfo(IntPtr handle, ref CThostFtdcUserSystemInfoField pUserSystemInfo); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqUserLogin", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqUserLogin(IntPtr handle, ref CThostFtdcReqUserLoginField pReqUserLoginField,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqUserLogout", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqUserLogout(IntPtr handle, ref CThostFtdcUserLogoutField pUserLogout,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqUserPasswordUpdate", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqUserPasswordUpdate(IntPtr handle, ref CThostFtdcUserPasswordUpdateField pUserPasswordUpdate,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqTradingAccountPasswordUpdate", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqTradingAccountPasswordUpdate(IntPtr handle, ref CThostFtdcTradingAccountPasswordUpdateField pTradingAccountPasswordUpdate,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqUserAuthMethod", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqUserAuthMethod(IntPtr handle, ref CThostFtdcReqUserAuthMethodField pReqUserAuthMethod,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqGenUserCaptcha", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqGenUserCaptcha(IntPtr handle, ref CThostFtdcReqGenUserCaptchaField pReqGenUserCaptcha,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqGenUserText", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqGenUserText(IntPtr handle, ref CThostFtdcReqGenUserTextField pReqGenUserText,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqUserLoginWithCaptcha", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqUserLoginWithCaptcha(IntPtr handle, ref CThostFtdcReqUserLoginWithCaptchaField pReqUserLoginWithCaptcha,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqUserLoginWithText", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqUserLoginWithText(IntPtr handle, ref CThostFtdcReqUserLoginWithTextField pReqUserLoginWithText,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqUserLoginWithOTP", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqUserLoginWithOTP(IntPtr handle, ref CThostFtdcReqUserLoginWithOTPField pReqUserLoginWithOTP,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqOrderInsert", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqOrderInsert(IntPtr handle, ref CThostFtdcInputOrderField pInputOrder,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqParkedOrderInsert", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqParkedOrderInsert(IntPtr handle, ref CThostFtdcParkedOrderField pParkedOrder,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqParkedOrderAction", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqParkedOrderAction(IntPtr handle, ref CThostFtdcParkedOrderActionField pParkedOrderAction,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqOrderAction", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqOrderAction(IntPtr handle, ref CThostFtdcInputOrderActionField pInputOrderAction,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryMaxOrderVolume", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryMaxOrderVolume(IntPtr handle, ref CThostFtdcQryMaxOrderVolumeField pQryMaxOrderVolume,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqSettlementInfoConfirm", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqSettlementInfoConfirm(IntPtr handle, ref CThostFtdcSettlementInfoConfirmField pSettlementInfoConfirm,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqRemoveParkedOrder", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqRemoveParkedOrder(IntPtr handle, ref CThostFtdcRemoveParkedOrderField pRemoveParkedOrder,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqRemoveParkedOrderAction", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqRemoveParkedOrderAction(IntPtr handle, ref CThostFtdcRemoveParkedOrderActionField pRemoveParkedOrderAction,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqExecOrderInsert", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqExecOrderInsert(IntPtr handle, ref CThostFtdcInputExecOrderField pInputExecOrder,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqExecOrderAction", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqExecOrderAction(IntPtr handle, ref CThostFtdcInputExecOrderActionField pInputExecOrderAction,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqForQuoteInsert", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqForQuoteInsert(IntPtr handle, ref CThostFtdcInputForQuoteField pInputForQuote,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQuoteInsert", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQuoteInsert(IntPtr handle, ref CThostFtdcInputQuoteField pInputQuote,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQuoteAction", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQuoteAction(IntPtr handle, ref CThostFtdcInputQuoteActionField pInputQuoteAction,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqBatchOrderAction", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqBatchOrderAction(IntPtr handle, ref CThostFtdcInputBatchOrderActionField pInputBatchOrderAction,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqOptionSelfCloseInsert", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqOptionSelfCloseInsert(IntPtr handle, ref CThostFtdcInputOptionSelfCloseField pInputOptionSelfClose,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqOptionSelfCloseAction", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqOptionSelfCloseAction(IntPtr handle, ref CThostFtdcInputOptionSelfCloseActionField pInputOptionSelfCloseAction,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqCombActionInsert", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqCombActionInsert(IntPtr handle, ref CThostFtdcInputCombActionField pInputCombAction,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryOrder", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryOrder(IntPtr handle, ref CThostFtdcQryOrderField pQryOrder,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryTrade", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryTrade(IntPtr handle, ref CThostFtdcQryTradeField pQryTrade,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryInvestorPosition", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryInvestorPosition(IntPtr handle, ref CThostFtdcQryInvestorPositionField pQryInvestorPosition,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryTradingAccount", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryTradingAccount(IntPtr handle, ref CThostFtdcQryTradingAccountField pQryTradingAccount,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryInvestor", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryInvestor(IntPtr handle, ref CThostFtdcQryInvestorField pQryInvestor,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryTradingCode", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryTradingCode(IntPtr handle, ref CThostFtdcQryTradingCodeField pQryTradingCode,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryInstrumentMarginRate", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryInstrumentMarginRate(IntPtr handle, ref CThostFtdcQryInstrumentMarginRateField pQryInstrumentMarginRate,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryInstrumentCommissionRate", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryInstrumentCommissionRate(IntPtr handle, ref CThostFtdcQryInstrumentCommissionRateField pQryInstrumentCommissionRate,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryExchange", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryExchange(IntPtr handle, ref CThostFtdcQryExchangeField pQryExchange,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryProduct", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryProduct(IntPtr handle, ref CThostFtdcQryProductField pQryProduct,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryInstrument", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryInstrument(IntPtr handle, ref CThostFtdcQryInstrumentField pQryInstrument,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryDepthMarketData", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryDepthMarketData(IntPtr handle, ref CThostFtdcQryDepthMarketDataField pQryDepthMarketData,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryTraderOffer", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryTraderOffer(IntPtr handle, ref CThostFtdcQryTraderOfferField pQryTraderOffer,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQrySettlementInfo", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQrySettlementInfo(IntPtr handle, ref CThostFtdcQrySettlementInfoField pQrySettlementInfo,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryTransferBank", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryTransferBank(IntPtr handle, ref CThostFtdcQryTransferBankField pQryTransferBank,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryInvestorPositionDetail", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryInvestorPositionDetail(IntPtr handle, ref CThostFtdcQryInvestorPositionDetailField pQryInvestorPositionDetail,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryNotice", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryNotice(IntPtr handle, ref CThostFtdcQryNoticeField pQryNotice,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQrySettlementInfoConfirm", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQrySettlementInfoConfirm(IntPtr handle, ref CThostFtdcQrySettlementInfoConfirmField pQrySettlementInfoConfirm,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryInvestorPositionCombineDetail", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryInvestorPositionCombineDetail(IntPtr handle, ref CThostFtdcQryInvestorPositionCombineDetailField pQryInvestorPositionCombineDetail,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryCFMMCTradingAccountKey", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryCFMMCTradingAccountKey(IntPtr handle, ref CThostFtdcQryCFMMCTradingAccountKeyField pQryCFMMCTradingAccountKey,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryEWarrantOffset", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryEWarrantOffset(IntPtr handle, ref CThostFtdcQryEWarrantOffsetField pQryEWarrantOffset,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryInvestorProductGroupMargin", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryInvestorProductGroupMargin(IntPtr handle, ref CThostFtdcQryInvestorProductGroupMarginField pQryInvestorProductGroupMargin,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryExchangeMarginRate", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryExchangeMarginRate(IntPtr handle, ref CThostFtdcQryExchangeMarginRateField pQryExchangeMarginRate,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryExchangeMarginRateAdjust", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryExchangeMarginRateAdjust(IntPtr handle, ref CThostFtdcQryExchangeMarginRateAdjustField pQryExchangeMarginRateAdjust,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryExchangeRate", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryExchangeRate(IntPtr handle, ref CThostFtdcQryExchangeRateField pQryExchangeRate,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQrySecAgentACIDMap", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQrySecAgentACIDMap(IntPtr handle, ref CThostFtdcQrySecAgentACIDMapField pQrySecAgentACIDMap,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryProductExchRate", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryProductExchRate(IntPtr handle, ref CThostFtdcQryProductExchRateField pQryProductExchRate,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryProductGroup", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryProductGroup(IntPtr handle, ref CThostFtdcQryProductGroupField pQryProductGroup,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryMMInstrumentCommissionRate", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryMMInstrumentCommissionRate(IntPtr handle, ref CThostFtdcQryMMInstrumentCommissionRateField pQryMMInstrumentCommissionRate,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryMMOptionInstrCommRate", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryMMOptionInstrCommRate(IntPtr handle, ref CThostFtdcQryMMOptionInstrCommRateField pQryMMOptionInstrCommRate,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryInstrumentOrderCommRate", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryInstrumentOrderCommRate(IntPtr handle, ref CThostFtdcQryInstrumentOrderCommRateField pQryInstrumentOrderCommRate,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQrySecAgentTradingAccount", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQrySecAgentTradingAccount(IntPtr handle, ref CThostFtdcQryTradingAccountField pQryTradingAccount,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQrySecAgentCheckMode", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQrySecAgentCheckMode(IntPtr handle, ref CThostFtdcQrySecAgentCheckModeField pQrySecAgentCheckMode,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQrySecAgentTradeInfo", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQrySecAgentTradeInfo(IntPtr handle, ref CThostFtdcQrySecAgentTradeInfoField pQrySecAgentTradeInfo,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryOptionInstrTradeCost", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryOptionInstrTradeCost(IntPtr handle, ref CThostFtdcQryOptionInstrTradeCostField pQryOptionInstrTradeCost,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryOptionInstrCommRate", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryOptionInstrCommRate(IntPtr handle, ref CThostFtdcQryOptionInstrCommRateField pQryOptionInstrCommRate,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryExecOrder", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryExecOrder(IntPtr handle, ref CThostFtdcQryExecOrderField pQryExecOrder,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryForQuote", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryForQuote(IntPtr handle, ref CThostFtdcQryForQuoteField pQryForQuote,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryQuote", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryQuote(IntPtr handle, ref CThostFtdcQryQuoteField pQryQuote,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryOptionSelfClose", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryOptionSelfClose(IntPtr handle, ref CThostFtdcQryOptionSelfCloseField pQryOptionSelfClose,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryInvestUnit", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryInvestUnit(IntPtr handle, ref CThostFtdcQryInvestUnitField pQryInvestUnit,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryCombInstrumentGuard", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryCombInstrumentGuard(IntPtr handle, ref CThostFtdcQryCombInstrumentGuardField pQryCombInstrumentGuard,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryCombAction", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryCombAction(IntPtr handle, ref CThostFtdcQryCombActionField pQryCombAction,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryTransferSerial", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryTransferSerial(IntPtr handle, ref CThostFtdcQryTransferSerialField pQryTransferSerial,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryAccountregister", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryAccountregister(IntPtr handle, ref CThostFtdcQryAccountregisterField pQryAccountregister,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryContractBank", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryContractBank(IntPtr handle, ref CThostFtdcQryContractBankField pQryContractBank,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryParkedOrder", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryParkedOrder(IntPtr handle, ref CThostFtdcQryParkedOrderField pQryParkedOrder,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryParkedOrderAction", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryParkedOrderAction(IntPtr handle, ref CThostFtdcQryParkedOrderActionField pQryParkedOrderAction,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryTradingNotice", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryTradingNotice(IntPtr handle, ref CThostFtdcQryTradingNoticeField pQryTradingNotice,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryBrokerTradingParams", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryBrokerTradingParams(IntPtr handle, ref CThostFtdcQryBrokerTradingParamsField pQryBrokerTradingParams,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryBrokerTradingAlgos", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryBrokerTradingAlgos(IntPtr handle, ref CThostFtdcQryBrokerTradingAlgosField pQryBrokerTradingAlgos,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQueryCFMMCTradingAccountToken", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQueryCFMMCTradingAccountToken(IntPtr handle, ref CThostFtdcQueryCFMMCTradingAccountTokenField pQueryCFMMCTradingAccountToken,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqFromBankToFutureByFuture", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqFromBankToFutureByFuture(IntPtr handle, ref CThostFtdcReqTransferField pReqTransfer,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqFromFutureToBankByFuture", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqFromFutureToBankByFuture(IntPtr handle, ref CThostFtdcReqTransferField pReqTransfer,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQueryBankAccountMoneyByFuture", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQueryBankAccountMoneyByFuture(IntPtr handle, ref CThostFtdcReqQueryAccountField pReqQueryAccount,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryClassifiedInstrument", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryClassifiedInstrument(IntPtr handle, ref CThostFtdcQryClassifiedInstrumentField pQryClassifiedInstrument,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryCombPromotionParam", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryCombPromotionParam(IntPtr handle, ref CThostFtdcQryCombPromotionParamField pQryCombPromotionParam,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryRiskSettleInvstPosition", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryRiskSettleInvstPosition(IntPtr handle, ref CThostFtdcQryRiskSettleInvstPositionField pQryRiskSettleInvstPosition,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryRiskSettleProductStatus", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryRiskSettleProductStatus(IntPtr handle, ref CThostFtdcQryRiskSettleProductStatusField pQryRiskSettleProductStatus,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQrySPBMFutureParameter", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQrySPBMFutureParameter(IntPtr handle, ref CThostFtdcQrySPBMFutureParameterField pQrySPBMFutureParameter,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQrySPBMOptionParameter", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQrySPBMOptionParameter(IntPtr handle, ref CThostFtdcQrySPBMOptionParameterField pQrySPBMOptionParameter,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQrySPBMIntraParameter", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQrySPBMIntraParameter(IntPtr handle, ref CThostFtdcQrySPBMIntraParameterField pQrySPBMIntraParameter,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQrySPBMInterParameter", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQrySPBMInterParameter(IntPtr handle, ref CThostFtdcQrySPBMInterParameterField pQrySPBMInterParameter,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQrySPBMPortfDefinition", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQrySPBMPortfDefinition(IntPtr handle, ref CThostFtdcQrySPBMPortfDefinitionField pQrySPBMPortfDefinition,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQrySPBMInvestorPortfDef", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQrySPBMInvestorPortfDef(IntPtr handle, ref CThostFtdcQrySPBMInvestorPortfDefField pQrySPBMInvestorPortfDef,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryInvestorPortfMarginRatio", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryInvestorPortfMarginRatio(IntPtr handle, ref CThostFtdcQryInvestorPortfMarginRatioField pQryInvestorPortfMarginRatio,int nRequestID); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderApi_ReqQryInvestorProdSPBMDetail", CharSet=CharSet.Ansi)] + public extern static int CThostFtdcTraderApi_ReqQryInvestorProdSPBMDetail(IntPtr handle, ref CThostFtdcQryInvestorProdSPBMDetailField pQryInvestorProdSPBMDetail,int nRequestID); + +} +public sealed class CThostFtdcTraderApi +{ + IntPtr _handle; + public CThostFtdcTraderApi(string flowPath) + { + _handle = CTPSharpPInvoke.CThostFtdcTraderApi_Create(flowPath); + } + + /// + /// 获取API的版本信息 + /// + public string GetApiVersion() + { + return GBKConvert.Instance.GetString(CTPSharpPInvoke.CThostFtdcTraderApi_GetApiVersion()); + } + + /// + /// 删除接口对象本身 + /// + public void Release() + { + CTPSharpPInvoke.CThostFtdcTraderApi_Release(_handle); + } + + /// + /// 初始化 + /// + public void Init() + { + CTPSharpPInvoke.CThostFtdcTraderApi_Init(_handle); + } + + /// + /// 等待接口线程结束运行 + /// + public int Join() + { + return CTPSharpPInvoke.CThostFtdcTraderApi_Join(_handle); + } + + /// + /// 获取当前交易日 + /// + public string GetTradingDay() + { + return GBKConvert.Instance.GetString(CTPSharpPInvoke.CThostFtdcTraderApi_GetTradingDay(_handle)); + } + + /// + /// 注册前置机网络地址 + /// + /// 前置机网络地址。 + public void RegisterFront([MarshalAs(UnmanagedType.LPStr)] string pszFrontAddress) + { + CTPSharpPInvoke.CThostFtdcTraderApi_RegisterFront(_handle, pszFrontAddress); + } + + /// + /// 注册名字服务器网络地址 + /// + /// 名字服务器网络地址。 + public void RegisterNameServer([MarshalAs(UnmanagedType.LPStr)] string pszNsAddress) + { + CTPSharpPInvoke.CThostFtdcTraderApi_RegisterNameServer(_handle, pszNsAddress); + } + + /// + /// 注册名字服务器用户信息 + /// + /// 用户信息。 + public void RegisterFensUserInfo(ref CThostFtdcFensUserInfoField pFensUserInfo) + { + CTPSharpPInvoke.CThostFtdcTraderApi_RegisterFensUserInfo(_handle, ref pFensUserInfo); + } + + /// + /// 注册回调接口 + /// + /// 派生自回调接口类的实例 + public void RegisterSpi(IntPtr pSpi) + { + CTPSharpPInvoke.CThostFtdcTraderApi_RegisterSpi(_handle, pSpi); + } + + /// + /// 订阅私有流。 + /// + /// 私有流重传方式 + public void SubscribePrivateTopic(THOST_TE_RESUME_TYPE nResumeType) + { + CTPSharpPInvoke.CThostFtdcTraderApi_SubscribePrivateTopic(_handle, nResumeType); + } + + /// + /// 订阅公共流。 + /// + /// 公共流重传方式 + public void SubscribePublicTopic(THOST_TE_RESUME_TYPE nResumeType) + { + CTPSharpPInvoke.CThostFtdcTraderApi_SubscribePublicTopic(_handle, nResumeType); + } + + /// + /// 客户端认证请求 + /// + public int ReqAuthenticate(ref CThostFtdcReqAuthenticateField pReqAuthenticateField,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqAuthenticate(_handle, ref pReqAuthenticateField,nRequestID); + } + + /// + /// 注册用户终端信息,用于中继服务器多连接模式 + /// + public int RegisterUserSystemInfo(ref CThostFtdcUserSystemInfoField pUserSystemInfo) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_RegisterUserSystemInfo(_handle, ref pUserSystemInfo); + } + + /// + /// 上报用户终端信息,用于中继服务器操作员登录模式 + /// + public int SubmitUserSystemInfo(ref CThostFtdcUserSystemInfoField pUserSystemInfo) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_SubmitUserSystemInfo(_handle, ref pUserSystemInfo); + } + + /// + /// 用户登录请求 + /// + public int ReqUserLogin(ref CThostFtdcReqUserLoginField pReqUserLoginField,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqUserLogin(_handle, ref pReqUserLoginField,nRequestID); + } + + /// + /// 登出请求 + /// + public int ReqUserLogout(ref CThostFtdcUserLogoutField pUserLogout,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqUserLogout(_handle, ref pUserLogout,nRequestID); + } + + /// + /// 用户口令更新请求 + /// + public int ReqUserPasswordUpdate(ref CThostFtdcUserPasswordUpdateField pUserPasswordUpdate,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqUserPasswordUpdate(_handle, ref pUserPasswordUpdate,nRequestID); + } + + /// + /// 资金账户口令更新请求 + /// + public int ReqTradingAccountPasswordUpdate(ref CThostFtdcTradingAccountPasswordUpdateField pTradingAccountPasswordUpdate,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqTradingAccountPasswordUpdate(_handle, ref pTradingAccountPasswordUpdate,nRequestID); + } + + /// + /// 查询用户当前支持的认证模式 + /// + public int ReqUserAuthMethod(ref CThostFtdcReqUserAuthMethodField pReqUserAuthMethod,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqUserAuthMethod(_handle, ref pReqUserAuthMethod,nRequestID); + } + + /// + /// 用户发出获取图形验证码请求 + /// + public int ReqGenUserCaptcha(ref CThostFtdcReqGenUserCaptchaField pReqGenUserCaptcha,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqGenUserCaptcha(_handle, ref pReqGenUserCaptcha,nRequestID); + } + + /// + /// 用户发出获取短信验证码请求 + /// + public int ReqGenUserText(ref CThostFtdcReqGenUserTextField pReqGenUserText,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqGenUserText(_handle, ref pReqGenUserText,nRequestID); + } + + /// + /// 用户发出带有图片验证码的登陆请求 + /// + public int ReqUserLoginWithCaptcha(ref CThostFtdcReqUserLoginWithCaptchaField pReqUserLoginWithCaptcha,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqUserLoginWithCaptcha(_handle, ref pReqUserLoginWithCaptcha,nRequestID); + } + + /// + /// 用户发出带有短信验证码的登陆请求 + /// + public int ReqUserLoginWithText(ref CThostFtdcReqUserLoginWithTextField pReqUserLoginWithText,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqUserLoginWithText(_handle, ref pReqUserLoginWithText,nRequestID); + } + + /// + /// 用户发出带有动态口令的登陆请求 + /// + public int ReqUserLoginWithOTP(ref CThostFtdcReqUserLoginWithOTPField pReqUserLoginWithOTP,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqUserLoginWithOTP(_handle, ref pReqUserLoginWithOTP,nRequestID); + } + + /// + /// 报单录入请求 + /// + public int ReqOrderInsert(ref CThostFtdcInputOrderField pInputOrder,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqOrderInsert(_handle, ref pInputOrder,nRequestID); + } + + /// + /// 预埋单录入请求 + /// + public int ReqParkedOrderInsert(ref CThostFtdcParkedOrderField pParkedOrder,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqParkedOrderInsert(_handle, ref pParkedOrder,nRequestID); + } + + /// + /// 预埋撤单录入请求 + /// + public int ReqParkedOrderAction(ref CThostFtdcParkedOrderActionField pParkedOrderAction,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqParkedOrderAction(_handle, ref pParkedOrderAction,nRequestID); + } + + /// + /// 报单操作请求 + /// + public int ReqOrderAction(ref CThostFtdcInputOrderActionField pInputOrderAction,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqOrderAction(_handle, ref pInputOrderAction,nRequestID); + } + + /// + /// 查询最大报单数量请求 + /// + public int ReqQryMaxOrderVolume(ref CThostFtdcQryMaxOrderVolumeField pQryMaxOrderVolume,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryMaxOrderVolume(_handle, ref pQryMaxOrderVolume,nRequestID); + } + + /// + /// 投资者结算结果确认 + /// + public int ReqSettlementInfoConfirm(ref CThostFtdcSettlementInfoConfirmField pSettlementInfoConfirm,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqSettlementInfoConfirm(_handle, ref pSettlementInfoConfirm,nRequestID); + } + + /// + /// 请求删除预埋单 + /// + public int ReqRemoveParkedOrder(ref CThostFtdcRemoveParkedOrderField pRemoveParkedOrder,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqRemoveParkedOrder(_handle, ref pRemoveParkedOrder,nRequestID); + } + + /// + /// 请求删除预埋撤单 + /// + public int ReqRemoveParkedOrderAction(ref CThostFtdcRemoveParkedOrderActionField pRemoveParkedOrderAction,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqRemoveParkedOrderAction(_handle, ref pRemoveParkedOrderAction,nRequestID); + } + + /// + /// 执行宣告录入请求 + /// + public int ReqExecOrderInsert(ref CThostFtdcInputExecOrderField pInputExecOrder,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqExecOrderInsert(_handle, ref pInputExecOrder,nRequestID); + } + + /// + /// 执行宣告操作请求 + /// + public int ReqExecOrderAction(ref CThostFtdcInputExecOrderActionField pInputExecOrderAction,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqExecOrderAction(_handle, ref pInputExecOrderAction,nRequestID); + } + + /// + /// 询价录入请求 + /// + public int ReqForQuoteInsert(ref CThostFtdcInputForQuoteField pInputForQuote,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqForQuoteInsert(_handle, ref pInputForQuote,nRequestID); + } + + /// + /// 报价录入请求 + /// + public int ReqQuoteInsert(ref CThostFtdcInputQuoteField pInputQuote,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQuoteInsert(_handle, ref pInputQuote,nRequestID); + } + + /// + /// 报价操作请求 + /// + public int ReqQuoteAction(ref CThostFtdcInputQuoteActionField pInputQuoteAction,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQuoteAction(_handle, ref pInputQuoteAction,nRequestID); + } + + /// + /// 批量报单操作请求 + /// + public int ReqBatchOrderAction(ref CThostFtdcInputBatchOrderActionField pInputBatchOrderAction,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqBatchOrderAction(_handle, ref pInputBatchOrderAction,nRequestID); + } + + /// + /// 期权自对冲录入请求 + /// + public int ReqOptionSelfCloseInsert(ref CThostFtdcInputOptionSelfCloseField pInputOptionSelfClose,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqOptionSelfCloseInsert(_handle, ref pInputOptionSelfClose,nRequestID); + } + + /// + /// 期权自对冲操作请求 + /// + public int ReqOptionSelfCloseAction(ref CThostFtdcInputOptionSelfCloseActionField pInputOptionSelfCloseAction,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqOptionSelfCloseAction(_handle, ref pInputOptionSelfCloseAction,nRequestID); + } + + /// + /// 申请组合录入请求 + /// + public int ReqCombActionInsert(ref CThostFtdcInputCombActionField pInputCombAction,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqCombActionInsert(_handle, ref pInputCombAction,nRequestID); + } + + /// + /// 请求查询报单 + /// + public int ReqQryOrder(ref CThostFtdcQryOrderField pQryOrder,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryOrder(_handle, ref pQryOrder,nRequestID); + } + + /// + /// 请求查询成交 + /// + public int ReqQryTrade(ref CThostFtdcQryTradeField pQryTrade,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryTrade(_handle, ref pQryTrade,nRequestID); + } + + /// + /// 请求查询投资者持仓 + /// + public int ReqQryInvestorPosition(ref CThostFtdcQryInvestorPositionField pQryInvestorPosition,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryInvestorPosition(_handle, ref pQryInvestorPosition,nRequestID); + } + + /// + /// 请求查询资金账户 + /// + public int ReqQryTradingAccount(ref CThostFtdcQryTradingAccountField pQryTradingAccount,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryTradingAccount(_handle, ref pQryTradingAccount,nRequestID); + } + + /// + /// 请求查询投资者 + /// + public int ReqQryInvestor(ref CThostFtdcQryInvestorField pQryInvestor,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryInvestor(_handle, ref pQryInvestor,nRequestID); + } + + /// + /// 请求查询交易编码 + /// + public int ReqQryTradingCode(ref CThostFtdcQryTradingCodeField pQryTradingCode,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryTradingCode(_handle, ref pQryTradingCode,nRequestID); + } + + /// + /// 请求查询合约保证金率 + /// + public int ReqQryInstrumentMarginRate(ref CThostFtdcQryInstrumentMarginRateField pQryInstrumentMarginRate,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryInstrumentMarginRate(_handle, ref pQryInstrumentMarginRate,nRequestID); + } + + /// + /// 请求查询合约手续费率 + /// + public int ReqQryInstrumentCommissionRate(ref CThostFtdcQryInstrumentCommissionRateField pQryInstrumentCommissionRate,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryInstrumentCommissionRate(_handle, ref pQryInstrumentCommissionRate,nRequestID); + } + + /// + /// 请求查询交易所 + /// + public int ReqQryExchange(ref CThostFtdcQryExchangeField pQryExchange,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryExchange(_handle, ref pQryExchange,nRequestID); + } + + /// + /// 请求查询产品 + /// + public int ReqQryProduct(ref CThostFtdcQryProductField pQryProduct,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryProduct(_handle, ref pQryProduct,nRequestID); + } + + /// + /// 请求查询合约 + /// + public int ReqQryInstrument(ref CThostFtdcQryInstrumentField pQryInstrument,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryInstrument(_handle, ref pQryInstrument,nRequestID); + } + + /// + /// 请求查询行情 + /// + public int ReqQryDepthMarketData(ref CThostFtdcQryDepthMarketDataField pQryDepthMarketData,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryDepthMarketData(_handle, ref pQryDepthMarketData,nRequestID); + } + + /// + /// 请求查询交易员报盘机 + /// + public int ReqQryTraderOffer(ref CThostFtdcQryTraderOfferField pQryTraderOffer,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryTraderOffer(_handle, ref pQryTraderOffer,nRequestID); + } + + /// + /// 请求查询投资者结算结果 + /// + public int ReqQrySettlementInfo(ref CThostFtdcQrySettlementInfoField pQrySettlementInfo,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQrySettlementInfo(_handle, ref pQrySettlementInfo,nRequestID); + } + + /// + /// 请求查询转帐银行 + /// + public int ReqQryTransferBank(ref CThostFtdcQryTransferBankField pQryTransferBank,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryTransferBank(_handle, ref pQryTransferBank,nRequestID); + } + + /// + /// 请求查询投资者持仓明细 + /// + public int ReqQryInvestorPositionDetail(ref CThostFtdcQryInvestorPositionDetailField pQryInvestorPositionDetail,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryInvestorPositionDetail(_handle, ref pQryInvestorPositionDetail,nRequestID); + } + + /// + /// 请求查询客户通知 + /// + public int ReqQryNotice(ref CThostFtdcQryNoticeField pQryNotice,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryNotice(_handle, ref pQryNotice,nRequestID); + } + + /// + /// 请求查询结算信息确认 + /// + public int ReqQrySettlementInfoConfirm(ref CThostFtdcQrySettlementInfoConfirmField pQrySettlementInfoConfirm,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQrySettlementInfoConfirm(_handle, ref pQrySettlementInfoConfirm,nRequestID); + } + + /// + /// 请求查询投资者持仓明细 + /// + public int ReqQryInvestorPositionCombineDetail(ref CThostFtdcQryInvestorPositionCombineDetailField pQryInvestorPositionCombineDetail,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryInvestorPositionCombineDetail(_handle, ref pQryInvestorPositionCombineDetail,nRequestID); + } + + /// + /// 请求查询保证金监管系统经纪公司资金账户密钥 + /// + public int ReqQryCFMMCTradingAccountKey(ref CThostFtdcQryCFMMCTradingAccountKeyField pQryCFMMCTradingAccountKey,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryCFMMCTradingAccountKey(_handle, ref pQryCFMMCTradingAccountKey,nRequestID); + } + + /// + /// 请求查询仓单折抵信息 + /// + public int ReqQryEWarrantOffset(ref CThostFtdcQryEWarrantOffsetField pQryEWarrantOffset,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryEWarrantOffset(_handle, ref pQryEWarrantOffset,nRequestID); + } + + /// + /// 请求查询投资者品种/跨品种保证金 + /// + public int ReqQryInvestorProductGroupMargin(ref CThostFtdcQryInvestorProductGroupMarginField pQryInvestorProductGroupMargin,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryInvestorProductGroupMargin(_handle, ref pQryInvestorProductGroupMargin,nRequestID); + } + + /// + /// 请求查询交易所保证金率 + /// + public int ReqQryExchangeMarginRate(ref CThostFtdcQryExchangeMarginRateField pQryExchangeMarginRate,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryExchangeMarginRate(_handle, ref pQryExchangeMarginRate,nRequestID); + } + + /// + /// 请求查询交易所调整保证金率 + /// + public int ReqQryExchangeMarginRateAdjust(ref CThostFtdcQryExchangeMarginRateAdjustField pQryExchangeMarginRateAdjust,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryExchangeMarginRateAdjust(_handle, ref pQryExchangeMarginRateAdjust,nRequestID); + } + + /// + /// 请求查询汇率 + /// + public int ReqQryExchangeRate(ref CThostFtdcQryExchangeRateField pQryExchangeRate,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryExchangeRate(_handle, ref pQryExchangeRate,nRequestID); + } + + /// + /// 请求查询二级代理操作员银期权限 + /// + public int ReqQrySecAgentACIDMap(ref CThostFtdcQrySecAgentACIDMapField pQrySecAgentACIDMap,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQrySecAgentACIDMap(_handle, ref pQrySecAgentACIDMap,nRequestID); + } + + /// + /// 请求查询产品报价汇率 + /// + public int ReqQryProductExchRate(ref CThostFtdcQryProductExchRateField pQryProductExchRate,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryProductExchRate(_handle, ref pQryProductExchRate,nRequestID); + } + + /// + /// 请求查询产品组 + /// + public int ReqQryProductGroup(ref CThostFtdcQryProductGroupField pQryProductGroup,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryProductGroup(_handle, ref pQryProductGroup,nRequestID); + } + + /// + /// 请求查询做市商合约手续费率 + /// + public int ReqQryMMInstrumentCommissionRate(ref CThostFtdcQryMMInstrumentCommissionRateField pQryMMInstrumentCommissionRate,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryMMInstrumentCommissionRate(_handle, ref pQryMMInstrumentCommissionRate,nRequestID); + } + + /// + /// 请求查询做市商期权合约手续费 + /// + public int ReqQryMMOptionInstrCommRate(ref CThostFtdcQryMMOptionInstrCommRateField pQryMMOptionInstrCommRate,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryMMOptionInstrCommRate(_handle, ref pQryMMOptionInstrCommRate,nRequestID); + } + + /// + /// 请求查询报单手续费 + /// + public int ReqQryInstrumentOrderCommRate(ref CThostFtdcQryInstrumentOrderCommRateField pQryInstrumentOrderCommRate,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryInstrumentOrderCommRate(_handle, ref pQryInstrumentOrderCommRate,nRequestID); + } + + /// + /// 请求查询资金账户 + /// + public int ReqQrySecAgentTradingAccount(ref CThostFtdcQryTradingAccountField pQryTradingAccount,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQrySecAgentTradingAccount(_handle, ref pQryTradingAccount,nRequestID); + } + + /// + /// 请求查询二级代理商资金校验模式 + /// + public int ReqQrySecAgentCheckMode(ref CThostFtdcQrySecAgentCheckModeField pQrySecAgentCheckMode,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQrySecAgentCheckMode(_handle, ref pQrySecAgentCheckMode,nRequestID); + } + + /// + /// 请求查询二级代理商信息 + /// + public int ReqQrySecAgentTradeInfo(ref CThostFtdcQrySecAgentTradeInfoField pQrySecAgentTradeInfo,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQrySecAgentTradeInfo(_handle, ref pQrySecAgentTradeInfo,nRequestID); + } + + /// + /// 请求查询期权交易成本 + /// + public int ReqQryOptionInstrTradeCost(ref CThostFtdcQryOptionInstrTradeCostField pQryOptionInstrTradeCost,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryOptionInstrTradeCost(_handle, ref pQryOptionInstrTradeCost,nRequestID); + } + + /// + /// 请求查询期权合约手续费 + /// + public int ReqQryOptionInstrCommRate(ref CThostFtdcQryOptionInstrCommRateField pQryOptionInstrCommRate,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryOptionInstrCommRate(_handle, ref pQryOptionInstrCommRate,nRequestID); + } + + /// + /// 请求查询执行宣告 + /// + public int ReqQryExecOrder(ref CThostFtdcQryExecOrderField pQryExecOrder,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryExecOrder(_handle, ref pQryExecOrder,nRequestID); + } + + /// + /// 请求查询询价 + /// + public int ReqQryForQuote(ref CThostFtdcQryForQuoteField pQryForQuote,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryForQuote(_handle, ref pQryForQuote,nRequestID); + } + + /// + /// 请求查询报价 + /// + public int ReqQryQuote(ref CThostFtdcQryQuoteField pQryQuote,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryQuote(_handle, ref pQryQuote,nRequestID); + } + + /// + /// 请求查询期权自对冲 + /// + public int ReqQryOptionSelfClose(ref CThostFtdcQryOptionSelfCloseField pQryOptionSelfClose,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryOptionSelfClose(_handle, ref pQryOptionSelfClose,nRequestID); + } + + /// + /// 请求查询投资单元 + /// + public int ReqQryInvestUnit(ref CThostFtdcQryInvestUnitField pQryInvestUnit,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryInvestUnit(_handle, ref pQryInvestUnit,nRequestID); + } + + /// + /// 请求查询组合合约安全系数 + /// + public int ReqQryCombInstrumentGuard(ref CThostFtdcQryCombInstrumentGuardField pQryCombInstrumentGuard,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryCombInstrumentGuard(_handle, ref pQryCombInstrumentGuard,nRequestID); + } + + /// + /// 请求查询申请组合 + /// + public int ReqQryCombAction(ref CThostFtdcQryCombActionField pQryCombAction,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryCombAction(_handle, ref pQryCombAction,nRequestID); + } + + /// + /// 请求查询转帐流水 + /// + public int ReqQryTransferSerial(ref CThostFtdcQryTransferSerialField pQryTransferSerial,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryTransferSerial(_handle, ref pQryTransferSerial,nRequestID); + } + + /// + /// 请求查询银期签约关系 + /// + public int ReqQryAccountregister(ref CThostFtdcQryAccountregisterField pQryAccountregister,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryAccountregister(_handle, ref pQryAccountregister,nRequestID); + } + + /// + /// 请求查询签约银行 + /// + public int ReqQryContractBank(ref CThostFtdcQryContractBankField pQryContractBank,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryContractBank(_handle, ref pQryContractBank,nRequestID); + } + + /// + /// 请求查询预埋单 + /// + public int ReqQryParkedOrder(ref CThostFtdcQryParkedOrderField pQryParkedOrder,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryParkedOrder(_handle, ref pQryParkedOrder,nRequestID); + } + + /// + /// 请求查询预埋撤单 + /// + public int ReqQryParkedOrderAction(ref CThostFtdcQryParkedOrderActionField pQryParkedOrderAction,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryParkedOrderAction(_handle, ref pQryParkedOrderAction,nRequestID); + } + + /// + /// 请求查询交易通知 + /// + public int ReqQryTradingNotice(ref CThostFtdcQryTradingNoticeField pQryTradingNotice,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryTradingNotice(_handle, ref pQryTradingNotice,nRequestID); + } + + /// + /// 请求查询经纪公司交易参数 + /// + public int ReqQryBrokerTradingParams(ref CThostFtdcQryBrokerTradingParamsField pQryBrokerTradingParams,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryBrokerTradingParams(_handle, ref pQryBrokerTradingParams,nRequestID); + } + + /// + /// 请求查询经纪公司交易算法 + /// + public int ReqQryBrokerTradingAlgos(ref CThostFtdcQryBrokerTradingAlgosField pQryBrokerTradingAlgos,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryBrokerTradingAlgos(_handle, ref pQryBrokerTradingAlgos,nRequestID); + } + + /// + /// 请求查询监控中心用户令牌 + /// + public int ReqQueryCFMMCTradingAccountToken(ref CThostFtdcQueryCFMMCTradingAccountTokenField pQueryCFMMCTradingAccountToken,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQueryCFMMCTradingAccountToken(_handle, ref pQueryCFMMCTradingAccountToken,nRequestID); + } + + /// + /// 期货发起银行资金转期货请求 + /// + public int ReqFromBankToFutureByFuture(ref CThostFtdcReqTransferField pReqTransfer,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqFromBankToFutureByFuture(_handle, ref pReqTransfer,nRequestID); + } + + /// + /// 期货发起期货资金转银行请求 + /// + public int ReqFromFutureToBankByFuture(ref CThostFtdcReqTransferField pReqTransfer,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqFromFutureToBankByFuture(_handle, ref pReqTransfer,nRequestID); + } + + /// + /// 期货发起查询银行余额请求 + /// + public int ReqQueryBankAccountMoneyByFuture(ref CThostFtdcReqQueryAccountField pReqQueryAccount,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQueryBankAccountMoneyByFuture(_handle, ref pReqQueryAccount,nRequestID); + } + + /// + /// 请求查询分类合约 + /// + public int ReqQryClassifiedInstrument(ref CThostFtdcQryClassifiedInstrumentField pQryClassifiedInstrument,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryClassifiedInstrument(_handle, ref pQryClassifiedInstrument,nRequestID); + } + + /// + /// 请求组合优惠比例 + /// + public int ReqQryCombPromotionParam(ref CThostFtdcQryCombPromotionParamField pQryCombPromotionParam,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryCombPromotionParam(_handle, ref pQryCombPromotionParam,nRequestID); + } + + /// + /// 投资者风险结算持仓查询 + /// + public int ReqQryRiskSettleInvstPosition(ref CThostFtdcQryRiskSettleInvstPositionField pQryRiskSettleInvstPosition,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryRiskSettleInvstPosition(_handle, ref pQryRiskSettleInvstPosition,nRequestID); + } + + /// + /// 风险结算产品查询 + /// + public int ReqQryRiskSettleProductStatus(ref CThostFtdcQryRiskSettleProductStatusField pQryRiskSettleProductStatus,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryRiskSettleProductStatus(_handle, ref pQryRiskSettleProductStatus,nRequestID); + } + + /// + /// SPBM期货合约参数查询 + /// + public int ReqQrySPBMFutureParameter(ref CThostFtdcQrySPBMFutureParameterField pQrySPBMFutureParameter,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQrySPBMFutureParameter(_handle, ref pQrySPBMFutureParameter,nRequestID); + } + + /// + /// SPBM期权合约参数查询 + /// + public int ReqQrySPBMOptionParameter(ref CThostFtdcQrySPBMOptionParameterField pQrySPBMOptionParameter,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQrySPBMOptionParameter(_handle, ref pQrySPBMOptionParameter,nRequestID); + } + + /// + /// SPBM品种内对锁仓折扣参数查询 + /// + public int ReqQrySPBMIntraParameter(ref CThostFtdcQrySPBMIntraParameterField pQrySPBMIntraParameter,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQrySPBMIntraParameter(_handle, ref pQrySPBMIntraParameter,nRequestID); + } + + /// + /// SPBM跨品种抵扣参数查询 + /// + public int ReqQrySPBMInterParameter(ref CThostFtdcQrySPBMInterParameterField pQrySPBMInterParameter,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQrySPBMInterParameter(_handle, ref pQrySPBMInterParameter,nRequestID); + } + + /// + /// SPBM组合保证金套餐查询 + /// + public int ReqQrySPBMPortfDefinition(ref CThostFtdcQrySPBMPortfDefinitionField pQrySPBMPortfDefinition,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQrySPBMPortfDefinition(_handle, ref pQrySPBMPortfDefinition,nRequestID); + } + + /// + /// 投资者SPBM套餐选择查询 + /// + public int ReqQrySPBMInvestorPortfDef(ref CThostFtdcQrySPBMInvestorPortfDefField pQrySPBMInvestorPortfDef,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQrySPBMInvestorPortfDef(_handle, ref pQrySPBMInvestorPortfDef,nRequestID); + } + + /// + /// 投资者新型组合保证金系数查询 + /// + public int ReqQryInvestorPortfMarginRatio(ref CThostFtdcQryInvestorPortfMarginRatioField pQryInvestorPortfMarginRatio,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryInvestorPortfMarginRatio(_handle, ref pQryInvestorPortfMarginRatio,nRequestID); + } + + /// + /// 投资者产品SPBM明细查询 + /// + public int ReqQryInvestorProdSPBMDetail(ref CThostFtdcQryInvestorProdSPBMDetailField pQryInvestorProdSPBMDetail,int nRequestID) + { + return CTPSharpPInvoke.CThostFtdcTraderApi_ReqQryInvestorProdSPBMDetail(_handle, ref pQryInvestorProdSPBMDetail,nRequestID); + } + + public void Dispose() + { + if (_handle == 0) return; + CTPSharpPInvoke.CThostFtdcTraderApi_Release(_handle); + //CTPSharpPInvoke.CThostFtdcTraderApi_Join(_handle); + _handle = 0; + } +} diff --git a/CTPAPI6.6.9/generated/PInvokeCThostFtdcTraderSpi.cs b/CTPAPI6.6.9/generated/PInvokeCThostFtdcTraderSpi.cs new file mode 100644 index 0000000..d616c66 --- /dev/null +++ b/CTPAPI6.6.9/generated/PInvokeCThostFtdcTraderSpi.cs @@ -0,0 +1,1431 @@ +using System.Runtime.InteropServices; +namespace XP.CTPSharp; + +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +internal struct CTPSharp_CThostFtdcTraderSpi +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnFrontConnected(); + internal DelOnFrontConnected OnFrontConnected; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnFrontDisconnected(int nReason); + internal DelOnFrontDisconnected OnFrontDisconnected; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnHeartBeatWarning(int nTimeLapse); + internal DelOnHeartBeatWarning OnHeartBeatWarning; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspAuthenticate(ref CThostFtdcRspAuthenticateField pRspAuthenticateField,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspAuthenticate OnRspAuthenticate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspUserLogin(ref CThostFtdcRspUserLoginField pRspUserLogin,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspUserLogin OnRspUserLogin; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspUserLogout(ref CThostFtdcUserLogoutField pUserLogout,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspUserLogout OnRspUserLogout; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspUserPasswordUpdate(ref CThostFtdcUserPasswordUpdateField pUserPasswordUpdate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspUserPasswordUpdate OnRspUserPasswordUpdate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspTradingAccountPasswordUpdate(ref CThostFtdcTradingAccountPasswordUpdateField pTradingAccountPasswordUpdate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspTradingAccountPasswordUpdate OnRspTradingAccountPasswordUpdate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspUserAuthMethod(ref CThostFtdcRspUserAuthMethodField pRspUserAuthMethod,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspUserAuthMethod OnRspUserAuthMethod; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspGenUserCaptcha(ref CThostFtdcRspGenUserCaptchaField pRspGenUserCaptcha,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspGenUserCaptcha OnRspGenUserCaptcha; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspGenUserText(ref CThostFtdcRspGenUserTextField pRspGenUserText,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspGenUserText OnRspGenUserText; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspOrderInsert(ref CThostFtdcInputOrderField pInputOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspOrderInsert OnRspOrderInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspParkedOrderInsert(ref CThostFtdcParkedOrderField pParkedOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspParkedOrderInsert OnRspParkedOrderInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspParkedOrderAction(ref CThostFtdcParkedOrderActionField pParkedOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspParkedOrderAction OnRspParkedOrderAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspOrderAction(ref CThostFtdcInputOrderActionField pInputOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspOrderAction OnRspOrderAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryMaxOrderVolume(ref CThostFtdcQryMaxOrderVolumeField pQryMaxOrderVolume,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryMaxOrderVolume OnRspQryMaxOrderVolume; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspSettlementInfoConfirm(ref CThostFtdcSettlementInfoConfirmField pSettlementInfoConfirm,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspSettlementInfoConfirm OnRspSettlementInfoConfirm; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspRemoveParkedOrder(ref CThostFtdcRemoveParkedOrderField pRemoveParkedOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspRemoveParkedOrder OnRspRemoveParkedOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspRemoveParkedOrderAction(ref CThostFtdcRemoveParkedOrderActionField pRemoveParkedOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspRemoveParkedOrderAction OnRspRemoveParkedOrderAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspExecOrderInsert(ref CThostFtdcInputExecOrderField pInputExecOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspExecOrderInsert OnRspExecOrderInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspExecOrderAction(ref CThostFtdcInputExecOrderActionField pInputExecOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspExecOrderAction OnRspExecOrderAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspForQuoteInsert(ref CThostFtdcInputForQuoteField pInputForQuote,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspForQuoteInsert OnRspForQuoteInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQuoteInsert(ref CThostFtdcInputQuoteField pInputQuote,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQuoteInsert OnRspQuoteInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQuoteAction(ref CThostFtdcInputQuoteActionField pInputQuoteAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQuoteAction OnRspQuoteAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspBatchOrderAction(ref CThostFtdcInputBatchOrderActionField pInputBatchOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspBatchOrderAction OnRspBatchOrderAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspOptionSelfCloseInsert(ref CThostFtdcInputOptionSelfCloseField pInputOptionSelfClose,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspOptionSelfCloseInsert OnRspOptionSelfCloseInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspOptionSelfCloseAction(ref CThostFtdcInputOptionSelfCloseActionField pInputOptionSelfCloseAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspOptionSelfCloseAction OnRspOptionSelfCloseAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspCombActionInsert(ref CThostFtdcInputCombActionField pInputCombAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspCombActionInsert OnRspCombActionInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryOrder(ref CThostFtdcOrderField pOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryOrder OnRspQryOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryTrade(ref CThostFtdcTradeField pTrade,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryTrade OnRspQryTrade; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryInvestorPosition(ref CThostFtdcInvestorPositionField pInvestorPosition,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryInvestorPosition OnRspQryInvestorPosition; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryTradingAccount(ref CThostFtdcTradingAccountField pTradingAccount,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryTradingAccount OnRspQryTradingAccount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryInvestor(ref CThostFtdcInvestorField pInvestor,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryInvestor OnRspQryInvestor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryTradingCode(ref CThostFtdcTradingCodeField pTradingCode,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryTradingCode OnRspQryTradingCode; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryInstrumentMarginRate(ref CThostFtdcInstrumentMarginRateField pInstrumentMarginRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryInstrumentMarginRate OnRspQryInstrumentMarginRate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryInstrumentCommissionRate(ref CThostFtdcInstrumentCommissionRateField pInstrumentCommissionRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryInstrumentCommissionRate OnRspQryInstrumentCommissionRate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryExchange(ref CThostFtdcExchangeField pExchange,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryExchange OnRspQryExchange; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryProduct(ref CThostFtdcProductField pProduct,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryProduct OnRspQryProduct; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryInstrument(ref CThostFtdcInstrumentField pInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryInstrument OnRspQryInstrument; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryDepthMarketData(ref CThostFtdcDepthMarketDataField pDepthMarketData,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryDepthMarketData OnRspQryDepthMarketData; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryTraderOffer(ref CThostFtdcTraderOfferField pTraderOffer,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryTraderOffer OnRspQryTraderOffer; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQrySettlementInfo(ref CThostFtdcSettlementInfoField pSettlementInfo,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQrySettlementInfo OnRspQrySettlementInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryTransferBank(ref CThostFtdcTransferBankField pTransferBank,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryTransferBank OnRspQryTransferBank; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryInvestorPositionDetail(ref CThostFtdcInvestorPositionDetailField pInvestorPositionDetail,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryInvestorPositionDetail OnRspQryInvestorPositionDetail; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryNotice(ref CThostFtdcNoticeField pNotice,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryNotice OnRspQryNotice; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQrySettlementInfoConfirm(ref CThostFtdcSettlementInfoConfirmField pSettlementInfoConfirm,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQrySettlementInfoConfirm OnRspQrySettlementInfoConfirm; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryInvestorPositionCombineDetail(ref CThostFtdcInvestorPositionCombineDetailField pInvestorPositionCombineDetail,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryInvestorPositionCombineDetail OnRspQryInvestorPositionCombineDetail; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryCFMMCTradingAccountKey(ref CThostFtdcCFMMCTradingAccountKeyField pCFMMCTradingAccountKey,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryCFMMCTradingAccountKey OnRspQryCFMMCTradingAccountKey; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryEWarrantOffset(ref CThostFtdcEWarrantOffsetField pEWarrantOffset,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryEWarrantOffset OnRspQryEWarrantOffset; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryInvestorProductGroupMargin(ref CThostFtdcInvestorProductGroupMarginField pInvestorProductGroupMargin,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryInvestorProductGroupMargin OnRspQryInvestorProductGroupMargin; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryExchangeMarginRate(ref CThostFtdcExchangeMarginRateField pExchangeMarginRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryExchangeMarginRate OnRspQryExchangeMarginRate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryExchangeMarginRateAdjust(ref CThostFtdcExchangeMarginRateAdjustField pExchangeMarginRateAdjust,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryExchangeMarginRateAdjust OnRspQryExchangeMarginRateAdjust; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryExchangeRate(ref CThostFtdcExchangeRateField pExchangeRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryExchangeRate OnRspQryExchangeRate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQrySecAgentACIDMap(ref CThostFtdcSecAgentACIDMapField pSecAgentACIDMap,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQrySecAgentACIDMap OnRspQrySecAgentACIDMap; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryProductExchRate(ref CThostFtdcProductExchRateField pProductExchRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryProductExchRate OnRspQryProductExchRate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryProductGroup(ref CThostFtdcProductGroupField pProductGroup,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryProductGroup OnRspQryProductGroup; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryMMInstrumentCommissionRate(ref CThostFtdcMMInstrumentCommissionRateField pMMInstrumentCommissionRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryMMInstrumentCommissionRate OnRspQryMMInstrumentCommissionRate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryMMOptionInstrCommRate(ref CThostFtdcMMOptionInstrCommRateField pMMOptionInstrCommRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryMMOptionInstrCommRate OnRspQryMMOptionInstrCommRate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryInstrumentOrderCommRate(ref CThostFtdcInstrumentOrderCommRateField pInstrumentOrderCommRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryInstrumentOrderCommRate OnRspQryInstrumentOrderCommRate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQrySecAgentTradingAccount(ref CThostFtdcTradingAccountField pTradingAccount,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQrySecAgentTradingAccount OnRspQrySecAgentTradingAccount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQrySecAgentCheckMode(ref CThostFtdcSecAgentCheckModeField pSecAgentCheckMode,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQrySecAgentCheckMode OnRspQrySecAgentCheckMode; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQrySecAgentTradeInfo(ref CThostFtdcSecAgentTradeInfoField pSecAgentTradeInfo,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQrySecAgentTradeInfo OnRspQrySecAgentTradeInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryOptionInstrTradeCost(ref CThostFtdcOptionInstrTradeCostField pOptionInstrTradeCost,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryOptionInstrTradeCost OnRspQryOptionInstrTradeCost; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryOptionInstrCommRate(ref CThostFtdcOptionInstrCommRateField pOptionInstrCommRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryOptionInstrCommRate OnRspQryOptionInstrCommRate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryExecOrder(ref CThostFtdcExecOrderField pExecOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryExecOrder OnRspQryExecOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryForQuote(ref CThostFtdcForQuoteField pForQuote,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryForQuote OnRspQryForQuote; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryQuote(ref CThostFtdcQuoteField pQuote,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryQuote OnRspQryQuote; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryOptionSelfClose(ref CThostFtdcOptionSelfCloseField pOptionSelfClose,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryOptionSelfClose OnRspQryOptionSelfClose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryInvestUnit(ref CThostFtdcInvestUnitField pInvestUnit,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryInvestUnit OnRspQryInvestUnit; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryCombInstrumentGuard(ref CThostFtdcCombInstrumentGuardField pCombInstrumentGuard,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryCombInstrumentGuard OnRspQryCombInstrumentGuard; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryCombAction(ref CThostFtdcCombActionField pCombAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryCombAction OnRspQryCombAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryTransferSerial(ref CThostFtdcTransferSerialField pTransferSerial,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryTransferSerial OnRspQryTransferSerial; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryAccountregister(ref CThostFtdcAccountregisterField pAccountregister,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryAccountregister OnRspQryAccountregister; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspError(ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspError OnRspError; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnOrder(ref CThostFtdcOrderField pOrder); + internal DelOnRtnOrder OnRtnOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnTrade(ref CThostFtdcTradeField pTrade); + internal DelOnRtnTrade OnRtnTrade; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnOrderInsert(ref CThostFtdcInputOrderField pInputOrder,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnOrderInsert OnErrRtnOrderInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnOrderAction(ref CThostFtdcOrderActionField pOrderAction,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnOrderAction OnErrRtnOrderAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnInstrumentStatus(ref CThostFtdcInstrumentStatusField pInstrumentStatus); + internal DelOnRtnInstrumentStatus OnRtnInstrumentStatus; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnBulletin(ref CThostFtdcBulletinField pBulletin); + internal DelOnRtnBulletin OnRtnBulletin; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnTradingNotice(ref CThostFtdcTradingNoticeInfoField pTradingNoticeInfo); + internal DelOnRtnTradingNotice OnRtnTradingNotice; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnErrorConditionalOrder(ref CThostFtdcErrorConditionalOrderField pErrorConditionalOrder); + internal DelOnRtnErrorConditionalOrder OnRtnErrorConditionalOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnExecOrder(ref CThostFtdcExecOrderField pExecOrder); + internal DelOnRtnExecOrder OnRtnExecOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnExecOrderInsert(ref CThostFtdcInputExecOrderField pInputExecOrder,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnExecOrderInsert OnErrRtnExecOrderInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnExecOrderAction(ref CThostFtdcExecOrderActionField pExecOrderAction,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnExecOrderAction OnErrRtnExecOrderAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnForQuoteInsert(ref CThostFtdcInputForQuoteField pInputForQuote,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnForQuoteInsert OnErrRtnForQuoteInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnQuote(ref CThostFtdcQuoteField pQuote); + internal DelOnRtnQuote OnRtnQuote; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnQuoteInsert(ref CThostFtdcInputQuoteField pInputQuote,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnQuoteInsert OnErrRtnQuoteInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnQuoteAction(ref CThostFtdcQuoteActionField pQuoteAction,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnQuoteAction OnErrRtnQuoteAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnForQuoteRsp(ref CThostFtdcForQuoteRspField pForQuoteRsp); + internal DelOnRtnForQuoteRsp OnRtnForQuoteRsp; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnCFMMCTradingAccountToken(ref CThostFtdcCFMMCTradingAccountTokenField pCFMMCTradingAccountToken); + internal DelOnRtnCFMMCTradingAccountToken OnRtnCFMMCTradingAccountToken; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnBatchOrderAction(ref CThostFtdcBatchOrderActionField pBatchOrderAction,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnBatchOrderAction OnErrRtnBatchOrderAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnOptionSelfClose(ref CThostFtdcOptionSelfCloseField pOptionSelfClose); + internal DelOnRtnOptionSelfClose OnRtnOptionSelfClose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnOptionSelfCloseInsert(ref CThostFtdcInputOptionSelfCloseField pInputOptionSelfClose,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnOptionSelfCloseInsert OnErrRtnOptionSelfCloseInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnOptionSelfCloseAction(ref CThostFtdcOptionSelfCloseActionField pOptionSelfCloseAction,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnOptionSelfCloseAction OnErrRtnOptionSelfCloseAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnCombAction(ref CThostFtdcCombActionField pCombAction); + internal DelOnRtnCombAction OnRtnCombAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnCombActionInsert(ref CThostFtdcInputCombActionField pInputCombAction,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnCombActionInsert OnErrRtnCombActionInsert; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryContractBank(ref CThostFtdcContractBankField pContractBank,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryContractBank OnRspQryContractBank; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryParkedOrder(ref CThostFtdcParkedOrderField pParkedOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryParkedOrder OnRspQryParkedOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryParkedOrderAction(ref CThostFtdcParkedOrderActionField pParkedOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryParkedOrderAction OnRspQryParkedOrderAction; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryTradingNotice(ref CThostFtdcTradingNoticeField pTradingNotice,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryTradingNotice OnRspQryTradingNotice; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryBrokerTradingParams(ref CThostFtdcBrokerTradingParamsField pBrokerTradingParams,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryBrokerTradingParams OnRspQryBrokerTradingParams; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryBrokerTradingAlgos(ref CThostFtdcBrokerTradingAlgosField pBrokerTradingAlgos,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryBrokerTradingAlgos OnRspQryBrokerTradingAlgos; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQueryCFMMCTradingAccountToken(ref CThostFtdcQueryCFMMCTradingAccountTokenField pQueryCFMMCTradingAccountToken,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQueryCFMMCTradingAccountToken OnRspQueryCFMMCTradingAccountToken; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnFromBankToFutureByBank(ref CThostFtdcRspTransferField pRspTransfer); + internal DelOnRtnFromBankToFutureByBank OnRtnFromBankToFutureByBank; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnFromFutureToBankByBank(ref CThostFtdcRspTransferField pRspTransfer); + internal DelOnRtnFromFutureToBankByBank OnRtnFromFutureToBankByBank; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnRepealFromBankToFutureByBank(ref CThostFtdcRspRepealField pRspRepeal); + internal DelOnRtnRepealFromBankToFutureByBank OnRtnRepealFromBankToFutureByBank; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnRepealFromFutureToBankByBank(ref CThostFtdcRspRepealField pRspRepeal); + internal DelOnRtnRepealFromFutureToBankByBank OnRtnRepealFromFutureToBankByBank; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnFromBankToFutureByFuture(ref CThostFtdcRspTransferField pRspTransfer); + internal DelOnRtnFromBankToFutureByFuture OnRtnFromBankToFutureByFuture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnFromFutureToBankByFuture(ref CThostFtdcRspTransferField pRspTransfer); + internal DelOnRtnFromFutureToBankByFuture OnRtnFromFutureToBankByFuture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnRepealFromBankToFutureByFutureManual(ref CThostFtdcRspRepealField pRspRepeal); + internal DelOnRtnRepealFromBankToFutureByFutureManual OnRtnRepealFromBankToFutureByFutureManual; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnRepealFromFutureToBankByFutureManual(ref CThostFtdcRspRepealField pRspRepeal); + internal DelOnRtnRepealFromFutureToBankByFutureManual OnRtnRepealFromFutureToBankByFutureManual; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnQueryBankBalanceByFuture(ref CThostFtdcNotifyQueryAccountField pNotifyQueryAccount); + internal DelOnRtnQueryBankBalanceByFuture OnRtnQueryBankBalanceByFuture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnBankToFutureByFuture(ref CThostFtdcReqTransferField pReqTransfer,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnBankToFutureByFuture OnErrRtnBankToFutureByFuture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnFutureToBankByFuture(ref CThostFtdcReqTransferField pReqTransfer,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnFutureToBankByFuture OnErrRtnFutureToBankByFuture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnRepealBankToFutureByFutureManual(ref CThostFtdcReqRepealField pReqRepeal,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnRepealBankToFutureByFutureManual OnErrRtnRepealBankToFutureByFutureManual; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnRepealFutureToBankByFutureManual(ref CThostFtdcReqRepealField pReqRepeal,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnRepealFutureToBankByFutureManual OnErrRtnRepealFutureToBankByFutureManual; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnErrRtnQueryBankBalanceByFuture(ref CThostFtdcReqQueryAccountField pReqQueryAccount,ref CThostFtdcRspInfoField pRspInfo); + internal DelOnErrRtnQueryBankBalanceByFuture OnErrRtnQueryBankBalanceByFuture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnRepealFromBankToFutureByFuture(ref CThostFtdcRspRepealField pRspRepeal); + internal DelOnRtnRepealFromBankToFutureByFuture OnRtnRepealFromBankToFutureByFuture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnRepealFromFutureToBankByFuture(ref CThostFtdcRspRepealField pRspRepeal); + internal DelOnRtnRepealFromFutureToBankByFuture OnRtnRepealFromFutureToBankByFuture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspFromBankToFutureByFuture(ref CThostFtdcReqTransferField pReqTransfer,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspFromBankToFutureByFuture OnRspFromBankToFutureByFuture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspFromFutureToBankByFuture(ref CThostFtdcReqTransferField pReqTransfer,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspFromFutureToBankByFuture OnRspFromFutureToBankByFuture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQueryBankAccountMoneyByFuture(ref CThostFtdcReqQueryAccountField pReqQueryAccount,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQueryBankAccountMoneyByFuture OnRspQueryBankAccountMoneyByFuture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnOpenAccountByBank(ref CThostFtdcOpenAccountField pOpenAccount); + internal DelOnRtnOpenAccountByBank OnRtnOpenAccountByBank; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnCancelAccountByBank(ref CThostFtdcCancelAccountField pCancelAccount); + internal DelOnRtnCancelAccountByBank OnRtnCancelAccountByBank; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRtnChangeAccountByBank(ref CThostFtdcChangeAccountField pChangeAccount); + internal DelOnRtnChangeAccountByBank OnRtnChangeAccountByBank; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryClassifiedInstrument(ref CThostFtdcInstrumentField pInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryClassifiedInstrument OnRspQryClassifiedInstrument; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryCombPromotionParam(ref CThostFtdcCombPromotionParamField pCombPromotionParam,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryCombPromotionParam OnRspQryCombPromotionParam; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryRiskSettleInvstPosition(ref CThostFtdcRiskSettleInvstPositionField pRiskSettleInvstPosition,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryRiskSettleInvstPosition OnRspQryRiskSettleInvstPosition; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryRiskSettleProductStatus(ref CThostFtdcRiskSettleProductStatusField pRiskSettleProductStatus,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryRiskSettleProductStatus OnRspQryRiskSettleProductStatus; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQrySPBMFutureParameter(ref CThostFtdcSPBMFutureParameterField pSPBMFutureParameter,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQrySPBMFutureParameter OnRspQrySPBMFutureParameter; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQrySPBMOptionParameter(ref CThostFtdcSPBMOptionParameterField pSPBMOptionParameter,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQrySPBMOptionParameter OnRspQrySPBMOptionParameter; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQrySPBMIntraParameter(ref CThostFtdcSPBMIntraParameterField pSPBMIntraParameter,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQrySPBMIntraParameter OnRspQrySPBMIntraParameter; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQrySPBMInterParameter(ref CThostFtdcSPBMInterParameterField pSPBMInterParameter,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQrySPBMInterParameter OnRspQrySPBMInterParameter; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQrySPBMPortfDefinition(ref CThostFtdcSPBMPortfDefinitionField pSPBMPortfDefinition,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQrySPBMPortfDefinition OnRspQrySPBMPortfDefinition; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQrySPBMInvestorPortfDef(ref CThostFtdcSPBMInvestorPortfDefField pSPBMInvestorPortfDef,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQrySPBMInvestorPortfDef OnRspQrySPBMInvestorPortfDef; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryInvestorPortfMarginRatio(ref CThostFtdcInvestorPortfMarginRatioField pInvestorPortfMarginRatio,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryInvestorPortfMarginRatio OnRspQryInvestorPortfMarginRatio; + + [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)] + internal delegate void DelOnRspQryInvestorProdSPBMDetail(ref CThostFtdcInvestorProdSPBMDetailField pInvestorProdSPBMDetail,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast); + internal DelOnRspQryInvestorProdSPBMDetail OnRspQryInvestorProdSPBMDetail; + +} +internal partial class CTPSharpPInvoke +{ + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderSpi_New", CharSet=CharSet.Ansi)] + public extern static IntPtr CThostFtdcTraderSpi_New(ref CTPSharp_CThostFtdcTraderSpi callback); + + [DllImport("CTPInvoke", EntryPoint="CThostFtdcTraderSpi_Delete", CharSet=CharSet.Ansi)] + public extern static void CThostFtdcTraderSpi_Delete(IntPtr spi); +} +public class CThostFtdcTraderSpi: IDisposable +{ + CTPSharp_CThostFtdcTraderSpi _spi = new(); + IntPtr _handle; + internal IntPtr Handle => _handle; + public CThostFtdcTraderSpi() + { + _spi.OnFrontConnected = this.OnFrontConnected; + _spi.OnFrontDisconnected = this.OnFrontDisconnected; + _spi.OnHeartBeatWarning = this.OnHeartBeatWarning; + _spi.OnRspAuthenticate = this.OnRspAuthenticate; + _spi.OnRspUserLogin = this.OnRspUserLogin; + _spi.OnRspUserLogout = this.OnRspUserLogout; + _spi.OnRspUserPasswordUpdate = this.OnRspUserPasswordUpdate; + _spi.OnRspTradingAccountPasswordUpdate = this.OnRspTradingAccountPasswordUpdate; + _spi.OnRspUserAuthMethod = this.OnRspUserAuthMethod; + _spi.OnRspGenUserCaptcha = this.OnRspGenUserCaptcha; + _spi.OnRspGenUserText = this.OnRspGenUserText; + _spi.OnRspOrderInsert = this.OnRspOrderInsert; + _spi.OnRspParkedOrderInsert = this.OnRspParkedOrderInsert; + _spi.OnRspParkedOrderAction = this.OnRspParkedOrderAction; + _spi.OnRspOrderAction = this.OnRspOrderAction; + _spi.OnRspQryMaxOrderVolume = this.OnRspQryMaxOrderVolume; + _spi.OnRspSettlementInfoConfirm = this.OnRspSettlementInfoConfirm; + _spi.OnRspRemoveParkedOrder = this.OnRspRemoveParkedOrder; + _spi.OnRspRemoveParkedOrderAction = this.OnRspRemoveParkedOrderAction; + _spi.OnRspExecOrderInsert = this.OnRspExecOrderInsert; + _spi.OnRspExecOrderAction = this.OnRspExecOrderAction; + _spi.OnRspForQuoteInsert = this.OnRspForQuoteInsert; + _spi.OnRspQuoteInsert = this.OnRspQuoteInsert; + _spi.OnRspQuoteAction = this.OnRspQuoteAction; + _spi.OnRspBatchOrderAction = this.OnRspBatchOrderAction; + _spi.OnRspOptionSelfCloseInsert = this.OnRspOptionSelfCloseInsert; + _spi.OnRspOptionSelfCloseAction = this.OnRspOptionSelfCloseAction; + _spi.OnRspCombActionInsert = this.OnRspCombActionInsert; + _spi.OnRspQryOrder = this.OnRspQryOrder; + _spi.OnRspQryTrade = this.OnRspQryTrade; + _spi.OnRspQryInvestorPosition = this.OnRspQryInvestorPosition; + _spi.OnRspQryTradingAccount = this.OnRspQryTradingAccount; + _spi.OnRspQryInvestor = this.OnRspQryInvestor; + _spi.OnRspQryTradingCode = this.OnRspQryTradingCode; + _spi.OnRspQryInstrumentMarginRate = this.OnRspQryInstrumentMarginRate; + _spi.OnRspQryInstrumentCommissionRate = this.OnRspQryInstrumentCommissionRate; + _spi.OnRspQryExchange = this.OnRspQryExchange; + _spi.OnRspQryProduct = this.OnRspQryProduct; + _spi.OnRspQryInstrument = this.OnRspQryInstrument; + _spi.OnRspQryDepthMarketData = this.OnRspQryDepthMarketData; + _spi.OnRspQryTraderOffer = this.OnRspQryTraderOffer; + _spi.OnRspQrySettlementInfo = this.OnRspQrySettlementInfo; + _spi.OnRspQryTransferBank = this.OnRspQryTransferBank; + _spi.OnRspQryInvestorPositionDetail = this.OnRspQryInvestorPositionDetail; + _spi.OnRspQryNotice = this.OnRspQryNotice; + _spi.OnRspQrySettlementInfoConfirm = this.OnRspQrySettlementInfoConfirm; + _spi.OnRspQryInvestorPositionCombineDetail = this.OnRspQryInvestorPositionCombineDetail; + _spi.OnRspQryCFMMCTradingAccountKey = this.OnRspQryCFMMCTradingAccountKey; + _spi.OnRspQryEWarrantOffset = this.OnRspQryEWarrantOffset; + _spi.OnRspQryInvestorProductGroupMargin = this.OnRspQryInvestorProductGroupMargin; + _spi.OnRspQryExchangeMarginRate = this.OnRspQryExchangeMarginRate; + _spi.OnRspQryExchangeMarginRateAdjust = this.OnRspQryExchangeMarginRateAdjust; + _spi.OnRspQryExchangeRate = this.OnRspQryExchangeRate; + _spi.OnRspQrySecAgentACIDMap = this.OnRspQrySecAgentACIDMap; + _spi.OnRspQryProductExchRate = this.OnRspQryProductExchRate; + _spi.OnRspQryProductGroup = this.OnRspQryProductGroup; + _spi.OnRspQryMMInstrumentCommissionRate = this.OnRspQryMMInstrumentCommissionRate; + _spi.OnRspQryMMOptionInstrCommRate = this.OnRspQryMMOptionInstrCommRate; + _spi.OnRspQryInstrumentOrderCommRate = this.OnRspQryInstrumentOrderCommRate; + _spi.OnRspQrySecAgentTradingAccount = this.OnRspQrySecAgentTradingAccount; + _spi.OnRspQrySecAgentCheckMode = this.OnRspQrySecAgentCheckMode; + _spi.OnRspQrySecAgentTradeInfo = this.OnRspQrySecAgentTradeInfo; + _spi.OnRspQryOptionInstrTradeCost = this.OnRspQryOptionInstrTradeCost; + _spi.OnRspQryOptionInstrCommRate = this.OnRspQryOptionInstrCommRate; + _spi.OnRspQryExecOrder = this.OnRspQryExecOrder; + _spi.OnRspQryForQuote = this.OnRspQryForQuote; + _spi.OnRspQryQuote = this.OnRspQryQuote; + _spi.OnRspQryOptionSelfClose = this.OnRspQryOptionSelfClose; + _spi.OnRspQryInvestUnit = this.OnRspQryInvestUnit; + _spi.OnRspQryCombInstrumentGuard = this.OnRspQryCombInstrumentGuard; + _spi.OnRspQryCombAction = this.OnRspQryCombAction; + _spi.OnRspQryTransferSerial = this.OnRspQryTransferSerial; + _spi.OnRspQryAccountregister = this.OnRspQryAccountregister; + _spi.OnRspError = this.OnRspError; + _spi.OnRtnOrder = this.OnRtnOrder; + _spi.OnRtnTrade = this.OnRtnTrade; + _spi.OnErrRtnOrderInsert = this.OnErrRtnOrderInsert; + _spi.OnErrRtnOrderAction = this.OnErrRtnOrderAction; + _spi.OnRtnInstrumentStatus = this.OnRtnInstrumentStatus; + _spi.OnRtnBulletin = this.OnRtnBulletin; + _spi.OnRtnTradingNotice = this.OnRtnTradingNotice; + _spi.OnRtnErrorConditionalOrder = this.OnRtnErrorConditionalOrder; + _spi.OnRtnExecOrder = this.OnRtnExecOrder; + _spi.OnErrRtnExecOrderInsert = this.OnErrRtnExecOrderInsert; + _spi.OnErrRtnExecOrderAction = this.OnErrRtnExecOrderAction; + _spi.OnErrRtnForQuoteInsert = this.OnErrRtnForQuoteInsert; + _spi.OnRtnQuote = this.OnRtnQuote; + _spi.OnErrRtnQuoteInsert = this.OnErrRtnQuoteInsert; + _spi.OnErrRtnQuoteAction = this.OnErrRtnQuoteAction; + _spi.OnRtnForQuoteRsp = this.OnRtnForQuoteRsp; + _spi.OnRtnCFMMCTradingAccountToken = this.OnRtnCFMMCTradingAccountToken; + _spi.OnErrRtnBatchOrderAction = this.OnErrRtnBatchOrderAction; + _spi.OnRtnOptionSelfClose = this.OnRtnOptionSelfClose; + _spi.OnErrRtnOptionSelfCloseInsert = this.OnErrRtnOptionSelfCloseInsert; + _spi.OnErrRtnOptionSelfCloseAction = this.OnErrRtnOptionSelfCloseAction; + _spi.OnRtnCombAction = this.OnRtnCombAction; + _spi.OnErrRtnCombActionInsert = this.OnErrRtnCombActionInsert; + _spi.OnRspQryContractBank = this.OnRspQryContractBank; + _spi.OnRspQryParkedOrder = this.OnRspQryParkedOrder; + _spi.OnRspQryParkedOrderAction = this.OnRspQryParkedOrderAction; + _spi.OnRspQryTradingNotice = this.OnRspQryTradingNotice; + _spi.OnRspQryBrokerTradingParams = this.OnRspQryBrokerTradingParams; + _spi.OnRspQryBrokerTradingAlgos = this.OnRspQryBrokerTradingAlgos; + _spi.OnRspQueryCFMMCTradingAccountToken = this.OnRspQueryCFMMCTradingAccountToken; + _spi.OnRtnFromBankToFutureByBank = this.OnRtnFromBankToFutureByBank; + _spi.OnRtnFromFutureToBankByBank = this.OnRtnFromFutureToBankByBank; + _spi.OnRtnRepealFromBankToFutureByBank = this.OnRtnRepealFromBankToFutureByBank; + _spi.OnRtnRepealFromFutureToBankByBank = this.OnRtnRepealFromFutureToBankByBank; + _spi.OnRtnFromBankToFutureByFuture = this.OnRtnFromBankToFutureByFuture; + _spi.OnRtnFromFutureToBankByFuture = this.OnRtnFromFutureToBankByFuture; + _spi.OnRtnRepealFromBankToFutureByFutureManual = this.OnRtnRepealFromBankToFutureByFutureManual; + _spi.OnRtnRepealFromFutureToBankByFutureManual = this.OnRtnRepealFromFutureToBankByFutureManual; + _spi.OnRtnQueryBankBalanceByFuture = this.OnRtnQueryBankBalanceByFuture; + _spi.OnErrRtnBankToFutureByFuture = this.OnErrRtnBankToFutureByFuture; + _spi.OnErrRtnFutureToBankByFuture = this.OnErrRtnFutureToBankByFuture; + _spi.OnErrRtnRepealBankToFutureByFutureManual = this.OnErrRtnRepealBankToFutureByFutureManual; + _spi.OnErrRtnRepealFutureToBankByFutureManual = this.OnErrRtnRepealFutureToBankByFutureManual; + _spi.OnErrRtnQueryBankBalanceByFuture = this.OnErrRtnQueryBankBalanceByFuture; + _spi.OnRtnRepealFromBankToFutureByFuture = this.OnRtnRepealFromBankToFutureByFuture; + _spi.OnRtnRepealFromFutureToBankByFuture = this.OnRtnRepealFromFutureToBankByFuture; + _spi.OnRspFromBankToFutureByFuture = this.OnRspFromBankToFutureByFuture; + _spi.OnRspFromFutureToBankByFuture = this.OnRspFromFutureToBankByFuture; + _spi.OnRspQueryBankAccountMoneyByFuture = this.OnRspQueryBankAccountMoneyByFuture; + _spi.OnRtnOpenAccountByBank = this.OnRtnOpenAccountByBank; + _spi.OnRtnCancelAccountByBank = this.OnRtnCancelAccountByBank; + _spi.OnRtnChangeAccountByBank = this.OnRtnChangeAccountByBank; + _spi.OnRspQryClassifiedInstrument = this.OnRspQryClassifiedInstrument; + _spi.OnRspQryCombPromotionParam = this.OnRspQryCombPromotionParam; + _spi.OnRspQryRiskSettleInvstPosition = this.OnRspQryRiskSettleInvstPosition; + _spi.OnRspQryRiskSettleProductStatus = this.OnRspQryRiskSettleProductStatus; + _spi.OnRspQrySPBMFutureParameter = this.OnRspQrySPBMFutureParameter; + _spi.OnRspQrySPBMOptionParameter = this.OnRspQrySPBMOptionParameter; + _spi.OnRspQrySPBMIntraParameter = this.OnRspQrySPBMIntraParameter; + _spi.OnRspQrySPBMInterParameter = this.OnRspQrySPBMInterParameter; + _spi.OnRspQrySPBMPortfDefinition = this.OnRspQrySPBMPortfDefinition; + _spi.OnRspQrySPBMInvestorPortfDef = this.OnRspQrySPBMInvestorPortfDef; + _spi.OnRspQryInvestorPortfMarginRatio = this.OnRspQryInvestorPortfMarginRatio; + _spi.OnRspQryInvestorProdSPBMDetail = this.OnRspQryInvestorProdSPBMDetail; + _handle = CTPSharpPInvoke.CThostFtdcTraderSpi_New(ref _spi); + } + /// + /// 当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。 + /// + public virtual void OnFrontConnected(){} + + /// + /// 当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。 + /// + /// 错误原因 + public virtual void OnFrontDisconnected(int nReason){} + + /// + /// 心跳超时警告。当长时间未收到报文时,该方法被调用。 + /// + /// 距离上次接收报文的时间 + public virtual void OnHeartBeatWarning(int nTimeLapse){} + + /// + /// 客户端认证响应 + /// + public virtual void OnRspAuthenticate(ref CThostFtdcRspAuthenticateField pRspAuthenticateField,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 登录请求响应 + /// + public virtual void OnRspUserLogin(ref CThostFtdcRspUserLoginField pRspUserLogin,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 登出请求响应 + /// + public virtual void OnRspUserLogout(ref CThostFtdcUserLogoutField pUserLogout,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 用户口令更新请求响应 + /// + public virtual void OnRspUserPasswordUpdate(ref CThostFtdcUserPasswordUpdateField pUserPasswordUpdate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 资金账户口令更新请求响应 + /// + public virtual void OnRspTradingAccountPasswordUpdate(ref CThostFtdcTradingAccountPasswordUpdateField pTradingAccountPasswordUpdate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 查询用户当前支持的认证模式的回复 + /// + public virtual void OnRspUserAuthMethod(ref CThostFtdcRspUserAuthMethodField pRspUserAuthMethod,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 获取图形验证码请求的回复 + /// + public virtual void OnRspGenUserCaptcha(ref CThostFtdcRspGenUserCaptchaField pRspGenUserCaptcha,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 获取短信验证码请求的回复 + /// + public virtual void OnRspGenUserText(ref CThostFtdcRspGenUserTextField pRspGenUserText,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 报单录入请求响应 + /// + public virtual void OnRspOrderInsert(ref CThostFtdcInputOrderField pInputOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 预埋单录入请求响应 + /// + public virtual void OnRspParkedOrderInsert(ref CThostFtdcParkedOrderField pParkedOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 预埋撤单录入请求响应 + /// + public virtual void OnRspParkedOrderAction(ref CThostFtdcParkedOrderActionField pParkedOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 报单操作请求响应 + /// + public virtual void OnRspOrderAction(ref CThostFtdcInputOrderActionField pInputOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 查询最大报单数量响应 + /// + public virtual void OnRspQryMaxOrderVolume(ref CThostFtdcQryMaxOrderVolumeField pQryMaxOrderVolume,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 投资者结算结果确认响应 + /// + public virtual void OnRspSettlementInfoConfirm(ref CThostFtdcSettlementInfoConfirmField pSettlementInfoConfirm,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 删除预埋单响应 + /// + public virtual void OnRspRemoveParkedOrder(ref CThostFtdcRemoveParkedOrderField pRemoveParkedOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 删除预埋撤单响应 + /// + public virtual void OnRspRemoveParkedOrderAction(ref CThostFtdcRemoveParkedOrderActionField pRemoveParkedOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 执行宣告录入请求响应 + /// + public virtual void OnRspExecOrderInsert(ref CThostFtdcInputExecOrderField pInputExecOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 执行宣告操作请求响应 + /// + public virtual void OnRspExecOrderAction(ref CThostFtdcInputExecOrderActionField pInputExecOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 询价录入请求响应 + /// + public virtual void OnRspForQuoteInsert(ref CThostFtdcInputForQuoteField pInputForQuote,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 报价录入请求响应 + /// + public virtual void OnRspQuoteInsert(ref CThostFtdcInputQuoteField pInputQuote,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 报价操作请求响应 + /// + public virtual void OnRspQuoteAction(ref CThostFtdcInputQuoteActionField pInputQuoteAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 批量报单操作请求响应 + /// + public virtual void OnRspBatchOrderAction(ref CThostFtdcInputBatchOrderActionField pInputBatchOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 期权自对冲录入请求响应 + /// + public virtual void OnRspOptionSelfCloseInsert(ref CThostFtdcInputOptionSelfCloseField pInputOptionSelfClose,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 期权自对冲操作请求响应 + /// + public virtual void OnRspOptionSelfCloseAction(ref CThostFtdcInputOptionSelfCloseActionField pInputOptionSelfCloseAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 申请组合录入请求响应 + /// + public virtual void OnRspCombActionInsert(ref CThostFtdcInputCombActionField pInputCombAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询报单响应 + /// + public virtual void OnRspQryOrder(ref CThostFtdcOrderField pOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询成交响应 + /// + public virtual void OnRspQryTrade(ref CThostFtdcTradeField pTrade,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询投资者持仓响应 + /// + public virtual void OnRspQryInvestorPosition(ref CThostFtdcInvestorPositionField pInvestorPosition,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询资金账户响应 + /// + public virtual void OnRspQryTradingAccount(ref CThostFtdcTradingAccountField pTradingAccount,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询投资者响应 + /// + public virtual void OnRspQryInvestor(ref CThostFtdcInvestorField pInvestor,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询交易编码响应 + /// + public virtual void OnRspQryTradingCode(ref CThostFtdcTradingCodeField pTradingCode,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询合约保证金率响应 + /// + public virtual void OnRspQryInstrumentMarginRate(ref CThostFtdcInstrumentMarginRateField pInstrumentMarginRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询合约手续费率响应 + /// + public virtual void OnRspQryInstrumentCommissionRate(ref CThostFtdcInstrumentCommissionRateField pInstrumentCommissionRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询交易所响应 + /// + public virtual void OnRspQryExchange(ref CThostFtdcExchangeField pExchange,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询产品响应 + /// + public virtual void OnRspQryProduct(ref CThostFtdcProductField pProduct,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询合约响应 + /// + public virtual void OnRspQryInstrument(ref CThostFtdcInstrumentField pInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询行情响应 + /// + public virtual void OnRspQryDepthMarketData(ref CThostFtdcDepthMarketDataField pDepthMarketData,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询交易员报盘机响应 + /// + public virtual void OnRspQryTraderOffer(ref CThostFtdcTraderOfferField pTraderOffer,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询投资者结算结果响应 + /// + public virtual void OnRspQrySettlementInfo(ref CThostFtdcSettlementInfoField pSettlementInfo,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询转帐银行响应 + /// + public virtual void OnRspQryTransferBank(ref CThostFtdcTransferBankField pTransferBank,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询投资者持仓明细响应 + /// + public virtual void OnRspQryInvestorPositionDetail(ref CThostFtdcInvestorPositionDetailField pInvestorPositionDetail,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询客户通知响应 + /// + public virtual void OnRspQryNotice(ref CThostFtdcNoticeField pNotice,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询结算信息确认响应 + /// + public virtual void OnRspQrySettlementInfoConfirm(ref CThostFtdcSettlementInfoConfirmField pSettlementInfoConfirm,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询投资者持仓明细响应 + /// + public virtual void OnRspQryInvestorPositionCombineDetail(ref CThostFtdcInvestorPositionCombineDetailField pInvestorPositionCombineDetail,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 查询保证金监管系统经纪公司资金账户密钥响应 + /// + public virtual void OnRspQryCFMMCTradingAccountKey(ref CThostFtdcCFMMCTradingAccountKeyField pCFMMCTradingAccountKey,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询仓单折抵信息响应 + /// + public virtual void OnRspQryEWarrantOffset(ref CThostFtdcEWarrantOffsetField pEWarrantOffset,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询投资者品种/跨品种保证金响应 + /// + public virtual void OnRspQryInvestorProductGroupMargin(ref CThostFtdcInvestorProductGroupMarginField pInvestorProductGroupMargin,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询交易所保证金率响应 + /// + public virtual void OnRspQryExchangeMarginRate(ref CThostFtdcExchangeMarginRateField pExchangeMarginRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询交易所调整保证金率响应 + /// + public virtual void OnRspQryExchangeMarginRateAdjust(ref CThostFtdcExchangeMarginRateAdjustField pExchangeMarginRateAdjust,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询汇率响应 + /// + public virtual void OnRspQryExchangeRate(ref CThostFtdcExchangeRateField pExchangeRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询二级代理操作员银期权限响应 + /// + public virtual void OnRspQrySecAgentACIDMap(ref CThostFtdcSecAgentACIDMapField pSecAgentACIDMap,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询产品报价汇率 + /// + public virtual void OnRspQryProductExchRate(ref CThostFtdcProductExchRateField pProductExchRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询产品组 + /// + public virtual void OnRspQryProductGroup(ref CThostFtdcProductGroupField pProductGroup,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询做市商合约手续费率响应 + /// + public virtual void OnRspQryMMInstrumentCommissionRate(ref CThostFtdcMMInstrumentCommissionRateField pMMInstrumentCommissionRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询做市商期权合约手续费响应 + /// + public virtual void OnRspQryMMOptionInstrCommRate(ref CThostFtdcMMOptionInstrCommRateField pMMOptionInstrCommRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询报单手续费响应 + /// + public virtual void OnRspQryInstrumentOrderCommRate(ref CThostFtdcInstrumentOrderCommRateField pInstrumentOrderCommRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询资金账户响应 + /// + public virtual void OnRspQrySecAgentTradingAccount(ref CThostFtdcTradingAccountField pTradingAccount,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询二级代理商资金校验模式响应 + /// + public virtual void OnRspQrySecAgentCheckMode(ref CThostFtdcSecAgentCheckModeField pSecAgentCheckMode,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询二级代理商信息响应 + /// + public virtual void OnRspQrySecAgentTradeInfo(ref CThostFtdcSecAgentTradeInfoField pSecAgentTradeInfo,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询期权交易成本响应 + /// + public virtual void OnRspQryOptionInstrTradeCost(ref CThostFtdcOptionInstrTradeCostField pOptionInstrTradeCost,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询期权合约手续费响应 + /// + public virtual void OnRspQryOptionInstrCommRate(ref CThostFtdcOptionInstrCommRateField pOptionInstrCommRate,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询执行宣告响应 + /// + public virtual void OnRspQryExecOrder(ref CThostFtdcExecOrderField pExecOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询询价响应 + /// + public virtual void OnRspQryForQuote(ref CThostFtdcForQuoteField pForQuote,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询报价响应 + /// + public virtual void OnRspQryQuote(ref CThostFtdcQuoteField pQuote,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询期权自对冲响应 + /// + public virtual void OnRspQryOptionSelfClose(ref CThostFtdcOptionSelfCloseField pOptionSelfClose,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询投资单元响应 + /// + public virtual void OnRspQryInvestUnit(ref CThostFtdcInvestUnitField pInvestUnit,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询组合合约安全系数响应 + /// + public virtual void OnRspQryCombInstrumentGuard(ref CThostFtdcCombInstrumentGuardField pCombInstrumentGuard,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询申请组合响应 + /// + public virtual void OnRspQryCombAction(ref CThostFtdcCombActionField pCombAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询转帐流水响应 + /// + public virtual void OnRspQryTransferSerial(ref CThostFtdcTransferSerialField pTransferSerial,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询银期签约关系响应 + /// + public virtual void OnRspQryAccountregister(ref CThostFtdcAccountregisterField pAccountregister,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 错误应答 + /// + public virtual void OnRspError(ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 报单通知 + /// + public virtual void OnRtnOrder(ref CThostFtdcOrderField pOrder){} + + /// + /// 成交通知 + /// + public virtual void OnRtnTrade(ref CThostFtdcTradeField pTrade){} + + /// + /// 报单录入错误回报 + /// + public virtual void OnErrRtnOrderInsert(ref CThostFtdcInputOrderField pInputOrder,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 报单操作错误回报 + /// + public virtual void OnErrRtnOrderAction(ref CThostFtdcOrderActionField pOrderAction,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 合约交易状态通知 + /// + public virtual void OnRtnInstrumentStatus(ref CThostFtdcInstrumentStatusField pInstrumentStatus){} + + /// + /// 交易所公告通知 + /// + public virtual void OnRtnBulletin(ref CThostFtdcBulletinField pBulletin){} + + /// + /// 交易通知 + /// + public virtual void OnRtnTradingNotice(ref CThostFtdcTradingNoticeInfoField pTradingNoticeInfo){} + + /// + /// 提示条件单校验错误 + /// + public virtual void OnRtnErrorConditionalOrder(ref CThostFtdcErrorConditionalOrderField pErrorConditionalOrder){} + + /// + /// 执行宣告通知 + /// + public virtual void OnRtnExecOrder(ref CThostFtdcExecOrderField pExecOrder){} + + /// + /// 执行宣告录入错误回报 + /// + public virtual void OnErrRtnExecOrderInsert(ref CThostFtdcInputExecOrderField pInputExecOrder,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 执行宣告操作错误回报 + /// + public virtual void OnErrRtnExecOrderAction(ref CThostFtdcExecOrderActionField pExecOrderAction,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 询价录入错误回报 + /// + public virtual void OnErrRtnForQuoteInsert(ref CThostFtdcInputForQuoteField pInputForQuote,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 报价通知 + /// + public virtual void OnRtnQuote(ref CThostFtdcQuoteField pQuote){} + + /// + /// 报价录入错误回报 + /// + public virtual void OnErrRtnQuoteInsert(ref CThostFtdcInputQuoteField pInputQuote,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 报价操作错误回报 + /// + public virtual void OnErrRtnQuoteAction(ref CThostFtdcQuoteActionField pQuoteAction,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 询价通知 + /// + public virtual void OnRtnForQuoteRsp(ref CThostFtdcForQuoteRspField pForQuoteRsp){} + + /// + /// 保证金监控中心用户令牌 + /// + public virtual void OnRtnCFMMCTradingAccountToken(ref CThostFtdcCFMMCTradingAccountTokenField pCFMMCTradingAccountToken){} + + /// + /// 批量报单操作错误回报 + /// + public virtual void OnErrRtnBatchOrderAction(ref CThostFtdcBatchOrderActionField pBatchOrderAction,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 期权自对冲通知 + /// + public virtual void OnRtnOptionSelfClose(ref CThostFtdcOptionSelfCloseField pOptionSelfClose){} + + /// + /// 期权自对冲录入错误回报 + /// + public virtual void OnErrRtnOptionSelfCloseInsert(ref CThostFtdcInputOptionSelfCloseField pInputOptionSelfClose,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 期权自对冲操作错误回报 + /// + public virtual void OnErrRtnOptionSelfCloseAction(ref CThostFtdcOptionSelfCloseActionField pOptionSelfCloseAction,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 申请组合通知 + /// + public virtual void OnRtnCombAction(ref CThostFtdcCombActionField pCombAction){} + + /// + /// 申请组合录入错误回报 + /// + public virtual void OnErrRtnCombActionInsert(ref CThostFtdcInputCombActionField pInputCombAction,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 请求查询签约银行响应 + /// + public virtual void OnRspQryContractBank(ref CThostFtdcContractBankField pContractBank,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询预埋单响应 + /// + public virtual void OnRspQryParkedOrder(ref CThostFtdcParkedOrderField pParkedOrder,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询预埋撤单响应 + /// + public virtual void OnRspQryParkedOrderAction(ref CThostFtdcParkedOrderActionField pParkedOrderAction,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询交易通知响应 + /// + public virtual void OnRspQryTradingNotice(ref CThostFtdcTradingNoticeField pTradingNotice,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询经纪公司交易参数响应 + /// + public virtual void OnRspQryBrokerTradingParams(ref CThostFtdcBrokerTradingParamsField pBrokerTradingParams,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询经纪公司交易算法响应 + /// + public virtual void OnRspQryBrokerTradingAlgos(ref CThostFtdcBrokerTradingAlgosField pBrokerTradingAlgos,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求查询监控中心用户令牌 + /// + public virtual void OnRspQueryCFMMCTradingAccountToken(ref CThostFtdcQueryCFMMCTradingAccountTokenField pQueryCFMMCTradingAccountToken,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 银行发起银行资金转期货通知 + /// + public virtual void OnRtnFromBankToFutureByBank(ref CThostFtdcRspTransferField pRspTransfer){} + + /// + /// 银行发起期货资金转银行通知 + /// + public virtual void OnRtnFromFutureToBankByBank(ref CThostFtdcRspTransferField pRspTransfer){} + + /// + /// 银行发起冲正银行转期货通知 + /// + public virtual void OnRtnRepealFromBankToFutureByBank(ref CThostFtdcRspRepealField pRspRepeal){} + + /// + /// 银行发起冲正期货转银行通知 + /// + public virtual void OnRtnRepealFromFutureToBankByBank(ref CThostFtdcRspRepealField pRspRepeal){} + + /// + /// 期货发起银行资金转期货通知 + /// + public virtual void OnRtnFromBankToFutureByFuture(ref CThostFtdcRspTransferField pRspTransfer){} + + /// + /// 期货发起期货资金转银行通知 + /// + public virtual void OnRtnFromFutureToBankByFuture(ref CThostFtdcRspTransferField pRspTransfer){} + + /// + /// 系统运行时期货端手工发起冲正银行转期货请求,银行处理完毕后报盘发回的通知 + /// + public virtual void OnRtnRepealFromBankToFutureByFutureManual(ref CThostFtdcRspRepealField pRspRepeal){} + + /// + /// 系统运行时期货端手工发起冲正期货转银行请求,银行处理完毕后报盘发回的通知 + /// + public virtual void OnRtnRepealFromFutureToBankByFutureManual(ref CThostFtdcRspRepealField pRspRepeal){} + + /// + /// 期货发起查询银行余额通知 + /// + public virtual void OnRtnQueryBankBalanceByFuture(ref CThostFtdcNotifyQueryAccountField pNotifyQueryAccount){} + + /// + /// 期货发起银行资金转期货错误回报 + /// + public virtual void OnErrRtnBankToFutureByFuture(ref CThostFtdcReqTransferField pReqTransfer,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 期货发起期货资金转银行错误回报 + /// + public virtual void OnErrRtnFutureToBankByFuture(ref CThostFtdcReqTransferField pReqTransfer,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 系统运行时期货端手工发起冲正银行转期货错误回报 + /// + public virtual void OnErrRtnRepealBankToFutureByFutureManual(ref CThostFtdcReqRepealField pReqRepeal,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 系统运行时期货端手工发起冲正期货转银行错误回报 + /// + public virtual void OnErrRtnRepealFutureToBankByFutureManual(ref CThostFtdcReqRepealField pReqRepeal,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 期货发起查询银行余额错误回报 + /// + public virtual void OnErrRtnQueryBankBalanceByFuture(ref CThostFtdcReqQueryAccountField pReqQueryAccount,ref CThostFtdcRspInfoField pRspInfo){} + + /// + /// 期货发起冲正银行转期货请求,银行处理完毕后报盘发回的通知 + /// + public virtual void OnRtnRepealFromBankToFutureByFuture(ref CThostFtdcRspRepealField pRspRepeal){} + + /// + /// 期货发起冲正期货转银行请求,银行处理完毕后报盘发回的通知 + /// + public virtual void OnRtnRepealFromFutureToBankByFuture(ref CThostFtdcRspRepealField pRspRepeal){} + + /// + /// 期货发起银行资金转期货应答 + /// + public virtual void OnRspFromBankToFutureByFuture(ref CThostFtdcReqTransferField pReqTransfer,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 期货发起期货资金转银行应答 + /// + public virtual void OnRspFromFutureToBankByFuture(ref CThostFtdcReqTransferField pReqTransfer,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 期货发起查询银行余额应答 + /// + public virtual void OnRspQueryBankAccountMoneyByFuture(ref CThostFtdcReqQueryAccountField pReqQueryAccount,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 银行发起银期开户通知 + /// + public virtual void OnRtnOpenAccountByBank(ref CThostFtdcOpenAccountField pOpenAccount){} + + /// + /// 银行发起银期销户通知 + /// + public virtual void OnRtnCancelAccountByBank(ref CThostFtdcCancelAccountField pCancelAccount){} + + /// + /// 银行发起变更银行账号通知 + /// + public virtual void OnRtnChangeAccountByBank(ref CThostFtdcChangeAccountField pChangeAccount){} + + /// + /// 请求查询分类合约响应 + /// + public virtual void OnRspQryClassifiedInstrument(ref CThostFtdcInstrumentField pInstrument,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 请求组合优惠比例响应 + /// + public virtual void OnRspQryCombPromotionParam(ref CThostFtdcCombPromotionParamField pCombPromotionParam,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 投资者风险结算持仓查询响应 + /// + public virtual void OnRspQryRiskSettleInvstPosition(ref CThostFtdcRiskSettleInvstPositionField pRiskSettleInvstPosition,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 风险结算产品查询响应 + /// + public virtual void OnRspQryRiskSettleProductStatus(ref CThostFtdcRiskSettleProductStatusField pRiskSettleProductStatus,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// SPBM期货合约参数查询响应 + /// + public virtual void OnRspQrySPBMFutureParameter(ref CThostFtdcSPBMFutureParameterField pSPBMFutureParameter,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// SPBM期权合约参数查询响应 + /// + public virtual void OnRspQrySPBMOptionParameter(ref CThostFtdcSPBMOptionParameterField pSPBMOptionParameter,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// SPBM品种内对锁仓折扣参数查询响应 + /// + public virtual void OnRspQrySPBMIntraParameter(ref CThostFtdcSPBMIntraParameterField pSPBMIntraParameter,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// SPBM跨品种抵扣参数查询响应 + /// + public virtual void OnRspQrySPBMInterParameter(ref CThostFtdcSPBMInterParameterField pSPBMInterParameter,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// SPBM组合保证金套餐查询响应 + /// + public virtual void OnRspQrySPBMPortfDefinition(ref CThostFtdcSPBMPortfDefinitionField pSPBMPortfDefinition,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 投资者SPBM套餐选择查询响应 + /// + public virtual void OnRspQrySPBMInvestorPortfDef(ref CThostFtdcSPBMInvestorPortfDefField pSPBMInvestorPortfDef,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 投资者新型组合保证金系数查询响应 + /// + public virtual void OnRspQryInvestorPortfMarginRatio(ref CThostFtdcInvestorPortfMarginRatioField pInvestorPortfMarginRatio,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + /// + /// 投资者产品SPBM明细查询响应 + /// + public virtual void OnRspQryInvestorProdSPBMDetail(ref CThostFtdcInvestorProdSPBMDetailField pInvestorProdSPBMDetail,ref CThostFtdcRspInfoField pRspInfo,int nRequestID,bool bIsLast){} + + private void Close() + { + CTPSharpPInvoke.CThostFtdcTraderSpi_Delete(_handle); + _handle = 0; + } +private bool disposedValue = false; +protected virtual void Dispose(bool disposing) +{ + if (!disposedValue) + { + if (disposing) + { + Close(); + } + disposedValue = true; + } +} + +public void Dispose() +{ + Dispose(disposing: true); + GC.SuppressFinalize(this); +} + +} diff --git a/CTPAPI6.6.9/generated/ThostFtdcMdApi.h b/CTPAPI6.6.9/generated/ThostFtdcMdApi.h new file mode 100644 index 0000000..9b657bb --- /dev/null +++ b/CTPAPI6.6.9/generated/ThostFtdcMdApi.h @@ -0,0 +1,168 @@ +///////////////////////////////////////////////////////////////////////// +///@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/CTPAPI6.6.9/generated/ThostFtdcTraderApi.h b/CTPAPI6.6.9/generated/ThostFtdcTraderApi.h new file mode 100644 index 0000000..0bedfd3 --- /dev/null +++ b/CTPAPI6.6.9/generated/ThostFtdcTraderApi.h @@ -0,0 +1,818 @@ +///////////////////////////////////////////////////////////////////////// +///@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/CTPAPI6.6.9/generated/ThostFtdcUserApiDataType.cs b/CTPAPI6.6.9/generated/ThostFtdcUserApiDataType.cs new file mode 100644 index 0000000..bea2465 --- /dev/null +++ b/CTPAPI6.6.9/generated/ThostFtdcUserApiDataType.cs @@ -0,0 +1,6937 @@ +//由 generator生成的文件,不要手工修改 + +namespace XP.CTPSharp; +public enum THOST_TE_RESUME_TYPE +{ + THOST_TERT_RESTART = 0, + THOST_TERT_RESUME, + THOST_TERT_QUICK, + THOST_TERT_NONE +} + +/// +/// 交易所属性类型 +/// +public enum TThostFtdcExchangePropertyType: byte +{ + /// + /// 正常 + /// + THOST_FTDC_EXP_Normal = (byte)'0', + /// + /// 根据成交生成报单 + /// + THOST_FTDC_EXP_GenOrderByTrade = (byte)'1', +} +/// +/// 证件类型类型 +/// +public enum TThostFtdcIdCardTypeType: byte +{ + /// + /// 组织机构代码 + /// + THOST_FTDC_ICT_EID = (byte)'0', + /// + /// 中国公民身份证 + /// + THOST_FTDC_ICT_IDCard = (byte)'1', + /// + /// 军官证 + /// + THOST_FTDC_ICT_OfficerIDCard = (byte)'2', + /// + /// 警官证 + /// + THOST_FTDC_ICT_PoliceIDCard = (byte)'3', + /// + /// 士兵证 + /// + THOST_FTDC_ICT_SoldierIDCard = (byte)'4', + /// + /// 护照 + /// + THOST_FTDC_ICT_Passport = (byte)'6', + /// + /// 回乡证 + /// + THOST_FTDC_ICT_HomeComingCard = (byte)'8', + /// + /// 营业执照号 + /// + THOST_FTDC_ICT_LicenseNo = (byte)'9', + /// + /// 税务登记号/当地纳税ID + /// + THOST_FTDC_ICT_TaxNo = (byte)'A', + /// + /// 台湾居民来往大陆通行证 + /// + THOST_FTDC_ICT_TwMainlandTravelPermit = (byte)'C', + /// + /// 驾照 + /// + THOST_FTDC_ICT_DrivingLicense = (byte)'D', + /// + /// 当地社保ID + /// + THOST_FTDC_ICT_SocialID = (byte)'F', + /// + /// 当地身份证 + /// + THOST_FTDC_ICT_LocalID = (byte)'G', + /// + /// 港澳永久性居民身份证 + /// + THOST_FTDC_ICT_HKMCIDCard = (byte)'I', + /// + /// 人行开户许可证 + /// + THOST_FTDC_ICT_AccountsPermits = (byte)'J', + /// + /// 外国人永久居留证 + /// + THOST_FTDC_ICT_FrgPrmtRdCard = (byte)'K', + /// + /// 资管产品备案函 + /// + THOST_FTDC_ICT_CptMngPrdLetter = (byte)'L', + /// + /// 港澳台居民居住证 + /// + THOST_FTDC_ICT_HKMCTwResidencePermit = (byte)'M', + /// + /// 统一社会信用代码 + /// + THOST_FTDC_ICT_UniformSocialCreditCode = (byte)'N', + /// + /// 机构成立证明文件 + /// + THOST_FTDC_ICT_CorporationCertNo = (byte)'O', + /// + /// 其他证件 + /// + THOST_FTDC_ICT_OtherCard = (byte)'x', +} +/// +/// 投资者范围类型 +/// +public enum TThostFtdcInvestorRangeType: byte +{ + /// + /// 所有 + /// + THOST_FTDC_IR_All = (byte)'1', + /// + /// 投资者组 + /// + THOST_FTDC_IR_Group = (byte)'2', + /// + /// 单一投资者 + /// + THOST_FTDC_IR_Single = (byte)'3', +} +/// +/// 投资者范围类型 +/// +public enum TThostFtdcDepartmentRangeType: byte +{ + /// + /// 所有 + /// + THOST_FTDC_DR_All = (byte)'1', + /// + /// 组织架构 + /// + THOST_FTDC_DR_Group = (byte)'2', + /// + /// 单一投资者 + /// + THOST_FTDC_DR_Single = (byte)'3', +} +/// +/// 数据同步状态类型 +/// +public enum TThostFtdcDataSyncStatusType: byte +{ + /// + /// 未同步 + /// + THOST_FTDC_DS_Asynchronous = (byte)'1', + /// + /// 同步中 + /// + THOST_FTDC_DS_Synchronizing = (byte)'2', + /// + /// 已同步 + /// + THOST_FTDC_DS_Synchronized = (byte)'3', +} +/// +/// 经纪公司数据同步状态类型 +/// +public enum TThostFtdcBrokerDataSyncStatusType: byte +{ + /// + /// 已同步 + /// + THOST_FTDC_BDS_Synchronized = (byte)'1', + /// + /// 同步中 + /// + THOST_FTDC_BDS_Synchronizing = (byte)'2', +} +/// +/// 交易所连接状态类型 +/// +public enum TThostFtdcExchangeConnectStatusType: byte +{ + /// + /// 没有任何连接 + /// + THOST_FTDC_ECS_NoConnection = (byte)'1', + /// + /// 已经发出合约查询请求 + /// + THOST_FTDC_ECS_QryInstrumentSent = (byte)'2', + /// + /// 已经获取信息 + /// + THOST_FTDC_ECS_GotInformation = (byte)'9', +} +/// +/// 交易所交易员连接状态类型 +/// +public enum TThostFtdcTraderConnectStatusType: byte +{ + /// + /// 没有任何连接 + /// + THOST_FTDC_TCS_NotConnected = (byte)'1', + /// + /// 已经连接 + /// + THOST_FTDC_TCS_Connected = (byte)'2', + /// + /// 已经发出合约查询请求 + /// + THOST_FTDC_TCS_QryInstrumentSent = (byte)'3', + /// + /// 订阅私有流 + /// + THOST_FTDC_TCS_SubPrivateFlow = (byte)'4', +} +/// +/// 功能代码类型 +/// +public enum TThostFtdcFunctionCodeType: byte +{ + /// + /// 数据异步化 + /// + THOST_FTDC_FC_DataAsync = (byte)'1', + /// + /// 强制用户登出 + /// + THOST_FTDC_FC_ForceUserLogout = (byte)'2', + /// + /// 变更管理用户口令 + /// + THOST_FTDC_FC_UserPasswordUpdate = (byte)'3', + /// + /// 变更经纪公司口令 + /// + THOST_FTDC_FC_BrokerPasswordUpdate = (byte)'4', + /// + /// 变更投资者口令 + /// + THOST_FTDC_FC_InvestorPasswordUpdate = (byte)'5', + /// + /// 报单插入 + /// + THOST_FTDC_FC_OrderInsert = (byte)'6', + /// + /// 报单操作 + /// + THOST_FTDC_FC_OrderAction = (byte)'7', + /// + /// 同步系统数据 + /// + THOST_FTDC_FC_SyncSystemData = (byte)'8', + /// + /// 同步经纪公司数据 + /// + THOST_FTDC_FC_SyncBrokerData = (byte)'9', + /// + /// 批量同步经纪公司数据 + /// + THOST_FTDC_FC_BachSyncBrokerData = (byte)'A', + /// + /// 超级查询 + /// + THOST_FTDC_FC_SuperQuery = (byte)'B', + /// + /// 预埋报单插入 + /// + THOST_FTDC_FC_ParkedOrderInsert = (byte)'C', + /// + /// 预埋报单操作 + /// + THOST_FTDC_FC_ParkedOrderAction = (byte)'D', + /// + /// 同步动态令牌 + /// + THOST_FTDC_FC_SyncOTP = (byte)'E', + /// + /// 删除未知单 + /// + THOST_FTDC_FC_DeleteOrder = (byte)'F', +} +/// +/// 经纪公司功能代码类型 +/// +public enum TThostFtdcBrokerFunctionCodeType: byte +{ + /// + /// 强制用户登出 + /// + THOST_FTDC_BFC_ForceUserLogout = (byte)'1', + /// + /// 变更用户口令 + /// + THOST_FTDC_BFC_UserPasswordUpdate = (byte)'2', + /// + /// 同步经纪公司数据 + /// + THOST_FTDC_BFC_SyncBrokerData = (byte)'3', + /// + /// 批量同步经纪公司数据 + /// + THOST_FTDC_BFC_BachSyncBrokerData = (byte)'4', + /// + /// 报单插入 + /// + THOST_FTDC_BFC_OrderInsert = (byte)'5', + /// + /// 报单操作 + /// + THOST_FTDC_BFC_OrderAction = (byte)'6', + /// + /// 全部查询 + /// + THOST_FTDC_BFC_AllQuery = (byte)'7', + /// + /// 系统功能:登入/登出/修改密码等 + /// + THOST_FTDC_BFC_log = (byte)'a', + /// + /// 基本查询:查询基础数据,如合约,交易所等常量 + /// + THOST_FTDC_BFC_BaseQry = (byte)'b', + /// + /// 交易查询:如查成交,委托 + /// + THOST_FTDC_BFC_TradeQry = (byte)'c', + /// + /// 交易功能:报单,撤单 + /// + THOST_FTDC_BFC_Trade = (byte)'d', + /// + /// 银期转账 + /// + THOST_FTDC_BFC_Virement = (byte)'e', + /// + /// 风险监控 + /// + THOST_FTDC_BFC_Risk = (byte)'f', + /// + /// 查询/管理:查询会话,踢人等 + /// + THOST_FTDC_BFC_Session = (byte)'g', + /// + /// 风控通知控制 + /// + THOST_FTDC_BFC_RiskNoticeCtl = (byte)'h', + /// + /// 风控通知发送 + /// + THOST_FTDC_BFC_RiskNotice = (byte)'i', + /// + /// 察看经纪公司资金权限 + /// + THOST_FTDC_BFC_BrokerDeposit = (byte)'j', + /// + /// 资金查询 + /// + THOST_FTDC_BFC_QueryFund = (byte)'k', + /// + /// 报单查询 + /// + THOST_FTDC_BFC_QueryOrder = (byte)'l', + /// + /// 成交查询 + /// + THOST_FTDC_BFC_QueryTrade = (byte)'m', + /// + /// 持仓查询 + /// + THOST_FTDC_BFC_QueryPosition = (byte)'n', + /// + /// 行情查询 + /// + THOST_FTDC_BFC_QueryMarketData = (byte)'o', + /// + /// 用户事件查询 + /// + THOST_FTDC_BFC_QueryUserEvent = (byte)'p', + /// + /// 风险通知查询 + /// + THOST_FTDC_BFC_QueryRiskNotify = (byte)'q', + /// + /// 出入金查询 + /// + THOST_FTDC_BFC_QueryFundChange = (byte)'r', + /// + /// 投资者信息查询 + /// + THOST_FTDC_BFC_QueryInvestor = (byte)'s', + /// + /// 交易编码查询 + /// + THOST_FTDC_BFC_QueryTradingCode = (byte)'t', + /// + /// 强平 + /// + THOST_FTDC_BFC_ForceClose = (byte)'u', + /// + /// 压力测试 + /// + THOST_FTDC_BFC_PressTest = (byte)'v', + /// + /// 权益反算 + /// + THOST_FTDC_BFC_RemainCalc = (byte)'w', + /// + /// 净持仓保证金指标 + /// + THOST_FTDC_BFC_NetPositionInd = (byte)'x', + /// + /// 风险预算 + /// + THOST_FTDC_BFC_RiskPredict = (byte)'y', + /// + /// 数据导出 + /// + THOST_FTDC_BFC_DataExport = (byte)'z', + /// + /// 风控指标设置 + /// + THOST_FTDC_BFC_RiskTargetSetup = (byte)'A', + /// + /// 行情预警 + /// + THOST_FTDC_BFC_MarketDataWarn = (byte)'B', + /// + /// 业务通知查询 + /// + THOST_FTDC_BFC_QryBizNotice = (byte)'C', + /// + /// 业务通知模板设置 + /// + THOST_FTDC_BFC_CfgBizNotice = (byte)'D', + /// + /// 同步动态令牌 + /// + THOST_FTDC_BFC_SyncOTP = (byte)'E', + /// + /// 发送业务通知 + /// + THOST_FTDC_BFC_SendBizNotice = (byte)'F', + /// + /// 风险级别标准设置 + /// + THOST_FTDC_BFC_CfgRiskLevelStd = (byte)'G', + /// + /// 交易终端应急功能 + /// + THOST_FTDC_BFC_TbCommand = (byte)'H', + /// + /// 删除未知单 + /// + THOST_FTDC_BFC_DeleteOrder = (byte)'J', + /// + /// 预埋报单插入 + /// + THOST_FTDC_BFC_ParkedOrderInsert = (byte)'K', + /// + /// 预埋报单操作 + /// + THOST_FTDC_BFC_ParkedOrderAction = (byte)'L', + /// + /// 资金不够仍允许行权 + /// + THOST_FTDC_BFC_ExecOrderNoCheck = (byte)'M', + /// + /// 指定 + /// + THOST_FTDC_BFC_Designate = (byte)'N', + /// + /// 证券处置 + /// + THOST_FTDC_BFC_StockDisposal = (byte)'O', + /// + /// 席位资金预警 + /// + THOST_FTDC_BFC_BrokerDepositWarn = (byte)'Q', + /// + /// 备兑不足预警 + /// + THOST_FTDC_BFC_CoverWarn = (byte)'S', + /// + /// 行权试算 + /// + THOST_FTDC_BFC_PreExecOrder = (byte)'T', + /// + /// 行权交收风险 + /// + THOST_FTDC_BFC_ExecOrderRisk = (byte)'P', + /// + /// 持仓限额预警 + /// + THOST_FTDC_BFC_PosiLimitWarn = (byte)'U', + /// + /// 持仓限额查询 + /// + THOST_FTDC_BFC_QryPosiLimit = (byte)'V', + /// + /// 银期签到签退 + /// + THOST_FTDC_BFC_FBSign = (byte)'W', + /// + /// 银期签约解约 + /// + THOST_FTDC_BFC_FBAccount = (byte)'X', +} +/// +/// 报单操作状态类型 +/// +public enum TThostFtdcOrderActionStatusType: byte +{ + /// + /// 已经提交 + /// + THOST_FTDC_OAS_Submitted = (byte)'a', + /// + /// 已经接受 + /// + THOST_FTDC_OAS_Accepted = (byte)'b', + /// + /// 已经被拒绝 + /// + THOST_FTDC_OAS_Rejected = (byte)'c', +} +/// +/// 报单状态类型 +/// +public enum TThostFtdcOrderStatusType: byte +{ + /// + /// 全部成交 + /// + THOST_FTDC_OST_AllTraded = (byte)'0', + /// + /// 部分成交还在队列中 + /// + THOST_FTDC_OST_PartTradedQueueing = (byte)'1', + /// + /// 部分成交不在队列中 + /// + THOST_FTDC_OST_PartTradedNotQueueing = (byte)'2', + /// + /// 未成交还在队列中 + /// + THOST_FTDC_OST_NoTradeQueueing = (byte)'3', + /// + /// 未成交不在队列中 + /// + THOST_FTDC_OST_NoTradeNotQueueing = (byte)'4', + /// + /// 撤单 + /// + THOST_FTDC_OST_Canceled = (byte)'5', + /// + /// 未知 + /// + THOST_FTDC_OST_Unknown = (byte)'a', + /// + /// 尚未触发 + /// + THOST_FTDC_OST_NotTouched = (byte)'b', + /// + /// 已触发 + /// + THOST_FTDC_OST_Touched = (byte)'c', +} +/// +/// 报单提交状态类型 +/// +public enum TThostFtdcOrderSubmitStatusType: byte +{ + /// + /// 已经提交 + /// + THOST_FTDC_OSS_InsertSubmitted = (byte)'0', + /// + /// 撤单已经提交 + /// + THOST_FTDC_OSS_CancelSubmitted = (byte)'1', + /// + /// 修改已经提交 + /// + THOST_FTDC_OSS_ModifySubmitted = (byte)'2', + /// + /// 已经接受 + /// + THOST_FTDC_OSS_Accepted = (byte)'3', + /// + /// 报单已经被拒绝 + /// + THOST_FTDC_OSS_InsertRejected = (byte)'4', + /// + /// 撤单已经被拒绝 + /// + THOST_FTDC_OSS_CancelRejected = (byte)'5', + /// + /// 改单已经被拒绝 + /// + THOST_FTDC_OSS_ModifyRejected = (byte)'6', +} +/// +/// 持仓日期类型 +/// +public enum TThostFtdcPositionDateType: byte +{ + /// + /// 今日持仓 + /// + THOST_FTDC_PSD_Today = (byte)'1', + /// + /// 历史持仓 + /// + THOST_FTDC_PSD_History = (byte)'2', +} +/// +/// 持仓日期类型类型 +/// +public enum TThostFtdcPositionDateTypeType: byte +{ + /// + /// 使用历史持仓 + /// + THOST_FTDC_PDT_UseHistory = (byte)'1', + /// + /// 不使用历史持仓 + /// + THOST_FTDC_PDT_NoUseHistory = (byte)'2', +} +/// +/// 交易角色类型 +/// +public enum TThostFtdcTradingRoleType: byte +{ + /// + /// 代理 + /// + THOST_FTDC_ER_Broker = (byte)'1', + /// + /// 自营 + /// + THOST_FTDC_ER_Host = (byte)'2', + /// + /// 做市商 + /// + THOST_FTDC_ER_Maker = (byte)'3', +} +/// +/// 产品类型类型 +/// +public enum TThostFtdcProductClassType: byte +{ + /// + /// 期货 + /// + THOST_FTDC_PC_Futures = (byte)'1', + /// + /// 期货期权 + /// + THOST_FTDC_PC_Options = (byte)'2', + /// + /// 组合 + /// + THOST_FTDC_PC_Combination = (byte)'3', + /// + /// 即期 + /// + THOST_FTDC_PC_Spot = (byte)'4', + /// + /// 期转现 + /// + THOST_FTDC_PC_EFP = (byte)'5', + /// + /// 现货期权 + /// + THOST_FTDC_PC_SpotOption = (byte)'6', + /// + /// TAS合约 + /// + THOST_FTDC_PC_TAS = (byte)'7', + /// + /// 金属指数 + /// + THOST_FTDC_PC_MI = (byte)'I', +} +/// +/// 产品类型类型 +/// +public enum TThostFtdcAPIProductClassType: byte +{ + /// + /// 期货单一合约 + /// + THOST_FTDC_APC_FutureSingle = (byte)'1', + /// + /// 期权单一合约 + /// + THOST_FTDC_APC_OptionSingle = (byte)'2', + /// + /// 可交易期货(含期货组合和期货单一合约) + /// + THOST_FTDC_APC_Futures = (byte)'3', + /// + /// 可交易期权(含期权组合和期权单一合约) + /// + THOST_FTDC_APC_Options = (byte)'4', + /// + /// 可下单套利组合 + /// + THOST_FTDC_APC_TradingComb = (byte)'5', + /// + /// 可申请的组合(可以申请的组合合约 包含可以交易的合约) + /// + THOST_FTDC_APC_UnTradingComb = (byte)'6', + /// + /// 所有可以交易合约 + /// + THOST_FTDC_APC_AllTrading = (byte)'7', + /// + /// 所有合约(包含不能交易合约 慎用) + /// + THOST_FTDC_APC_All = (byte)'8', +} +/// +/// 合约生命周期状态类型 +/// +public enum TThostFtdcInstLifePhaseType: byte +{ + /// + /// 未上市 + /// + THOST_FTDC_IP_NotStart = (byte)'0', + /// + /// 上市 + /// + THOST_FTDC_IP_Started = (byte)'1', + /// + /// 停牌 + /// + THOST_FTDC_IP_Pause = (byte)'2', + /// + /// 到期 + /// + THOST_FTDC_IP_Expired = (byte)'3', +} +/// +/// 买卖方向类型 +/// +public enum TThostFtdcDirectionType: byte +{ + /// + /// 买 + /// + THOST_FTDC_D_Buy = (byte)'0', + /// + /// 卖 + /// + THOST_FTDC_D_Sell = (byte)'1', +} +/// +/// 持仓类型类型 +/// +public enum TThostFtdcPositionTypeType: byte +{ + /// + /// 净持仓 + /// + THOST_FTDC_PT_Net = (byte)'1', + /// + /// 综合持仓 + /// + THOST_FTDC_PT_Gross = (byte)'2', +} +/// +/// 持仓多空方向类型 +/// +public enum TThostFtdcPosiDirectionType: byte +{ + /// + /// 净 + /// + THOST_FTDC_PD_Net = (byte)'1', + /// + /// 多头 + /// + THOST_FTDC_PD_Long = (byte)'2', + /// + /// 空头 + /// + THOST_FTDC_PD_Short = (byte)'3', +} +/// +/// 系统结算状态类型 +/// +public enum TThostFtdcSysSettlementStatusType: byte +{ + /// + /// 不活跃 + /// + THOST_FTDC_SS_NonActive = (byte)'1', + /// + /// 启动 + /// + THOST_FTDC_SS_Startup = (byte)'2', + /// + /// 操作 + /// + THOST_FTDC_SS_Operating = (byte)'3', + /// + /// 结算 + /// + THOST_FTDC_SS_Settlement = (byte)'4', + /// + /// 结算完成 + /// + THOST_FTDC_SS_SettlementFinished = (byte)'5', +} +/// +/// 费率属性类型 +/// +public enum TThostFtdcRatioAttrType: byte +{ + /// + /// 交易费率 + /// + THOST_FTDC_RA_Trade = (byte)'0', + /// + /// 结算费率 + /// + THOST_FTDC_RA_Settlement = (byte)'1', +} +/// +/// 投机套保标志类型 +/// +public enum TThostFtdcHedgeFlagType: byte +{ + /// + /// 投机 + /// + THOST_FTDC_HF_Speculation = (byte)'1', + /// + /// 套利 + /// + THOST_FTDC_HF_Arbitrage = (byte)'2', + /// + /// 套保 + /// + THOST_FTDC_HF_Hedge = (byte)'3', + /// + /// 做市商 + /// + THOST_FTDC_HF_MarketMaker = (byte)'5', + /// + /// 第一腿投机第二腿套保 + /// + THOST_FTDC_HF_SpecHedge = (byte)'6', + /// + /// 第一腿套保第二腿投机 + /// + THOST_FTDC_HF_HedgeSpec = (byte)'7', +} +/// +/// 投机套保标志类型 +/// +public enum TThostFtdcBillHedgeFlagType: byte +{ + /// + /// 投机 + /// + THOST_FTDC_BHF_Speculation = (byte)'1', + /// + /// 套利 + /// + THOST_FTDC_BHF_Arbitrage = (byte)'2', + /// + /// 套保 + /// + THOST_FTDC_BHF_Hedge = (byte)'3', +} +/// +/// 交易编码类型类型 +/// +public enum TThostFtdcClientIDTypeType: byte +{ + /// + /// 投机 + /// + THOST_FTDC_CIDT_Speculation = (byte)'1', + /// + /// 套利 + /// + THOST_FTDC_CIDT_Arbitrage = (byte)'2', + /// + /// 套保 + /// + THOST_FTDC_CIDT_Hedge = (byte)'3', + /// + /// 做市商 + /// + THOST_FTDC_CIDT_MarketMaker = (byte)'5', +} +/// +/// 报单价格条件类型 +/// +public enum TThostFtdcOrderPriceTypeType: byte +{ + /// + /// 任意价 + /// + THOST_FTDC_OPT_AnyPrice = (byte)'1', + /// + /// 限价 + /// + THOST_FTDC_OPT_LimitPrice = (byte)'2', + /// + /// 最优价 + /// + THOST_FTDC_OPT_BestPrice = (byte)'3', + /// + /// 最新价 + /// + THOST_FTDC_OPT_LastPrice = (byte)'4', + /// + /// 最新价浮动上浮1个ticks + /// + THOST_FTDC_OPT_LastPricePlusOneTicks = (byte)'5', + /// + /// 最新价浮动上浮2个ticks + /// + THOST_FTDC_OPT_LastPricePlusTwoTicks = (byte)'6', + /// + /// 最新价浮动上浮3个ticks + /// + THOST_FTDC_OPT_LastPricePlusThreeTicks = (byte)'7', + /// + /// 卖一价 + /// + THOST_FTDC_OPT_AskPrice1 = (byte)'8', + /// + /// 卖一价浮动上浮1个ticks + /// + THOST_FTDC_OPT_AskPrice1PlusOneTicks = (byte)'9', + /// + /// 卖一价浮动上浮2个ticks + /// + THOST_FTDC_OPT_AskPrice1PlusTwoTicks = (byte)'A', + /// + /// 卖一价浮动上浮3个ticks + /// + THOST_FTDC_OPT_AskPrice1PlusThreeTicks = (byte)'B', + /// + /// 买一价 + /// + THOST_FTDC_OPT_BidPrice1 = (byte)'C', + /// + /// 买一价浮动上浮1个ticks + /// + THOST_FTDC_OPT_BidPrice1PlusOneTicks = (byte)'D', + /// + /// 买一价浮动上浮2个ticks + /// + THOST_FTDC_OPT_BidPrice1PlusTwoTicks = (byte)'E', + /// + /// 买一价浮动上浮3个ticks + /// + THOST_FTDC_OPT_BidPrice1PlusThreeTicks = (byte)'F', + /// + /// 五档价 + /// + THOST_FTDC_OPT_FiveLevelPrice = (byte)'G', +} +/// +/// 开平标志类型 +/// +public enum TThostFtdcOffsetFlagType: byte +{ + /// + /// 开仓 + /// + THOST_FTDC_OF_Open = (byte)'0', + /// + /// 平仓 + /// + THOST_FTDC_OF_Close = (byte)'1', + /// + /// 强平 + /// + THOST_FTDC_OF_ForceClose = (byte)'2', + /// + /// 平今 + /// + THOST_FTDC_OF_CloseToday = (byte)'3', + /// + /// 平昨 + /// + THOST_FTDC_OF_CloseYesterday = (byte)'4', + /// + /// 强减 + /// + THOST_FTDC_OF_ForceOff = (byte)'5', + /// + /// 本地强平 + /// + THOST_FTDC_OF_LocalForceClose = (byte)'6', +} +/// +/// 强平原因类型 +/// +public enum TThostFtdcForceCloseReasonType: byte +{ + /// + /// 非强平 + /// + THOST_FTDC_FCC_NotForceClose = (byte)'0', + /// + /// 资金不足 + /// + THOST_FTDC_FCC_LackDeposit = (byte)'1', + /// + /// 客户超仓 + /// + THOST_FTDC_FCC_ClientOverPositionLimit = (byte)'2', + /// + /// 会员超仓 + /// + THOST_FTDC_FCC_MemberOverPositionLimit = (byte)'3', + /// + /// 持仓非整数倍 + /// + THOST_FTDC_FCC_NotMultiple = (byte)'4', + /// + /// 违规 + /// + THOST_FTDC_FCC_Violation = (byte)'5', + /// + /// 其它 + /// + THOST_FTDC_FCC_Other = (byte)'6', + /// + /// 自然人临近交割 + /// + THOST_FTDC_FCC_PersonDeliv = (byte)'7', + /// + /// 风控强平不验证资金 + /// + THOST_FTDC_FCC_Notverifycapital = (byte)'8', +} +/// +/// 报单类型类型 +/// +public enum TThostFtdcOrderTypeType: byte +{ + /// + /// 正常 + /// + THOST_FTDC_ORDT_Normal = (byte)'0', + /// + /// 报价衍生 + /// + THOST_FTDC_ORDT_DeriveFromQuote = (byte)'1', + /// + /// 组合衍生 + /// + THOST_FTDC_ORDT_DeriveFromCombination = (byte)'2', + /// + /// 组合报单 + /// + THOST_FTDC_ORDT_Combination = (byte)'3', + /// + /// 条件单 + /// + THOST_FTDC_ORDT_ConditionalOrder = (byte)'4', + /// + /// 互换单 + /// + THOST_FTDC_ORDT_Swap = (byte)'5', + /// + /// 大宗交易成交衍生 + /// + THOST_FTDC_ORDT_DeriveFromBlockTrade = (byte)'6', + /// + /// 期转现成交衍生 + /// + THOST_FTDC_ORDT_DeriveFromEFPTrade = (byte)'7', +} +/// +/// 有效期类型类型 +/// +public enum TThostFtdcTimeConditionType: byte +{ + /// + /// 立即完成,否则撤销 + /// + THOST_FTDC_TC_IOC = (byte)'1', + /// + /// 本节有效 + /// + THOST_FTDC_TC_GFS = (byte)'2', + /// + /// 当日有效 + /// + THOST_FTDC_TC_GFD = (byte)'3', + /// + /// 指定日期前有效 + /// + THOST_FTDC_TC_GTD = (byte)'4', + /// + /// 撤销前有效 + /// + THOST_FTDC_TC_GTC = (byte)'5', + /// + /// 集合竞价有效 + /// + THOST_FTDC_TC_GFA = (byte)'6', +} +/// +/// 成交量类型类型 +/// +public enum TThostFtdcVolumeConditionType: byte +{ + /// + /// 任何数量 + /// + THOST_FTDC_VC_AV = (byte)'1', + /// + /// 最小数量 + /// + THOST_FTDC_VC_MV = (byte)'2', + /// + /// 全部数量 + /// + THOST_FTDC_VC_CV = (byte)'3', +} +/// +/// 触发条件类型 +/// +public enum TThostFtdcContingentConditionType: byte +{ + /// + /// 立即 + /// + THOST_FTDC_CC_Immediately = (byte)'1', + /// + /// 止损 + /// + THOST_FTDC_CC_Touch = (byte)'2', + /// + /// 止赢 + /// + THOST_FTDC_CC_TouchProfit = (byte)'3', + /// + /// 预埋单 + /// + THOST_FTDC_CC_ParkedOrder = (byte)'4', + /// + /// 最新价大于条件价 + /// + THOST_FTDC_CC_LastPriceGreaterThanStopPrice = (byte)'5', + /// + /// 最新价大于等于条件价 + /// + THOST_FTDC_CC_LastPriceGreaterEqualStopPrice = (byte)'6', + /// + /// 最新价小于条件价 + /// + THOST_FTDC_CC_LastPriceLesserThanStopPrice = (byte)'7', + /// + /// 最新价小于等于条件价 + /// + THOST_FTDC_CC_LastPriceLesserEqualStopPrice = (byte)'8', + /// + /// 卖一价大于条件价 + /// + THOST_FTDC_CC_AskPriceGreaterThanStopPrice = (byte)'9', + /// + /// 卖一价大于等于条件价 + /// + THOST_FTDC_CC_AskPriceGreaterEqualStopPrice = (byte)'A', + /// + /// 卖一价小于条件价 + /// + THOST_FTDC_CC_AskPriceLesserThanStopPrice = (byte)'B', + /// + /// 卖一价小于等于条件价 + /// + THOST_FTDC_CC_AskPriceLesserEqualStopPrice = (byte)'C', + /// + /// 买一价大于条件价 + /// + THOST_FTDC_CC_BidPriceGreaterThanStopPrice = (byte)'D', + /// + /// 买一价大于等于条件价 + /// + THOST_FTDC_CC_BidPriceGreaterEqualStopPrice = (byte)'E', + /// + /// 买一价小于条件价 + /// + THOST_FTDC_CC_BidPriceLesserThanStopPrice = (byte)'F', + /// + /// 买一价小于等于条件价 + /// + THOST_FTDC_CC_BidPriceLesserEqualStopPrice = (byte)'H', +} +/// +/// 操作标志类型 +/// +public enum TThostFtdcActionFlagType: byte +{ + /// + /// 删除 + /// + THOST_FTDC_AF_Delete = (byte)'0', + /// + /// 修改 + /// + THOST_FTDC_AF_Modify = (byte)'3', +} +/// +/// 交易权限类型 +/// +public enum TThostFtdcTradingRightType: byte +{ + /// + /// 可以交易 + /// + THOST_FTDC_TR_Allow = (byte)'0', + /// + /// 只能平仓 + /// + THOST_FTDC_TR_CloseOnly = (byte)'1', + /// + /// 不能交易 + /// + THOST_FTDC_TR_Forbidden = (byte)'2', +} +/// +/// 报单来源类型 +/// +public enum TThostFtdcOrderSourceType: byte +{ + /// + /// 来自参与者 + /// + THOST_FTDC_OSRC_Participant = (byte)'0', + /// + /// 来自管理员 + /// + THOST_FTDC_OSRC_Administrator = (byte)'1', +} +/// +/// 成交类型类型 +/// +public enum TThostFtdcTradeTypeType: byte +{ + /// + /// 普通成交 + /// + THOST_FTDC_TRDT_Common = (byte)'0', + /// + /// 期权执行 + /// + THOST_FTDC_TRDT_OptionsExecution = (byte)'1', + /// + /// OTC成交 + /// + THOST_FTDC_TRDT_OTC = (byte)'2', + /// + /// 期转现衍生成交 + /// + THOST_FTDC_TRDT_EFPDerived = (byte)'3', + /// + /// 组合衍生成交 + /// + THOST_FTDC_TRDT_CombinationDerived = (byte)'4', + /// + /// 大宗交易成交 + /// + THOST_FTDC_TRDT_BlockTrade = (byte)'5', +} +/// +/// 特殊持仓明细标识类型 +/// +public enum TThostFtdcSpecPosiTypeType: byte +{ + /// + /// TAS合约成交产生的标的合约持仓明细 + /// + THOST_FTDC_SPOST_Tas = (byte)'0', +} +/// +/// 成交价来源类型 +/// +public enum TThostFtdcPriceSourceType: byte +{ + /// + /// 前成交价 + /// + THOST_FTDC_PSRC_LastPrice = (byte)'0', + /// + /// 买委托价 + /// + THOST_FTDC_PSRC_Buy = (byte)'1', + /// + /// 卖委托价 + /// + THOST_FTDC_PSRC_Sell = (byte)'2', + /// + /// 场外成交价 + /// + THOST_FTDC_PSRC_OTC = (byte)'3', +} +/// +/// 合约交易状态类型 +/// +public enum TThostFtdcInstrumentStatusType: byte +{ + /// + /// 开盘前 + /// + THOST_FTDC_IS_BeforeTrading = (byte)'0', + /// + /// 非交易 + /// + THOST_FTDC_IS_NoTrading = (byte)'1', + /// + /// 连续交易 + /// + THOST_FTDC_IS_Continous = (byte)'2', + /// + /// 集合竞价报单 + /// + THOST_FTDC_IS_AuctionOrdering = (byte)'3', + /// + /// 集合竞价价格平衡 + /// + THOST_FTDC_IS_AuctionBalance = (byte)'4', + /// + /// 集合竞价撮合 + /// + THOST_FTDC_IS_AuctionMatch = (byte)'5', + /// + /// 收盘 + /// + THOST_FTDC_IS_Closed = (byte)'6', +} +/// +/// 品种进入交易状态原因类型 +/// +public enum TThostFtdcInstStatusEnterReasonType: byte +{ + /// + /// 自动切换 + /// + THOST_FTDC_IER_Automatic = (byte)'1', + /// + /// 手动切换 + /// + THOST_FTDC_IER_Manual = (byte)'2', + /// + /// 熔断 + /// + THOST_FTDC_IER_Fuse = (byte)'3', +} +/// +/// 处理状态类型 +/// +public enum TThostFtdcBatchStatusType: byte +{ + /// + /// 未上传 + /// + THOST_FTDC_BS_NoUpload = (byte)'1', + /// + /// 已上传 + /// + THOST_FTDC_BS_Uploaded = (byte)'2', + /// + /// 审核失败 + /// + THOST_FTDC_BS_Failed = (byte)'3', +} +/// +/// 按品种返还方式类型 +/// +public enum TThostFtdcReturnStyleType: byte +{ + /// + /// 按所有品种 + /// + THOST_FTDC_RS_All = (byte)'1', + /// + /// 按品种 + /// + THOST_FTDC_RS_ByProduct = (byte)'2', +} +/// +/// 返还模式类型 +/// +public enum TThostFtdcReturnPatternType: byte +{ + /// + /// 按成交手数 + /// + THOST_FTDC_RP_ByVolume = (byte)'1', + /// + /// 按留存手续费 + /// + THOST_FTDC_RP_ByFeeOnHand = (byte)'2', +} +/// +/// 返还级别类型 +/// +public enum TThostFtdcReturnLevelType: byte +{ + /// + /// 级别1 + /// + THOST_FTDC_RL_Level1 = (byte)'1', + /// + /// 级别2 + /// + THOST_FTDC_RL_Level2 = (byte)'2', + /// + /// 级别3 + /// + THOST_FTDC_RL_Level3 = (byte)'3', + /// + /// 级别4 + /// + THOST_FTDC_RL_Level4 = (byte)'4', + /// + /// 级别5 + /// + THOST_FTDC_RL_Level5 = (byte)'5', + /// + /// 级别6 + /// + THOST_FTDC_RL_Level6 = (byte)'6', + /// + /// 级别7 + /// + THOST_FTDC_RL_Level7 = (byte)'7', + /// + /// 级别8 + /// + THOST_FTDC_RL_Level8 = (byte)'8', + /// + /// 级别9 + /// + THOST_FTDC_RL_Level9 = (byte)'9', +} +/// +/// 返还标准类型 +/// +public enum TThostFtdcReturnStandardType: byte +{ + /// + /// 分阶段返还 + /// + THOST_FTDC_RSD_ByPeriod = (byte)'1', + /// + /// 按某一标准 + /// + THOST_FTDC_RSD_ByStandard = (byte)'2', +} +/// +/// 质押类型类型 +/// +public enum TThostFtdcMortgageTypeType: byte +{ + /// + /// 质出 + /// + THOST_FTDC_MT_Out = (byte)'0', + /// + /// 质入 + /// + THOST_FTDC_MT_In = (byte)'1', +} +/// +/// 投资者结算参数代码类型 +/// +public enum TThostFtdcInvestorSettlementParamIDType: byte +{ + /// + /// 质押比例 + /// + THOST_FTDC_ISPI_MortgageRatio = (byte)'4', + /// + /// 保证金算法 + /// + THOST_FTDC_ISPI_MarginWay = (byte)'5', + /// + /// 结算单结存是否包含质押 + /// + THOST_FTDC_ISPI_BillDeposit = (byte)'9', +} +/// +/// 交易所结算参数代码类型 +/// +public enum TThostFtdcExchangeSettlementParamIDType: byte +{ + /// + /// 质押比例 + /// + THOST_FTDC_ESPI_MortgageRatio = (byte)'1', + /// + /// 分项资金导入项 + /// + THOST_FTDC_ESPI_OtherFundItem = (byte)'2', + /// + /// 分项资金入交易所出入金 + /// + THOST_FTDC_ESPI_OtherFundImport = (byte)'3', + /// + /// 中金所开户最低可用金额 + /// + THOST_FTDC_ESPI_CFFEXMinPrepa = (byte)'6', + /// + /// 郑商所结算方式 + /// + THOST_FTDC_ESPI_CZCESettlementType = (byte)'7', + /// + /// 交易所交割手续费收取方式 + /// + THOST_FTDC_ESPI_ExchDelivFeeMode = (byte)'9', + /// + /// 投资者交割手续费收取方式 + /// + THOST_FTDC_ESPI_DelivFeeMode = (byte)'0', + /// + /// 郑商所组合持仓保证金收取方式 + /// + THOST_FTDC_ESPI_CZCEComMarginType = (byte)'A', + /// + /// 大商所套利保证金是否优惠 + /// + THOST_FTDC_ESPI_DceComMarginType = (byte)'B', + /// + /// 虚值期权保证金优惠比率 + /// + THOST_FTDC_ESPI_OptOutDisCountRate = (byte)'a', + /// + /// 最低保障系数 + /// + THOST_FTDC_ESPI_OptMiniGuarantee = (byte)'b', +} +/// +/// 系统参数代码类型 +/// +public enum TThostFtdcSystemParamIDType: byte +{ + /// + /// 投资者代码最小长度 + /// + THOST_FTDC_SPI_InvestorIDMinLength = (byte)'1', + /// + /// 投资者帐号代码最小长度 + /// + THOST_FTDC_SPI_AccountIDMinLength = (byte)'2', + /// + /// 投资者开户默认登录权限 + /// + THOST_FTDC_SPI_UserRightLogon = (byte)'3', + /// + /// 投资者交易结算单成交汇总方式 + /// + THOST_FTDC_SPI_SettlementBillTrade = (byte)'4', + /// + /// 统一开户更新交易编码方式 + /// + THOST_FTDC_SPI_TradingCode = (byte)'5', + /// + /// 结算是否判断存在未复核的出入金和分项资金 + /// + THOST_FTDC_SPI_CheckFund = (byte)'6', + /// + /// 是否启用手续费模板数据权限 + /// + THOST_FTDC_SPI_CommModelRight = (byte)'7', + /// + /// 是否启用保证金率模板数据权限 + /// + THOST_FTDC_SPI_MarginModelRight = (byte)'9', + /// + /// 是否规范用户才能激活 + /// + THOST_FTDC_SPI_IsStandardActive = (byte)'8', + /// + /// 上传的交易所结算文件路径 + /// + THOST_FTDC_SPI_UploadSettlementFile = (byte)'U', + /// + /// 上报保证金监控中心文件路径 + /// + THOST_FTDC_SPI_DownloadCSRCFile = (byte)'D', + /// + /// 生成的结算单文件路径 + /// + THOST_FTDC_SPI_SettlementBillFile = (byte)'S', + /// + /// 证监会文件标识 + /// + THOST_FTDC_SPI_CSRCOthersFile = (byte)'C', + /// + /// 投资者照片路径 + /// + THOST_FTDC_SPI_InvestorPhoto = (byte)'P', + /// + /// 全结经纪公司上传文件路径 + /// + THOST_FTDC_SPI_CSRCData = (byte)'R', + /// + /// 开户密码录入方式 + /// + THOST_FTDC_SPI_InvestorPwdModel = (byte)'I', + /// + /// 投资者中金所结算文件下载路径 + /// + THOST_FTDC_SPI_CFFEXInvestorSettleFile = (byte)'F', + /// + /// 投资者代码编码方式 + /// + THOST_FTDC_SPI_InvestorIDType = (byte)'a', + /// + /// 休眠户最高权益 + /// + THOST_FTDC_SPI_FreezeMaxReMain = (byte)'r', + /// + /// 手续费相关操作实时上场开关 + /// + THOST_FTDC_SPI_IsSync = (byte)'A', + /// + /// 解除开仓权限限制 + /// + THOST_FTDC_SPI_RelieveOpenLimit = (byte)'O', + /// + /// 是否规范用户才能休眠 + /// + THOST_FTDC_SPI_IsStandardFreeze = (byte)'X', + /// + /// 郑商所是否开放所有品种套保交易 + /// + THOST_FTDC_SPI_CZCENormalProductHedge = (byte)'B', +} +/// +/// 交易系统参数代码类型 +/// +public enum TThostFtdcTradeParamIDType: byte +{ + /// + /// 系统加密算法 + /// + THOST_FTDC_TPID_EncryptionStandard = (byte)'E', + /// + /// 系统风险算法 + /// + THOST_FTDC_TPID_RiskMode = (byte)'R', + /// + /// 系统风险算法是否全局 0-否 1-是 + /// + THOST_FTDC_TPID_RiskModeGlobal = (byte)'G', + /// + /// 密码加密算法 + /// + THOST_FTDC_TPID_modeEncode = (byte)'P', + /// + /// 价格小数位数参数 + /// + THOST_FTDC_TPID_tickMode = (byte)'T', + /// + /// 用户最大会话数 + /// + THOST_FTDC_TPID_SingleUserSessionMaxNum = (byte)'S', + /// + /// 最大连续登录失败数 + /// + THOST_FTDC_TPID_LoginFailMaxNum = (byte)'L', + /// + /// 是否强制认证 + /// + THOST_FTDC_TPID_IsAuthForce = (byte)'A', + /// + /// 是否冻结证券持仓 + /// + THOST_FTDC_TPID_IsPosiFreeze = (byte)'F', + /// + /// 是否限仓 + /// + THOST_FTDC_TPID_IsPosiLimit = (byte)'M', + /// + /// 郑商所询价时间间隔 + /// + THOST_FTDC_TPID_ForQuoteTimeInterval = (byte)'Q', + /// + /// 是否期货限仓 + /// + THOST_FTDC_TPID_IsFuturePosiLimit = (byte)'B', + /// + /// 是否期货下单频率限制 + /// + THOST_FTDC_TPID_IsFutureOrderFreq = (byte)'C', + /// + /// 行权冻结是否计算盈利 + /// + THOST_FTDC_TPID_IsExecOrderProfit = (byte)'H', + /// + /// 银期开户是否验证开户银行卡号是否是预留银行账户 + /// + THOST_FTDC_TPID_IsCheckBankAcc = (byte)'I', + /// + /// 弱密码最后修改日期 + /// + THOST_FTDC_TPID_PasswordDeadLine = (byte)'J', + /// + /// 强密码校验 + /// + THOST_FTDC_TPID_IsStrongPassword = (byte)'K', + /// + /// 自有资金质押比 + /// + THOST_FTDC_TPID_BalanceMorgage = (byte)'a', + /// + /// 最小密码长度 + /// + THOST_FTDC_TPID_MinPwdLen = (byte)'O', + /// + /// IP当日最大登陆失败次数 + /// + THOST_FTDC_TPID_LoginFailMaxNumForIP = (byte)'U', + /// + /// 密码有效期 + /// + THOST_FTDC_TPID_PasswordPeriod = (byte)'V', +} +/// +/// 文件标识类型 +/// +public enum TThostFtdcFileIDType: byte +{ + /// + /// 资金数据 + /// + THOST_FTDC_FI_SettlementFund = (byte)'F', + /// + /// 成交数据 + /// + THOST_FTDC_FI_Trade = (byte)'T', + /// + /// 投资者持仓数据 + /// + THOST_FTDC_FI_InvestorPosition = (byte)'P', + /// + /// 投资者分项资金数据 + /// + THOST_FTDC_FI_SubEntryFund = (byte)'O', + /// + /// 组合持仓数据 + /// + THOST_FTDC_FI_CZCECombinationPos = (byte)'C', + /// + /// 上报保证金监控中心数据 + /// + THOST_FTDC_FI_CSRCData = (byte)'R', + /// + /// 郑商所平仓了结数据 + /// + THOST_FTDC_FI_CZCEClose = (byte)'L', + /// + /// 郑商所非平仓了结数据 + /// + THOST_FTDC_FI_CZCENoClose = (byte)'N', + /// + /// 持仓明细数据 + /// + THOST_FTDC_FI_PositionDtl = (byte)'D', + /// + /// 期权执行文件 + /// + THOST_FTDC_FI_OptionStrike = (byte)'S', + /// + /// 结算价比对文件 + /// + THOST_FTDC_FI_SettlementPriceComparison = (byte)'M', + /// + /// 上期所非持仓变动明细 + /// + THOST_FTDC_FI_NonTradePosChange = (byte)'B', +} +/// +/// 文件上传类型类型 +/// +public enum TThostFtdcFileTypeType: byte +{ + /// + /// 结算 + /// + THOST_FTDC_FUT_Settlement = (byte)'0', + /// + /// 核对 + /// + THOST_FTDC_FUT_Check = (byte)'1', +} +/// +/// 文件格式类型 +/// +public enum TThostFtdcFileFormatType: byte +{ + /// + /// 文本文件(.txt) + /// + THOST_FTDC_FFT_Txt = (byte)'0', + /// + /// 压缩文件(.zip) + /// + THOST_FTDC_FFT_Zip = (byte)'1', + /// + /// DBF文件(.dbf) + /// + THOST_FTDC_FFT_DBF = (byte)'2', +} +/// +/// 文件状态类型 +/// +public enum TThostFtdcFileUploadStatusType: byte +{ + /// + /// 上传成功 + /// + THOST_FTDC_FUS_SucceedUpload = (byte)'1', + /// + /// 上传失败 + /// + THOST_FTDC_FUS_FailedUpload = (byte)'2', + /// + /// 导入成功 + /// + THOST_FTDC_FUS_SucceedLoad = (byte)'3', + /// + /// 导入部分成功 + /// + THOST_FTDC_FUS_PartSucceedLoad = (byte)'4', + /// + /// 导入失败 + /// + THOST_FTDC_FUS_FailedLoad = (byte)'5', +} +/// +/// 移仓方向类型 +/// +public enum TThostFtdcTransferDirectionType: byte +{ + /// + /// 移出 + /// + THOST_FTDC_TD_Out = (byte)'0', + /// + /// 移入 + /// + THOST_FTDC_TD_In = (byte)'1', +} +/// +/// 特殊的创建规则类型 +/// +public enum TThostFtdcSpecialCreateRuleType: byte +{ + /// + /// 没有特殊创建规则 + /// + THOST_FTDC_SC_NoSpecialRule = (byte)'0', + /// + /// 不包含春节 + /// + THOST_FTDC_SC_NoSpringFestival = (byte)'1', +} +/// +/// 挂牌基准价类型类型 +/// +public enum TThostFtdcBasisPriceTypeType: byte +{ + /// + /// 上一合约结算价 + /// + THOST_FTDC_IPT_LastSettlement = (byte)'1', + /// + /// 上一合约收盘价 + /// + THOST_FTDC_IPT_LaseClose = (byte)'2', +} +/// +/// 产品生命周期状态类型 +/// +public enum TThostFtdcProductLifePhaseType: byte +{ + /// + /// 活跃 + /// + THOST_FTDC_PLP_Active = (byte)'1', + /// + /// 不活跃 + /// + THOST_FTDC_PLP_NonActive = (byte)'2', + /// + /// 注销 + /// + THOST_FTDC_PLP_Canceled = (byte)'3', +} +/// +/// 交割方式类型 +/// +public enum TThostFtdcDeliveryModeType: byte +{ + /// + /// 现金交割 + /// + THOST_FTDC_DM_CashDeliv = (byte)'1', + /// + /// 实物交割 + /// + THOST_FTDC_DM_CommodityDeliv = (byte)'2', +} +/// +/// 出入金类型类型 +/// +public enum TThostFtdcFundIOTypeType: byte +{ + /// + /// 出入金 + /// + THOST_FTDC_FIOT_FundIO = (byte)'1', + /// + /// 银期转帐 + /// + THOST_FTDC_FIOT_Transfer = (byte)'2', + /// + /// 银期换汇 + /// + THOST_FTDC_FIOT_SwapCurrency = (byte)'3', +} +/// +/// 资金类型类型 +/// +public enum TThostFtdcFundTypeType: byte +{ + /// + /// 银行存款 + /// + THOST_FTDC_FT_Deposite = (byte)'1', + /// + /// 分项资金 + /// + THOST_FTDC_FT_ItemFund = (byte)'2', + /// + /// 公司调整 + /// + THOST_FTDC_FT_Company = (byte)'3', + /// + /// 资金内转 + /// + THOST_FTDC_FT_InnerTransfer = (byte)'4', +} +/// +/// 出入金方向类型 +/// +public enum TThostFtdcFundDirectionType: byte +{ + /// + /// 入金 + /// + THOST_FTDC_FD_In = (byte)'1', + /// + /// 出金 + /// + THOST_FTDC_FD_Out = (byte)'2', +} +/// +/// 资金状态类型 +/// +public enum TThostFtdcFundStatusType: byte +{ + /// + /// 已录入 + /// + THOST_FTDC_FS_Record = (byte)'1', + /// + /// 已复核 + /// + THOST_FTDC_FS_Check = (byte)'2', + /// + /// 已冲销 + /// + THOST_FTDC_FS_Charge = (byte)'3', +} +/// +/// 发布状态类型 +/// +public enum TThostFtdcPublishStatusType: byte +{ + /// + /// 未发布 + /// + THOST_FTDC_PS_None = (byte)'1', + /// + /// 正在发布 + /// + THOST_FTDC_PS_Publishing = (byte)'2', + /// + /// 已发布 + /// + THOST_FTDC_PS_Published = (byte)'3', +} +/// +/// 系统状态类型 +/// +public enum TThostFtdcSystemStatusType: byte +{ + /// + /// 不活跃 + /// + THOST_FTDC_ES_NonActive = (byte)'1', + /// + /// 启动 + /// + THOST_FTDC_ES_Startup = (byte)'2', + /// + /// 交易开始初始化 + /// + THOST_FTDC_ES_Initialize = (byte)'3', + /// + /// 交易完成初始化 + /// + THOST_FTDC_ES_Initialized = (byte)'4', + /// + /// 收市开始 + /// + THOST_FTDC_ES_Close = (byte)'5', + /// + /// 收市完成 + /// + THOST_FTDC_ES_Closed = (byte)'6', + /// + /// 结算 + /// + THOST_FTDC_ES_Settlement = (byte)'7', +} +/// +/// 结算状态类型 +/// +public enum TThostFtdcSettlementStatusType: byte +{ + /// + /// 初始 + /// + THOST_FTDC_STS_Initialize = (byte)'0', + /// + /// 结算中 + /// + THOST_FTDC_STS_Settlementing = (byte)'1', + /// + /// 已结算 + /// + THOST_FTDC_STS_Settlemented = (byte)'2', + /// + /// 结算完成 + /// + THOST_FTDC_STS_Finished = (byte)'3', +} +/// +/// 投资者类型类型 +/// +public enum TThostFtdcInvestorTypeType: byte +{ + /// + /// 自然人 + /// + THOST_FTDC_CT_Person = (byte)'0', + /// + /// 法人 + /// + THOST_FTDC_CT_Company = (byte)'1', + /// + /// 投资基金 + /// + THOST_FTDC_CT_Fund = (byte)'2', + /// + /// 特殊法人 + /// + THOST_FTDC_CT_SpecialOrgan = (byte)'3', + /// + /// 资管户 + /// + THOST_FTDC_CT_Asset = (byte)'4', +} +/// +/// 经纪公司类型类型 +/// +public enum TThostFtdcBrokerTypeType: byte +{ + /// + /// 交易会员 + /// + THOST_FTDC_BT_Trade = (byte)'0', + /// + /// 交易结算会员 + /// + THOST_FTDC_BT_TradeSettle = (byte)'1', +} +/// +/// 风险等级类型 +/// +public enum TThostFtdcRiskLevelType: byte +{ + /// + /// 低风险客户 + /// + THOST_FTDC_FAS_Low = (byte)'1', + /// + /// 普通客户 + /// + THOST_FTDC_FAS_Normal = (byte)'2', + /// + /// 关注客户 + /// + THOST_FTDC_FAS_Focus = (byte)'3', + /// + /// 风险客户 + /// + THOST_FTDC_FAS_Risk = (byte)'4', +} +/// +/// 手续费收取方式类型 +/// +public enum TThostFtdcFeeAcceptStyleType: byte +{ + /// + /// 按交易收取 + /// + THOST_FTDC_FAS_ByTrade = (byte)'1', + /// + /// 按交割收取 + /// + THOST_FTDC_FAS_ByDeliv = (byte)'2', + /// + /// 不收 + /// + THOST_FTDC_FAS_None = (byte)'3', + /// + /// 按指定手续费收取 + /// + THOST_FTDC_FAS_FixFee = (byte)'4', +} +/// +/// 密码类型类型 +/// +public enum TThostFtdcPasswordTypeType: byte +{ + /// + /// 交易密码 + /// + THOST_FTDC_PWDT_Trade = (byte)'1', + /// + /// 资金密码 + /// + THOST_FTDC_PWDT_Account = (byte)'2', +} +/// +/// 盈亏算法类型 +/// +public enum TThostFtdcAlgorithmType: byte +{ + /// + /// 浮盈浮亏都计算 + /// + THOST_FTDC_AG_All = (byte)'1', + /// + /// 浮盈不计,浮亏计 + /// + THOST_FTDC_AG_OnlyLost = (byte)'2', + /// + /// 浮盈计,浮亏不计 + /// + THOST_FTDC_AG_OnlyGain = (byte)'3', + /// + /// 浮盈浮亏都不计算 + /// + THOST_FTDC_AG_None = (byte)'4', +} +/// +/// 是否包含平仓盈利类型 +/// +public enum TThostFtdcIncludeCloseProfitType: byte +{ + /// + /// 包含平仓盈利 + /// + THOST_FTDC_ICP_Include = (byte)'0', + /// + /// 不包含平仓盈利 + /// + THOST_FTDC_ICP_NotInclude = (byte)'2', +} +/// +/// 是否受可提比例限制类型 +/// +public enum TThostFtdcAllWithoutTradeType: byte +{ + /// + /// 无仓无成交不受可提比例限制 + /// + THOST_FTDC_AWT_Enable = (byte)'0', + /// + /// 受可提比例限制 + /// + THOST_FTDC_AWT_Disable = (byte)'2', + /// + /// 无仓不受可提比例限制 + /// + THOST_FTDC_AWT_NoHoldEnable = (byte)'3', +} +/// +/// 资金密码核对标志类型 +/// +public enum TThostFtdcFuturePwdFlagType: byte +{ + /// + /// 不核对 + /// + THOST_FTDC_FPWD_UnCheck = (byte)'0', + /// + /// 核对 + /// + THOST_FTDC_FPWD_Check = (byte)'1', +} +/// +/// 银期转账类型类型 +/// +public enum TThostFtdcTransferTypeType: byte +{ + /// + /// 银行转期货 + /// + THOST_FTDC_TT_BankToFuture = (byte)'0', + /// + /// 期货转银行 + /// + THOST_FTDC_TT_FutureToBank = (byte)'1', +} +/// +/// 转账有效标志类型 +/// +public enum TThostFtdcTransferValidFlagType: byte +{ + /// + /// 无效或失败 + /// + THOST_FTDC_TVF_Invalid = (byte)'0', + /// + /// 有效 + /// + THOST_FTDC_TVF_Valid = (byte)'1', + /// + /// 冲正 + /// + THOST_FTDC_TVF_Reverse = (byte)'2', +} +/// +/// 事由类型 +/// +public enum TThostFtdcReasonType: byte +{ + /// + /// 错单 + /// + THOST_FTDC_RN_CD = (byte)'0', + /// + /// 资金在途 + /// + THOST_FTDC_RN_ZT = (byte)'1', + /// + /// 其它 + /// + THOST_FTDC_RN_QT = (byte)'2', +} +/// +/// 性别类型 +/// +public enum TThostFtdcSexType: byte +{ + /// + /// 未知 + /// + THOST_FTDC_SEX_None = (byte)'0', + /// + /// 男 + /// + THOST_FTDC_SEX_Man = (byte)'1', + /// + /// 女 + /// + THOST_FTDC_SEX_Woman = (byte)'2', +} +/// +/// 用户类型类型 +/// +public enum TThostFtdcUserTypeType: byte +{ + /// + /// 投资者 + /// + THOST_FTDC_UT_Investor = (byte)'0', + /// + /// 操作员 + /// + THOST_FTDC_UT_Operator = (byte)'1', + /// + /// 管理员 + /// + THOST_FTDC_UT_SuperUser = (byte)'2', +} +/// +/// 费率类型类型 +/// +public enum TThostFtdcRateTypeType: byte +{ + /// + /// 保证金率 + /// + THOST_FTDC_RATETYPE_MarginRate = (byte)'2', +} +/// +/// 通知类型类型 +/// +public enum TThostFtdcNoteTypeType: byte +{ + /// + /// 交易结算单 + /// + THOST_FTDC_NOTETYPE_TradeSettleBill = (byte)'1', + /// + /// 交易结算月报 + /// + THOST_FTDC_NOTETYPE_TradeSettleMonth = (byte)'2', + /// + /// 追加保证金通知书 + /// + THOST_FTDC_NOTETYPE_CallMarginNotes = (byte)'3', + /// + /// 强行平仓通知书 + /// + THOST_FTDC_NOTETYPE_ForceCloseNotes = (byte)'4', + /// + /// 成交通知书 + /// + THOST_FTDC_NOTETYPE_TradeNotes = (byte)'5', + /// + /// 交割通知书 + /// + THOST_FTDC_NOTETYPE_DelivNotes = (byte)'6', +} +/// +/// 结算单方式类型 +/// +public enum TThostFtdcSettlementStyleType: byte +{ + /// + /// 逐日盯市 + /// + THOST_FTDC_SBS_Day = (byte)'1', + /// + /// 逐笔对冲 + /// + THOST_FTDC_SBS_Volume = (byte)'2', +} +/// +/// 结算单类型类型 +/// +public enum TThostFtdcSettlementBillTypeType: byte +{ + /// + /// 日报 + /// + THOST_FTDC_ST_Day = (byte)'0', + /// + /// 月报 + /// + THOST_FTDC_ST_Month = (byte)'1', +} +/// +/// 客户权限类型类型 +/// +public enum TThostFtdcUserRightTypeType: byte +{ + /// + /// 登录 + /// + THOST_FTDC_URT_Logon = (byte)'1', + /// + /// 银期转帐 + /// + THOST_FTDC_URT_Transfer = (byte)'2', + /// + /// 邮寄结算单 + /// + THOST_FTDC_URT_EMail = (byte)'3', + /// + /// 传真结算单 + /// + THOST_FTDC_URT_Fax = (byte)'4', + /// + /// 条件单 + /// + THOST_FTDC_URT_ConditionOrder = (byte)'5', +} +/// +/// 保证金价格类型类型 +/// +public enum TThostFtdcMarginPriceTypeType: byte +{ + /// + /// 昨结算价 + /// + THOST_FTDC_MPT_PreSettlementPrice = (byte)'1', + /// + /// 最新价 + /// + THOST_FTDC_MPT_SettlementPrice = (byte)'2', + /// + /// 成交均价 + /// + THOST_FTDC_MPT_AveragePrice = (byte)'3', + /// + /// 开仓价 + /// + THOST_FTDC_MPT_OpenPrice = (byte)'4', +} +/// +/// 结算单生成状态类型 +/// +public enum TThostFtdcBillGenStatusType: byte +{ + /// + /// 未生成 + /// + THOST_FTDC_BGS_None = (byte)'0', + /// + /// 生成中 + /// + THOST_FTDC_BGS_NoGenerated = (byte)'1', + /// + /// 已生成 + /// + THOST_FTDC_BGS_Generated = (byte)'2', +} +/// +/// 算法类型类型 +/// +public enum TThostFtdcAlgoTypeType: byte +{ + /// + /// 持仓处理算法 + /// + THOST_FTDC_AT_HandlePositionAlgo = (byte)'1', + /// + /// 寻找保证金率算法 + /// + THOST_FTDC_AT_FindMarginRateAlgo = (byte)'2', +} +/// +/// 持仓处理算法编号类型 +/// +public enum TThostFtdcHandlePositionAlgoIDType: byte +{ + /// + /// 基本 + /// + THOST_FTDC_HPA_Base = (byte)'1', + /// + /// 大连商品交易所 + /// + THOST_FTDC_HPA_DCE = (byte)'2', + /// + /// 郑州商品交易所 + /// + THOST_FTDC_HPA_CZCE = (byte)'3', +} +/// +/// 寻找保证金率算法编号类型 +/// +public enum TThostFtdcFindMarginRateAlgoIDType: byte +{ + /// + /// 基本 + /// + THOST_FTDC_FMRA_Base = (byte)'1', + /// + /// 大连商品交易所 + /// + THOST_FTDC_FMRA_DCE = (byte)'2', + /// + /// 郑州商品交易所 + /// + THOST_FTDC_FMRA_CZCE = (byte)'3', +} +/// +/// 资金处理算法编号类型 +/// +public enum TThostFtdcHandleTradingAccountAlgoIDType: byte +{ + /// + /// 基本 + /// + THOST_FTDC_HTAA_Base = (byte)'1', + /// + /// 大连商品交易所 + /// + THOST_FTDC_HTAA_DCE = (byte)'2', + /// + /// 郑州商品交易所 + /// + THOST_FTDC_HTAA_CZCE = (byte)'3', +} +/// +/// 联系人类型类型 +/// +public enum TThostFtdcPersonTypeType: byte +{ + /// + /// 指定下单人 + /// + THOST_FTDC_PST_Order = (byte)'1', + /// + /// 开户授权人 + /// + THOST_FTDC_PST_Open = (byte)'2', + /// + /// 资金调拨人 + /// + THOST_FTDC_PST_Fund = (byte)'3', + /// + /// 结算单确认人 + /// + THOST_FTDC_PST_Settlement = (byte)'4', + /// + /// 法人 + /// + THOST_FTDC_PST_Company = (byte)'5', + /// + /// 法人代表 + /// + THOST_FTDC_PST_Corporation = (byte)'6', + /// + /// 投资者联系人 + /// + THOST_FTDC_PST_LinkMan = (byte)'7', + /// + /// 分户管理资产负责人 + /// + THOST_FTDC_PST_Ledger = (byte)'8', + /// + /// 托(保)管人 + /// + THOST_FTDC_PST_Trustee = (byte)'9', + /// + /// 托(保)管机构法人代表 + /// + THOST_FTDC_PST_TrusteeCorporation = (byte)'A', + /// + /// 托(保)管机构开户授权人 + /// + THOST_FTDC_PST_TrusteeOpen = (byte)'B', + /// + /// 托(保)管机构联系人 + /// + THOST_FTDC_PST_TrusteeContact = (byte)'C', + /// + /// 境外自然人参考证件 + /// + THOST_FTDC_PST_ForeignerRefer = (byte)'D', + /// + /// 法人代表参考证件 + /// + THOST_FTDC_PST_CorporationRefer = (byte)'E', +} +/// +/// 查询范围类型 +/// +public enum TThostFtdcQueryInvestorRangeType: byte +{ + /// + /// 所有 + /// + THOST_FTDC_QIR_All = (byte)'1', + /// + /// 查询分类 + /// + THOST_FTDC_QIR_Group = (byte)'2', + /// + /// 单一投资者 + /// + THOST_FTDC_QIR_Single = (byte)'3', +} +/// +/// 投资者风险状态类型 +/// +public enum TThostFtdcInvestorRiskStatusType: byte +{ + /// + /// 正常 + /// + THOST_FTDC_IRS_Normal = (byte)'1', + /// + /// 警告 + /// + THOST_FTDC_IRS_Warn = (byte)'2', + /// + /// 追保 + /// + THOST_FTDC_IRS_Call = (byte)'3', + /// + /// 强平 + /// + THOST_FTDC_IRS_Force = (byte)'4', + /// + /// 异常 + /// + THOST_FTDC_IRS_Exception = (byte)'5', +} +/// +/// 用户事件类型类型 +/// +public enum TThostFtdcUserEventTypeType: byte +{ + /// + /// 登录 + /// + THOST_FTDC_UET_Login = (byte)'1', + /// + /// 登出 + /// + THOST_FTDC_UET_Logout = (byte)'2', + /// + /// 交易成功 + /// + THOST_FTDC_UET_Trading = (byte)'3', + /// + /// 交易失败 + /// + THOST_FTDC_UET_TradingError = (byte)'4', + /// + /// 修改密码 + /// + THOST_FTDC_UET_UpdatePassword = (byte)'5', + /// + /// 客户端认证 + /// + THOST_FTDC_UET_Authenticate = (byte)'6', + /// + /// 终端信息上报 + /// + THOST_FTDC_UET_SubmitSysInfo = (byte)'7', + /// + /// 转账 + /// + THOST_FTDC_UET_Transfer = (byte)'8', + /// + /// 其他 + /// + THOST_FTDC_UET_Other = (byte)'9', +} +/// +/// 平仓方式类型 +/// +public enum TThostFtdcCloseStyleType: byte +{ + /// + /// 先开先平 + /// + THOST_FTDC_ICS_Close = (byte)'0', + /// + /// 先平今再平昨 + /// + THOST_FTDC_ICS_CloseToday = (byte)'1', +} +/// +/// 统计方式类型 +/// +public enum TThostFtdcStatModeType: byte +{ + /// + /// ---- + /// + THOST_FTDC_SM_Non = (byte)'0', + /// + /// 按合约统计 + /// + THOST_FTDC_SM_Instrument = (byte)'1', + /// + /// 按产品统计 + /// + THOST_FTDC_SM_Product = (byte)'2', + /// + /// 按投资者统计 + /// + THOST_FTDC_SM_Investor = (byte)'3', +} +/// +/// 预埋单状态类型 +/// +public enum TThostFtdcParkedOrderStatusType: byte +{ + /// + /// 未发送 + /// + THOST_FTDC_PAOS_NotSend = (byte)'1', + /// + /// 已发送 + /// + THOST_FTDC_PAOS_Send = (byte)'2', + /// + /// 已删除 + /// + THOST_FTDC_PAOS_Deleted = (byte)'3', +} +/// +/// 处理状态类型 +/// +public enum TThostFtdcVirDealStatusType: byte +{ + /// + /// 正在处理 + /// + THOST_FTDC_VDS_Dealing = (byte)'1', + /// + /// 处理成功 + /// + THOST_FTDC_VDS_DeaclSucceed = (byte)'2', +} +/// +/// 原有系统代码类型 +/// +public enum TThostFtdcOrgSystemIDType: byte +{ + /// + /// 综合交易平台 + /// + THOST_FTDC_ORGS_Standard = (byte)'0', + /// + /// 易盛系统 + /// + THOST_FTDC_ORGS_ESunny = (byte)'1', + /// + /// 金仕达V6系统 + /// + THOST_FTDC_ORGS_KingStarV6 = (byte)'2', +} +/// +/// 交易状态类型 +/// +public enum TThostFtdcVirTradeStatusType: byte +{ + /// + /// 正常处理中 + /// + THOST_FTDC_VTS_NaturalDeal = (byte)'0', + /// + /// 成功结束 + /// + THOST_FTDC_VTS_SucceedEnd = (byte)'1', + /// + /// 失败结束 + /// + THOST_FTDC_VTS_FailedEND = (byte)'2', + /// + /// 异常中 + /// + THOST_FTDC_VTS_Exception = (byte)'3', + /// + /// 已人工异常处理 + /// + THOST_FTDC_VTS_ManualDeal = (byte)'4', + /// + /// 通讯异常 ,请人工处理 + /// + THOST_FTDC_VTS_MesException = (byte)'5', + /// + /// 系统出错,请人工处理 + /// + THOST_FTDC_VTS_SysException = (byte)'6', +} +/// +/// 银行帐户类型类型 +/// +public enum TThostFtdcVirBankAccTypeType: byte +{ + /// + /// 存折 + /// + THOST_FTDC_VBAT_BankBook = (byte)'1', + /// + /// 储蓄卡 + /// + THOST_FTDC_VBAT_BankCard = (byte)'2', + /// + /// 信用卡 + /// + THOST_FTDC_VBAT_CreditCard = (byte)'3', +} +/// +/// 银行帐户类型类型 +/// +public enum TThostFtdcVirementStatusType: byte +{ + /// + /// 正常 + /// + THOST_FTDC_VMS_Natural = (byte)'0', + /// + /// 销户 + /// + THOST_FTDC_VMS_Canceled = (byte)'9', +} +/// +/// 有效标志类型 +/// +public enum TThostFtdcVirementAvailAbilityType: byte +{ + /// + /// 未确认 + /// + THOST_FTDC_VAA_NoAvailAbility = (byte)'0', + /// + /// 有效 + /// + THOST_FTDC_VAA_AvailAbility = (byte)'1', + /// + /// 冲正 + /// + THOST_FTDC_VAA_Repeal = (byte)'2', +} +/// +/// 交易代码类型 +/// +public enum TThostFtdcVirementTradeCodeType: byte +{ +} +/// +/// Aml生成方式类型 +/// +public enum TThostFtdcAMLGenStatusType: byte +{ + /// + /// 程序生成 + /// + THOST_FTDC_GEN_Program = (byte)'0', + /// + /// 人工生成 + /// + THOST_FTDC_GEN_HandWork = (byte)'1', +} +/// +/// 动态密钥类别(保证金监管)类型 +/// +public enum TThostFtdcCFMMCKeyKindType: byte +{ + /// + /// 主动请求更新 + /// + THOST_FTDC_CFMMCKK_REQUEST = (byte)'R', + /// + /// CFMMC自动更新 + /// + THOST_FTDC_CFMMCKK_AUTO = (byte)'A', + /// + /// CFMMC手动更新 + /// + THOST_FTDC_CFMMCKK_MANUAL = (byte)'M', +} +/// +/// 证件类型类型 +/// +public enum TThostFtdcCertificationTypeType: byte +{ + /// + /// 身份证 + /// + THOST_FTDC_CFT_IDCard = (byte)'0', + /// + /// 护照 + /// + THOST_FTDC_CFT_Passport = (byte)'1', + /// + /// 军官证 + /// + THOST_FTDC_CFT_OfficerIDCard = (byte)'2', + /// + /// 士兵证 + /// + THOST_FTDC_CFT_SoldierIDCard = (byte)'3', + /// + /// 回乡证 + /// + THOST_FTDC_CFT_HomeComingCard = (byte)'4', + /// + /// 营业执照号 + /// + THOST_FTDC_CFT_LicenseNo = (byte)'6', + /// + /// 组织机构代码证 + /// + THOST_FTDC_CFT_InstitutionCodeCard = (byte)'7', + /// + /// 临时营业执照号 + /// + THOST_FTDC_CFT_TempLicenseNo = (byte)'8', + /// + /// 民办非企业登记证书 + /// + THOST_FTDC_CFT_NoEnterpriseLicenseNo = (byte)'9', + /// + /// 其他证件 + /// + THOST_FTDC_CFT_OtherCard = (byte)'x', + /// + /// 主管部门批文 + /// + THOST_FTDC_CFT_SuperDepAgree = (byte)'a', +} +/// +/// 文件业务功能类型 +/// +public enum TThostFtdcFileBusinessCodeType: byte +{ + /// + /// 其他 + /// + THOST_FTDC_FBC_Others = (byte)'0', + /// + /// 转账交易明细对账 + /// + THOST_FTDC_FBC_TransferDetails = (byte)'1', + /// + /// 客户账户状态对账 + /// + THOST_FTDC_FBC_CustAccStatus = (byte)'2', + /// + /// 账户类交易明细对账 + /// + THOST_FTDC_FBC_AccountTradeDetails = (byte)'3', + /// + /// 期货账户信息变更明细对账 + /// + THOST_FTDC_FBC_FutureAccountChangeInfoDetails = (byte)'4', + /// + /// 客户资金台账余额明细对账 + /// + THOST_FTDC_FBC_CustMoneyDetail = (byte)'5', + /// + /// 客户销户结息明细对账 + /// + THOST_FTDC_FBC_CustCancelAccountInfo = (byte)'6', + /// + /// 客户资金余额对账结果 + /// + THOST_FTDC_FBC_CustMoneyResult = (byte)'7', + /// + /// 其它对账异常结果文件 + /// + THOST_FTDC_FBC_OthersExceptionResult = (byte)'8', + /// + /// 客户结息净额明细 + /// + THOST_FTDC_FBC_CustInterestNetMoneyDetails = (byte)'9', + /// + /// 客户资金交收明细 + /// + THOST_FTDC_FBC_CustMoneySendAndReceiveDetails = (byte)'a', + /// + /// 法人存管银行资金交收汇总 + /// + THOST_FTDC_FBC_CorporationMoneyTotal = (byte)'b', + /// + /// 主体间资金交收汇总 + /// + THOST_FTDC_FBC_MainbodyMoneyTotal = (byte)'c', + /// + /// 总分平衡监管数据 + /// + THOST_FTDC_FBC_MainPartMonitorData = (byte)'d', + /// + /// 存管银行备付金余额 + /// + THOST_FTDC_FBC_PreparationMoney = (byte)'e', + /// + /// 协办存管银行资金监管数据 + /// + THOST_FTDC_FBC_BankMoneyMonitorData = (byte)'f', +} +/// +/// 汇钞标志类型 +/// +public enum TThostFtdcCashExchangeCodeType: byte +{ + /// + /// 汇 + /// + THOST_FTDC_CEC_Exchange = (byte)'1', + /// + /// 钞 + /// + THOST_FTDC_CEC_Cash = (byte)'2', +} +/// +/// 是或否标识类型 +/// +public enum TThostFtdcYesNoIndicatorType: byte +{ + /// + /// 是 + /// + THOST_FTDC_YNI_Yes = (byte)'0', + /// + /// 否 + /// + THOST_FTDC_YNI_No = (byte)'1', +} +/// +/// 余额类型类型 +/// +public enum TThostFtdcBanlanceTypeType: byte +{ + /// + /// 当前余额 + /// + THOST_FTDC_BLT_CurrentMoney = (byte)'0', + /// + /// 可用余额 + /// + THOST_FTDC_BLT_UsableMoney = (byte)'1', + /// + /// 可取余额 + /// + THOST_FTDC_BLT_FetchableMoney = (byte)'2', + /// + /// 冻结余额 + /// + THOST_FTDC_BLT_FreezeMoney = (byte)'3', +} +/// +/// 性别类型 +/// +public enum TThostFtdcGenderType: byte +{ + /// + /// 未知状态 + /// + THOST_FTDC_GD_Unknown = (byte)'0', + /// + /// 男 + /// + THOST_FTDC_GD_Male = (byte)'1', + /// + /// 女 + /// + THOST_FTDC_GD_Female = (byte)'2', +} +/// +/// 费用支付标志类型 +/// +public enum TThostFtdcFeePayFlagType: byte +{ + /// + /// 由受益方支付费用 + /// + THOST_FTDC_FPF_BEN = (byte)'0', + /// + /// 由发送方支付费用 + /// + THOST_FTDC_FPF_OUR = (byte)'1', + /// + /// 由发送方支付发起的费用,受益方支付接受的费用 + /// + THOST_FTDC_FPF_SHA = (byte)'2', +} +/// +/// 密钥类型类型 +/// +public enum TThostFtdcPassWordKeyTypeType: byte +{ + /// + /// 交换密钥 + /// + THOST_FTDC_PWKT_ExchangeKey = (byte)'0', + /// + /// 密码密钥 + /// + THOST_FTDC_PWKT_PassWordKey = (byte)'1', + /// + /// MAC密钥 + /// + THOST_FTDC_PWKT_MACKey = (byte)'2', + /// + /// 报文密钥 + /// + THOST_FTDC_PWKT_MessageKey = (byte)'3', +} +/// +/// 密码类型类型 +/// +public enum TThostFtdcFBTPassWordTypeType: byte +{ + /// + /// 查询 + /// + THOST_FTDC_PWT_Query = (byte)'0', + /// + /// 取款 + /// + THOST_FTDC_PWT_Fetch = (byte)'1', + /// + /// 转帐 + /// + THOST_FTDC_PWT_Transfer = (byte)'2', + /// + /// 交易 + /// + THOST_FTDC_PWT_Trade = (byte)'3', +} +/// +/// 加密方式类型 +/// +public enum TThostFtdcFBTEncryModeType: byte +{ + /// + /// 不加密 + /// + THOST_FTDC_EM_NoEncry = (byte)'0', + /// + /// DES + /// + THOST_FTDC_EM_DES = (byte)'1', + /// + /// 3DES + /// + THOST_FTDC_EM_3DES = (byte)'2', +} +/// +/// 银行冲正标志类型 +/// +public enum TThostFtdcBankRepealFlagType: byte +{ + /// + /// 银行无需自动冲正 + /// + THOST_FTDC_BRF_BankNotNeedRepeal = (byte)'0', + /// + /// 银行待自动冲正 + /// + THOST_FTDC_BRF_BankWaitingRepeal = (byte)'1', + /// + /// 银行已自动冲正 + /// + THOST_FTDC_BRF_BankBeenRepealed = (byte)'2', +} +/// +/// 期商冲正标志类型 +/// +public enum TThostFtdcBrokerRepealFlagType: byte +{ + /// + /// 期商无需自动冲正 + /// + THOST_FTDC_BRORF_BrokerNotNeedRepeal = (byte)'0', + /// + /// 期商待自动冲正 + /// + THOST_FTDC_BRORF_BrokerWaitingRepeal = (byte)'1', + /// + /// 期商已自动冲正 + /// + THOST_FTDC_BRORF_BrokerBeenRepealed = (byte)'2', +} +/// +/// 机构类别类型 +/// +public enum TThostFtdcInstitutionTypeType: byte +{ + /// + /// 银行 + /// + THOST_FTDC_TS_Bank = (byte)'0', + /// + /// 期商 + /// + THOST_FTDC_TS_Future = (byte)'1', + /// + /// 券商 + /// + THOST_FTDC_TS_Store = (byte)'2', +} +/// +/// 最后分片标志类型 +/// +public enum TThostFtdcLastFragmentType: byte +{ + /// + /// 是最后分片 + /// + THOST_FTDC_LF_Yes = (byte)'0', + /// + /// 不是最后分片 + /// + THOST_FTDC_LF_No = (byte)'1', +} +/// +/// 银行账户状态类型 +/// +public enum TThostFtdcBankAccStatusType: byte +{ + /// + /// 正常 + /// + THOST_FTDC_BAS_Normal = (byte)'0', + /// + /// 冻结 + /// + THOST_FTDC_BAS_Freeze = (byte)'1', + /// + /// 挂失 + /// + THOST_FTDC_BAS_ReportLoss = (byte)'2', +} +/// +/// 资金账户状态类型 +/// +public enum TThostFtdcMoneyAccountStatusType: byte +{ + /// + /// 正常 + /// + THOST_FTDC_MAS_Normal = (byte)'0', + /// + /// 销户 + /// + THOST_FTDC_MAS_Cancel = (byte)'1', +} +/// +/// 存管状态类型 +/// +public enum TThostFtdcManageStatusType: byte +{ + /// + /// 指定存管 + /// + THOST_FTDC_MSS_Point = (byte)'0', + /// + /// 预指定 + /// + THOST_FTDC_MSS_PrePoint = (byte)'1', + /// + /// 撤销指定 + /// + THOST_FTDC_MSS_CancelPoint = (byte)'2', +} +/// +/// 应用系统类型类型 +/// +public enum TThostFtdcSystemTypeType: byte +{ + /// + /// 银期转帐 + /// + THOST_FTDC_SYT_FutureBankTransfer = (byte)'0', + /// + /// 银证转帐 + /// + THOST_FTDC_SYT_StockBankTransfer = (byte)'1', + /// + /// 第三方存管 + /// + THOST_FTDC_SYT_TheThirdPartStore = (byte)'2', +} +/// +/// 银期转帐划转结果标志类型 +/// +public enum TThostFtdcTxnEndFlagType: byte +{ + /// + /// 正常处理中 + /// + THOST_FTDC_TEF_NormalProcessing = (byte)'0', + /// + /// 成功结束 + /// + THOST_FTDC_TEF_Success = (byte)'1', + /// + /// 失败结束 + /// + THOST_FTDC_TEF_Failed = (byte)'2', + /// + /// 异常中 + /// + THOST_FTDC_TEF_Abnormal = (byte)'3', + /// + /// 已人工异常处理 + /// + THOST_FTDC_TEF_ManualProcessedForException = (byte)'4', + /// + /// 通讯异常 ,请人工处理 + /// + THOST_FTDC_TEF_CommuFailedNeedManualProcess = (byte)'5', + /// + /// 系统出错,请人工处理 + /// + THOST_FTDC_TEF_SysErrorNeedManualProcess = (byte)'6', +} +/// +/// 银期转帐服务处理状态类型 +/// +public enum TThostFtdcProcessStatusType: byte +{ + /// + /// 未处理 + /// + THOST_FTDC_PSS_NotProcess = (byte)'0', + /// + /// 开始处理 + /// + THOST_FTDC_PSS_StartProcess = (byte)'1', + /// + /// 处理完成 + /// + THOST_FTDC_PSS_Finished = (byte)'2', +} +/// +/// 客户类型类型 +/// +public enum TThostFtdcCustTypeType: byte +{ + /// + /// 自然人 + /// + THOST_FTDC_CUSTT_Person = (byte)'0', + /// + /// 机构户 + /// + THOST_FTDC_CUSTT_Institution = (byte)'1', +} +/// +/// 银期转帐方向类型 +/// +public enum TThostFtdcFBTTransferDirectionType: byte +{ + /// + /// 入金,银行转期货 + /// + THOST_FTDC_FBTTD_FromBankToFuture = (byte)'1', + /// + /// 出金,期货转银行 + /// + THOST_FTDC_FBTTD_FromFutureToBank = (byte)'2', +} +/// +/// 开销户类别类型 +/// +public enum TThostFtdcOpenOrDestroyType: byte +{ + /// + /// 开户 + /// + THOST_FTDC_OOD_Open = (byte)'1', + /// + /// 销户 + /// + THOST_FTDC_OOD_Destroy = (byte)'0', +} +/// +/// 有效标志类型 +/// +public enum TThostFtdcAvailabilityFlagType: byte +{ + /// + /// 未确认 + /// + THOST_FTDC_AVAF_Invalid = (byte)'0', + /// + /// 有效 + /// + THOST_FTDC_AVAF_Valid = (byte)'1', + /// + /// 冲正 + /// + THOST_FTDC_AVAF_Repeal = (byte)'2', +} +/// +/// 机构类型类型 +/// +public enum TThostFtdcOrganTypeType: byte +{ + /// + /// 银行代理 + /// + THOST_FTDC_OT_Bank = (byte)'1', + /// + /// 交易前置 + /// + THOST_FTDC_OT_Future = (byte)'2', + /// + /// 银期转帐平台管理 + /// + THOST_FTDC_OT_PlateForm = (byte)'9', +} +/// +/// 机构级别类型 +/// +public enum TThostFtdcOrganLevelType: byte +{ + /// + /// 银行总行或期商总部 + /// + THOST_FTDC_OL_HeadQuarters = (byte)'1', + /// + /// 银行分中心或期货公司营业部 + /// + THOST_FTDC_OL_Branch = (byte)'2', +} +/// +/// 协议类型类型 +/// +public enum TThostFtdcProtocalIDType: byte +{ + /// + /// 期商协议 + /// + THOST_FTDC_PID_FutureProtocal = (byte)'0', + /// + /// 工行协议 + /// + THOST_FTDC_PID_ICBCProtocal = (byte)'1', + /// + /// 农行协议 + /// + THOST_FTDC_PID_ABCProtocal = (byte)'2', + /// + /// 中国银行协议 + /// + THOST_FTDC_PID_CBCProtocal = (byte)'3', + /// + /// 建行协议 + /// + THOST_FTDC_PID_CCBProtocal = (byte)'4', + /// + /// 交行协议 + /// + THOST_FTDC_PID_BOCOMProtocal = (byte)'5', + /// + /// 银期转帐平台协议 + /// + THOST_FTDC_PID_FBTPlateFormProtocal = (byte)'X', +} +/// +/// 套接字连接方式类型 +/// +public enum TThostFtdcConnectModeType: byte +{ + /// + /// 短连接 + /// + THOST_FTDC_CM_ShortConnect = (byte)'0', + /// + /// 长连接 + /// + THOST_FTDC_CM_LongConnect = (byte)'1', +} +/// +/// 套接字通信方式类型 +/// +public enum TThostFtdcSyncModeType: byte +{ + /// + /// 异步 + /// + THOST_FTDC_SRM_ASync = (byte)'0', + /// + /// 同步 + /// + THOST_FTDC_SRM_Sync = (byte)'1', +} +/// +/// 银行帐号类型类型 +/// +public enum TThostFtdcBankAccTypeType: byte +{ + /// + /// 银行存折 + /// + THOST_FTDC_BAT_BankBook = (byte)'1', + /// + /// 储蓄卡 + /// + THOST_FTDC_BAT_SavingCard = (byte)'2', + /// + /// 信用卡 + /// + THOST_FTDC_BAT_CreditCard = (byte)'3', +} +/// +/// 期货公司帐号类型类型 +/// +public enum TThostFtdcFutureAccTypeType: byte +{ + /// + /// 银行存折 + /// + THOST_FTDC_FAT_BankBook = (byte)'1', + /// + /// 储蓄卡 + /// + THOST_FTDC_FAT_SavingCard = (byte)'2', + /// + /// 信用卡 + /// + THOST_FTDC_FAT_CreditCard = (byte)'3', +} +/// +/// 接入机构状态类型 +/// +public enum TThostFtdcOrganStatusType: byte +{ + /// + /// 启用 + /// + THOST_FTDC_OS_Ready = (byte)'0', + /// + /// 签到 + /// + THOST_FTDC_OS_CheckIn = (byte)'1', + /// + /// 签退 + /// + THOST_FTDC_OS_CheckOut = (byte)'2', + /// + /// 对帐文件到达 + /// + THOST_FTDC_OS_CheckFileArrived = (byte)'3', + /// + /// 对帐 + /// + THOST_FTDC_OS_CheckDetail = (byte)'4', + /// + /// 日终清理 + /// + THOST_FTDC_OS_DayEndClean = (byte)'5', + /// + /// 注销 + /// + THOST_FTDC_OS_Invalid = (byte)'9', +} +/// +/// 建行收费模式类型 +/// +public enum TThostFtdcCCBFeeModeType: byte +{ + /// + /// 按金额扣收 + /// + THOST_FTDC_CCBFM_ByAmount = (byte)'1', + /// + /// 按月扣收 + /// + THOST_FTDC_CCBFM_ByMonth = (byte)'2', +} +/// +/// 通讯API类型类型 +/// +public enum TThostFtdcCommApiTypeType: byte +{ + /// + /// 客户端 + /// + THOST_FTDC_CAPIT_Client = (byte)'1', + /// + /// 服务端 + /// + THOST_FTDC_CAPIT_Server = (byte)'2', + /// + /// 交易系统的UserApi + /// + THOST_FTDC_CAPIT_UserApi = (byte)'3', +} +/// +/// 连接状态类型 +/// +public enum TThostFtdcLinkStatusType: byte +{ + /// + /// 已经连接 + /// + THOST_FTDC_LS_Connected = (byte)'1', + /// + /// 没有连接 + /// + THOST_FTDC_LS_Disconnected = (byte)'2', +} +/// +/// 密码核对标志类型 +/// +public enum TThostFtdcPwdFlagType: byte +{ + /// + /// 不核对 + /// + THOST_FTDC_BPWDF_NoCheck = (byte)'0', + /// + /// 明文核对 + /// + THOST_FTDC_BPWDF_BlankCheck = (byte)'1', + /// + /// 密文核对 + /// + THOST_FTDC_BPWDF_EncryptCheck = (byte)'2', +} +/// +/// 期货帐号类型类型 +/// +public enum TThostFtdcSecuAccTypeType: byte +{ + /// + /// 资金帐号 + /// + THOST_FTDC_SAT_AccountID = (byte)'1', + /// + /// 资金卡号 + /// + THOST_FTDC_SAT_CardID = (byte)'2', + /// + /// 上海股东帐号 + /// + THOST_FTDC_SAT_SHStockholderID = (byte)'3', + /// + /// 深圳股东帐号 + /// + THOST_FTDC_SAT_SZStockholderID = (byte)'4', +} +/// +/// 转账交易状态类型 +/// +public enum TThostFtdcTransferStatusType: byte +{ + /// + /// 正常 + /// + THOST_FTDC_TRFS_Normal = (byte)'0', + /// + /// 被冲正 + /// + THOST_FTDC_TRFS_Repealed = (byte)'1', +} +/// +/// 发起方类型 +/// +public enum TThostFtdcSponsorTypeType: byte +{ + /// + /// 期商 + /// + THOST_FTDC_SPTYPE_Broker = (byte)'0', + /// + /// 银行 + /// + THOST_FTDC_SPTYPE_Bank = (byte)'1', +} +/// +/// 请求响应类别类型 +/// +public enum TThostFtdcReqRspTypeType: byte +{ + /// + /// 请求 + /// + THOST_FTDC_REQRSP_Request = (byte)'0', + /// + /// 响应 + /// + THOST_FTDC_REQRSP_Response = (byte)'1', +} +/// +/// 银期转帐用户事件类型类型 +/// +public enum TThostFtdcFBTUserEventTypeType: byte +{ + /// + /// 签到 + /// + THOST_FTDC_FBTUET_SignIn = (byte)'0', + /// + /// 银行转期货 + /// + THOST_FTDC_FBTUET_FromBankToFuture = (byte)'1', + /// + /// 期货转银行 + /// + THOST_FTDC_FBTUET_FromFutureToBank = (byte)'2', + /// + /// 开户 + /// + THOST_FTDC_FBTUET_OpenAccount = (byte)'3', + /// + /// 销户 + /// + THOST_FTDC_FBTUET_CancelAccount = (byte)'4', + /// + /// 变更银行账户 + /// + THOST_FTDC_FBTUET_ChangeAccount = (byte)'5', + /// + /// 冲正银行转期货 + /// + THOST_FTDC_FBTUET_RepealFromBankToFuture = (byte)'6', + /// + /// 冲正期货转银行 + /// + THOST_FTDC_FBTUET_RepealFromFutureToBank = (byte)'7', + /// + /// 查询银行账户 + /// + THOST_FTDC_FBTUET_QueryBankAccount = (byte)'8', + /// + /// 查询期货账户 + /// + THOST_FTDC_FBTUET_QueryFutureAccount = (byte)'9', + /// + /// 签退 + /// + THOST_FTDC_FBTUET_SignOut = (byte)'A', + /// + /// 密钥同步 + /// + THOST_FTDC_FBTUET_SyncKey = (byte)'B', + /// + /// 预约开户 + /// + THOST_FTDC_FBTUET_ReserveOpenAccount = (byte)'C', + /// + /// 撤销预约开户 + /// + THOST_FTDC_FBTUET_CancelReserveOpenAccount = (byte)'D', + /// + /// 预约开户确认 + /// + THOST_FTDC_FBTUET_ReserveOpenAccountConfirm = (byte)'E', + /// + /// 其他 + /// + THOST_FTDC_FBTUET_Other = (byte)'Z', +} +/// +/// 记录操作类型类型 +/// +public enum TThostFtdcDBOperationType: byte +{ + /// + /// 插入 + /// + THOST_FTDC_DBOP_Insert = (byte)'0', + /// + /// 更新 + /// + THOST_FTDC_DBOP_Update = (byte)'1', + /// + /// 删除 + /// + THOST_FTDC_DBOP_Delete = (byte)'2', +} +/// +/// 同步标记类型 +/// +public enum TThostFtdcSyncFlagType: byte +{ + /// + /// 已同步 + /// + THOST_FTDC_SYNF_Yes = (byte)'0', + /// + /// 未同步 + /// + THOST_FTDC_SYNF_No = (byte)'1', +} +/// +/// 同步类型类型 +/// +public enum TThostFtdcSyncTypeType: byte +{ + /// + /// 一次同步 + /// + THOST_FTDC_SYNT_OneOffSync = (byte)'0', + /// + /// 定时同步 + /// + THOST_FTDC_SYNT_TimerSync = (byte)'1', + /// + /// 定时完全同步 + /// + THOST_FTDC_SYNT_TimerFullSync = (byte)'2', +} +/// +/// 换汇方向类型 +/// +public enum TThostFtdcExDirectionType: byte +{ + /// + /// 结汇 + /// + THOST_FTDC_FBEDIR_Settlement = (byte)'0', + /// + /// 售汇 + /// + THOST_FTDC_FBEDIR_Sale = (byte)'1', +} +/// +/// 换汇成功标志类型 +/// +public enum TThostFtdcFBEResultFlagType: byte +{ + /// + /// 成功 + /// + THOST_FTDC_FBERES_Success = (byte)'0', + /// + /// 账户余额不足 + /// + THOST_FTDC_FBERES_InsufficientBalance = (byte)'1', + /// + /// 交易结果未知 + /// + THOST_FTDC_FBERES_UnknownTrading = (byte)'8', + /// + /// 失败 + /// + THOST_FTDC_FBERES_Fail = (byte)'x', +} +/// +/// 换汇交易状态类型 +/// +public enum TThostFtdcFBEExchStatusType: byte +{ + /// + /// 正常 + /// + THOST_FTDC_FBEES_Normal = (byte)'0', + /// + /// 交易重发 + /// + THOST_FTDC_FBEES_ReExchange = (byte)'1', +} +/// +/// 换汇文件标志类型 +/// +public enum TThostFtdcFBEFileFlagType: byte +{ + /// + /// 数据包 + /// + THOST_FTDC_FBEFG_DataPackage = (byte)'0', + /// + /// 文件 + /// + THOST_FTDC_FBEFG_File = (byte)'1', +} +/// +/// 换汇已交易标志类型 +/// +public enum TThostFtdcFBEAlreadyTradeType: byte +{ + /// + /// 未交易 + /// + THOST_FTDC_FBEAT_NotTrade = (byte)'0', + /// + /// 已交易 + /// + THOST_FTDC_FBEAT_Trade = (byte)'1', +} +/// +/// 银期换汇用户事件类型类型 +/// +public enum TThostFtdcFBEUserEventTypeType: byte +{ + /// + /// 签到 + /// + THOST_FTDC_FBEUET_SignIn = (byte)'0', + /// + /// 换汇 + /// + THOST_FTDC_FBEUET_Exchange = (byte)'1', + /// + /// 换汇重发 + /// + THOST_FTDC_FBEUET_ReExchange = (byte)'2', + /// + /// 银行账户查询 + /// + THOST_FTDC_FBEUET_QueryBankAccount = (byte)'3', + /// + /// 换汇明细查询 + /// + THOST_FTDC_FBEUET_QueryExchDetial = (byte)'4', + /// + /// 换汇汇总查询 + /// + THOST_FTDC_FBEUET_QueryExchSummary = (byte)'5', + /// + /// 换汇汇率查询 + /// + THOST_FTDC_FBEUET_QueryExchRate = (byte)'6', + /// + /// 对账文件通知 + /// + THOST_FTDC_FBEUET_CheckBankAccount = (byte)'7', + /// + /// 签退 + /// + THOST_FTDC_FBEUET_SignOut = (byte)'8', + /// + /// 其他 + /// + THOST_FTDC_FBEUET_Other = (byte)'Z', +} +/// +/// 换汇发送标志类型 +/// +public enum TThostFtdcFBEReqFlagType: byte +{ + /// + /// 未处理 + /// + THOST_FTDC_FBERF_UnProcessed = (byte)'0', + /// + /// 等待发送 + /// + THOST_FTDC_FBERF_WaitSend = (byte)'1', + /// + /// 发送成功 + /// + THOST_FTDC_FBERF_SendSuccess = (byte)'2', + /// + /// 发送失败 + /// + THOST_FTDC_FBERF_SendFailed = (byte)'3', + /// + /// 等待重发 + /// + THOST_FTDC_FBERF_WaitReSend = (byte)'4', +} +/// +/// 风险通知类型类型 +/// +public enum TThostFtdcNotifyClassType: byte +{ + /// + /// 正常 + /// + THOST_FTDC_NC_NOERROR = (byte)'0', + /// + /// 警示 + /// + THOST_FTDC_NC_Warn = (byte)'1', + /// + /// 追保 + /// + THOST_FTDC_NC_Call = (byte)'2', + /// + /// 强平 + /// + THOST_FTDC_NC_Force = (byte)'3', + /// + /// 穿仓 + /// + THOST_FTDC_NC_CHUANCANG = (byte)'4', + /// + /// 异常 + /// + THOST_FTDC_NC_Exception = (byte)'5', +} +/// +/// 强平单类型类型 +/// +public enum TThostFtdcForceCloseTypeType: byte +{ + /// + /// 手工强平 + /// + THOST_FTDC_FCT_Manual = (byte)'0', + /// + /// 单一投资者辅助强平 + /// + THOST_FTDC_FCT_Single = (byte)'1', + /// + /// 批量投资者辅助强平 + /// + THOST_FTDC_FCT_Group = (byte)'2', +} +/// +/// 风险通知途径类型 +/// +public enum TThostFtdcRiskNotifyMethodType: byte +{ + /// + /// 系统通知 + /// + THOST_FTDC_RNM_System = (byte)'0', + /// + /// 短信通知 + /// + THOST_FTDC_RNM_SMS = (byte)'1', + /// + /// 邮件通知 + /// + THOST_FTDC_RNM_EMail = (byte)'2', + /// + /// 人工通知 + /// + THOST_FTDC_RNM_Manual = (byte)'3', +} +/// +/// 风险通知状态类型 +/// +public enum TThostFtdcRiskNotifyStatusType: byte +{ + /// + /// 未生成 + /// + THOST_FTDC_RNS_NotGen = (byte)'0', + /// + /// 已生成未发送 + /// + THOST_FTDC_RNS_Generated = (byte)'1', + /// + /// 发送失败 + /// + THOST_FTDC_RNS_SendError = (byte)'2', + /// + /// 已发送未接收 + /// + THOST_FTDC_RNS_SendOk = (byte)'3', + /// + /// 已接收未确认 + /// + THOST_FTDC_RNS_Received = (byte)'4', + /// + /// 已确认 + /// + THOST_FTDC_RNS_Confirmed = (byte)'5', +} +/// +/// 风控用户操作事件类型 +/// +public enum TThostFtdcRiskUserEventType: byte +{ + /// + /// 导出数据 + /// + THOST_FTDC_RUE_ExportData = (byte)'0', +} +/// +/// 条件单索引条件类型 +/// +public enum TThostFtdcConditionalOrderSortTypeType: byte +{ + /// + /// 使用最新价升序 + /// + THOST_FTDC_COST_LastPriceAsc = (byte)'0', + /// + /// 使用最新价降序 + /// + THOST_FTDC_COST_LastPriceDesc = (byte)'1', + /// + /// 使用卖价升序 + /// + THOST_FTDC_COST_AskPriceAsc = (byte)'2', + /// + /// 使用卖价降序 + /// + THOST_FTDC_COST_AskPriceDesc = (byte)'3', + /// + /// 使用买价升序 + /// + THOST_FTDC_COST_BidPriceAsc = (byte)'4', + /// + /// 使用买价降序 + /// + THOST_FTDC_COST_BidPriceDesc = (byte)'5', +} +/// +/// 报送状态类型 +/// +public enum TThostFtdcSendTypeType: byte +{ + /// + /// 未发送 + /// + THOST_FTDC_UOAST_NoSend = (byte)'0', + /// + /// 已发送 + /// + THOST_FTDC_UOAST_Sended = (byte)'1', + /// + /// 已生成 + /// + THOST_FTDC_UOAST_Generated = (byte)'2', + /// + /// 报送失败 + /// + THOST_FTDC_UOAST_SendFail = (byte)'3', + /// + /// 接收成功 + /// + THOST_FTDC_UOAST_Success = (byte)'4', + /// + /// 接收失败 + /// + THOST_FTDC_UOAST_Fail = (byte)'5', + /// + /// 取消报送 + /// + THOST_FTDC_UOAST_Cancel = (byte)'6', +} +/// +/// 交易编码状态类型 +/// +public enum TThostFtdcClientIDStatusType: byte +{ + /// + /// 未申请 + /// + THOST_FTDC_UOACS_NoApply = (byte)'1', + /// + /// 已提交申请 + /// + THOST_FTDC_UOACS_Submited = (byte)'2', + /// + /// 已发送申请 + /// + THOST_FTDC_UOACS_Sended = (byte)'3', + /// + /// 完成 + /// + THOST_FTDC_UOACS_Success = (byte)'4', + /// + /// 拒绝 + /// + THOST_FTDC_UOACS_Refuse = (byte)'5', + /// + /// 已撤销编码 + /// + THOST_FTDC_UOACS_Cancel = (byte)'6', +} +/// +/// 特有信息类型类型 +/// +public enum TThostFtdcQuestionTypeType: byte +{ + /// + /// 单选 + /// + THOST_FTDC_QT_Radio = (byte)'1', + /// + /// 多选 + /// + THOST_FTDC_QT_Option = (byte)'2', + /// + /// 填空 + /// + THOST_FTDC_QT_Blank = (byte)'3', +} +/// +/// 业务类型类型 +/// +public enum TThostFtdcBusinessTypeType: byte +{ + /// + /// 请求 + /// + THOST_FTDC_BT_Request = (byte)'1', + /// + /// 应答 + /// + THOST_FTDC_BT_Response = (byte)'2', + /// + /// 通知 + /// + THOST_FTDC_BT_Notice = (byte)'3', +} +/// +/// 监控中心返回码类型 +/// +public enum TThostFtdcCfmmcReturnCodeType: byte +{ + /// + /// 成功 + /// + THOST_FTDC_CRC_Success = (byte)'0', + /// + /// 该客户已经有流程在处理中 + /// + THOST_FTDC_CRC_Working = (byte)'1', + /// + /// 监控中客户资料检查失败 + /// + THOST_FTDC_CRC_InfoFail = (byte)'2', + /// + /// 监控中实名制检查失败 + /// + THOST_FTDC_CRC_IDCardFail = (byte)'3', + /// + /// 其他错误 + /// + THOST_FTDC_CRC_OtherFail = (byte)'4', +} +/// +/// 客户类型类型 +/// +public enum TThostFtdcClientTypeType: byte +{ + /// + /// 所有 + /// + THOST_FTDC_CfMMCCT_All = (byte)'0', + /// + /// 个人 + /// + THOST_FTDC_CfMMCCT_Person = (byte)'1', + /// + /// 单位 + /// + THOST_FTDC_CfMMCCT_Company = (byte)'2', + /// + /// 其他 + /// + THOST_FTDC_CfMMCCT_Other = (byte)'3', + /// + /// 特殊法人 + /// + THOST_FTDC_CfMMCCT_SpecialOrgan = (byte)'4', + /// + /// 资管户 + /// + THOST_FTDC_CfMMCCT_Asset = (byte)'5', +} +/// +/// 交易所编号类型 +/// +public enum TThostFtdcExchangeIDTypeType: byte +{ + /// + /// 上海期货交易所 + /// + THOST_FTDC_EIDT_SHFE = (byte)'S', + /// + /// 郑州商品交易所 + /// + THOST_FTDC_EIDT_CZCE = (byte)'Z', + /// + /// 大连商品交易所 + /// + THOST_FTDC_EIDT_DCE = (byte)'D', + /// + /// 中国金融期货交易所 + /// + THOST_FTDC_EIDT_CFFEX = (byte)'J', + /// + /// 上海国际能源交易中心股份有限公司 + /// + THOST_FTDC_EIDT_INE = (byte)'N', +} +/// +/// 交易编码类型类型 +/// +public enum TThostFtdcExClientIDTypeType: byte +{ + /// + /// 套保 + /// + THOST_FTDC_ECIDT_Hedge = (byte)'1', + /// + /// 套利 + /// + THOST_FTDC_ECIDT_Arbitrage = (byte)'2', + /// + /// 投机 + /// + THOST_FTDC_ECIDT_Speculation = (byte)'3', +} +/// +/// 更新状态类型 +/// +public enum TThostFtdcUpdateFlagType: byte +{ + /// + /// 未更新 + /// + THOST_FTDC_UF_NoUpdate = (byte)'0', + /// + /// 更新全部信息成功 + /// + THOST_FTDC_UF_Success = (byte)'1', + /// + /// 更新全部信息失败 + /// + THOST_FTDC_UF_Fail = (byte)'2', + /// + /// 更新交易编码成功 + /// + THOST_FTDC_UF_TCSuccess = (byte)'3', + /// + /// 更新交易编码失败 + /// + THOST_FTDC_UF_TCFail = (byte)'4', + /// + /// 已丢弃 + /// + THOST_FTDC_UF_Cancel = (byte)'5', +} +/// +/// 申请动作类型 +/// +public enum TThostFtdcApplyOperateIDType: byte +{ + /// + /// 开户 + /// + THOST_FTDC_AOID_OpenInvestor = (byte)'1', + /// + /// 修改身份信息 + /// + THOST_FTDC_AOID_ModifyIDCard = (byte)'2', + /// + /// 修改一般信息 + /// + THOST_FTDC_AOID_ModifyNoIDCard = (byte)'3', + /// + /// 申请交易编码 + /// + THOST_FTDC_AOID_ApplyTradingCode = (byte)'4', + /// + /// 撤销交易编码 + /// + THOST_FTDC_AOID_CancelTradingCode = (byte)'5', + /// + /// 销户 + /// + THOST_FTDC_AOID_CancelInvestor = (byte)'6', + /// + /// 账户休眠 + /// + THOST_FTDC_AOID_FreezeAccount = (byte)'8', + /// + /// 激活休眠账户 + /// + THOST_FTDC_AOID_ActiveFreezeAccount = (byte)'9', +} +/// +/// 申请状态类型 +/// +public enum TThostFtdcApplyStatusIDType: byte +{ + /// + /// 未补全 + /// + THOST_FTDC_ASID_NoComplete = (byte)'1', + /// + /// 已提交 + /// + THOST_FTDC_ASID_Submited = (byte)'2', + /// + /// 已审核 + /// + THOST_FTDC_ASID_Checked = (byte)'3', + /// + /// 已拒绝 + /// + THOST_FTDC_ASID_Refused = (byte)'4', + /// + /// 已删除 + /// + THOST_FTDC_ASID_Deleted = (byte)'5', +} +/// +/// 发送方式类型 +/// +public enum TThostFtdcSendMethodType: byte +{ + /// + /// 文件发送 + /// + THOST_FTDC_UOASM_ByAPI = (byte)'1', + /// + /// 电子发送 + /// + THOST_FTDC_UOASM_ByFile = (byte)'2', +} +/// +/// 操作方法类型 +/// +public enum TThostFtdcEventModeType: byte +{ + /// + /// 增加 + /// + THOST_FTDC_EvM_ADD = (byte)'1', + /// + /// 修改 + /// + THOST_FTDC_EvM_UPDATE = (byte)'2', + /// + /// 删除 + /// + THOST_FTDC_EvM_DELETE = (byte)'3', + /// + /// 复核 + /// + THOST_FTDC_EvM_CHECK = (byte)'4', + /// + /// 复制 + /// + THOST_FTDC_EvM_COPY = (byte)'5', + /// + /// 注销 + /// + THOST_FTDC_EvM_CANCEL = (byte)'6', + /// + /// 冲销 + /// + THOST_FTDC_EvM_Reverse = (byte)'7', +} +/// +/// 统一开户申请自动发送类型 +/// +public enum TThostFtdcUOAAutoSendType: byte +{ + /// + /// 自动发送并接收 + /// + THOST_FTDC_UOAA_ASR = (byte)'1', + /// + /// 自动发送,不自动接收 + /// + THOST_FTDC_UOAA_ASNR = (byte)'2', + /// + /// 不自动发送,自动接收 + /// + THOST_FTDC_UOAA_NSAR = (byte)'3', + /// + /// 不自动发送,也不自动接收 + /// + THOST_FTDC_UOAA_NSR = (byte)'4', +} +/// +/// 流程ID类型 +/// +public enum TThostFtdcFlowIDType: byte +{ + /// + /// 投资者对应投资者组设置 + /// + THOST_FTDC_EvM_InvestorGroupFlow = (byte)'1', + /// + /// 投资者手续费率设置 + /// + THOST_FTDC_EvM_InvestorRate = (byte)'2', + /// + /// 投资者手续费率模板关系设置 + /// + THOST_FTDC_EvM_InvestorCommRateModel = (byte)'3', +} +/// +/// 复核级别类型 +/// +public enum TThostFtdcCheckLevelType: byte +{ + /// + /// 零级复核 + /// + THOST_FTDC_CL_Zero = (byte)'0', + /// + /// 一级复核 + /// + THOST_FTDC_CL_One = (byte)'1', + /// + /// 二级复核 + /// + THOST_FTDC_CL_Two = (byte)'2', +} +/// +/// 复核级别类型 +/// +public enum TThostFtdcCheckStatusType: byte +{ + /// + /// 未复核 + /// + THOST_FTDC_CHS_Init = (byte)'0', + /// + /// 复核中 + /// + THOST_FTDC_CHS_Checking = (byte)'1', + /// + /// 已复核 + /// + THOST_FTDC_CHS_Checked = (byte)'2', + /// + /// 拒绝 + /// + THOST_FTDC_CHS_Refuse = (byte)'3', + /// + /// 作废 + /// + THOST_FTDC_CHS_Cancel = (byte)'4', +} +/// +/// 生效状态类型 +/// +public enum TThostFtdcUsedStatusType: byte +{ + /// + /// 未生效 + /// + THOST_FTDC_CHU_Unused = (byte)'0', + /// + /// 已生效 + /// + THOST_FTDC_CHU_Used = (byte)'1', + /// + /// 生效失败 + /// + THOST_FTDC_CHU_Fail = (byte)'2', +} +/// +/// 账户来源类型 +/// +public enum TThostFtdcBankAcountOriginType: byte +{ + /// + /// 手工录入 + /// + THOST_FTDC_BAO_ByAccProperty = (byte)'0', + /// + /// 银期转账 + /// + THOST_FTDC_BAO_ByFBTransfer = (byte)'1', +} +/// +/// 结算单月报成交汇总方式类型 +/// +public enum TThostFtdcMonthBillTradeSumType: byte +{ + /// + /// 同日同合约 + /// + THOST_FTDC_MBTS_ByInstrument = (byte)'0', + /// + /// 同日同合约同价格 + /// + THOST_FTDC_MBTS_ByDayInsPrc = (byte)'1', + /// + /// 同合约 + /// + THOST_FTDC_MBTS_ByDayIns = (byte)'2', +} +/// +/// 银期交易代码枚举类型 +/// +public enum TThostFtdcFBTTradeCodeEnumType: byte +{ +} +/// +/// 动态令牌类型类型 +/// +public enum TThostFtdcOTPTypeType: byte +{ + /// + /// 无动态令牌 + /// + THOST_FTDC_OTP_NONE = (byte)'0', + /// + /// 时间令牌 + /// + THOST_FTDC_OTP_TOTP = (byte)'1', +} +/// +/// 动态令牌状态类型 +/// +public enum TThostFtdcOTPStatusType: byte +{ + /// + /// 未使用 + /// + THOST_FTDC_OTPS_Unused = (byte)'0', + /// + /// 已使用 + /// + THOST_FTDC_OTPS_Used = (byte)'1', + /// + /// 注销 + /// + THOST_FTDC_OTPS_Disuse = (byte)'2', +} +/// +/// 经济公司用户类型类型 +/// +public enum TThostFtdcBrokerUserTypeType: byte +{ + /// + /// 投资者 + /// + THOST_FTDC_BUT_Investor = (byte)'1', + /// + /// 操作员 + /// + THOST_FTDC_BUT_BrokerUser = (byte)'2', +} +/// +/// 期货类型类型 +/// +public enum TThostFtdcFutureTypeType: byte +{ + /// + /// 商品期货 + /// + THOST_FTDC_FUTT_Commodity = (byte)'1', + /// + /// 金融期货 + /// + THOST_FTDC_FUTT_Financial = (byte)'2', +} +/// +/// 资金管理操作类型类型 +/// +public enum TThostFtdcFundEventTypeType: byte +{ + /// + /// 转账限额 + /// + THOST_FTDC_FET_Restriction = (byte)'0', + /// + /// 当日转账限额 + /// + THOST_FTDC_FET_TodayRestriction = (byte)'1', + /// + /// 期商流水 + /// + THOST_FTDC_FET_Transfer = (byte)'2', + /// + /// 资金冻结 + /// + THOST_FTDC_FET_Credit = (byte)'3', + /// + /// 投资者可提资金比例 + /// + THOST_FTDC_FET_InvestorWithdrawAlm = (byte)'4', + /// + /// 单个银行帐户转账限额 + /// + THOST_FTDC_FET_BankRestriction = (byte)'5', + /// + /// 银期签约账户 + /// + THOST_FTDC_FET_Accountregister = (byte)'6', + /// + /// 交易所出入金 + /// + THOST_FTDC_FET_ExchangeFundIO = (byte)'7', + /// + /// 投资者出入金 + /// + THOST_FTDC_FET_InvestorFundIO = (byte)'8', +} +/// +/// 资金账户来源类型 +/// +public enum TThostFtdcAccountSourceTypeType: byte +{ + /// + /// 银期同步 + /// + THOST_FTDC_AST_FBTransfer = (byte)'0', + /// + /// 手工录入 + /// + THOST_FTDC_AST_ManualEntry = (byte)'1', +} +/// +/// 交易编码来源类型 +/// +public enum TThostFtdcCodeSourceTypeType: byte +{ + /// + /// 统一开户(已规范) + /// + THOST_FTDC_CST_UnifyAccount = (byte)'0', + /// + /// 手工录入(未规范) + /// + THOST_FTDC_CST_ManualEntry = (byte)'1', +} +/// +/// 操作员范围类型 +/// +public enum TThostFtdcUserRangeType: byte +{ + /// + /// 所有 + /// + THOST_FTDC_UR_All = (byte)'0', + /// + /// 单一操作员 + /// + THOST_FTDC_UR_Single = (byte)'1', +} +/// +/// 交易统计表按客户统计方式类型 +/// +public enum TThostFtdcByGroupType: byte +{ + /// + /// 按投资者统计 + /// + THOST_FTDC_BG_Investor = (byte)'2', + /// + /// 按类统计 + /// + THOST_FTDC_BG_Group = (byte)'1', +} +/// +/// 交易统计表按范围统计方式类型 +/// +public enum TThostFtdcTradeSumStatModeType: byte +{ + /// + /// 按合约统计 + /// + THOST_FTDC_TSSM_Instrument = (byte)'1', + /// + /// 按产品统计 + /// + THOST_FTDC_TSSM_Product = (byte)'2', + /// + /// 按交易所统计 + /// + THOST_FTDC_TSSM_Exchange = (byte)'3', +} +/// +/// 日期表达式设置类型类型 +/// +public enum TThostFtdcExprSetModeType: byte +{ + /// + /// 相对已有规则设置 + /// + THOST_FTDC_ESM_Relative = (byte)'1', + /// + /// 典型设置 + /// + THOST_FTDC_ESM_Typical = (byte)'2', +} +/// +/// 投资者范围类型 +/// +public enum TThostFtdcRateInvestorRangeType: byte +{ + /// + /// 公司标准 + /// + THOST_FTDC_RIR_All = (byte)'1', + /// + /// 模板 + /// + THOST_FTDC_RIR_Model = (byte)'2', + /// + /// 单一投资者 + /// + THOST_FTDC_RIR_Single = (byte)'3', +} +/// +/// 主次用系统数据同步状态类型 +/// +public enum TThostFtdcSyncDataStatusType: byte +{ + /// + /// 未同步 + /// + THOST_FTDC_SDS_Initialize = (byte)'0', + /// + /// 同步中 + /// + THOST_FTDC_SDS_Settlementing = (byte)'1', + /// + /// 已同步 + /// + THOST_FTDC_SDS_Settlemented = (byte)'2', +} +/// +/// 成交来源类型 +/// +public enum TThostFtdcTradeSourceType: byte +{ + /// + /// 来自交易所普通回报 + /// + THOST_FTDC_TSRC_NORMAL = (byte)'0', + /// + /// 来自查询 + /// + THOST_FTDC_TSRC_QUERY = (byte)'1', +} +/// +/// 产品合约统计方式类型 +/// +public enum TThostFtdcFlexStatModeType: byte +{ + /// + /// 产品统计 + /// + THOST_FTDC_FSM_Product = (byte)'1', + /// + /// 交易所统计 + /// + THOST_FTDC_FSM_Exchange = (byte)'2', + /// + /// 统计所有 + /// + THOST_FTDC_FSM_All = (byte)'3', +} +/// +/// 投资者范围统计方式类型 +/// +public enum TThostFtdcByInvestorRangeType: byte +{ + /// + /// 属性统计 + /// + THOST_FTDC_BIR_Property = (byte)'1', + /// + /// 统计所有 + /// + THOST_FTDC_BIR_All = (byte)'2', +} +/// +/// 投资者范围类型 +/// +public enum TThostFtdcPropertyInvestorRangeType: byte +{ + /// + /// 所有 + /// + THOST_FTDC_PIR_All = (byte)'1', + /// + /// 投资者属性 + /// + THOST_FTDC_PIR_Property = (byte)'2', + /// + /// 单一投资者 + /// + THOST_FTDC_PIR_Single = (byte)'3', +} +/// +/// 文件状态类型 +/// +public enum TThostFtdcFileStatusType: byte +{ + /// + /// 未生成 + /// + THOST_FTDC_FIS_NoCreate = (byte)'0', + /// + /// 已生成 + /// + THOST_FTDC_FIS_Created = (byte)'1', + /// + /// 生成失败 + /// + THOST_FTDC_FIS_Failed = (byte)'2', +} +/// +/// 文件生成方式类型 +/// +public enum TThostFtdcFileGenStyleType: byte +{ + /// + /// 下发 + /// + THOST_FTDC_FGS_FileTransmit = (byte)'0', + /// + /// 生成 + /// + THOST_FTDC_FGS_FileGen = (byte)'1', +} +/// +/// 系统日志操作方法类型 +/// +public enum TThostFtdcSysOperModeType: byte +{ + /// + /// 增加 + /// + THOST_FTDC_SoM_Add = (byte)'1', + /// + /// 修改 + /// + THOST_FTDC_SoM_Update = (byte)'2', + /// + /// 删除 + /// + THOST_FTDC_SoM_Delete = (byte)'3', + /// + /// 复制 + /// + THOST_FTDC_SoM_Copy = (byte)'4', + /// + /// 激活 + /// + THOST_FTDC_SoM_AcTive = (byte)'5', + /// + /// 注销 + /// + THOST_FTDC_SoM_CanCel = (byte)'6', + /// + /// 重置 + /// + THOST_FTDC_SoM_ReSet = (byte)'7', +} +/// +/// 系统日志操作类型类型 +/// +public enum TThostFtdcSysOperTypeType: byte +{ + /// + /// 修改操作员密码 + /// + THOST_FTDC_SoT_UpdatePassword = (byte)'0', + /// + /// 操作员组织架构关系 + /// + THOST_FTDC_SoT_UserDepartment = (byte)'1', + /// + /// 角色管理 + /// + THOST_FTDC_SoT_RoleManager = (byte)'2', + /// + /// 角色功能设置 + /// + THOST_FTDC_SoT_RoleFunction = (byte)'3', + /// + /// 基础参数设置 + /// + THOST_FTDC_SoT_BaseParam = (byte)'4', + /// + /// 设置操作员 + /// + THOST_FTDC_SoT_SetUserID = (byte)'5', + /// + /// 用户角色设置 + /// + THOST_FTDC_SoT_SetUserRole = (byte)'6', + /// + /// 用户IP限制 + /// + THOST_FTDC_SoT_UserIpRestriction = (byte)'7', + /// + /// 组织架构管理 + /// + THOST_FTDC_SoT_DepartmentManager = (byte)'8', + /// + /// 组织架构向查询分类复制 + /// + THOST_FTDC_SoT_DepartmentCopy = (byte)'9', + /// + /// 交易编码管理 + /// + THOST_FTDC_SoT_Tradingcode = (byte)'A', + /// + /// 投资者状态维护 + /// + THOST_FTDC_SoT_InvestorStatus = (byte)'B', + /// + /// 投资者权限管理 + /// + THOST_FTDC_SoT_InvestorAuthority = (byte)'C', + /// + /// 属性设置 + /// + THOST_FTDC_SoT_PropertySet = (byte)'D', + /// + /// 重置投资者密码 + /// + THOST_FTDC_SoT_ReSetInvestorPasswd = (byte)'E', + /// + /// 投资者个性信息维护 + /// + THOST_FTDC_SoT_InvestorPersonalityInfo = (byte)'F', +} +/// +/// 上报数据查询类型类型 +/// +public enum TThostFtdcCSRCDataQueyTypeType: byte +{ + /// + /// 查询当前交易日报送的数据 + /// + THOST_FTDC_CSRCQ_Current = (byte)'0', + /// + /// 查询历史报送的代理经纪公司的数据 + /// + THOST_FTDC_CSRCQ_History = (byte)'1', +} +/// +/// 休眠状态类型 +/// +public enum TThostFtdcFreezeStatusType: byte +{ + /// + /// 活跃 + /// + THOST_FTDC_FRS_Normal = (byte)'1', + /// + /// 休眠 + /// + THOST_FTDC_FRS_Freeze = (byte)'0', +} +/// +/// 规范状态类型 +/// +public enum TThostFtdcStandardStatusType: byte +{ + /// + /// 已规范 + /// + THOST_FTDC_STST_Standard = (byte)'0', + /// + /// 未规范 + /// + THOST_FTDC_STST_NonStandard = (byte)'1', +} +/// +/// 配置类型类型 +/// +public enum TThostFtdcRightParamTypeType: byte +{ + /// + /// 休眠户 + /// + THOST_FTDC_RPT_Freeze = (byte)'1', + /// + /// 激活休眠户 + /// + THOST_FTDC_RPT_FreezeActive = (byte)'2', + /// + /// 开仓权限限制 + /// + THOST_FTDC_RPT_OpenLimit = (byte)'3', + /// + /// 解除开仓权限限制 + /// + THOST_FTDC_RPT_RelieveOpenLimit = (byte)'4', +} +/// +/// 反洗钱审核表数据状态类型 +/// +public enum TThostFtdcDataStatusType: byte +{ + /// + /// 正常 + /// + THOST_FTDC_AMLDS_Normal = (byte)'0', + /// + /// 已删除 + /// + THOST_FTDC_AMLDS_Deleted = (byte)'1', +} +/// +/// 审核状态类型 +/// +public enum TThostFtdcAMLCheckStatusType: byte +{ + /// + /// 未复核 + /// + THOST_FTDC_AMLCHS_Init = (byte)'0', + /// + /// 复核中 + /// + THOST_FTDC_AMLCHS_Checking = (byte)'1', + /// + /// 已复核 + /// + THOST_FTDC_AMLCHS_Checked = (byte)'2', + /// + /// 拒绝上报 + /// + THOST_FTDC_AMLCHS_RefuseReport = (byte)'3', +} +/// +/// 日期类型类型 +/// +public enum TThostFtdcAmlDateTypeType: byte +{ + /// + /// 检查日期 + /// + THOST_FTDC_AMLDT_DrawDay = (byte)'0', + /// + /// 发生日期 + /// + THOST_FTDC_AMLDT_TouchDay = (byte)'1', +} +/// +/// 审核级别类型 +/// +public enum TThostFtdcAmlCheckLevelType: byte +{ + /// + /// 零级审核 + /// + THOST_FTDC_AMLCL_CheckLevel0 = (byte)'0', + /// + /// 一级审核 + /// + THOST_FTDC_AMLCL_CheckLevel1 = (byte)'1', + /// + /// 二级审核 + /// + THOST_FTDC_AMLCL_CheckLevel2 = (byte)'2', + /// + /// 三级审核 + /// + THOST_FTDC_AMLCL_CheckLevel3 = (byte)'3', +} +/// +/// 导出文件类型类型 +/// +public enum TThostFtdcExportFileTypeType: byte +{ + /// + /// CSV + /// + THOST_FTDC_EFT_CSV = (byte)'0', + /// + /// Excel + /// + THOST_FTDC_EFT_EXCEL = (byte)'1', + /// + /// DBF + /// + THOST_FTDC_EFT_DBF = (byte)'2', +} +/// +/// 结算配置类型类型 +/// +public enum TThostFtdcSettleManagerTypeType: byte +{ + /// + /// 结算前准备 + /// + THOST_FTDC_SMT_Before = (byte)'1', + /// + /// 结算 + /// + THOST_FTDC_SMT_Settlement = (byte)'2', + /// + /// 结算后核对 + /// + THOST_FTDC_SMT_After = (byte)'3', + /// + /// 结算后处理 + /// + THOST_FTDC_SMT_Settlemented = (byte)'4', +} +/// +/// 结算配置等级类型 +/// +public enum TThostFtdcSettleManagerLevelType: byte +{ + /// + /// 必要 + /// + THOST_FTDC_SML_Must = (byte)'1', + /// + /// 警告 + /// + THOST_FTDC_SML_Alarm = (byte)'2', + /// + /// 提示 + /// + THOST_FTDC_SML_Prompt = (byte)'3', + /// + /// 不检查 + /// + THOST_FTDC_SML_Ignore = (byte)'4', +} +/// +/// 模块分组类型 +/// +public enum TThostFtdcSettleManagerGroupType: byte +{ + /// + /// 交易所核对 + /// + THOST_FTDC_SMG_Exhcange = (byte)'1', + /// + /// 内部核对 + /// + THOST_FTDC_SMG_ASP = (byte)'2', + /// + /// 上报数据核对 + /// + THOST_FTDC_SMG_CSRC = (byte)'3', +} +/// +/// 保值额度使用类型类型 +/// +public enum TThostFtdcLimitUseTypeType: byte +{ + /// + /// 可重复使用 + /// + THOST_FTDC_LUT_Repeatable = (byte)'1', + /// + /// 不可重复使用 + /// + THOST_FTDC_LUT_Unrepeatable = (byte)'2', +} +/// +/// 数据来源类型 +/// +public enum TThostFtdcDataResourceType: byte +{ + /// + /// 本系统 + /// + THOST_FTDC_DAR_Settle = (byte)'1', + /// + /// 交易所 + /// + THOST_FTDC_DAR_Exchange = (byte)'2', + /// + /// 报送数据 + /// + THOST_FTDC_DAR_CSRC = (byte)'3', +} +/// +/// 保证金类型类型 +/// +public enum TThostFtdcMarginTypeType: byte +{ + /// + /// 交易所保证金率 + /// + THOST_FTDC_MGT_ExchMarginRate = (byte)'0', + /// + /// 投资者保证金率 + /// + THOST_FTDC_MGT_InstrMarginRate = (byte)'1', + /// + /// 投资者交易保证金率 + /// + THOST_FTDC_MGT_InstrMarginRateTrade = (byte)'2', +} +/// +/// 生效类型类型 +/// +public enum TThostFtdcActiveTypeType: byte +{ + /// + /// 仅当日生效 + /// + THOST_FTDC_ACT_Intraday = (byte)'1', + /// + /// 长期生效 + /// + THOST_FTDC_ACT_Long = (byte)'2', +} +/// +/// 冲突保证金率类型类型 +/// +public enum TThostFtdcMarginRateTypeType: byte +{ + /// + /// 交易所保证金率 + /// + THOST_FTDC_MRT_Exchange = (byte)'1', + /// + /// 投资者保证金率 + /// + THOST_FTDC_MRT_Investor = (byte)'2', + /// + /// 投资者交易保证金率 + /// + THOST_FTDC_MRT_InvestorTrade = (byte)'3', +} +/// +/// 备份数据状态类型 +/// +public enum TThostFtdcBackUpStatusType: byte +{ + /// + /// 未生成备份数据 + /// + THOST_FTDC_BUS_UnBak = (byte)'0', + /// + /// 备份数据生成中 + /// + THOST_FTDC_BUS_BakUp = (byte)'1', + /// + /// 已生成备份数据 + /// + THOST_FTDC_BUS_BakUped = (byte)'2', + /// + /// 备份数据失败 + /// + THOST_FTDC_BUS_BakFail = (byte)'3', +} +/// +/// 结算初始化状态类型 +/// +public enum TThostFtdcInitSettlementType: byte +{ + /// + /// 结算初始化未开始 + /// + THOST_FTDC_SIS_UnInitialize = (byte)'0', + /// + /// 结算初始化中 + /// + THOST_FTDC_SIS_Initialize = (byte)'1', + /// + /// 结算初始化完成 + /// + THOST_FTDC_SIS_Initialized = (byte)'2', +} +/// +/// 报表数据生成状态类型 +/// +public enum TThostFtdcReportStatusType: byte +{ + /// + /// 未生成报表数据 + /// + THOST_FTDC_SRS_NoCreate = (byte)'0', + /// + /// 报表数据生成中 + /// + THOST_FTDC_SRS_Create = (byte)'1', + /// + /// 已生成报表数据 + /// + THOST_FTDC_SRS_Created = (byte)'2', + /// + /// 生成报表数据失败 + /// + THOST_FTDC_SRS_CreateFail = (byte)'3', +} +/// +/// 数据归档状态类型 +/// +public enum TThostFtdcSaveStatusType: byte +{ + /// + /// 归档未完成 + /// + THOST_FTDC_SSS_UnSaveData = (byte)'0', + /// + /// 归档完成 + /// + THOST_FTDC_SSS_SaveDatad = (byte)'1', +} +/// +/// 结算确认数据归档状态类型 +/// +public enum TThostFtdcSettArchiveStatusType: byte +{ + /// + /// 未归档数据 + /// + THOST_FTDC_SAS_UnArchived = (byte)'0', + /// + /// 数据归档中 + /// + THOST_FTDC_SAS_Archiving = (byte)'1', + /// + /// 已归档数据 + /// + THOST_FTDC_SAS_Archived = (byte)'2', + /// + /// 归档数据失败 + /// + THOST_FTDC_SAS_ArchiveFail = (byte)'3', +} +/// +/// CTP交易系统类型类型 +/// +public enum TThostFtdcCTPTypeType: byte +{ + /// + /// 未知类型 + /// + THOST_FTDC_CTPT_Unkown = (byte)'0', + /// + /// 主中心 + /// + THOST_FTDC_CTPT_MainCenter = (byte)'1', + /// + /// 备中心 + /// + THOST_FTDC_CTPT_BackUp = (byte)'2', +} +/// +/// 平仓处理类型类型 +/// +public enum TThostFtdcCloseDealTypeType: byte +{ + /// + /// 正常 + /// + THOST_FTDC_CDT_Normal = (byte)'0', + /// + /// 投机平仓优先 + /// + THOST_FTDC_CDT_SpecFirst = (byte)'1', +} +/// +/// 货币质押资金可用范围类型 +/// +public enum TThostFtdcMortgageFundUseRangeType: byte +{ + /// + /// 不能使用 + /// + THOST_FTDC_MFUR_None = (byte)'0', + /// + /// 用于保证金 + /// + THOST_FTDC_MFUR_Margin = (byte)'1', + /// + /// 用于手续费、盈亏、保证金 + /// + THOST_FTDC_MFUR_All = (byte)'2', + /// + /// 人民币方案3 + /// + THOST_FTDC_MFUR_CNY3 = (byte)'3', +} +/// +/// 特殊产品类型类型 +/// +public enum TThostFtdcSpecProductTypeType: byte +{ + /// + /// 郑商所套保产品 + /// + THOST_FTDC_SPT_CzceHedge = (byte)'1', + /// + /// 货币质押产品 + /// + THOST_FTDC_SPT_IneForeignCurrency = (byte)'2', + /// + /// 大连短线开平仓产品 + /// + THOST_FTDC_SPT_DceOpenClose = (byte)'3', +} +/// +/// 货币质押类型类型 +/// +public enum TThostFtdcFundMortgageTypeType: byte +{ + /// + /// 质押 + /// + THOST_FTDC_FMT_Mortgage = (byte)'1', + /// + /// 解质 + /// + THOST_FTDC_FMT_Redemption = (byte)'2', +} +/// +/// 投资者账户结算参数代码类型 +/// +public enum TThostFtdcAccountSettlementParamIDType: byte +{ + /// + /// 基础保证金 + /// + THOST_FTDC_ASPI_BaseMargin = (byte)'1', + /// + /// 最低权益标准 + /// + THOST_FTDC_ASPI_LowestInterest = (byte)'2', +} +/// +/// 货币质押方向类型 +/// +public enum TThostFtdcFundMortDirectionType: byte +{ + /// + /// 货币质入 + /// + THOST_FTDC_FMD_In = (byte)'1', + /// + /// 货币质出 + /// + THOST_FTDC_FMD_Out = (byte)'2', +} +/// +/// 换汇类别类型 +/// +public enum TThostFtdcBusinessClassType: byte +{ + /// + /// 盈利 + /// + THOST_FTDC_BT_Profit = (byte)'0', + /// + /// 亏损 + /// + THOST_FTDC_BT_Loss = (byte)'1', + /// + /// 其他 + /// + THOST_FTDC_BT_Other = (byte)'Z', +} +/// +/// 换汇数据来源类型 +/// +public enum TThostFtdcSwapSourceTypeType: byte +{ + /// + /// 手工 + /// + THOST_FTDC_SST_Manual = (byte)'0', + /// + /// 自动生成 + /// + THOST_FTDC_SST_Automatic = (byte)'1', +} +/// +/// 换汇类型类型 +/// +public enum TThostFtdcCurrExDirectionType: byte +{ + /// + /// 结汇 + /// + THOST_FTDC_CED_Settlement = (byte)'0', + /// + /// 售汇 + /// + THOST_FTDC_CED_Sale = (byte)'1', +} +/// +/// 申请状态类型 +/// +public enum TThostFtdcCurrencySwapStatusType: byte +{ + /// + /// 已录入 + /// + THOST_FTDC_CSS_Entry = (byte)'1', + /// + /// 已审核 + /// + THOST_FTDC_CSS_Approve = (byte)'2', + /// + /// 已拒绝 + /// + THOST_FTDC_CSS_Refuse = (byte)'3', + /// + /// 已撤销 + /// + THOST_FTDC_CSS_Revoke = (byte)'4', + /// + /// 已发送 + /// + THOST_FTDC_CSS_Send = (byte)'5', + /// + /// 换汇成功 + /// + THOST_FTDC_CSS_Success = (byte)'6', + /// + /// 换汇失败 + /// + THOST_FTDC_CSS_Failure = (byte)'7', +} +/// +/// 换汇发送标志类型 +/// +public enum TThostFtdcReqFlagType: byte +{ + /// + /// 未发送 + /// + THOST_FTDC_REQF_NoSend = (byte)'0', + /// + /// 发送成功 + /// + THOST_FTDC_REQF_SendSuccess = (byte)'1', + /// + /// 发送失败 + /// + THOST_FTDC_REQF_SendFailed = (byte)'2', + /// + /// 等待重发 + /// + THOST_FTDC_REQF_WaitReSend = (byte)'3', +} +/// +/// 换汇返回成功标志类型 +/// +public enum TThostFtdcResFlagType: byte +{ + /// + /// 成功 + /// + THOST_FTDC_RESF_Success = (byte)'0', + /// + /// 账户余额不足 + /// + THOST_FTDC_RESF_InsuffiCient = (byte)'1', + /// + /// 交易结果未知 + /// + THOST_FTDC_RESF_UnKnown = (byte)'8', +} +/// +/// 修改状态类型 +/// +public enum TThostFtdcExStatusType: byte +{ + /// + /// 修改前 + /// + THOST_FTDC_EXS_Before = (byte)'0', + /// + /// 修改后 + /// + THOST_FTDC_EXS_After = (byte)'1', +} +/// +/// 开户客户地域类型 +/// +public enum TThostFtdcClientRegionType: byte +{ + /// + /// 国内客户 + /// + THOST_FTDC_CR_Domestic = (byte)'1', + /// + /// 港澳台客户 + /// + THOST_FTDC_CR_GMT = (byte)'2', + /// + /// 国外客户 + /// + THOST_FTDC_CR_Foreign = (byte)'3', +} +/// +/// 是否有董事会类型 +/// +public enum TThostFtdcHasBoardType: byte +{ + /// + /// 没有 + /// + THOST_FTDC_HB_No = (byte)'0', + /// + /// 有 + /// + THOST_FTDC_HB_Yes = (byte)'1', +} +/// +/// 启动模式类型 +/// +public enum TThostFtdcStartModeType: byte +{ + /// + /// 正常 + /// + THOST_FTDC_SM_Normal = (byte)'1', + /// + /// 应急 + /// + THOST_FTDC_SM_Emerge = (byte)'2', + /// + /// 恢复 + /// + THOST_FTDC_SM_Restore = (byte)'3', +} +/// +/// 模型类型类型 +/// +public enum TThostFtdcTemplateTypeType: byte +{ + /// + /// 全量 + /// + THOST_FTDC_TPT_Full = (byte)'1', + /// + /// 增量 + /// + THOST_FTDC_TPT_Increment = (byte)'2', + /// + /// 备份 + /// + THOST_FTDC_TPT_BackUp = (byte)'3', +} +/// +/// 登录模式类型 +/// +public enum TThostFtdcLoginModeType: byte +{ + /// + /// 交易 + /// + THOST_FTDC_LM_Trade = (byte)'0', + /// + /// 转账 + /// + THOST_FTDC_LM_Transfer = (byte)'1', +} +/// +/// 日历提示类型类型 +/// +public enum TThostFtdcPromptTypeType: byte +{ + /// + /// 合约上下市 + /// + THOST_FTDC_CPT_Instrument = (byte)'1', + /// + /// 保证金分段生效 + /// + THOST_FTDC_CPT_Margin = (byte)'2', +} +/// +/// 是否有托管人类型 +/// +public enum TThostFtdcHasTrusteeType: byte +{ + /// + /// 有 + /// + THOST_FTDC_HT_Yes = (byte)'1', + /// + /// 没有 + /// + THOST_FTDC_HT_No = (byte)'0', +} +/// +/// 机构类型类型 +/// +public enum TThostFtdcAmTypeType: byte +{ + /// + /// 银行 + /// + THOST_FTDC_AMT_Bank = (byte)'1', + /// + /// 证券公司 + /// + THOST_FTDC_AMT_Securities = (byte)'2', + /// + /// 基金公司 + /// + THOST_FTDC_AMT_Fund = (byte)'3', + /// + /// 保险公司 + /// + THOST_FTDC_AMT_Insurance = (byte)'4', + /// + /// 信托公司 + /// + THOST_FTDC_AMT_Trust = (byte)'5', + /// + /// 其他 + /// + THOST_FTDC_AMT_Other = (byte)'9', +} +/// +/// 出入金类型类型 +/// +public enum TThostFtdcCSRCFundIOTypeType: byte +{ + /// + /// 出入金 + /// + THOST_FTDC_CFIOT_FundIO = (byte)'0', + /// + /// 银期换汇 + /// + THOST_FTDC_CFIOT_SwapCurrency = (byte)'1', +} +/// +/// 结算账户类型类型 +/// +public enum TThostFtdcCusAccountTypeType: byte +{ + /// + /// 期货结算账户 + /// + THOST_FTDC_CAT_Futures = (byte)'1', + /// + /// 纯期货资管业务下的资管结算账户 + /// + THOST_FTDC_CAT_AssetmgrFuture = (byte)'2', + /// + /// 综合类资管业务下的期货资管托管账户 + /// + THOST_FTDC_CAT_AssetmgrTrustee = (byte)'3', + /// + /// 综合类资管业务下的资金中转账户 + /// + THOST_FTDC_CAT_AssetmgrTransfer = (byte)'4', +} +/// +/// 通知语言类型类型 +/// +public enum TThostFtdcLanguageTypeType: byte +{ + /// + /// 中文 + /// + THOST_FTDC_LT_Chinese = (byte)'1', + /// + /// 英文 + /// + THOST_FTDC_LT_English = (byte)'2', +} +/// +/// 资产管理客户类型类型 +/// +public enum TThostFtdcAssetmgrClientTypeType: byte +{ + /// + /// 个人资管客户 + /// + THOST_FTDC_AMCT_Person = (byte)'1', + /// + /// 单位资管客户 + /// + THOST_FTDC_AMCT_Organ = (byte)'2', + /// + /// 特殊单位资管客户 + /// + THOST_FTDC_AMCT_SpecialOrgan = (byte)'4', +} +/// +/// 投资类型类型 +/// +public enum TThostFtdcAssetmgrTypeType: byte +{ + /// + /// 期货类 + /// + THOST_FTDC_ASST_Futures = (byte)'3', + /// + /// 综合类 + /// + THOST_FTDC_ASST_SpecialOrgan = (byte)'4', +} +/// +/// 合约比较类型类型 +/// +public enum TThostFtdcCheckInstrTypeType: byte +{ + /// + /// 合约交易所不存在 + /// + THOST_FTDC_CIT_HasExch = (byte)'0', + /// + /// 合约本系统不存在 + /// + THOST_FTDC_CIT_HasATP = (byte)'1', + /// + /// 合约比较不一致 + /// + THOST_FTDC_CIT_HasDiff = (byte)'2', +} +/// +/// 交割类型类型 +/// +public enum TThostFtdcDeliveryTypeType: byte +{ + /// + /// 手工交割 + /// + THOST_FTDC_DT_HandDeliv = (byte)'1', + /// + /// 到期交割 + /// + THOST_FTDC_DT_PersonDeliv = (byte)'2', +} +/// +/// 大额单边保证金算法类型 +/// +public enum TThostFtdcMaxMarginSideAlgorithmType: byte +{ + /// + /// 不使用大额单边保证金算法 + /// + THOST_FTDC_MMSA_NO = (byte)'0', + /// + /// 使用大额单边保证金算法 + /// + THOST_FTDC_MMSA_YES = (byte)'1', +} +/// +/// 资产管理客户类型类型 +/// +public enum TThostFtdcDAClientTypeType: byte +{ + /// + /// 自然人 + /// + THOST_FTDC_CACT_Person = (byte)'0', + /// + /// 法人 + /// + THOST_FTDC_CACT_Company = (byte)'1', + /// + /// 其他 + /// + THOST_FTDC_CACT_Other = (byte)'2', +} +/// +/// 投资类型类型 +/// +public enum TThostFtdcUOAAssetmgrTypeType: byte +{ + /// + /// 期货类 + /// + THOST_FTDC_UOAAT_Futures = (byte)'1', + /// + /// 综合类 + /// + THOST_FTDC_UOAAT_SpecialOrgan = (byte)'2', +} +/// +/// 买卖方向类型 +/// +public enum TThostFtdcDirectionEnType: byte +{ + /// + /// Buy + /// + THOST_FTDC_DEN_Buy = (byte)'0', + /// + /// Sell + /// + THOST_FTDC_DEN_Sell = (byte)'1', +} +/// +/// 开平标志类型 +/// +public enum TThostFtdcOffsetFlagEnType: byte +{ + /// + /// Position Opening + /// + THOST_FTDC_OFEN_Open = (byte)'0', + /// + /// Position Close + /// + THOST_FTDC_OFEN_Close = (byte)'1', + /// + /// Forced Liquidation + /// + THOST_FTDC_OFEN_ForceClose = (byte)'2', + /// + /// Close Today + /// + THOST_FTDC_OFEN_CloseToday = (byte)'3', + /// + /// Close Prev. + /// + THOST_FTDC_OFEN_CloseYesterday = (byte)'4', + /// + /// Forced Reduction + /// + THOST_FTDC_OFEN_ForceOff = (byte)'5', + /// + /// Local Forced Liquidation + /// + THOST_FTDC_OFEN_LocalForceClose = (byte)'6', +} +/// +/// 投机套保标志类型 +/// +public enum TThostFtdcHedgeFlagEnType: byte +{ + /// + /// Speculation + /// + THOST_FTDC_HFEN_Speculation = (byte)'1', + /// + /// Arbitrage + /// + THOST_FTDC_HFEN_Arbitrage = (byte)'2', + /// + /// Hedge + /// + THOST_FTDC_HFEN_Hedge = (byte)'3', +} +/// +/// 出入金类型类型 +/// +public enum TThostFtdcFundIOTypeEnType: byte +{ + /// + /// Deposit/Withdrawal + /// + THOST_FTDC_FIOTEN_FundIO = (byte)'1', + /// + /// Bank-Futures Transfer + /// + THOST_FTDC_FIOTEN_Transfer = (byte)'2', + /// + /// Bank-Futures FX Exchange + /// + THOST_FTDC_FIOTEN_SwapCurrency = (byte)'3', +} +/// +/// 资金类型类型 +/// +public enum TThostFtdcFundTypeEnType: byte +{ + /// + /// Bank Deposit + /// + THOST_FTDC_FTEN_Deposite = (byte)'1', + /// + /// Payment/Fee + /// + THOST_FTDC_FTEN_ItemFund = (byte)'2', + /// + /// Brokerage Adj + /// + THOST_FTDC_FTEN_Company = (byte)'3', + /// + /// Internal Transfer + /// + THOST_FTDC_FTEN_InnerTransfer = (byte)'4', +} +/// +/// 出入金方向类型 +/// +public enum TThostFtdcFundDirectionEnType: byte +{ + /// + /// Deposit + /// + THOST_FTDC_FDEN_In = (byte)'1', + /// + /// Withdrawal + /// + THOST_FTDC_FDEN_Out = (byte)'2', +} +/// +/// 货币质押方向类型 +/// +public enum TThostFtdcFundMortDirectionEnType: byte +{ + /// + /// Pledge + /// + THOST_FTDC_FMDEN_In = (byte)'1', + /// + /// Redemption + /// + THOST_FTDC_FMDEN_Out = (byte)'2', +} +/// +/// 期权类型类型 +/// +public enum TThostFtdcOptionsTypeType: byte +{ + /// + /// 看涨 + /// + THOST_FTDC_CP_CallOptions = (byte)'1', + /// + /// 看跌 + /// + THOST_FTDC_CP_PutOptions = (byte)'2', +} +/// +/// 执行方式类型 +/// +public enum TThostFtdcStrikeModeType: byte +{ + /// + /// 欧式 + /// + THOST_FTDC_STM_Continental = (byte)'0', + /// + /// 美式 + /// + THOST_FTDC_STM_American = (byte)'1', + /// + /// 百慕大 + /// + THOST_FTDC_STM_Bermuda = (byte)'2', +} +/// +/// 执行类型类型 +/// +public enum TThostFtdcStrikeTypeType: byte +{ + /// + /// 自身对冲 + /// + THOST_FTDC_STT_Hedge = (byte)'0', + /// + /// 匹配执行 + /// + THOST_FTDC_STT_Match = (byte)'1', +} +/// +/// 中金所期权放弃执行申请类型类型 +/// +public enum TThostFtdcApplyTypeType: byte +{ + /// + /// 不执行数量 + /// + THOST_FTDC_APPT_NotStrikeNum = (byte)'4', +} +/// +/// 放弃执行申请数据来源类型 +/// +public enum TThostFtdcGiveUpDataSourceType: byte +{ + /// + /// 系统生成 + /// + THOST_FTDC_GUDS_Gen = (byte)'0', + /// + /// 手工添加 + /// + THOST_FTDC_GUDS_Hand = (byte)'1', +} +/// +/// 执行结果类型 +/// +public enum TThostFtdcExecResultType: byte +{ + /// + /// 没有执行 + /// + THOST_FTDC_OER_NoExec = (byte)'n', + /// + /// 已经取消 + /// + THOST_FTDC_OER_Canceled = (byte)'c', + /// + /// 执行成功 + /// + THOST_FTDC_OER_OK = (byte)'0', + /// + /// 期权持仓不够 + /// + THOST_FTDC_OER_NoPosition = (byte)'1', + /// + /// 资金不够 + /// + THOST_FTDC_OER_NoDeposit = (byte)'2', + /// + /// 会员不存在 + /// + THOST_FTDC_OER_NoParticipant = (byte)'3', + /// + /// 客户不存在 + /// + THOST_FTDC_OER_NoClient = (byte)'4', + /// + /// 合约不存在 + /// + THOST_FTDC_OER_NoInstrument = (byte)'6', + /// + /// 没有执行权限 + /// + THOST_FTDC_OER_NoRight = (byte)'7', + /// + /// 不合理的数量 + /// + THOST_FTDC_OER_InvalidVolume = (byte)'8', + /// + /// 没有足够的历史成交 + /// + THOST_FTDC_OER_NoEnoughHistoryTrade = (byte)'9', + /// + /// 未知 + /// + THOST_FTDC_OER_Unknown = (byte)'a', +} +/// +/// 组合类型类型 +/// +public enum TThostFtdcCombinationTypeType: byte +{ + /// + /// 期货组合 + /// + THOST_FTDC_COMBT_Future = (byte)'0', + /// + /// 垂直价差BUL + /// + THOST_FTDC_COMBT_BUL = (byte)'1', + /// + /// 垂直价差BER + /// + THOST_FTDC_COMBT_BER = (byte)'2', + /// + /// 跨式组合 + /// + THOST_FTDC_COMBT_STD = (byte)'3', + /// + /// 宽跨式组合 + /// + THOST_FTDC_COMBT_STG = (byte)'4', + /// + /// 备兑组合 + /// + THOST_FTDC_COMBT_PRT = (byte)'5', + /// + /// 时间价差组合 + /// + THOST_FTDC_COMBT_CAS = (byte)'6', + /// + /// 期权对锁组合 + /// + THOST_FTDC_COMBT_OPL = (byte)'7', + /// + /// 买备兑组合 + /// + THOST_FTDC_COMBT_BFO = (byte)'8', + /// + /// 买入期权垂直价差组合 + /// + THOST_FTDC_COMBT_BLS = (byte)'9', + /// + /// 卖出期权垂直价差组合 + /// + THOST_FTDC_COMBT_BES = (byte)'a', +} +/// +/// 组合类型类型 +/// +public enum TThostFtdcDceCombinationTypeType: byte +{ + /// + /// 期货对锁组合 + /// + THOST_FTDC_DCECOMBT_SPL = (byte)'0', + /// + /// 期权对锁组合 + /// + THOST_FTDC_DCECOMBT_OPL = (byte)'1', + /// + /// 期货跨期组合 + /// + THOST_FTDC_DCECOMBT_SP = (byte)'2', + /// + /// 期货跨品种组合 + /// + THOST_FTDC_DCECOMBT_SPC = (byte)'3', + /// + /// 买入期权垂直价差组合 + /// + THOST_FTDC_DCECOMBT_BLS = (byte)'4', + /// + /// 卖出期权垂直价差组合 + /// + THOST_FTDC_DCECOMBT_BES = (byte)'5', + /// + /// 期权日历价差组合 + /// + THOST_FTDC_DCECOMBT_CAS = (byte)'6', + /// + /// 期权跨式组合 + /// + THOST_FTDC_DCECOMBT_STD = (byte)'7', + /// + /// 期权宽跨式组合 + /// + THOST_FTDC_DCECOMBT_STG = (byte)'8', + /// + /// 买入期货期权组合 + /// + THOST_FTDC_DCECOMBT_BFO = (byte)'9', + /// + /// 卖出期货期权组合 + /// + THOST_FTDC_DCECOMBT_SFO = (byte)'a', +} +/// +/// 期权权利金价格类型类型 +/// +public enum TThostFtdcOptionRoyaltyPriceTypeType: byte +{ + /// + /// 昨结算价 + /// + THOST_FTDC_ORPT_PreSettlementPrice = (byte)'1', + /// + /// 开仓价 + /// + THOST_FTDC_ORPT_OpenPrice = (byte)'4', + /// + /// 最新价与昨结算价较大值 + /// + THOST_FTDC_ORPT_MaxPreSettlementPrice = (byte)'5', +} +/// +/// 权益算法类型 +/// +public enum TThostFtdcBalanceAlgorithmType: byte +{ + /// + /// 不计算期权市值盈亏 + /// + THOST_FTDC_BLAG_Default = (byte)'1', + /// + /// 计算期权市值亏损 + /// + THOST_FTDC_BLAG_IncludeOptValLost = (byte)'2', +} +/// +/// 执行类型类型 +/// +public enum TThostFtdcActionTypeType: byte +{ + /// + /// 执行 + /// + THOST_FTDC_ACTP_Exec = (byte)'1', + /// + /// 放弃 + /// + THOST_FTDC_ACTP_Abandon = (byte)'2', +} +/// +/// 询价状态类型 +/// +public enum TThostFtdcForQuoteStatusType: byte +{ + /// + /// 已经提交 + /// + THOST_FTDC_FQST_Submitted = (byte)'a', + /// + /// 已经接受 + /// + THOST_FTDC_FQST_Accepted = (byte)'b', + /// + /// 已经被拒绝 + /// + THOST_FTDC_FQST_Rejected = (byte)'c', +} +/// +/// 取值方式类型 +/// +public enum TThostFtdcValueMethodType: byte +{ + /// + /// 按绝对值 + /// + THOST_FTDC_VM_Absolute = (byte)'0', + /// + /// 按比率 + /// + THOST_FTDC_VM_Ratio = (byte)'1', +} +/// +/// 期权行权后是否保留期货头寸的标记类型 +/// +public enum TThostFtdcExecOrderPositionFlagType: byte +{ + /// + /// 保留 + /// + THOST_FTDC_EOPF_Reserve = (byte)'0', + /// + /// 不保留 + /// + THOST_FTDC_EOPF_UnReserve = (byte)'1', +} +/// +/// 期权行权后生成的头寸是否自动平仓类型 +/// +public enum TThostFtdcExecOrderCloseFlagType: byte +{ + /// + /// 自动平仓 + /// + THOST_FTDC_EOCF_AutoClose = (byte)'0', + /// + /// 免于自动平仓 + /// + THOST_FTDC_EOCF_NotToClose = (byte)'1', +} +/// +/// 产品类型类型 +/// +public enum TThostFtdcProductTypeType: byte +{ + /// + /// 期货 + /// + THOST_FTDC_PTE_Futures = (byte)'1', + /// + /// 期权 + /// + THOST_FTDC_PTE_Options = (byte)'2', +} +/// +/// 郑商所结算文件名类型 +/// +public enum TThostFtdcCZCEUploadFileNameType: byte +{ + /// + /// ^\d{8}_zz_\d{4} + /// + THOST_FTDC_CUFN_CUFN_O = (byte)'O', + /// + /// ^\d{8}成交表 + /// + THOST_FTDC_CUFN_CUFN_T = (byte)'T', + /// + /// ^\d{8}单腿持仓表new + /// + THOST_FTDC_CUFN_CUFN_P = (byte)'P', + /// + /// ^\d{8}非平仓了结表 + /// + THOST_FTDC_CUFN_CUFN_N = (byte)'N', + /// + /// ^\d{8}平仓表 + /// + THOST_FTDC_CUFN_CUFN_L = (byte)'L', + /// + /// ^\d{8}资金表 + /// + THOST_FTDC_CUFN_CUFN_F = (byte)'F', + /// + /// ^\d{8}组合持仓表 + /// + THOST_FTDC_CUFN_CUFN_C = (byte)'C', + /// + /// ^\d{8}保证金参数表 + /// + THOST_FTDC_CUFN_CUFN_M = (byte)'M', +} +/// +/// 大商所结算文件名类型 +/// +public enum TThostFtdcDCEUploadFileNameType: byte +{ + /// + /// ^\d{8}_dl_\d{3} + /// + THOST_FTDC_DUFN_DUFN_O = (byte)'O', + /// + /// ^\d{8}_成交表 + /// + THOST_FTDC_DUFN_DUFN_T = (byte)'T', + /// + /// ^\d{8}_持仓表 + /// + THOST_FTDC_DUFN_DUFN_P = (byte)'P', + /// + /// ^\d{8}_资金结算表 + /// + THOST_FTDC_DUFN_DUFN_F = (byte)'F', + /// + /// ^\d{8}_优惠组合持仓明细表 + /// + THOST_FTDC_DUFN_DUFN_C = (byte)'C', + /// + /// ^\d{8}_持仓明细表 + /// + THOST_FTDC_DUFN_DUFN_D = (byte)'D', + /// + /// ^\d{8}_保证金参数表 + /// + THOST_FTDC_DUFN_DUFN_M = (byte)'M', + /// + /// ^\d{8}_期权执行表 + /// + THOST_FTDC_DUFN_DUFN_S = (byte)'S', +} +/// +/// 上期所结算文件名类型 +/// +public enum TThostFtdcSHFEUploadFileNameType: byte +{ + /// + /// ^\d{4}_\d{8}_\d{8}_DailyFundChg + /// + THOST_FTDC_SUFN_SUFN_O = (byte)'O', + /// + /// ^\d{4}_\d{8}_\d{8}_Trade + /// + THOST_FTDC_SUFN_SUFN_T = (byte)'T', + /// + /// ^\d{4}_\d{8}_\d{8}_SettlementDetail + /// + THOST_FTDC_SUFN_SUFN_P = (byte)'P', + /// + /// ^\d{4}_\d{8}_\d{8}_Capital + /// + THOST_FTDC_SUFN_SUFN_F = (byte)'F', +} +/// +/// 中金所结算文件名类型 +/// +public enum TThostFtdcCFFEXUploadFileNameType: byte +{ + /// + /// ^\d{4}_SG\d{1}_\d{8}_\d{1}_Trade + /// + THOST_FTDC_CFUFN_SUFN_T = (byte)'T', + /// + /// ^\d{4}_SG\d{1}_\d{8}_\d{1}_SettlementDetail + /// + THOST_FTDC_CFUFN_SUFN_P = (byte)'P', + /// + /// ^\d{4}_SG\d{1}_\d{8}_\d{1}_Capital + /// + THOST_FTDC_CFUFN_SUFN_F = (byte)'F', + /// + /// ^\d{4}_SG\d{1}_\d{8}_\d{1}_OptionExec + /// + THOST_FTDC_CFUFN_SUFN_S = (byte)'S', +} +/// +/// 组合指令方向类型 +/// +public enum TThostFtdcCombDirectionType: byte +{ + /// + /// 申请组合 + /// + THOST_FTDC_CMDR_Comb = (byte)'0', + /// + /// 申请拆分 + /// + THOST_FTDC_CMDR_UnComb = (byte)'1', + /// + /// 操作员删组合单 + /// + THOST_FTDC_CMDR_DelComb = (byte)'2', +} +/// +/// 行权偏移类型类型 +/// +public enum TThostFtdcStrikeOffsetTypeType: byte +{ + /// + /// 实值额 + /// + THOST_FTDC_STOV_RealValue = (byte)'1', + /// + /// 盈利额 + /// + THOST_FTDC_STOV_ProfitValue = (byte)'2', + /// + /// 实值比例 + /// + THOST_FTDC_STOV_RealRatio = (byte)'3', + /// + /// 盈利比例 + /// + THOST_FTDC_STOV_ProfitRatio = (byte)'4', +} +/// +/// 预约开户状态类型 +/// +public enum TThostFtdcReserveOpenAccStasType: byte +{ + /// + /// 等待处理中 + /// + THOST_FTDC_ROAST_Processing = (byte)'0', + /// + /// 已撤销 + /// + THOST_FTDC_ROAST_Cancelled = (byte)'1', + /// + /// 已开户 + /// + THOST_FTDC_ROAST_Opened = (byte)'2', + /// + /// 无效请求 + /// + THOST_FTDC_ROAST_Invalid = (byte)'3', +} +/// +/// 弱密码来源类型 +/// +public enum TThostFtdcWeakPasswordSourceType: byte +{ + /// + /// 弱密码库 + /// + THOST_FTDC_WPSR_Lib = (byte)'1', + /// + /// 手工录入 + /// + THOST_FTDC_WPSR_Manual = (byte)'2', +} +/// +/// 期权行权的头寸是否自对冲类型 +/// +public enum TThostFtdcOptSelfCloseFlagType: byte +{ + /// + /// 自对冲期权仓位 + /// + THOST_FTDC_OSCF_CloseSelfOptionPosition = (byte)'1', + /// + /// 保留期权仓位 + /// + THOST_FTDC_OSCF_ReserveOptionPosition = (byte)'2', + /// + /// 自对冲卖方履约后的期货仓位 + /// + THOST_FTDC_OSCF_SellCloseSelfFuturePosition = (byte)'3', + /// + /// 保留卖方履约后的期货仓位 + /// + THOST_FTDC_OSCF_ReserveFuturePosition = (byte)'4', +} +/// +/// 业务类型类型 +/// +public enum TThostFtdcBizTypeType: byte +{ + /// + /// 期货 + /// + THOST_FTDC_BZTP_Future = (byte)'1', + /// + /// 证券 + /// + THOST_FTDC_BZTP_Stock = (byte)'2', +} +/// +/// 用户App类型类型 +/// +public enum TThostFtdcAppTypeType: byte +{ + /// + /// 直连的投资者 + /// + THOST_FTDC_APP_TYPE_Investor = (byte)'1', + /// + /// 为每个投资者都创建连接的中继 + /// + THOST_FTDC_APP_TYPE_InvestorRelay = (byte)'2', + /// + /// 所有投资者共享一个操作员连接的中继 + /// + THOST_FTDC_APP_TYPE_OperatorRelay = (byte)'3', + /// + /// 未知 + /// + THOST_FTDC_APP_TYPE_UnKnown = (byte)'4', +} +/// +/// 应答类型类型 +/// +public enum TThostFtdcResponseValueType: byte +{ + /// + /// 检查成功 + /// + THOST_FTDC_RV_Right = (byte)'0', + /// + /// 检查失败 + /// + THOST_FTDC_RV_Refuse = (byte)'1', +} +/// +/// OTC成交类型类型 +/// +public enum TThostFtdcOTCTradeTypeType: byte +{ + /// + /// 大宗交易 + /// + THOST_FTDC_OTC_TRDT_Block = (byte)'0', + /// + /// 期转现 + /// + THOST_FTDC_OTC_TRDT_EFP = (byte)'1', +} +/// +/// 期现风险匹配方式类型 +/// +public enum TThostFtdcMatchTypeType: byte +{ + /// + /// 基点价值 + /// + THOST_FTDC_OTC_MT_DV01 = (byte)'1', + /// + /// 面值 + /// + THOST_FTDC_OTC_MT_ParValue = (byte)'2', +} +/// +/// 用户终端认证方式类型 +/// +public enum TThostFtdcAuthTypeType: byte +{ + /// + /// 白名单校验 + /// + THOST_FTDC_AU_WHITE = (byte)'0', + /// + /// 黑名单校验 + /// + THOST_FTDC_AU_BLACK = (byte)'1', +} +/// +/// 合约分类方式类型 +/// +public enum TThostFtdcClassTypeType: byte +{ + /// + /// 所有合约 + /// + THOST_FTDC_INS_ALL = (byte)'0', + /// + /// 期货、即期、期转现、Tas、金属指数合约 + /// + THOST_FTDC_INS_FUTURE = (byte)'1', + /// + /// 期货、现货期权合约 + /// + THOST_FTDC_INS_OPTION = (byte)'2', + /// + /// 组合合约 + /// + THOST_FTDC_INS_COMB = (byte)'3', +} +/// +/// 合约交易状态分类方式类型 +/// +public enum TThostFtdcTradingTypeType: byte +{ + /// + /// 所有状态 + /// + THOST_FTDC_TD_ALL = (byte)'0', + /// + /// 交易 + /// + THOST_FTDC_TD_TRADE = (byte)'1', + /// + /// 非交易 + /// + THOST_FTDC_TD_UNTRADE = (byte)'2', +} +/// +/// 产品状态类型 +/// +public enum TThostFtdcProductStatusType: byte +{ + /// + /// 可交易 + /// + THOST_FTDC_PS_tradeable = (byte)'1', + /// + /// 不可交易 + /// + THOST_FTDC_PS_untradeable = (byte)'2', +} +/// +/// 追平状态类型 +/// +public enum TThostFtdcSyncDeltaStatusType: byte +{ + /// + /// 交易可读 + /// + THOST_FTDC_SDS_Readable = (byte)'1', + /// + /// 交易在读 + /// + THOST_FTDC_SDS_Reading = (byte)'2', + /// + /// 交易读取完成 + /// + THOST_FTDC_SDS_Readend = (byte)'3', + /// + /// 追平失败 交易本地状态结算不存在 + /// + THOST_FTDC_SDS_OptErr = (byte)'e', +} +/// +/// 操作标志类型 +/// +public enum TThostFtdcActionDirectionType: byte +{ + /// + /// 增加 + /// + THOST_FTDC_ACD_Add = (byte)'1', + /// + /// 删除 + /// + THOST_FTDC_ACD_Del = (byte)'2', + /// + /// 更新 + /// + THOST_FTDC_ACD_Upd = (byte)'3', +} +/// +/// 撤单时选择席位算法类型 +/// +public enum TThostFtdcOrderCancelAlgType: byte +{ + /// + /// 轮询席位撤单 + /// + THOST_FTDC_OAC_Balance = (byte)'1', + /// + /// 优先原报单席位撤单 + /// + THOST_FTDC_OAC_OrigFirst = (byte)'2', +} +/// +/// 开仓量限制粒度类型 +/// +public enum TThostFtdcOpenLimitControlLevelType: byte +{ + /// + /// 不控制 + /// + THOST_FTDC_PLCL_None = (byte)'0', + /// + /// 产品级别 + /// + THOST_FTDC_PLCL_Product = (byte)'1', + /// + /// 合约级别 + /// + THOST_FTDC_PLCL_Inst = (byte)'2', +} +/// +/// 报单频率控制粒度类型 +/// +public enum TThostFtdcOrderFreqControlLevelType: byte +{ + /// + /// 不控制 + /// + THOST_FTDC_OFCL_None = (byte)'0', + /// + /// 产品级别 + /// + THOST_FTDC_OFCL_Product = (byte)'1', + /// + /// 合约级别 + /// + THOST_FTDC_OFCL_Inst = (byte)'2', +} +/// +/// 枚举bool类型类型 +/// +public enum TThostFtdcEnumBoolType: byte +{ + /// + /// false + /// + THOST_FTDC_EBL_False = (byte)'0', + /// + /// true + /// + THOST_FTDC_EBL_True = (byte)'1', +} +/// +/// 期货合约阶段标识类型 +/// +public enum TThostFtdcTimeRangeType: byte +{ + /// + /// 一般月份 + /// + THOST_FTDC_ETR_USUAL = (byte)'1', + /// + /// 交割月前一个月上半月 + /// + THOST_FTDC_ETR_FNSP = (byte)'2', + /// + /// 交割月前一个月下半月 + /// + THOST_FTDC_ETR_BNSP = (byte)'3', + /// + /// 交割月份 + /// + THOST_FTDC_ETR_SPOT = (byte)'4', +} +/// +/// 新型组保算法类型 +/// +public enum TThostFtdcPortfolioType: byte +{ + /// + /// 不使用新型组保算法 + /// + THOST_FTDC_EPF_None = (byte)'0', + /// + /// SPBM算法 + /// + THOST_FTDC_EPF_SPBM = (byte)'1', +} diff --git a/CTPAPI6.6.9/generated/ThostFtdcUserApiDataType.h b/CTPAPI6.6.9/generated/ThostFtdcUserApiDataType.h new file mode 100644 index 0000000..1a73f9d --- /dev/null +++ b/CTPAPI6.6.9/generated/ThostFtdcUserApiDataType.h @@ -0,0 +1,6917 @@ +///////////////////////////////////////////////////////////////////////// +///@system 新一代交易所系统 +///@company 上海期货信息技术有限公司 +///@file ThostFtdcUserApiDataType.h +///@brief 定义了客户端接口使用的业务数据类型 +///@history +///20060106 赵鸿昊 创建该文件 +///////////////////////////////////////////////////////////////////////// + +#ifndef THOST_FTDCDATATYPE_H +#define THOST_FTDCDATATYPE_H + +enum THOST_TE_RESUME_TYPE +{ + THOST_TERT_RESTART = 0, + THOST_TERT_RESUME, + THOST_TERT_QUICK, + THOST_TERT_NONE +}; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTraderIDType是一个交易所交易员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTraderIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorIDType是一个投资者代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerIDType是一个经纪公司代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerAbbrType是一个经纪公司简称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerAbbrType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerNameType是一个经纪公司名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOldExchangeInstIDType是一个合约在交易所的代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOldExchangeInstIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeInstIDType是一个合约在交易所的代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeInstIDType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderRefType是一个报单引用类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrderRefType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParticipantIDType是一个会员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParticipantIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserIDType是一个用户代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserIDType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPasswordType是一个密码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPasswordType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientIDType是一个交易编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentIDType是一个合约代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentIDType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOldInstrumentIDType是一个合约代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOldInstrumentIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentCodeType是一个合约标识码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentCodeType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarketIDType是一个市场代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMarketIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductNameType是一个产品名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProductNameType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeIDType是一个交易所代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeNameType是一个交易所名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeAbbrType是一个交易所简称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeAbbrType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeFlagType是一个交易所标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExchangeFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMacAddressType是一个Mac地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMacAddressType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemIDType是一个系统编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSystemIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientLoginRemarkType是一个客户登录备注2类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientLoginRemarkType[151]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangePropertyType是一个交易所属性类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_EXP_Normal '0' +///根据成交生成报单 +#define THOST_FTDC_EXP_GenOrderByTrade '1' + +typedef char TThostFtdcExchangePropertyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateType是一个日期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimeType是一个时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTimeType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLongTimeType是一个长时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongTimeType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentNameType是一个合约名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentNameType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementGroupIDType是一个结算组代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettlementGroupIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderSysIDType是一个报单编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrderSysIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeIDType是一个成交编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommandTypeType是一个DB命令类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommandTypeType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOldIPAddressType是一个IP地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOldIPAddressType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIPAddressType是一个IP地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIPAddressType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIPPortType是一个IP端口类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcIPPortType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductInfoType是一个产品信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProductInfoType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProtocolInfoType是一个协议信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProtocolInfoType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessUnitType是一个业务单元类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBusinessUnitType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDepositSeqNoType是一个出入金流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDepositSeqNoType[15]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIdentifiedCardNoType是一个证件号码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIdentifiedCardNoType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIdCardTypeType是一个证件类型类型 +///////////////////////////////////////////////////////////////////////// +///组织机构代码 +#define THOST_FTDC_ICT_EID '0' +///中国公民身份证 +#define THOST_FTDC_ICT_IDCard '1' +///军官证 +#define THOST_FTDC_ICT_OfficerIDCard '2' +///警官证 +#define THOST_FTDC_ICT_PoliceIDCard '3' +///士兵证 +#define THOST_FTDC_ICT_SoldierIDCard '4' +///户口簿 +#define THOST_FTDC_ICT_HouseholdRegister '5' +///护照 +#define THOST_FTDC_ICT_Passport '6' +///台胞证 +#define THOST_FTDC_ICT_TaiwanCompatriotIDCard '7' +///回乡证 +#define THOST_FTDC_ICT_HomeComingCard '8' +///营业执照号 +#define THOST_FTDC_ICT_LicenseNo '9' +///税务登记号/当地纳税ID +#define THOST_FTDC_ICT_TaxNo 'A' +///港澳居民来往内地通行证 +#define THOST_FTDC_ICT_HMMainlandTravelPermit 'B' +///台湾居民来往大陆通行证 +#define THOST_FTDC_ICT_TwMainlandTravelPermit 'C' +///驾照 +#define THOST_FTDC_ICT_DrivingLicense 'D' +///当地社保ID +#define THOST_FTDC_ICT_SocialID 'F' +///当地身份证 +#define THOST_FTDC_ICT_LocalID 'G' +///商业登记证 +#define THOST_FTDC_ICT_BusinessRegistration 'H' +///港澳永久性居民身份证 +#define THOST_FTDC_ICT_HKMCIDCard 'I' +///人行开户许可证 +#define THOST_FTDC_ICT_AccountsPermits 'J' +///外国人永久居留证 +#define THOST_FTDC_ICT_FrgPrmtRdCard 'K' +///资管产品备案函 +#define THOST_FTDC_ICT_CptMngPrdLetter 'L' +///港澳台居民居住证 +#define THOST_FTDC_ICT_HKMCTwResidencePermit 'M' +///统一社会信用代码 +#define THOST_FTDC_ICT_UniformSocialCreditCode 'N' +///机构成立证明文件 +#define THOST_FTDC_ICT_CorporationCertNo 'O' +///其他证件 +#define THOST_FTDC_ICT_OtherCard 'x' + +typedef char TThostFtdcIdCardTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderLocalIDType是一个本地报单编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrderLocalIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserNameType是一个用户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPartyNameType是一个参与人名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPartyNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcErrorMsgType是一个错误信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcErrorMsgType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFieldNameType是一个字段名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFieldNameType[2049]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFieldContentType是一个字段内容类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFieldContentType[2049]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemNameType是一个系统名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSystemNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcContentType是一个消息正文类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcContentType[501]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorRangeType是一个投资者范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_IR_All '1' +///投资者组 +#define THOST_FTDC_IR_Group '2' +///单一投资者 +#define THOST_FTDC_IR_Single '3' + +typedef char TThostFtdcInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDepartmentRangeType是一个投资者范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_DR_All '1' +///组织架构 +#define THOST_FTDC_DR_Group '2' +///单一投资者 +#define THOST_FTDC_DR_Single '3' + +typedef char TThostFtdcDepartmentRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataSyncStatusType是一个数据同步状态类型 +///////////////////////////////////////////////////////////////////////// +///未同步 +#define THOST_FTDC_DS_Asynchronous '1' +///同步中 +#define THOST_FTDC_DS_Synchronizing '2' +///已同步 +#define THOST_FTDC_DS_Synchronized '3' + +typedef char TThostFtdcDataSyncStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerDataSyncStatusType是一个经纪公司数据同步状态类型 +///////////////////////////////////////////////////////////////////////// +///已同步 +#define THOST_FTDC_BDS_Synchronized '1' +///同步中 +#define THOST_FTDC_BDS_Synchronizing '2' + +typedef char TThostFtdcBrokerDataSyncStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeConnectStatusType是一个交易所连接状态类型 +///////////////////////////////////////////////////////////////////////// +///没有任何连接 +#define THOST_FTDC_ECS_NoConnection '1' +///已经发出合约查询请求 +#define THOST_FTDC_ECS_QryInstrumentSent '2' +///已经获取信息 +#define THOST_FTDC_ECS_GotInformation '9' + +typedef char TThostFtdcExchangeConnectStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTraderConnectStatusType是一个交易所交易员连接状态类型 +///////////////////////////////////////////////////////////////////////// +///没有任何连接 +#define THOST_FTDC_TCS_NotConnected '1' +///已经连接 +#define THOST_FTDC_TCS_Connected '2' +///已经发出合约查询请求 +#define THOST_FTDC_TCS_QryInstrumentSent '3' +///订阅私有流 +#define THOST_FTDC_TCS_SubPrivateFlow '4' + +typedef char TThostFtdcTraderConnectStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionCodeType是一个功能代码类型 +///////////////////////////////////////////////////////////////////////// +///数据异步化 +#define THOST_FTDC_FC_DataAsync '1' +///强制用户登出 +#define THOST_FTDC_FC_ForceUserLogout '2' +///变更管理用户口令 +#define THOST_FTDC_FC_UserPasswordUpdate '3' +///变更经纪公司口令 +#define THOST_FTDC_FC_BrokerPasswordUpdate '4' +///变更投资者口令 +#define THOST_FTDC_FC_InvestorPasswordUpdate '5' +///报单插入 +#define THOST_FTDC_FC_OrderInsert '6' +///报单操作 +#define THOST_FTDC_FC_OrderAction '7' +///同步系统数据 +#define THOST_FTDC_FC_SyncSystemData '8' +///同步经纪公司数据 +#define THOST_FTDC_FC_SyncBrokerData '9' +///批量同步经纪公司数据 +#define THOST_FTDC_FC_BachSyncBrokerData 'A' +///超级查询 +#define THOST_FTDC_FC_SuperQuery 'B' +///预埋报单插入 +#define THOST_FTDC_FC_ParkedOrderInsert 'C' +///预埋报单操作 +#define THOST_FTDC_FC_ParkedOrderAction 'D' +///同步动态令牌 +#define THOST_FTDC_FC_SyncOTP 'E' +///删除未知单 +#define THOST_FTDC_FC_DeleteOrder 'F' + +typedef char TThostFtdcFunctionCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerFunctionCodeType是一个经纪公司功能代码类型 +///////////////////////////////////////////////////////////////////////// +///强制用户登出 +#define THOST_FTDC_BFC_ForceUserLogout '1' +///变更用户口令 +#define THOST_FTDC_BFC_UserPasswordUpdate '2' +///同步经纪公司数据 +#define THOST_FTDC_BFC_SyncBrokerData '3' +///批量同步经纪公司数据 +#define THOST_FTDC_BFC_BachSyncBrokerData '4' +///报单插入 +#define THOST_FTDC_BFC_OrderInsert '5' +///报单操作 +#define THOST_FTDC_BFC_OrderAction '6' +///全部查询 +#define THOST_FTDC_BFC_AllQuery '7' +///系统功能:登入/登出/修改密码等 +#define THOST_FTDC_BFC_log 'a' +///基本查询:查询基础数据,如合约,交易所等常量 +#define THOST_FTDC_BFC_BaseQry 'b' +///交易查询:如查成交,委托 +#define THOST_FTDC_BFC_TradeQry 'c' +///交易功能:报单,撤单 +#define THOST_FTDC_BFC_Trade 'd' +///银期转账 +#define THOST_FTDC_BFC_Virement 'e' +///风险监控 +#define THOST_FTDC_BFC_Risk 'f' +///查询/管理:查询会话,踢人等 +#define THOST_FTDC_BFC_Session 'g' +///风控通知控制 +#define THOST_FTDC_BFC_RiskNoticeCtl 'h' +///风控通知发送 +#define THOST_FTDC_BFC_RiskNotice 'i' +///察看经纪公司资金权限 +#define THOST_FTDC_BFC_BrokerDeposit 'j' +///资金查询 +#define THOST_FTDC_BFC_QueryFund 'k' +///报单查询 +#define THOST_FTDC_BFC_QueryOrder 'l' +///成交查询 +#define THOST_FTDC_BFC_QueryTrade 'm' +///持仓查询 +#define THOST_FTDC_BFC_QueryPosition 'n' +///行情查询 +#define THOST_FTDC_BFC_QueryMarketData 'o' +///用户事件查询 +#define THOST_FTDC_BFC_QueryUserEvent 'p' +///风险通知查询 +#define THOST_FTDC_BFC_QueryRiskNotify 'q' +///出入金查询 +#define THOST_FTDC_BFC_QueryFundChange 'r' +///投资者信息查询 +#define THOST_FTDC_BFC_QueryInvestor 's' +///交易编码查询 +#define THOST_FTDC_BFC_QueryTradingCode 't' +///强平 +#define THOST_FTDC_BFC_ForceClose 'u' +///压力测试 +#define THOST_FTDC_BFC_PressTest 'v' +///权益反算 +#define THOST_FTDC_BFC_RemainCalc 'w' +///净持仓保证金指标 +#define THOST_FTDC_BFC_NetPositionInd 'x' +///风险预算 +#define THOST_FTDC_BFC_RiskPredict 'y' +///数据导出 +#define THOST_FTDC_BFC_DataExport 'z' +///风控指标设置 +#define THOST_FTDC_BFC_RiskTargetSetup 'A' +///行情预警 +#define THOST_FTDC_BFC_MarketDataWarn 'B' +///业务通知查询 +#define THOST_FTDC_BFC_QryBizNotice 'C' +///业务通知模板设置 +#define THOST_FTDC_BFC_CfgBizNotice 'D' +///同步动态令牌 +#define THOST_FTDC_BFC_SyncOTP 'E' +///发送业务通知 +#define THOST_FTDC_BFC_SendBizNotice 'F' +///风险级别标准设置 +#define THOST_FTDC_BFC_CfgRiskLevelStd 'G' +///交易终端应急功能 +#define THOST_FTDC_BFC_TbCommand 'H' +///删除未知单 +#define THOST_FTDC_BFC_DeleteOrder 'J' +///预埋报单插入 +#define THOST_FTDC_BFC_ParkedOrderInsert 'K' +///预埋报单操作 +#define THOST_FTDC_BFC_ParkedOrderAction 'L' +///资金不够仍允许行权 +#define THOST_FTDC_BFC_ExecOrderNoCheck 'M' +///指定 +#define THOST_FTDC_BFC_Designate 'N' +///证券处置 +#define THOST_FTDC_BFC_StockDisposal 'O' +///席位资金预警 +#define THOST_FTDC_BFC_BrokerDepositWarn 'Q' +///备兑不足预警 +#define THOST_FTDC_BFC_CoverWarn 'S' +///行权试算 +#define THOST_FTDC_BFC_PreExecOrder 'T' +///行权交收风险 +#define THOST_FTDC_BFC_ExecOrderRisk 'P' +///持仓限额预警 +#define THOST_FTDC_BFC_PosiLimitWarn 'U' +///持仓限额查询 +#define THOST_FTDC_BFC_QryPosiLimit 'V' +///银期签到签退 +#define THOST_FTDC_BFC_FBSign 'W' +///银期签约解约 +#define THOST_FTDC_BFC_FBAccount 'X' + +typedef char TThostFtdcBrokerFunctionCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderActionStatusType是一个报单操作状态类型 +///////////////////////////////////////////////////////////////////////// +///已经提交 +#define THOST_FTDC_OAS_Submitted 'a' +///已经接受 +#define THOST_FTDC_OAS_Accepted 'b' +///已经被拒绝 +#define THOST_FTDC_OAS_Rejected 'c' + +typedef char TThostFtdcOrderActionStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderStatusType是一个报单状态类型 +///////////////////////////////////////////////////////////////////////// +///全部成交 +#define THOST_FTDC_OST_AllTraded '0' +///部分成交还在队列中 +#define THOST_FTDC_OST_PartTradedQueueing '1' +///部分成交不在队列中 +#define THOST_FTDC_OST_PartTradedNotQueueing '2' +///未成交还在队列中 +#define THOST_FTDC_OST_NoTradeQueueing '3' +///未成交不在队列中 +#define THOST_FTDC_OST_NoTradeNotQueueing '4' +///撤单 +#define THOST_FTDC_OST_Canceled '5' +///未知 +#define THOST_FTDC_OST_Unknown 'a' +///尚未触发 +#define THOST_FTDC_OST_NotTouched 'b' +///已触发 +#define THOST_FTDC_OST_Touched 'c' + +typedef char TThostFtdcOrderStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderSubmitStatusType是一个报单提交状态类型 +///////////////////////////////////////////////////////////////////////// +///已经提交 +#define THOST_FTDC_OSS_InsertSubmitted '0' +///撤单已经提交 +#define THOST_FTDC_OSS_CancelSubmitted '1' +///修改已经提交 +#define THOST_FTDC_OSS_ModifySubmitted '2' +///已经接受 +#define THOST_FTDC_OSS_Accepted '3' +///报单已经被拒绝 +#define THOST_FTDC_OSS_InsertRejected '4' +///撤单已经被拒绝 +#define THOST_FTDC_OSS_CancelRejected '5' +///改单已经被拒绝 +#define THOST_FTDC_OSS_ModifyRejected '6' + +typedef char TThostFtdcOrderSubmitStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionDateType是一个持仓日期类型 +///////////////////////////////////////////////////////////////////////// +///今日持仓 +#define THOST_FTDC_PSD_Today '1' +///历史持仓 +#define THOST_FTDC_PSD_History '2' + +typedef char TThostFtdcPositionDateType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionDateTypeType是一个持仓日期类型类型 +///////////////////////////////////////////////////////////////////////// +///使用历史持仓 +#define THOST_FTDC_PDT_UseHistory '1' +///不使用历史持仓 +#define THOST_FTDC_PDT_NoUseHistory '2' + +typedef char TThostFtdcPositionDateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingRoleType是一个交易角色类型 +///////////////////////////////////////////////////////////////////////// +///代理 +#define THOST_FTDC_ER_Broker '1' +///自营 +#define THOST_FTDC_ER_Host '2' +///做市商 +#define THOST_FTDC_ER_Maker '3' + +typedef char TThostFtdcTradingRoleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductClassType是一个产品类型类型 +///////////////////////////////////////////////////////////////////////// +///期货 +#define THOST_FTDC_PC_Futures '1' +///期货期权 +#define THOST_FTDC_PC_Options '2' +///组合 +#define THOST_FTDC_PC_Combination '3' +///即期 +#define THOST_FTDC_PC_Spot '4' +///期转现 +#define THOST_FTDC_PC_EFP '5' +///现货期权 +#define THOST_FTDC_PC_SpotOption '6' +///TAS合约 +#define THOST_FTDC_PC_TAS '7' +///金属指数 +#define THOST_FTDC_PC_MI 'I' + +typedef char TThostFtdcProductClassType; + +///////////////////////////////////////////////////////////////////////// +///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是一个合约生命周期状态类型 +///////////////////////////////////////////////////////////////////////// +///未上市 +#define THOST_FTDC_IP_NotStart '0' +///上市 +#define THOST_FTDC_IP_Started '1' +///停牌 +#define THOST_FTDC_IP_Pause '2' +///到期 +#define THOST_FTDC_IP_Expired '3' + +typedef char TThostFtdcInstLifePhaseType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDirectionType是一个买卖方向类型 +///////////////////////////////////////////////////////////////////////// +///买 +#define THOST_FTDC_D_Buy '0' +///卖 +#define THOST_FTDC_D_Sell '1' + +typedef char TThostFtdcDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionTypeType是一个持仓类型类型 +///////////////////////////////////////////////////////////////////////// +///净持仓 +#define THOST_FTDC_PT_Net '1' +///综合持仓 +#define THOST_FTDC_PT_Gross '2' + +typedef char TThostFtdcPositionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPosiDirectionType是一个持仓多空方向类型 +///////////////////////////////////////////////////////////////////////// +///净 +#define THOST_FTDC_PD_Net '1' +///多头 +#define THOST_FTDC_PD_Long '2' +///空头 +#define THOST_FTDC_PD_Short '3' + +typedef char TThostFtdcPosiDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysSettlementStatusType是一个系统结算状态类型 +///////////////////////////////////////////////////////////////////////// +///不活跃 +#define THOST_FTDC_SS_NonActive '1' +///启动 +#define THOST_FTDC_SS_Startup '2' +///操作 +#define THOST_FTDC_SS_Operating '3' +///结算 +#define THOST_FTDC_SS_Settlement '4' +///结算完成 +#define THOST_FTDC_SS_SettlementFinished '5' + +typedef char TThostFtdcSysSettlementStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRatioAttrType是一个费率属性类型 +///////////////////////////////////////////////////////////////////////// +///交易费率 +#define THOST_FTDC_RA_Trade '0' +///结算费率 +#define THOST_FTDC_RA_Settlement '1' + +typedef char TThostFtdcRatioAttrType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHedgeFlagType是一个投机套保标志类型 +///////////////////////////////////////////////////////////////////////// +///投机 +#define THOST_FTDC_HF_Speculation '1' +///套利 +#define THOST_FTDC_HF_Arbitrage '2' +///套保 +#define THOST_FTDC_HF_Hedge '3' +///做市商 +#define THOST_FTDC_HF_MarketMaker '5' +///第一腿投机第二腿套保 +#define THOST_FTDC_HF_SpecHedge '6' +///第一腿套保第二腿投机 +#define THOST_FTDC_HF_HedgeSpec '7' + +typedef char TThostFtdcHedgeFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillHedgeFlagType是一个投机套保标志类型 +///////////////////////////////////////////////////////////////////////// +///投机 +#define THOST_FTDC_BHF_Speculation '1' +///套利 +#define THOST_FTDC_BHF_Arbitrage '2' +///套保 +#define THOST_FTDC_BHF_Hedge '3' + +typedef char TThostFtdcBillHedgeFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientIDTypeType是一个交易编码类型类型 +///////////////////////////////////////////////////////////////////////// +///投机 +#define THOST_FTDC_CIDT_Speculation '1' +///套利 +#define THOST_FTDC_CIDT_Arbitrage '2' +///套保 +#define THOST_FTDC_CIDT_Hedge '3' +///做市商 +#define THOST_FTDC_CIDT_MarketMaker '5' + +typedef char TThostFtdcClientIDTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderPriceTypeType是一个报单价格条件类型 +///////////////////////////////////////////////////////////////////////// +///任意价 +#define THOST_FTDC_OPT_AnyPrice '1' +///限价 +#define THOST_FTDC_OPT_LimitPrice '2' +///最优价 +#define THOST_FTDC_OPT_BestPrice '3' +///最新价 +#define THOST_FTDC_OPT_LastPrice '4' +///最新价浮动上浮1个ticks +#define THOST_FTDC_OPT_LastPricePlusOneTicks '5' +///最新价浮动上浮2个ticks +#define THOST_FTDC_OPT_LastPricePlusTwoTicks '6' +///最新价浮动上浮3个ticks +#define THOST_FTDC_OPT_LastPricePlusThreeTicks '7' +///卖一价 +#define THOST_FTDC_OPT_AskPrice1 '8' +///卖一价浮动上浮1个ticks +#define THOST_FTDC_OPT_AskPrice1PlusOneTicks '9' +///卖一价浮动上浮2个ticks +#define THOST_FTDC_OPT_AskPrice1PlusTwoTicks 'A' +///卖一价浮动上浮3个ticks +#define THOST_FTDC_OPT_AskPrice1PlusThreeTicks 'B' +///买一价 +#define THOST_FTDC_OPT_BidPrice1 'C' +///买一价浮动上浮1个ticks +#define THOST_FTDC_OPT_BidPrice1PlusOneTicks 'D' +///买一价浮动上浮2个ticks +#define THOST_FTDC_OPT_BidPrice1PlusTwoTicks 'E' +///买一价浮动上浮3个ticks +#define THOST_FTDC_OPT_BidPrice1PlusThreeTicks 'F' +///五档价 +#define THOST_FTDC_OPT_FiveLevelPrice 'G' + +typedef char TThostFtdcOrderPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOffsetFlagType是一个开平标志类型 +///////////////////////////////////////////////////////////////////////// +///开仓 +#define THOST_FTDC_OF_Open '0' +///平仓 +#define THOST_FTDC_OF_Close '1' +///强平 +#define THOST_FTDC_OF_ForceClose '2' +///平今 +#define THOST_FTDC_OF_CloseToday '3' +///平昨 +#define THOST_FTDC_OF_CloseYesterday '4' +///强减 +#define THOST_FTDC_OF_ForceOff '5' +///本地强平 +#define THOST_FTDC_OF_LocalForceClose '6' + +typedef char TThostFtdcOffsetFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForceCloseReasonType是一个强平原因类型 +///////////////////////////////////////////////////////////////////////// +///非强平 +#define THOST_FTDC_FCC_NotForceClose '0' +///资金不足 +#define THOST_FTDC_FCC_LackDeposit '1' +///客户超仓 +#define THOST_FTDC_FCC_ClientOverPositionLimit '2' +///会员超仓 +#define THOST_FTDC_FCC_MemberOverPositionLimit '3' +///持仓非整数倍 +#define THOST_FTDC_FCC_NotMultiple '4' +///违规 +#define THOST_FTDC_FCC_Violation '5' +///其它 +#define THOST_FTDC_FCC_Other '6' +///自然人临近交割 +#define THOST_FTDC_FCC_PersonDeliv '7' +///风控强平不验证资金 +#define THOST_FTDC_FCC_Notverifycapital '8' + +typedef char TThostFtdcForceCloseReasonType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderTypeType是一个报单类型类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_ORDT_Normal '0' +///报价衍生 +#define THOST_FTDC_ORDT_DeriveFromQuote '1' +///组合衍生 +#define THOST_FTDC_ORDT_DeriveFromCombination '2' +///组合报单 +#define THOST_FTDC_ORDT_Combination '3' +///条件单 +#define THOST_FTDC_ORDT_ConditionalOrder '4' +///互换单 +#define THOST_FTDC_ORDT_Swap '5' +///大宗交易成交衍生 +#define THOST_FTDC_ORDT_DeriveFromBlockTrade '6' +///期转现成交衍生 +#define THOST_FTDC_ORDT_DeriveFromEFPTrade '7' + +typedef char TThostFtdcOrderTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimeConditionType是一个有效期类型类型 +///////////////////////////////////////////////////////////////////////// +///立即完成,否则撤销 +#define THOST_FTDC_TC_IOC '1' +///本节有效 +#define THOST_FTDC_TC_GFS '2' +///当日有效 +#define THOST_FTDC_TC_GFD '3' +///指定日期前有效 +#define THOST_FTDC_TC_GTD '4' +///撤销前有效 +#define THOST_FTDC_TC_GTC '5' +///集合竞价有效 +#define THOST_FTDC_TC_GFA '6' + +typedef char TThostFtdcTimeConditionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVolumeConditionType是一个成交量类型类型 +///////////////////////////////////////////////////////////////////////// +///任何数量 +#define THOST_FTDC_VC_AV '1' +///最小数量 +#define THOST_FTDC_VC_MV '2' +///全部数量 +#define THOST_FTDC_VC_CV '3' + +typedef char TThostFtdcVolumeConditionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcContingentConditionType是一个触发条件类型 +///////////////////////////////////////////////////////////////////////// +///立即 +#define THOST_FTDC_CC_Immediately '1' +///止损 +#define THOST_FTDC_CC_Touch '2' +///止赢 +#define THOST_FTDC_CC_TouchProfit '3' +///预埋单 +#define THOST_FTDC_CC_ParkedOrder '4' +///最新价大于条件价 +#define THOST_FTDC_CC_LastPriceGreaterThanStopPrice '5' +///最新价大于等于条件价 +#define THOST_FTDC_CC_LastPriceGreaterEqualStopPrice '6' +///最新价小于条件价 +#define THOST_FTDC_CC_LastPriceLesserThanStopPrice '7' +///最新价小于等于条件价 +#define THOST_FTDC_CC_LastPriceLesserEqualStopPrice '8' +///卖一价大于条件价 +#define THOST_FTDC_CC_AskPriceGreaterThanStopPrice '9' +///卖一价大于等于条件价 +#define THOST_FTDC_CC_AskPriceGreaterEqualStopPrice 'A' +///卖一价小于条件价 +#define THOST_FTDC_CC_AskPriceLesserThanStopPrice 'B' +///卖一价小于等于条件价 +#define THOST_FTDC_CC_AskPriceLesserEqualStopPrice 'C' +///买一价大于条件价 +#define THOST_FTDC_CC_BidPriceGreaterThanStopPrice 'D' +///买一价大于等于条件价 +#define THOST_FTDC_CC_BidPriceGreaterEqualStopPrice 'E' +///买一价小于条件价 +#define THOST_FTDC_CC_BidPriceLesserThanStopPrice 'F' +///买一价小于等于条件价 +#define THOST_FTDC_CC_BidPriceLesserEqualStopPrice 'H' + +typedef char TThostFtdcContingentConditionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcActionFlagType是一个操作标志类型 +///////////////////////////////////////////////////////////////////////// +///删除 +#define THOST_FTDC_AF_Delete '0' +///修改 +#define THOST_FTDC_AF_Modify '3' + +typedef char TThostFtdcActionFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingRightType是一个交易权限类型 +///////////////////////////////////////////////////////////////////////// +///可以交易 +#define THOST_FTDC_TR_Allow '0' +///只能平仓 +#define THOST_FTDC_TR_CloseOnly '1' +///不能交易 +#define THOST_FTDC_TR_Forbidden '2' + +typedef char TThostFtdcTradingRightType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderSourceType是一个报单来源类型 +///////////////////////////////////////////////////////////////////////// +///来自参与者 +#define THOST_FTDC_OSRC_Participant '0' +///来自管理员 +#define THOST_FTDC_OSRC_Administrator '1' + +typedef char TThostFtdcOrderSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeTypeType是一个成交类型类型 +///////////////////////////////////////////////////////////////////////// +///组合持仓拆分为单一持仓,初始化不应包含该类型的持仓 +#define THOST_FTDC_TRDT_SplitCombination '#' +///普通成交 +#define THOST_FTDC_TRDT_Common '0' +///期权执行 +#define THOST_FTDC_TRDT_OptionsExecution '1' +///OTC成交 +#define THOST_FTDC_TRDT_OTC '2' +///期转现衍生成交 +#define THOST_FTDC_TRDT_EFPDerived '3' +///组合衍生成交 +#define THOST_FTDC_TRDT_CombinationDerived '4' +///大宗交易成交 +#define THOST_FTDC_TRDT_BlockTrade '5' + +typedef char TThostFtdcTradeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSpecPosiTypeType是一个特殊持仓明细标识类型 +///////////////////////////////////////////////////////////////////////// +///普通持仓明细 +#define THOST_FTDC_SPOST_Common '#' +///TAS合约成交产生的标的合约持仓明细 +#define THOST_FTDC_SPOST_Tas '0' + +typedef char TThostFtdcSpecPosiTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriceSourceType是一个成交价来源类型 +///////////////////////////////////////////////////////////////////////// +///前成交价 +#define THOST_FTDC_PSRC_LastPrice '0' +///买委托价 +#define THOST_FTDC_PSRC_Buy '1' +///卖委托价 +#define THOST_FTDC_PSRC_Sell '2' +///场外成交价 +#define THOST_FTDC_PSRC_OTC '3' + +typedef char TThostFtdcPriceSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentStatusType是一个合约交易状态类型 +///////////////////////////////////////////////////////////////////////// +///开盘前 +#define THOST_FTDC_IS_BeforeTrading '0' +///非交易 +#define THOST_FTDC_IS_NoTrading '1' +///连续交易 +#define THOST_FTDC_IS_Continous '2' +///集合竞价报单 +#define THOST_FTDC_IS_AuctionOrdering '3' +///集合竞价价格平衡 +#define THOST_FTDC_IS_AuctionBalance '4' +///集合竞价撮合 +#define THOST_FTDC_IS_AuctionMatch '5' +///收盘 +#define THOST_FTDC_IS_Closed '6' + +typedef char TThostFtdcInstrumentStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstStatusEnterReasonType是一个品种进入交易状态原因类型 +///////////////////////////////////////////////////////////////////////// +///自动切换 +#define THOST_FTDC_IER_Automatic '1' +///手动切换 +#define THOST_FTDC_IER_Manual '2' +///熔断 +#define THOST_FTDC_IER_Fuse '3' + +typedef char TThostFtdcInstStatusEnterReasonType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderActionRefType是一个报单操作引用类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcOrderActionRefType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstallCountType是一个安装数量类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcInstallCountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstallIDType是一个安装编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcInstallIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcErrorIDType是一个错误代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcErrorIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementIDType是一个结算编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSettlementIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVolumeType是一个数量类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcVolumeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFrontIDType是一个前置编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFrontIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSessionIDType是一个会话编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSessionIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceNoType是一个序号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSequenceNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommandNoType是一个DB命令序号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCommandNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMillisecType是一个时间(毫秒)类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcMillisecType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSecType是一个时间(秒)类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSecType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVolumeMultipleType是一个合约数量乘数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcVolumeMultipleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingSegmentSNType是一个交易阶段编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTradingSegmentSNType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRequestIDType是一个请求编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRequestIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcYearType是一个年份类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcYearType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMonthType是一个月份类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcMonthType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBoolType是一个布尔型类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcBoolType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriceType是一个价格类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcPriceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombOffsetFlagType是一个组合开平标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombOffsetFlagType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombHedgeFlagType是一个组合投机套保标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombHedgeFlagType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRatioType是一个比率类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcRatioType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMoneyType是一个资金类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLargeVolumeType是一个大额数量类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcLargeVolumeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceSeriesType是一个序列系列号类型 +///////////////////////////////////////////////////////////////////////// +typedef short TThostFtdcSequenceSeriesType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommPhaseNoType是一个通讯时段编号类型 +///////////////////////////////////////////////////////////////////////// +typedef short TThostFtdcCommPhaseNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceLabelType是一个序列编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSequenceLabelType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUnderlyingMultipleType是一个基础商品乘数类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcUnderlyingMultipleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriorityType是一个优先级类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcPriorityType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcContractCodeType是一个合同编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcContractCodeType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCityType是一个市类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCityType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIsStockType是一个是否股民类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIsStockType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcChannelType是一个渠道类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcChannelType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAddressType是一个通讯地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAddressType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcZipCodeType是一个邮政编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcZipCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTelephoneType是一个联系电话类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTelephoneType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFaxType是一个传真类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFaxType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMobileType是一个手机类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMobileType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEMailType是一个电子邮件类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEMailType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMemoType是一个备注类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMemoType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCompanyCodeType是一个企业代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCompanyCodeType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWebsiteType是一个网站地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWebsiteType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTaxNoType是一个税务登记号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTaxNoType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBatchStatusType是一个处理状态类型 +///////////////////////////////////////////////////////////////////////// +///未上传 +#define THOST_FTDC_BS_NoUpload '1' +///已上传 +#define THOST_FTDC_BS_Uploaded '2' +///审核失败 +#define THOST_FTDC_BS_Failed '3' + +typedef char TThostFtdcBatchStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyIDType是一个属性代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPropertyIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyNameType是一个属性名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPropertyNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLicenseNoType是一个营业执照号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLicenseNoType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentIDType是一个经纪人代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentNameType是一个经纪人名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentGroupIDType是一个经纪人组代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentGroupIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentGroupNameType是一个经纪人组名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentGroupNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnStyleType是一个按品种返还方式类型 +///////////////////////////////////////////////////////////////////////// +///按所有品种 +#define THOST_FTDC_RS_All '1' +///按品种 +#define THOST_FTDC_RS_ByProduct '2' + +typedef char TThostFtdcReturnStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnPatternType是一个返还模式类型 +///////////////////////////////////////////////////////////////////////// +///按成交手数 +#define THOST_FTDC_RP_ByVolume '1' +///按留存手续费 +#define THOST_FTDC_RP_ByFeeOnHand '2' + +typedef char TThostFtdcReturnPatternType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnLevelType是一个返还级别类型 +///////////////////////////////////////////////////////////////////////// +///级别1 +#define THOST_FTDC_RL_Level1 '1' +///级别2 +#define THOST_FTDC_RL_Level2 '2' +///级别3 +#define THOST_FTDC_RL_Level3 '3' +///级别4 +#define THOST_FTDC_RL_Level4 '4' +///级别5 +#define THOST_FTDC_RL_Level5 '5' +///级别6 +#define THOST_FTDC_RL_Level6 '6' +///级别7 +#define THOST_FTDC_RL_Level7 '7' +///级别8 +#define THOST_FTDC_RL_Level8 '8' +///级别9 +#define THOST_FTDC_RL_Level9 '9' + +typedef char TThostFtdcReturnLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnStandardType是一个返还标准类型 +///////////////////////////////////////////////////////////////////////// +///分阶段返还 +#define THOST_FTDC_RSD_ByPeriod '1' +///按某一标准 +#define THOST_FTDC_RSD_ByStandard '2' + +typedef char TThostFtdcReturnStandardType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMortgageTypeType是一个质押类型类型 +///////////////////////////////////////////////////////////////////////// +///质出 +#define THOST_FTDC_MT_Out '0' +///质入 +#define THOST_FTDC_MT_In '1' + +typedef char TThostFtdcMortgageTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorSettlementParamIDType是一个投资者结算参数代码类型 +///////////////////////////////////////////////////////////////////////// +///质押比例 +#define THOST_FTDC_ISPI_MortgageRatio '4' +///保证金算法 +#define THOST_FTDC_ISPI_MarginWay '5' +///结算单结存是否包含质押 +#define THOST_FTDC_ISPI_BillDeposit '9' + +typedef char TThostFtdcInvestorSettlementParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeSettlementParamIDType是一个交易所结算参数代码类型 +///////////////////////////////////////////////////////////////////////// +///质押比例 +#define THOST_FTDC_ESPI_MortgageRatio '1' +///分项资金导入项 +#define THOST_FTDC_ESPI_OtherFundItem '2' +///分项资金入交易所出入金 +#define THOST_FTDC_ESPI_OtherFundImport '3' +///中金所开户最低可用金额 +#define THOST_FTDC_ESPI_CFFEXMinPrepa '6' +///郑商所结算方式 +#define THOST_FTDC_ESPI_CZCESettlementType '7' +///交易所交割手续费收取方式 +#define THOST_FTDC_ESPI_ExchDelivFeeMode '9' +///投资者交割手续费收取方式 +#define THOST_FTDC_ESPI_DelivFeeMode '0' +///郑商所组合持仓保证金收取方式 +#define THOST_FTDC_ESPI_CZCEComMarginType 'A' +///大商所套利保证金是否优惠 +#define THOST_FTDC_ESPI_DceComMarginType 'B' +///虚值期权保证金优惠比率 +#define THOST_FTDC_ESPI_OptOutDisCountRate 'a' +///最低保障系数 +#define THOST_FTDC_ESPI_OptMiniGuarantee 'b' + +typedef char TThostFtdcExchangeSettlementParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemParamIDType是一个系统参数代码类型 +///////////////////////////////////////////////////////////////////////// +///投资者代码最小长度 +#define THOST_FTDC_SPI_InvestorIDMinLength '1' +///投资者帐号代码最小长度 +#define THOST_FTDC_SPI_AccountIDMinLength '2' +///投资者开户默认登录权限 +#define THOST_FTDC_SPI_UserRightLogon '3' +///投资者交易结算单成交汇总方式 +#define THOST_FTDC_SPI_SettlementBillTrade '4' +///统一开户更新交易编码方式 +#define THOST_FTDC_SPI_TradingCode '5' +///结算是否判断存在未复核的出入金和分项资金 +#define THOST_FTDC_SPI_CheckFund '6' +///是否启用手续费模板数据权限 +#define THOST_FTDC_SPI_CommModelRight '7' +///是否启用保证金率模板数据权限 +#define THOST_FTDC_SPI_MarginModelRight '9' +///是否规范用户才能激活 +#define THOST_FTDC_SPI_IsStandardActive '8' +///上传的交易所结算文件路径 +#define THOST_FTDC_SPI_UploadSettlementFile 'U' +///上报保证金监控中心文件路径 +#define THOST_FTDC_SPI_DownloadCSRCFile 'D' +///生成的结算单文件路径 +#define THOST_FTDC_SPI_SettlementBillFile 'S' +///证监会文件标识 +#define THOST_FTDC_SPI_CSRCOthersFile 'C' +///投资者照片路径 +#define THOST_FTDC_SPI_InvestorPhoto 'P' +///全结经纪公司上传文件路径 +#define THOST_FTDC_SPI_CSRCData 'R' +///开户密码录入方式 +#define THOST_FTDC_SPI_InvestorPwdModel 'I' +///投资者中金所结算文件下载路径 +#define THOST_FTDC_SPI_CFFEXInvestorSettleFile 'F' +///投资者代码编码方式 +#define THOST_FTDC_SPI_InvestorIDType 'a' +///休眠户最高权益 +#define THOST_FTDC_SPI_FreezeMaxReMain 'r' +///手续费相关操作实时上场开关 +#define THOST_FTDC_SPI_IsSync 'A' +///解除开仓权限限制 +#define THOST_FTDC_SPI_RelieveOpenLimit 'O' +///是否规范用户才能休眠 +#define THOST_FTDC_SPI_IsStandardFreeze 'X' +///郑商所是否开放所有品种套保交易 +#define THOST_FTDC_SPI_CZCENormalProductHedge 'B' + +typedef char TThostFtdcSystemParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeParamIDType是一个交易系统参数代码类型 +///////////////////////////////////////////////////////////////////////// +///系统加密算法 +#define THOST_FTDC_TPID_EncryptionStandard 'E' +///系统风险算法 +#define THOST_FTDC_TPID_RiskMode 'R' +///系统风险算法是否全局 0-否 1-是 +#define THOST_FTDC_TPID_RiskModeGlobal 'G' +///密码加密算法 +#define THOST_FTDC_TPID_modeEncode 'P' +///价格小数位数参数 +#define THOST_FTDC_TPID_tickMode 'T' +///用户最大会话数 +#define THOST_FTDC_TPID_SingleUserSessionMaxNum 'S' +///最大连续登录失败数 +#define THOST_FTDC_TPID_LoginFailMaxNum 'L' +///是否强制认证 +#define THOST_FTDC_TPID_IsAuthForce 'A' +///是否冻结证券持仓 +#define THOST_FTDC_TPID_IsPosiFreeze 'F' +///是否限仓 +#define THOST_FTDC_TPID_IsPosiLimit 'M' +///郑商所询价时间间隔 +#define THOST_FTDC_TPID_ForQuoteTimeInterval 'Q' +///是否期货限仓 +#define THOST_FTDC_TPID_IsFuturePosiLimit 'B' +///是否期货下单频率限制 +#define THOST_FTDC_TPID_IsFutureOrderFreq 'C' +///行权冻结是否计算盈利 +#define THOST_FTDC_TPID_IsExecOrderProfit 'H' +///银期开户是否验证开户银行卡号是否是预留银行账户 +#define THOST_FTDC_TPID_IsCheckBankAcc 'I' +///弱密码最后修改日期 +#define THOST_FTDC_TPID_PasswordDeadLine 'J' +///强密码校验 +#define THOST_FTDC_TPID_IsStrongPassword 'K' +///自有资金质押比 +#define THOST_FTDC_TPID_BalanceMorgage 'a' +///最小密码长度 +#define THOST_FTDC_TPID_MinPwdLen 'O' +///IP当日最大登陆失败次数 +#define THOST_FTDC_TPID_LoginFailMaxNumForIP 'U' +///密码有效期 +#define THOST_FTDC_TPID_PasswordPeriod 'V' + +typedef char TThostFtdcTradeParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementParamValueType是一个参数代码值类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettlementParamValueType[256]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCounterIDType是一个计数器代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCounterIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorGroupNameType是一个投资者分组名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorGroupNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrandCodeType是一个牌号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrandCodeType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWarehouseType是一个仓库类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWarehouseType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductDateType是一个产期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProductDateType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcGradeType是一个等级类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcGradeType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClassifyType是一个类别类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClassifyType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPositionType是一个货位类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPositionType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcYieldlyType是一个产地类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcYieldlyType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWeightType是一个公定重量类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWeightType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSubEntryFundNoType是一个分项资金流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSubEntryFundNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileIDType是一个文件标识类型 +///////////////////////////////////////////////////////////////////////// +///资金数据 +#define THOST_FTDC_FI_SettlementFund 'F' +///成交数据 +#define THOST_FTDC_FI_Trade 'T' +///投资者持仓数据 +#define THOST_FTDC_FI_InvestorPosition 'P' +///投资者分项资金数据 +#define THOST_FTDC_FI_SubEntryFund 'O' +///组合持仓数据 +#define THOST_FTDC_FI_CZCECombinationPos 'C' +///上报保证金监控中心数据 +#define THOST_FTDC_FI_CSRCData 'R' +///郑商所平仓了结数据 +#define THOST_FTDC_FI_CZCEClose 'L' +///郑商所非平仓了结数据 +#define THOST_FTDC_FI_CZCENoClose 'N' +///持仓明细数据 +#define THOST_FTDC_FI_PositionDtl 'D' +///期权执行文件 +#define THOST_FTDC_FI_OptionStrike 'S' +///结算价比对文件 +#define THOST_FTDC_FI_SettlementPriceComparison 'M' +///上期所非持仓变动明细 +#define THOST_FTDC_FI_NonTradePosChange 'B' + +typedef char TThostFtdcFileIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileNameType是一个文件名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFileNameType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileTypeType是一个文件上传类型类型 +///////////////////////////////////////////////////////////////////////// +///结算 +#define THOST_FTDC_FUT_Settlement '0' +///核对 +#define THOST_FTDC_FUT_Check '1' + +typedef char TThostFtdcFileTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileFormatType是一个文件格式类型 +///////////////////////////////////////////////////////////////////////// +///文本文件(.txt) +#define THOST_FTDC_FFT_Txt '0' +///压缩文件(.zip) +#define THOST_FTDC_FFT_Zip '1' +///DBF文件(.dbf) +#define THOST_FTDC_FFT_DBF '2' + +typedef char TThostFtdcFileFormatType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileUploadStatusType是一个文件状态类型 +///////////////////////////////////////////////////////////////////////// +///上传成功 +#define THOST_FTDC_FUS_SucceedUpload '1' +///上传失败 +#define THOST_FTDC_FUS_FailedUpload '2' +///导入成功 +#define THOST_FTDC_FUS_SucceedLoad '3' +///导入部分成功 +#define THOST_FTDC_FUS_PartSucceedLoad '4' +///导入失败 +#define THOST_FTDC_FUS_FailedLoad '5' + +typedef char TThostFtdcFileUploadStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferDirectionType是一个移仓方向类型 +///////////////////////////////////////////////////////////////////////// +///移出 +#define THOST_FTDC_TD_Out '0' +///移入 +#define THOST_FTDC_TD_In '1' + +typedef char TThostFtdcTransferDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUploadModeType是一个上传文件类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUploadModeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAccountIDType是一个投资者帐号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAccountIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankFlagType是一个银行统一标识类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankFlagType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccountType是一个银行账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankAccountType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenNameType是一个银行账户的开户人名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOpenNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenBankType是一个银行账户的开户行类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOpenBankType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankNameType是一个银行名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPublishPathType是一个发布路径类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPublishPathType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperatorIDType是一个操作员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperatorIDType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMonthCountType是一个月份数量类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcMonthCountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdvanceMonthArrayType是一个月份提前数组类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAdvanceMonthArrayType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateExprType是一个日期表达式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateExprType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentIDExprType是一个合约代码表达式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentIDExprType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentNameExprType是一个合约名称表达式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentNameExprType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSpecialCreateRuleType是一个特殊的创建规则类型 +///////////////////////////////////////////////////////////////////////// +///没有特殊创建规则 +#define THOST_FTDC_SC_NoSpecialRule '0' +///不包含春节 +#define THOST_FTDC_SC_NoSpringFestival '1' + +typedef char TThostFtdcSpecialCreateRuleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBasisPriceTypeType是一个挂牌基准价类型类型 +///////////////////////////////////////////////////////////////////////// +///上一合约结算价 +#define THOST_FTDC_IPT_LastSettlement '1' +///上一合约收盘价 +#define THOST_FTDC_IPT_LaseClose '2' + +typedef char TThostFtdcBasisPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductLifePhaseType是一个产品生命周期状态类型 +///////////////////////////////////////////////////////////////////////// +///活跃 +#define THOST_FTDC_PLP_Active '1' +///不活跃 +#define THOST_FTDC_PLP_NonActive '2' +///注销 +#define THOST_FTDC_PLP_Canceled '3' + +typedef char TThostFtdcProductLifePhaseType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDeliveryModeType是一个交割方式类型 +///////////////////////////////////////////////////////////////////////// +///现金交割 +#define THOST_FTDC_DM_CashDeliv '1' +///实物交割 +#define THOST_FTDC_DM_CommodityDeliv '2' + +typedef char TThostFtdcDeliveryModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLogLevelType是一个日志级别类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLogLevelType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessNameType是一个存储过程名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProcessNameType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperationMemoType是一个操作摘要类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperationMemoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundIOTypeType是一个出入金类型类型 +///////////////////////////////////////////////////////////////////////// +///出入金 +#define THOST_FTDC_FIOT_FundIO '1' +///银期转帐 +#define THOST_FTDC_FIOT_Transfer '2' +///银期换汇 +#define THOST_FTDC_FIOT_SwapCurrency '3' + +typedef char TThostFtdcFundIOTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundTypeType是一个资金类型类型 +///////////////////////////////////////////////////////////////////////// +///银行存款 +#define THOST_FTDC_FT_Deposite '1' +///分项资金 +#define THOST_FTDC_FT_ItemFund '2' +///公司调整 +#define THOST_FTDC_FT_Company '3' +///资金内转 +#define THOST_FTDC_FT_InnerTransfer '4' + +typedef char TThostFtdcFundTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundDirectionType是一个出入金方向类型 +///////////////////////////////////////////////////////////////////////// +///入金 +#define THOST_FTDC_FD_In '1' +///出金 +#define THOST_FTDC_FD_Out '2' + +typedef char TThostFtdcFundDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundStatusType是一个资金状态类型 +///////////////////////////////////////////////////////////////////////// +///已录入 +#define THOST_FTDC_FS_Record '1' +///已复核 +#define THOST_FTDC_FS_Check '2' +///已冲销 +#define THOST_FTDC_FS_Charge '3' + +typedef char TThostFtdcFundStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillNoType是一个票据号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBillNoType[15]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillNameType是一个票据名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBillNameType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPublishStatusType是一个发布状态类型 +///////////////////////////////////////////////////////////////////////// +///未发布 +#define THOST_FTDC_PS_None '1' +///正在发布 +#define THOST_FTDC_PS_Publishing '2' +///已发布 +#define THOST_FTDC_PS_Published '3' + +typedef char TThostFtdcPublishStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueIDType是一个枚举值代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueIDType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueTypeType是一个枚举值类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueTypeType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueLabelType是一个枚举值名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueLabelType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumValueResultType是一个枚举值结果类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEnumValueResultType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemStatusType是一个系统状态类型 +///////////////////////////////////////////////////////////////////////// +///不活跃 +#define THOST_FTDC_ES_NonActive '1' +///启动 +#define THOST_FTDC_ES_Startup '2' +///交易开始初始化 +#define THOST_FTDC_ES_Initialize '3' +///交易完成初始化 +#define THOST_FTDC_ES_Initialized '4' +///收市开始 +#define THOST_FTDC_ES_Close '5' +///收市完成 +#define THOST_FTDC_ES_Closed '6' +///结算 +#define THOST_FTDC_ES_Settlement '7' + +typedef char TThostFtdcSystemStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementStatusType是一个结算状态类型 +///////////////////////////////////////////////////////////////////////// +///初始 +#define THOST_FTDC_STS_Initialize '0' +///结算中 +#define THOST_FTDC_STS_Settlementing '1' +///已结算 +#define THOST_FTDC_STS_Settlemented '2' +///结算完成 +#define THOST_FTDC_STS_Finished '3' + +typedef char TThostFtdcSettlementStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRangeIntTypeType是一个限定值类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRangeIntTypeType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRangeIntFromType是一个限定值下限类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRangeIntFromType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRangeIntToType是一个限定值上限类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRangeIntToType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionIDType是一个功能代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionIDType[25]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionValueCodeType是一个功能编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionValueCodeType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionNameType是一个功能名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRoleIDType是一个角色编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRoleIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRoleNameType是一个角色名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRoleNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDescriptionType是一个描述类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDescriptionType[401]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombineIDType是一个组合编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombineIDType[25]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombineTypeType是一个组合类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombineTypeType[25]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorTypeType是一个投资者类型类型 +///////////////////////////////////////////////////////////////////////// +///自然人 +#define THOST_FTDC_CT_Person '0' +///法人 +#define THOST_FTDC_CT_Company '1' +///投资基金 +#define THOST_FTDC_CT_Fund '2' +///特殊法人 +#define THOST_FTDC_CT_SpecialOrgan '3' +///资管户 +#define THOST_FTDC_CT_Asset '4' + +typedef char TThostFtdcInvestorTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerTypeType是一个经纪公司类型类型 +///////////////////////////////////////////////////////////////////////// +///交易会员 +#define THOST_FTDC_BT_Trade '0' +///交易结算会员 +#define THOST_FTDC_BT_TradeSettle '1' + +typedef char TThostFtdcBrokerTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskLevelType是一个风险等级类型 +///////////////////////////////////////////////////////////////////////// +///低风险客户 +#define THOST_FTDC_FAS_Low '1' +///普通客户 +#define THOST_FTDC_FAS_Normal '2' +///关注客户 +#define THOST_FTDC_FAS_Focus '3' +///风险客户 +#define THOST_FTDC_FAS_Risk '4' + +typedef char TThostFtdcRiskLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFeeAcceptStyleType是一个手续费收取方式类型 +///////////////////////////////////////////////////////////////////////// +///按交易收取 +#define THOST_FTDC_FAS_ByTrade '1' +///按交割收取 +#define THOST_FTDC_FAS_ByDeliv '2' +///不收 +#define THOST_FTDC_FAS_None '3' +///按指定手续费收取 +#define THOST_FTDC_FAS_FixFee '4' + +typedef char TThostFtdcFeeAcceptStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPasswordTypeType是一个密码类型类型 +///////////////////////////////////////////////////////////////////////// +///交易密码 +#define THOST_FTDC_PWDT_Trade '1' +///资金密码 +#define THOST_FTDC_PWDT_Account '2' + +typedef char TThostFtdcPasswordTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAlgorithmType是一个盈亏算法类型 +///////////////////////////////////////////////////////////////////////// +///浮盈浮亏都计算 +#define THOST_FTDC_AG_All '1' +///浮盈不计,浮亏计 +#define THOST_FTDC_AG_OnlyLost '2' +///浮盈计,浮亏不计 +#define THOST_FTDC_AG_OnlyGain '3' +///浮盈浮亏都不计算 +#define THOST_FTDC_AG_None '4' + +typedef char TThostFtdcAlgorithmType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIncludeCloseProfitType是一个是否包含平仓盈利类型 +///////////////////////////////////////////////////////////////////////// +///包含平仓盈利 +#define THOST_FTDC_ICP_Include '0' +///不包含平仓盈利 +#define THOST_FTDC_ICP_NotInclude '2' + +typedef char TThostFtdcIncludeCloseProfitType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAllWithoutTradeType是一个是否受可提比例限制类型 +///////////////////////////////////////////////////////////////////////// +///无仓无成交不受可提比例限制 +#define THOST_FTDC_AWT_Enable '0' +///受可提比例限制 +#define THOST_FTDC_AWT_Disable '2' +///无仓不受可提比例限制 +#define THOST_FTDC_AWT_NoHoldEnable '3' + +typedef char TThostFtdcAllWithoutTradeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommentType是一个盈亏算法说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommentType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVersionType是一个版本号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcVersionType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeCodeType是一个交易代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeDateType是一个交易日期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeDateType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeTimeType是一个交易时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeTimeType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSerialType是一个发起方流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeSerialType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSerialNoType是一个发起方流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTradeSerialNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureIDType是一个期货公司代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankIDType是一个银行代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankIDType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankBrchIDType是一个银行分中心代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankBrchIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankBranchIDType是一个分中心代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankBranchIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperNoType是一个交易柜员类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperNoType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDeviceIDType是一个渠道标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDeviceIDType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRecordNumType是一个记录数类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRecordNumType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccountType是一个期货资金账号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureAccountType[22]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFuturePwdFlagType是一个资金密码核对标志类型 +///////////////////////////////////////////////////////////////////////// +///不核对 +#define THOST_FTDC_FPWD_UnCheck '0' +///核对 +#define THOST_FTDC_FPWD_Check '1' + +typedef char TThostFtdcFuturePwdFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferTypeType是一个银期转账类型类型 +///////////////////////////////////////////////////////////////////////// +///银行转期货 +#define THOST_FTDC_TT_BankToFuture '0' +///期货转银行 +#define THOST_FTDC_TT_FutureToBank '1' + +typedef char TThostFtdcTransferTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccPwdType是一个期货资金密码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureAccPwdType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyCodeType是一个币种类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencyCodeType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRetCodeType是一个响应代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRetCodeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRetInfoType是一个响应信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRetInfoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeAmtType是一个银行总余额类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTradeAmtType[20]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUseAmtType是一个银行可用余额类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUseAmtType[20]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFetchAmtType是一个银行可取余额类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFetchAmtType[20]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferValidFlagType是一个转账有效标志类型 +///////////////////////////////////////////////////////////////////////// +///无效或失败 +#define THOST_FTDC_TVF_Invalid '0' +///有效 +#define THOST_FTDC_TVF_Valid '1' +///冲正 +#define THOST_FTDC_TVF_Reverse '2' + +typedef char TThostFtdcTransferValidFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCertCodeType是一个证件号码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCertCodeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReasonType是一个事由类型 +///////////////////////////////////////////////////////////////////////// +///错单 +#define THOST_FTDC_RN_CD '0' +///资金在途 +#define THOST_FTDC_RN_ZT '1' +///其它 +#define THOST_FTDC_RN_QT '2' + +typedef char TThostFtdcReasonType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundProjectIDType是一个资金项目编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFundProjectIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSexType是一个性别类型 +///////////////////////////////////////////////////////////////////////// +///未知 +#define THOST_FTDC_SEX_None '0' +///男 +#define THOST_FTDC_SEX_Man '1' +///女 +#define THOST_FTDC_SEX_Woman '2' + +typedef char TThostFtdcSexType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProfessionType是一个职业类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProfessionType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNationalType是一个国籍类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNationalType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProvinceType是一个省类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProvinceType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRegionType是一个区类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRegionType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCountryType是一个国家类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCountryType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLicenseNOType是一个营业执照类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLicenseNOType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCompanyTypeType是一个企业性质类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCompanyTypeType[16]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessScopeType是一个经营范围类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBusinessScopeType[1001]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCapitalCurrencyType是一个注册资本币种类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCapitalCurrencyType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserTypeType是一个用户类型类型 +///////////////////////////////////////////////////////////////////////// +///投资者 +#define THOST_FTDC_UT_Investor '0' +///操作员 +#define THOST_FTDC_UT_Operator '1' +///管理员 +#define THOST_FTDC_UT_SuperUser '2' + +typedef char TThostFtdcUserTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBranchIDType是一个营业部编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBranchIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateTypeType是一个费率类型类型 +///////////////////////////////////////////////////////////////////////// +///保证金率 +#define THOST_FTDC_RATETYPE_MarginRate '2' + +typedef char TThostFtdcRateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNoteTypeType是一个通知类型类型 +///////////////////////////////////////////////////////////////////////// +///交易结算单 +#define THOST_FTDC_NOTETYPE_TradeSettleBill '1' +///交易结算月报 +#define THOST_FTDC_NOTETYPE_TradeSettleMonth '2' +///追加保证金通知书 +#define THOST_FTDC_NOTETYPE_CallMarginNotes '3' +///强行平仓通知书 +#define THOST_FTDC_NOTETYPE_ForceCloseNotes '4' +///成交通知书 +#define THOST_FTDC_NOTETYPE_TradeNotes '5' +///交割通知书 +#define THOST_FTDC_NOTETYPE_DelivNotes '6' + +typedef char TThostFtdcNoteTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementStyleType是一个结算单方式类型 +///////////////////////////////////////////////////////////////////////// +///逐日盯市 +#define THOST_FTDC_SBS_Day '1' +///逐笔对冲 +#define THOST_FTDC_SBS_Volume '2' + +typedef char TThostFtdcSettlementStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerDNSType是一个域名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBrokerDNSType[256]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSentenceType是一个语句类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSentenceType[501]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettlementBillTypeType是一个结算单类型类型 +///////////////////////////////////////////////////////////////////////// +///日报 +#define THOST_FTDC_ST_Day '0' +///月报 +#define THOST_FTDC_ST_Month '1' + +typedef char TThostFtdcSettlementBillTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserRightTypeType是一个客户权限类型类型 +///////////////////////////////////////////////////////////////////////// +///登录 +#define THOST_FTDC_URT_Logon '1' +///银期转帐 +#define THOST_FTDC_URT_Transfer '2' +///邮寄结算单 +#define THOST_FTDC_URT_EMail '3' +///传真结算单 +#define THOST_FTDC_URT_Fax '4' +///条件单 +#define THOST_FTDC_URT_ConditionOrder '5' + +typedef char TThostFtdcUserRightTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarginPriceTypeType是一个保证金价格类型类型 +///////////////////////////////////////////////////////////////////////// +///昨结算价 +#define THOST_FTDC_MPT_PreSettlementPrice '1' +///最新价 +#define THOST_FTDC_MPT_SettlementPrice '2' +///成交均价 +#define THOST_FTDC_MPT_AveragePrice '3' +///开仓价 +#define THOST_FTDC_MPT_OpenPrice '4' + +typedef char TThostFtdcMarginPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBillGenStatusType是一个结算单生成状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成 +#define THOST_FTDC_BGS_None '0' +///生成中 +#define THOST_FTDC_BGS_NoGenerated '1' +///已生成 +#define THOST_FTDC_BGS_Generated '2' + +typedef char TThostFtdcBillGenStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAlgoTypeType是一个算法类型类型 +///////////////////////////////////////////////////////////////////////// +///持仓处理算法 +#define THOST_FTDC_AT_HandlePositionAlgo '1' +///寻找保证金率算法 +#define THOST_FTDC_AT_FindMarginRateAlgo '2' + +typedef char TThostFtdcAlgoTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandlePositionAlgoIDType是一个持仓处理算法编号类型 +///////////////////////////////////////////////////////////////////////// +///基本 +#define THOST_FTDC_HPA_Base '1' +///大连商品交易所 +#define THOST_FTDC_HPA_DCE '2' +///郑州商品交易所 +#define THOST_FTDC_HPA_CZCE '3' + +typedef char TThostFtdcHandlePositionAlgoIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFindMarginRateAlgoIDType是一个寻找保证金率算法编号类型 +///////////////////////////////////////////////////////////////////////// +///基本 +#define THOST_FTDC_FMRA_Base '1' +///大连商品交易所 +#define THOST_FTDC_FMRA_DCE '2' +///郑州商品交易所 +#define THOST_FTDC_FMRA_CZCE '3' + +typedef char TThostFtdcFindMarginRateAlgoIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandleTradingAccountAlgoIDType是一个资金处理算法编号类型 +///////////////////////////////////////////////////////////////////////// +///基本 +#define THOST_FTDC_HTAA_Base '1' +///大连商品交易所 +#define THOST_FTDC_HTAA_DCE '2' +///郑州商品交易所 +#define THOST_FTDC_HTAA_CZCE '3' + +typedef char TThostFtdcHandleTradingAccountAlgoIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPersonTypeType是一个联系人类型类型 +///////////////////////////////////////////////////////////////////////// +///指定下单人 +#define THOST_FTDC_PST_Order '1' +///开户授权人 +#define THOST_FTDC_PST_Open '2' +///资金调拨人 +#define THOST_FTDC_PST_Fund '3' +///结算单确认人 +#define THOST_FTDC_PST_Settlement '4' +///法人 +#define THOST_FTDC_PST_Company '5' +///法人代表 +#define THOST_FTDC_PST_Corporation '6' +///投资者联系人 +#define THOST_FTDC_PST_LinkMan '7' +///分户管理资产负责人 +#define THOST_FTDC_PST_Ledger '8' +///托(保)管人 +#define THOST_FTDC_PST_Trustee '9' +///托(保)管机构法人代表 +#define THOST_FTDC_PST_TrusteeCorporation 'A' +///托(保)管机构开户授权人 +#define THOST_FTDC_PST_TrusteeOpen 'B' +///托(保)管机构联系人 +#define THOST_FTDC_PST_TrusteeContact 'C' +///境外自然人参考证件 +#define THOST_FTDC_PST_ForeignerRefer 'D' +///法人代表参考证件 +#define THOST_FTDC_PST_CorporationRefer 'E' + +typedef char TThostFtdcPersonTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryInvestorRangeType是一个查询范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_QIR_All '1' +///查询分类 +#define THOST_FTDC_QIR_Group '2' +///单一投资者 +#define THOST_FTDC_QIR_Single '3' + +typedef char TThostFtdcQueryInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorRiskStatusType是一个投资者风险状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_IRS_Normal '1' +///警告 +#define THOST_FTDC_IRS_Warn '2' +///追保 +#define THOST_FTDC_IRS_Call '3' +///强平 +#define THOST_FTDC_IRS_Force '4' +///异常 +#define THOST_FTDC_IRS_Exception '5' + +typedef char TThostFtdcInvestorRiskStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLegIDType是一个单腿编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLegIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLegMultipleType是一个单腿乘数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLegMultipleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcImplyLevelType是一个派生层数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcImplyLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearAccountType是一个结算账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearAccountType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganNOType是一个结算账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganNOType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearbarchIDType是一个结算账户联行号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearbarchIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserEventTypeType是一个用户事件类型类型 +///////////////////////////////////////////////////////////////////////// +///登录 +#define THOST_FTDC_UET_Login '1' +///登出 +#define THOST_FTDC_UET_Logout '2' +///交易成功 +#define THOST_FTDC_UET_Trading '3' +///交易失败 +#define THOST_FTDC_UET_TradingError '4' +///修改密码 +#define THOST_FTDC_UET_UpdatePassword '5' +///客户端认证 +#define THOST_FTDC_UET_Authenticate '6' +///终端信息上报 +#define THOST_FTDC_UET_SubmitSysInfo '7' +///转账 +#define THOST_FTDC_UET_Transfer '8' +///其他 +#define THOST_FTDC_UET_Other '9' + +typedef char TThostFtdcUserEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserEventInfoType是一个用户事件信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserEventInfoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCloseStyleType是一个平仓方式类型 +///////////////////////////////////////////////////////////////////////// +///先开先平 +#define THOST_FTDC_ICS_Close '0' +///先平今再平昨 +#define THOST_FTDC_ICS_CloseToday '1' + +typedef char TThostFtdcCloseStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStatModeType是一个统计方式类型 +///////////////////////////////////////////////////////////////////////// +///---- +#define THOST_FTDC_SM_Non '0' +///按合约统计 +#define THOST_FTDC_SM_Instrument '1' +///按产品统计 +#define THOST_FTDC_SM_Product '2' +///按投资者统计 +#define THOST_FTDC_SM_Investor '3' + +typedef char TThostFtdcStatModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParkedOrderStatusType是一个预埋单状态类型 +///////////////////////////////////////////////////////////////////////// +///未发送 +#define THOST_FTDC_PAOS_NotSend '1' +///已发送 +#define THOST_FTDC_PAOS_Send '2' +///已删除 +#define THOST_FTDC_PAOS_Deleted '3' + +typedef char TThostFtdcParkedOrderStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParkedOrderIDType是一个预埋报单编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParkedOrderIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParkedOrderActionIDType是一个预埋撤单编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParkedOrderActionIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirDealStatusType是一个处理状态类型 +///////////////////////////////////////////////////////////////////////// +///正在处理 +#define THOST_FTDC_VDS_Dealing '1' +///处理成功 +#define THOST_FTDC_VDS_DeaclSucceed '2' + +typedef char TThostFtdcVirDealStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrgSystemIDType是一个原有系统代码类型 +///////////////////////////////////////////////////////////////////////// +///综合交易平台 +#define THOST_FTDC_ORGS_Standard '0' +///易盛系统 +#define THOST_FTDC_ORGS_ESunny '1' +///金仕达V6系统 +#define THOST_FTDC_ORGS_KingStarV6 '2' + +typedef char TThostFtdcOrgSystemIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirTradeStatusType是一个交易状态类型 +///////////////////////////////////////////////////////////////////////// +///正常处理中 +#define THOST_FTDC_VTS_NaturalDeal '0' +///成功结束 +#define THOST_FTDC_VTS_SucceedEnd '1' +///失败结束 +#define THOST_FTDC_VTS_FailedEND '2' +///异常中 +#define THOST_FTDC_VTS_Exception '3' +///已人工异常处理 +#define THOST_FTDC_VTS_ManualDeal '4' +///通讯异常 ,请人工处理 +#define THOST_FTDC_VTS_MesException '5' +///系统出错,请人工处理 +#define THOST_FTDC_VTS_SysException '6' + +typedef char TThostFtdcVirTradeStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirBankAccTypeType是一个银行帐户类型类型 +///////////////////////////////////////////////////////////////////////// +///存折 +#define THOST_FTDC_VBAT_BankBook '1' +///储蓄卡 +#define THOST_FTDC_VBAT_BankCard '2' +///信用卡 +#define THOST_FTDC_VBAT_CreditCard '3' + +typedef char TThostFtdcVirBankAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirementStatusType是一个银行帐户类型类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_VMS_Natural '0' +///销户 +#define THOST_FTDC_VMS_Canceled '9' + +typedef char TThostFtdcVirementStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirementAvailAbilityType是一个有效标志类型 +///////////////////////////////////////////////////////////////////////// +///未确认 +#define THOST_FTDC_VAA_NoAvailAbility '0' +///有效 +#define THOST_FTDC_VAA_AvailAbility '1' +///冲正 +#define THOST_FTDC_VAA_Repeal '2' + +typedef char TThostFtdcVirementAvailAbilityType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcVirementTradeCodeType是一个交易代码类型 +///////////////////////////////////////////////////////////////////////// +///银行发起银行资金转期货 +#define THOST_FTDC_VTC_BankBankToFuture '102001' +///银行发起期货资金转银行 +#define THOST_FTDC_VTC_BankFutureToBank '102002' +///期货发起银行资金转期货 +#define THOST_FTDC_VTC_FutureBankToFuture '202001' +///期货发起期货资金转银行 +#define THOST_FTDC_VTC_FutureFutureToBank '202002' + +typedef char TThostFtdcVirementTradeCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPhotoTypeNameType是一个影像类型名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPhotoTypeNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPhotoTypeIDType是一个影像类型代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPhotoTypeIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPhotoNameType是一个影像名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPhotoNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTopicIDType是一个主题代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTopicIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReportTypeIDType是一个交易报告类型标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcReportTypeIDType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCharacterIDType是一个交易特征代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCharacterIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLParamIDType是一个参数代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLParamIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInvestorTypeType是一个投资者类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInvestorTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLIdCardTypeType是一个证件类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLIdCardTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTradeDirectType是一个资金进出方向类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTradeDirectType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTradeModelType是一个资金进出方式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTradeModelType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLOpParamValueType是一个业务参数代码值类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcAMLOpParamValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCustomerCardTypeType是一个客户身份证件/证明文件类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLCustomerCardTypeType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInstitutionNameType是一个金融机构网点名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInstitutionNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLDistrictIDType是一个金融机构网点所在地区行政区划代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLDistrictIDType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLRelationShipType是一个金融机构网点与大额交易的关系类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLRelationShipType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInstitutionTypeType是一个金融机构网点代码类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInstitutionTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLInstitutionIDType是一个金融机构网点代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLInstitutionIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLAccountTypeType是一个账户类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLAccountTypeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTradingTypeType是一个交易方式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTradingTypeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLTransactClassType是一个涉外收支交易分类与代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLTransactClassType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCapitalIOType是一个资金收付标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLCapitalIOType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLSiteType是一个交易地点类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLSiteType[10]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCapitalPurposeType是一个资金用途类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLCapitalPurposeType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLReportTypeType是一个报文类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLReportTypeType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLSerialNoType是一个编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLSerialNoType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLStatusType是一个状态类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLStatusType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLGenStatusType是一个Aml生成方式类型 +///////////////////////////////////////////////////////////////////////// +///程序生成 +#define THOST_FTDC_GEN_Program '0' +///人工生成 +#define THOST_FTDC_GEN_HandWork '1' + +typedef char TThostFtdcAMLGenStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLSeqCodeType是一个业务标识号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLSeqCodeType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLFileNameType是一个AML文件名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLFileNameType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLMoneyType是一个反洗钱资金类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcAMLMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLFileAmountType是一个反洗钱资金类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcAMLFileAmountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFMMCKeyType是一个密钥类型(保证金监管)类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCFMMCKeyType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFMMCTokenType是一个令牌类型(保证金监管)类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCFMMCTokenType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFMMCKeyKindType是一个动态密钥类别(保证金监管)类型 +///////////////////////////////////////////////////////////////////////// +///主动请求更新 +#define THOST_FTDC_CFMMCKK_REQUEST 'R' +///CFMMC自动更新 +#define THOST_FTDC_CFMMCKK_AUTO 'A' +///CFMMC手动更新 +#define THOST_FTDC_CFMMCKK_MANUAL 'M' + +typedef char TThostFtdcCFMMCKeyKindType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLReportNameType是一个报文名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAMLReportNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIndividualNameType是一个个人姓名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIndividualNameType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyIDType是一个币种代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencyIDType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCustNumberType是一个客户编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCustNumberType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganCodeType是一个机构编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganCodeType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganNameType是一个机构名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSuperOrganCodeType是一个上级机构编码,即期货公司总部、银行总行类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSuperOrganCodeType[12]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSubBranchIDType是一个分支机构类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSubBranchIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSubBranchNameType是一个分支机构名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSubBranchNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBranchNetCodeType是一个机构网点号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBranchNetCodeType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBranchNetNameType是一个机构网点名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBranchNetNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganFlagType是一个机构标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOrganFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankCodingForFutureType是一个银行对期货公司的编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankCodingForFutureType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankReturnCodeType是一个银行对返回码的定义类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankReturnCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPlateReturnCodeType是一个银期转帐平台对返回码的定义类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPlateReturnCodeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankSubBranchIDType是一个银行分支机构编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankSubBranchIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureBranchIDType是一个期货分支机构编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureBranchIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReturnCodeType是一个返回代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcReturnCodeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOperatorCodeType是一个操作员类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOperatorCodeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearDepIDType是一个机构结算帐户机构号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearDepIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearBrchIDType是一个机构结算帐户联行号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearBrchIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClearNameType是一个机构结算帐户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClearNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccountNameType是一个银行帐户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankAccountNameType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvDepIDType是一个机构投资人账号机构号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvDepIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvBrchIDType是一个机构投资人联行号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvBrchIDType[6]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMessageFormatVersionType是一个信息格式版本类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMessageFormatVersionType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDigestType是一个摘要类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDigestType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthenticDataType是一个认证数据类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthenticDataType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPasswordKeyType是一个密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPasswordKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccountNameType是一个期货帐户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureAccountNameType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMobilePhoneType是一个手机类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcMobilePhoneType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureMainKeyType是一个期货公司主密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureMainKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureWorkKeyType是一个期货公司工作密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureWorkKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureTransKeyType是一个期货公司传输密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFutureTransKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankMainKeyType是一个银行主密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankMainKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankWorkKeyType是一个银行工作密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankWorkKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankTransKeyType是一个银行传输密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankTransKeyType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankServerDescriptionType是一个银行服务器描述信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankServerDescriptionType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAddInfoType是一个附加信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAddInfoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDescrInfoForReturnCodeType是一个返回码描述类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDescrInfoForReturnCodeType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCountryCodeType是一个国家代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCountryCodeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSerialType是一个流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPlateSerialType是一个平台流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcPlateSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankSerialType是一个银行流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankSerialType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCorrectSerialType是一个被冲正交易流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCorrectSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureSerialType是一个期货公司流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFutureSerialType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplicationIDType是一个应用标识类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcApplicationIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankProxyIDType是一个银行代理标识类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcBankProxyIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTCoreIDType是一个银期转帐核心系统标识类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFBTCoreIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServerPortType是一个服务端口号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcServerPortType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRepealedTimesType是一个已经冲正次数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRepealedTimesType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRepealTimeIntervalType是一个冲正时间间隔类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRepealTimeIntervalType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTotalTimesType是一个每日累计转帐次数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTotalTimesType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTRequestIDType是一个请求ID类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFBTRequestIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTIDType是一个交易ID类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeAmountType是一个交易金额(元)类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcTradeAmountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCustFeeType是一个应收客户费用(元)类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCustFeeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureFeeType是一个应收期货公司费用(元)类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcFutureFeeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSingleMaxAmtType是一个单笔最高限额类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcSingleMaxAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSingleMinAmtType是一个单笔最低限额类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcSingleMinAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTotalAmtType是一个每日累计转帐额度类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcTotalAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCertificationTypeType是一个证件类型类型 +///////////////////////////////////////////////////////////////////////// +///身份证 +#define THOST_FTDC_CFT_IDCard '0' +///护照 +#define THOST_FTDC_CFT_Passport '1' +///军官证 +#define THOST_FTDC_CFT_OfficerIDCard '2' +///士兵证 +#define THOST_FTDC_CFT_SoldierIDCard '3' +///回乡证 +#define THOST_FTDC_CFT_HomeComingCard '4' +///户口簿 +#define THOST_FTDC_CFT_HouseholdRegister '5' +///营业执照号 +#define THOST_FTDC_CFT_LicenseNo '6' +///组织机构代码证 +#define THOST_FTDC_CFT_InstitutionCodeCard '7' +///临时营业执照号 +#define THOST_FTDC_CFT_TempLicenseNo '8' +///民办非企业登记证书 +#define THOST_FTDC_CFT_NoEnterpriseLicenseNo '9' +///其他证件 +#define THOST_FTDC_CFT_OtherCard 'x' +///主管部门批文 +#define THOST_FTDC_CFT_SuperDepAgree 'a' + +typedef char TThostFtdcCertificationTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileBusinessCodeType是一个文件业务功能类型 +///////////////////////////////////////////////////////////////////////// +///其他 +#define THOST_FTDC_FBC_Others '0' +///转账交易明细对账 +#define THOST_FTDC_FBC_TransferDetails '1' +///客户账户状态对账 +#define THOST_FTDC_FBC_CustAccStatus '2' +///账户类交易明细对账 +#define THOST_FTDC_FBC_AccountTradeDetails '3' +///期货账户信息变更明细对账 +#define THOST_FTDC_FBC_FutureAccountChangeInfoDetails '4' +///客户资金台账余额明细对账 +#define THOST_FTDC_FBC_CustMoneyDetail '5' +///客户销户结息明细对账 +#define THOST_FTDC_FBC_CustCancelAccountInfo '6' +///客户资金余额对账结果 +#define THOST_FTDC_FBC_CustMoneyResult '7' +///其它对账异常结果文件 +#define THOST_FTDC_FBC_OthersExceptionResult '8' +///客户结息净额明细 +#define THOST_FTDC_FBC_CustInterestNetMoneyDetails '9' +///客户资金交收明细 +#define THOST_FTDC_FBC_CustMoneySendAndReceiveDetails 'a' +///法人存管银行资金交收汇总 +#define THOST_FTDC_FBC_CorporationMoneyTotal 'b' +///主体间资金交收汇总 +#define THOST_FTDC_FBC_MainbodyMoneyTotal 'c' +///总分平衡监管数据 +#define THOST_FTDC_FBC_MainPartMonitorData 'd' +///存管银行备付金余额 +#define THOST_FTDC_FBC_PreparationMoney 'e' +///协办存管银行资金监管数据 +#define THOST_FTDC_FBC_BankMoneyMonitorData 'f' + +typedef char TThostFtdcFileBusinessCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCashExchangeCodeType是一个汇钞标志类型 +///////////////////////////////////////////////////////////////////////// +///汇 +#define THOST_FTDC_CEC_Exchange '1' +///钞 +#define THOST_FTDC_CEC_Cash '2' + +typedef char TThostFtdcCashExchangeCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcYesNoIndicatorType是一个是或否标识类型 +///////////////////////////////////////////////////////////////////////// +///是 +#define THOST_FTDC_YNI_Yes '0' +///否 +#define THOST_FTDC_YNI_No '1' + +typedef char TThostFtdcYesNoIndicatorType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBanlanceTypeType是一个余额类型类型 +///////////////////////////////////////////////////////////////////////// +///当前余额 +#define THOST_FTDC_BLT_CurrentMoney '0' +///可用余额 +#define THOST_FTDC_BLT_UsableMoney '1' +///可取余额 +#define THOST_FTDC_BLT_FetchableMoney '2' +///冻结余额 +#define THOST_FTDC_BLT_FreezeMoney '3' + +typedef char TThostFtdcBanlanceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcGenderType是一个性别类型 +///////////////////////////////////////////////////////////////////////// +///未知状态 +#define THOST_FTDC_GD_Unknown '0' +///男 +#define THOST_FTDC_GD_Male '1' +///女 +#define THOST_FTDC_GD_Female '2' + +typedef char TThostFtdcGenderType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFeePayFlagType是一个费用支付标志类型 +///////////////////////////////////////////////////////////////////////// +///由受益方支付费用 +#define THOST_FTDC_FPF_BEN '0' +///由发送方支付费用 +#define THOST_FTDC_FPF_OUR '1' +///由发送方支付发起的费用,受益方支付接受的费用 +#define THOST_FTDC_FPF_SHA '2' + +typedef char TThostFtdcFeePayFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPassWordKeyTypeType是一个密钥类型类型 +///////////////////////////////////////////////////////////////////////// +///交换密钥 +#define THOST_FTDC_PWKT_ExchangeKey '0' +///密码密钥 +#define THOST_FTDC_PWKT_PassWordKey '1' +///MAC密钥 +#define THOST_FTDC_PWKT_MACKey '2' +///报文密钥 +#define THOST_FTDC_PWKT_MessageKey '3' + +typedef char TThostFtdcPassWordKeyTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTPassWordTypeType是一个密码类型类型 +///////////////////////////////////////////////////////////////////////// +///查询 +#define THOST_FTDC_PWT_Query '0' +///取款 +#define THOST_FTDC_PWT_Fetch '1' +///转帐 +#define THOST_FTDC_PWT_Transfer '2' +///交易 +#define THOST_FTDC_PWT_Trade '3' + +typedef char TThostFtdcFBTPassWordTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTEncryModeType是一个加密方式类型 +///////////////////////////////////////////////////////////////////////// +///不加密 +#define THOST_FTDC_EM_NoEncry '0' +///DES +#define THOST_FTDC_EM_DES '1' +///3DES +#define THOST_FTDC_EM_3DES '2' + +typedef char TThostFtdcFBTEncryModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankRepealFlagType是一个银行冲正标志类型 +///////////////////////////////////////////////////////////////////////// +///银行无需自动冲正 +#define THOST_FTDC_BRF_BankNotNeedRepeal '0' +///银行待自动冲正 +#define THOST_FTDC_BRF_BankWaitingRepeal '1' +///银行已自动冲正 +#define THOST_FTDC_BRF_BankBeenRepealed '2' + +typedef char TThostFtdcBankRepealFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerRepealFlagType是一个期商冲正标志类型 +///////////////////////////////////////////////////////////////////////// +///期商无需自动冲正 +#define THOST_FTDC_BRORF_BrokerNotNeedRepeal '0' +///期商待自动冲正 +#define THOST_FTDC_BRORF_BrokerWaitingRepeal '1' +///期商已自动冲正 +#define THOST_FTDC_BRORF_BrokerBeenRepealed '2' + +typedef char TThostFtdcBrokerRepealFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstitutionTypeType是一个机构类别类型 +///////////////////////////////////////////////////////////////////////// +///银行 +#define THOST_FTDC_TS_Bank '0' +///期商 +#define THOST_FTDC_TS_Future '1' +///券商 +#define THOST_FTDC_TS_Store '2' + +typedef char TThostFtdcInstitutionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLastFragmentType是一个最后分片标志类型 +///////////////////////////////////////////////////////////////////////// +///是最后分片 +#define THOST_FTDC_LF_Yes '0' +///不是最后分片 +#define THOST_FTDC_LF_No '1' + +typedef char TThostFtdcLastFragmentType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccStatusType是一个银行账户状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_BAS_Normal '0' +///冻结 +#define THOST_FTDC_BAS_Freeze '1' +///挂失 +#define THOST_FTDC_BAS_ReportLoss '2' + +typedef char TThostFtdcBankAccStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMoneyAccountStatusType是一个资金账户状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_MAS_Normal '0' +///销户 +#define THOST_FTDC_MAS_Cancel '1' + +typedef char TThostFtdcMoneyAccountStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcManageStatusType是一个存管状态类型 +///////////////////////////////////////////////////////////////////////// +///指定存管 +#define THOST_FTDC_MSS_Point '0' +///预指定 +#define THOST_FTDC_MSS_PrePoint '1' +///撤销指定 +#define THOST_FTDC_MSS_CancelPoint '2' + +typedef char TThostFtdcManageStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemTypeType是一个应用系统类型类型 +///////////////////////////////////////////////////////////////////////// +///银期转帐 +#define THOST_FTDC_SYT_FutureBankTransfer '0' +///银证转帐 +#define THOST_FTDC_SYT_StockBankTransfer '1' +///第三方存管 +#define THOST_FTDC_SYT_TheThirdPartStore '2' + +typedef char TThostFtdcSystemTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTxnEndFlagType是一个银期转帐划转结果标志类型 +///////////////////////////////////////////////////////////////////////// +///正常处理中 +#define THOST_FTDC_TEF_NormalProcessing '0' +///成功结束 +#define THOST_FTDC_TEF_Success '1' +///失败结束 +#define THOST_FTDC_TEF_Failed '2' +///异常中 +#define THOST_FTDC_TEF_Abnormal '3' +///已人工异常处理 +#define THOST_FTDC_TEF_ManualProcessedForException '4' +///通讯异常 ,请人工处理 +#define THOST_FTDC_TEF_CommuFailedNeedManualProcess '5' +///系统出错,请人工处理 +#define THOST_FTDC_TEF_SysErrorNeedManualProcess '6' + +typedef char TThostFtdcTxnEndFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessStatusType是一个银期转帐服务处理状态类型 +///////////////////////////////////////////////////////////////////////// +///未处理 +#define THOST_FTDC_PSS_NotProcess '0' +///开始处理 +#define THOST_FTDC_PSS_StartProcess '1' +///处理完成 +#define THOST_FTDC_PSS_Finished '2' + +typedef char TThostFtdcProcessStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCustTypeType是一个客户类型类型 +///////////////////////////////////////////////////////////////////////// +///自然人 +#define THOST_FTDC_CUSTT_Person '0' +///机构户 +#define THOST_FTDC_CUSTT_Institution '1' + +typedef char TThostFtdcCustTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTTransferDirectionType是一个银期转帐方向类型 +///////////////////////////////////////////////////////////////////////// +///入金,银行转期货 +#define THOST_FTDC_FBTTD_FromBankToFuture '1' +///出金,期货转银行 +#define THOST_FTDC_FBTTD_FromFutureToBank '2' + +typedef char TThostFtdcFBTTransferDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenOrDestroyType是一个开销户类别类型 +///////////////////////////////////////////////////////////////////////// +///开户 +#define THOST_FTDC_OOD_Open '1' +///销户 +#define THOST_FTDC_OOD_Destroy '0' + +typedef char TThostFtdcOpenOrDestroyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAvailabilityFlagType是一个有效标志类型 +///////////////////////////////////////////////////////////////////////// +///未确认 +#define THOST_FTDC_AVAF_Invalid '0' +///有效 +#define THOST_FTDC_AVAF_Valid '1' +///冲正 +#define THOST_FTDC_AVAF_Repeal '2' + +typedef char TThostFtdcAvailabilityFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganTypeType是一个机构类型类型 +///////////////////////////////////////////////////////////////////////// +///银行代理 +#define THOST_FTDC_OT_Bank '1' +///交易前置 +#define THOST_FTDC_OT_Future '2' +///银期转帐平台管理 +#define THOST_FTDC_OT_PlateForm '9' + +typedef char TThostFtdcOrganTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganLevelType是一个机构级别类型 +///////////////////////////////////////////////////////////////////////// +///银行总行或期商总部 +#define THOST_FTDC_OL_HeadQuarters '1' +///银行分中心或期货公司营业部 +#define THOST_FTDC_OL_Branch '2' + +typedef char TThostFtdcOrganLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProtocalIDType是一个协议类型类型 +///////////////////////////////////////////////////////////////////////// +///期商协议 +#define THOST_FTDC_PID_FutureProtocal '0' +///工行协议 +#define THOST_FTDC_PID_ICBCProtocal '1' +///农行协议 +#define THOST_FTDC_PID_ABCProtocal '2' +///中国银行协议 +#define THOST_FTDC_PID_CBCProtocal '3' +///建行协议 +#define THOST_FTDC_PID_CCBProtocal '4' +///交行协议 +#define THOST_FTDC_PID_BOCOMProtocal '5' +///银期转帐平台协议 +#define THOST_FTDC_PID_FBTPlateFormProtocal 'X' + +typedef char TThostFtdcProtocalIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcConnectModeType是一个套接字连接方式类型 +///////////////////////////////////////////////////////////////////////// +///短连接 +#define THOST_FTDC_CM_ShortConnect '0' +///长连接 +#define THOST_FTDC_CM_LongConnect '1' + +typedef char TThostFtdcConnectModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncModeType是一个套接字通信方式类型 +///////////////////////////////////////////////////////////////////////// +///异步 +#define THOST_FTDC_SRM_ASync '0' +///同步 +#define THOST_FTDC_SRM_Sync '1' + +typedef char TThostFtdcSyncModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccTypeType是一个银行帐号类型类型 +///////////////////////////////////////////////////////////////////////// +///银行存折 +#define THOST_FTDC_BAT_BankBook '1' +///储蓄卡 +#define THOST_FTDC_BAT_SavingCard '2' +///信用卡 +#define THOST_FTDC_BAT_CreditCard '3' + +typedef char TThostFtdcBankAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureAccTypeType是一个期货公司帐号类型类型 +///////////////////////////////////////////////////////////////////////// +///银行存折 +#define THOST_FTDC_FAT_BankBook '1' +///储蓄卡 +#define THOST_FTDC_FAT_SavingCard '2' +///信用卡 +#define THOST_FTDC_FAT_CreditCard '3' + +typedef char TThostFtdcFutureAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrganStatusType是一个接入机构状态类型 +///////////////////////////////////////////////////////////////////////// +///启用 +#define THOST_FTDC_OS_Ready '0' +///签到 +#define THOST_FTDC_OS_CheckIn '1' +///签退 +#define THOST_FTDC_OS_CheckOut '2' +///对帐文件到达 +#define THOST_FTDC_OS_CheckFileArrived '3' +///对帐 +#define THOST_FTDC_OS_CheckDetail '4' +///日终清理 +#define THOST_FTDC_OS_DayEndClean '5' +///注销 +#define THOST_FTDC_OS_Invalid '9' + +typedef char TThostFtdcOrganStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCCBFeeModeType是一个建行收费模式类型 +///////////////////////////////////////////////////////////////////////// +///按金额扣收 +#define THOST_FTDC_CCBFM_ByAmount '1' +///按月扣收 +#define THOST_FTDC_CCBFM_ByMonth '2' + +typedef char TThostFtdcCCBFeeModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommApiTypeType是一个通讯API类型类型 +///////////////////////////////////////////////////////////////////////// +///客户端 +#define THOST_FTDC_CAPIT_Client '1' +///服务端 +#define THOST_FTDC_CAPIT_Server '2' +///交易系统的UserApi +#define THOST_FTDC_CAPIT_UserApi '3' + +typedef char TThostFtdcCommApiTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServiceIDType是一个服务编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcServiceIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServiceLineNoType是一个服务线路编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcServiceLineNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcServiceNameType是一个服务名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcServiceNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLinkStatusType是一个连接状态类型 +///////////////////////////////////////////////////////////////////////// +///已经连接 +#define THOST_FTDC_LS_Connected '1' +///没有连接 +#define THOST_FTDC_LS_Disconnected '2' + +typedef char TThostFtdcLinkStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommApiPointerType是一个通讯API指针类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCommApiPointerType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPwdFlagType是一个密码核对标志类型 +///////////////////////////////////////////////////////////////////////// +///不核对 +#define THOST_FTDC_BPWDF_NoCheck '0' +///明文核对 +#define THOST_FTDC_BPWDF_BlankCheck '1' +///密文核对 +#define THOST_FTDC_BPWDF_EncryptCheck '2' + +typedef char TThostFtdcPwdFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSecuAccTypeType是一个期货帐号类型类型 +///////////////////////////////////////////////////////////////////////// +///资金帐号 +#define THOST_FTDC_SAT_AccountID '1' +///资金卡号 +#define THOST_FTDC_SAT_CardID '2' +///上海股东帐号 +#define THOST_FTDC_SAT_SHStockholderID '3' +///深圳股东帐号 +#define THOST_FTDC_SAT_SZStockholderID '4' + +typedef char TThostFtdcSecuAccTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTransferStatusType是一个转账交易状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_TRFS_Normal '0' +///被冲正 +#define THOST_FTDC_TRFS_Repealed '1' + +typedef char TThostFtdcTransferStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSponsorTypeType是一个发起方类型 +///////////////////////////////////////////////////////////////////////// +///期商 +#define THOST_FTDC_SPTYPE_Broker '0' +///银行 +#define THOST_FTDC_SPTYPE_Bank '1' + +typedef char TThostFtdcSponsorTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReqRspTypeType是一个请求响应类别类型 +///////////////////////////////////////////////////////////////////////// +///请求 +#define THOST_FTDC_REQRSP_Request '0' +///响应 +#define THOST_FTDC_REQRSP_Response '1' + +typedef char TThostFtdcReqRspTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTUserEventTypeType是一个银期转帐用户事件类型类型 +///////////////////////////////////////////////////////////////////////// +///签到 +#define THOST_FTDC_FBTUET_SignIn '0' +///银行转期货 +#define THOST_FTDC_FBTUET_FromBankToFuture '1' +///期货转银行 +#define THOST_FTDC_FBTUET_FromFutureToBank '2' +///开户 +#define THOST_FTDC_FBTUET_OpenAccount '3' +///销户 +#define THOST_FTDC_FBTUET_CancelAccount '4' +///变更银行账户 +#define THOST_FTDC_FBTUET_ChangeAccount '5' +///冲正银行转期货 +#define THOST_FTDC_FBTUET_RepealFromBankToFuture '6' +///冲正期货转银行 +#define THOST_FTDC_FBTUET_RepealFromFutureToBank '7' +///查询银行账户 +#define THOST_FTDC_FBTUET_QueryBankAccount '8' +///查询期货账户 +#define THOST_FTDC_FBTUET_QueryFutureAccount '9' +///签退 +#define THOST_FTDC_FBTUET_SignOut 'A' +///密钥同步 +#define THOST_FTDC_FBTUET_SyncKey 'B' +///预约开户 +#define THOST_FTDC_FBTUET_ReserveOpenAccount 'C' +///撤销预约开户 +#define THOST_FTDC_FBTUET_CancelReserveOpenAccount 'D' +///预约开户确认 +#define THOST_FTDC_FBTUET_ReserveOpenAccountConfirm 'E' +///其他 +#define THOST_FTDC_FBTUET_Other 'Z' + +typedef char TThostFtdcFBTUserEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankIDByBankType是一个银行自己的编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankIDByBankType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankOperNoType是一个银行操作员号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankOperNoType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankCustNoType是一个银行客户号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankCustNoType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDBOPSeqNoType是一个递增的序列号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDBOPSeqNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTableNameType是一个FBT表名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTableNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPKNameType是一个FBT表操作主键名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPKNameType[201]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPKValueType是一个FBT表操作主键值类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPKValueType[501]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDBOperationType是一个记录操作类型类型 +///////////////////////////////////////////////////////////////////////// +///插入 +#define THOST_FTDC_DBOP_Insert '0' +///更新 +#define THOST_FTDC_DBOP_Update '1' +///删除 +#define THOST_FTDC_DBOP_Delete '2' + +typedef char TThostFtdcDBOperationType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncFlagType是一个同步标记类型 +///////////////////////////////////////////////////////////////////////// +///已同步 +#define THOST_FTDC_SYNF_Yes '0' +///未同步 +#define THOST_FTDC_SYNF_No '1' + +typedef char TThostFtdcSyncFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTargetIDType是一个同步目标编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTargetIDType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncTypeType是一个同步类型类型 +///////////////////////////////////////////////////////////////////////// +///一次同步 +#define THOST_FTDC_SYNT_OneOffSync '0' +///定时同步 +#define THOST_FTDC_SYNT_TimerSync '1' +///定时完全同步 +#define THOST_FTDC_SYNT_TimerFullSync '2' + +typedef char TThostFtdcSyncTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBETimeType是一个各种换汇时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBETimeType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBankNoType是一个换汇银行行号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBankNoType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBECertNoType是一个换汇凭证号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBECertNoType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExDirectionType是一个换汇方向类型 +///////////////////////////////////////////////////////////////////////// +///结汇 +#define THOST_FTDC_FBEDIR_Settlement '0' +///售汇 +#define THOST_FTDC_FBEDIR_Sale '1' + +typedef char TThostFtdcExDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBankAccountType是一个换汇银行账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBankAccountType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBankAccountNameType是一个换汇银行账户名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBankAccountNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEAmtType是一个各种换汇金额类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcFBEAmtType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBusinessTypeType是一个换汇业务类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBusinessTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEPostScriptType是一个换汇附言类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEPostScriptType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBERemarkType是一个换汇备注类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBERemarkType[71]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExRateType是一个换汇汇率类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcExRateType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEResultFlagType是一个换汇成功标志类型 +///////////////////////////////////////////////////////////////////////// +///成功 +#define THOST_FTDC_FBERES_Success '0' +///账户余额不足 +#define THOST_FTDC_FBERES_InsufficientBalance '1' +///交易结果未知 +#define THOST_FTDC_FBERES_UnknownTrading '8' +///失败 +#define THOST_FTDC_FBERES_Fail 'x' + +typedef char TThostFtdcFBEResultFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBERtnMsgType是一个换汇返回信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBERtnMsgType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEExtendMsgType是一个换汇扩展信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEExtendMsgType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBusinessSerialType是一个换汇记账流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBusinessSerialType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBESystemSerialType是一个换汇流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBESystemSerialType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBETotalExCntType是一个换汇交易总笔数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcFBETotalExCntType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEExchStatusType是一个换汇交易状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_FBEES_Normal '0' +///交易重发 +#define THOST_FTDC_FBEES_ReExchange '1' + +typedef char TThostFtdcFBEExchStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEFileFlagType是一个换汇文件标志类型 +///////////////////////////////////////////////////////////////////////// +///数据包 +#define THOST_FTDC_FBEFG_DataPackage '0' +///文件 +#define THOST_FTDC_FBEFG_File '1' + +typedef char TThostFtdcFBEFileFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEAlreadyTradeType是一个换汇已交易标志类型 +///////////////////////////////////////////////////////////////////////// +///未交易 +#define THOST_FTDC_FBEAT_NotTrade '0' +///已交易 +#define THOST_FTDC_FBEAT_Trade '1' + +typedef char TThostFtdcFBEAlreadyTradeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEOpenBankType是一个换汇账户开户行类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEOpenBankType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEUserEventTypeType是一个银期换汇用户事件类型类型 +///////////////////////////////////////////////////////////////////////// +///签到 +#define THOST_FTDC_FBEUET_SignIn '0' +///换汇 +#define THOST_FTDC_FBEUET_Exchange '1' +///换汇重发 +#define THOST_FTDC_FBEUET_ReExchange '2' +///银行账户查询 +#define THOST_FTDC_FBEUET_QueryBankAccount '3' +///换汇明细查询 +#define THOST_FTDC_FBEUET_QueryExchDetial '4' +///换汇汇总查询 +#define THOST_FTDC_FBEUET_QueryExchSummary '5' +///换汇汇率查询 +#define THOST_FTDC_FBEUET_QueryExchRate '6' +///对账文件通知 +#define THOST_FTDC_FBEUET_CheckBankAccount '7' +///签退 +#define THOST_FTDC_FBEUET_SignOut '8' +///其他 +#define THOST_FTDC_FBEUET_Other 'Z' + +typedef char TThostFtdcFBEUserEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEFileNameType是一个换汇相关文件名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEFileNameType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEBatchSerialType是一个换汇批次号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFBEBatchSerialType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBEReqFlagType是一个换汇发送标志类型 +///////////////////////////////////////////////////////////////////////// +///未处理 +#define THOST_FTDC_FBERF_UnProcessed '0' +///等待发送 +#define THOST_FTDC_FBERF_WaitSend '1' +///发送成功 +#define THOST_FTDC_FBERF_SendSuccess '2' +///发送失败 +#define THOST_FTDC_FBERF_SendFailed '3' +///等待重发 +#define THOST_FTDC_FBERF_WaitReSend '4' + +typedef char TThostFtdcFBEReqFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNotifyClassType是一个风险通知类型类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_NC_NOERROR '0' +///警示 +#define THOST_FTDC_NC_Warn '1' +///追保 +#define THOST_FTDC_NC_Call '2' +///强平 +#define THOST_FTDC_NC_Force '3' +///穿仓 +#define THOST_FTDC_NC_CHUANCANG '4' +///异常 +#define THOST_FTDC_NC_Exception '5' + +typedef char TThostFtdcNotifyClassType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskNofityInfoType是一个客户风险通知消息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRiskNofityInfoType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForceCloseSceneIdType是一个强平场景编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcForceCloseSceneIdType[24]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForceCloseTypeType是一个强平单类型类型 +///////////////////////////////////////////////////////////////////////// +///手工强平 +#define THOST_FTDC_FCT_Manual '0' +///单一投资者辅助强平 +#define THOST_FTDC_FCT_Single '1' +///批量投资者辅助强平 +#define THOST_FTDC_FCT_Group '2' + +typedef char TThostFtdcForceCloseTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInstrumentIDsType是一个多个产品代码,用+分隔,如cu+zn类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInstrumentIDsType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskNotifyMethodType是一个风险通知途径类型 +///////////////////////////////////////////////////////////////////////// +///系统通知 +#define THOST_FTDC_RNM_System '0' +///短信通知 +#define THOST_FTDC_RNM_SMS '1' +///邮件通知 +#define THOST_FTDC_RNM_EMail '2' +///人工通知 +#define THOST_FTDC_RNM_Manual '3' + +typedef char TThostFtdcRiskNotifyMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskNotifyStatusType是一个风险通知状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成 +#define THOST_FTDC_RNS_NotGen '0' +///已生成未发送 +#define THOST_FTDC_RNS_Generated '1' +///发送失败 +#define THOST_FTDC_RNS_SendError '2' +///已发送未接收 +#define THOST_FTDC_RNS_SendOk '3' +///已接收未确认 +#define THOST_FTDC_RNS_Received '4' +///已确认 +#define THOST_FTDC_RNS_Confirmed '5' + +typedef char TThostFtdcRiskNotifyStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskUserEventType是一个风控用户操作事件类型 +///////////////////////////////////////////////////////////////////////// +///导出数据 +#define THOST_FTDC_RUE_ExportData '0' + +typedef char TThostFtdcRiskUserEventType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParamIDType是一个参数代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParamNameType是一个参数名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParamNameType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcParamValueType是一个参数值类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcParamValueType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcConditionalOrderSortTypeType是一个条件单索引条件类型 +///////////////////////////////////////////////////////////////////////// +///使用最新价升序 +#define THOST_FTDC_COST_LastPriceAsc '0' +///使用最新价降序 +#define THOST_FTDC_COST_LastPriceDesc '1' +///使用卖价升序 +#define THOST_FTDC_COST_AskPriceAsc '2' +///使用卖价降序 +#define THOST_FTDC_COST_AskPriceDesc '3' +///使用买价升序 +#define THOST_FTDC_COST_BidPriceAsc '4' +///使用买价降序 +#define THOST_FTDC_COST_BidPriceDesc '5' + +typedef char TThostFtdcConditionalOrderSortTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSendTypeType是一个报送状态类型 +///////////////////////////////////////////////////////////////////////// +///未发送 +#define THOST_FTDC_UOAST_NoSend '0' +///已发送 +#define THOST_FTDC_UOAST_Sended '1' +///已生成 +#define THOST_FTDC_UOAST_Generated '2' +///报送失败 +#define THOST_FTDC_UOAST_SendFail '3' +///接收成功 +#define THOST_FTDC_UOAST_Success '4' +///接收失败 +#define THOST_FTDC_UOAST_Fail '5' +///取消报送 +#define THOST_FTDC_UOAST_Cancel '6' + +typedef char TThostFtdcSendTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientIDStatusType是一个交易编码状态类型 +///////////////////////////////////////////////////////////////////////// +///未申请 +#define THOST_FTDC_UOACS_NoApply '1' +///已提交申请 +#define THOST_FTDC_UOACS_Submited '2' +///已发送申请 +#define THOST_FTDC_UOACS_Sended '3' +///完成 +#define THOST_FTDC_UOACS_Success '4' +///拒绝 +#define THOST_FTDC_UOACS_Refuse '5' +///已撤销编码 +#define THOST_FTDC_UOACS_Cancel '6' + +typedef char TThostFtdcClientIDStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIndustryIDType是一个行业编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIndustryIDType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQuestionIDType是一个特有信息编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcQuestionIDType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQuestionContentType是一个特有信息说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcQuestionContentType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionIDType是一个选项编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOptionIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionContentType是一个选项说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOptionContentType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQuestionTypeType是一个特有信息类型类型 +///////////////////////////////////////////////////////////////////////// +///单选 +#define THOST_FTDC_QT_Radio '1' +///多选 +#define THOST_FTDC_QT_Option '2' +///填空 +#define THOST_FTDC_QT_Blank '3' + +typedef char TThostFtdcQuestionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessIDType是一个业务流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProcessIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSeqNoType是一个流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSeqNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAProcessStatusType是一个流程状态类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAProcessStatusType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProcessTypeType是一个流程功能类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcProcessTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessTypeType是一个业务类型类型 +///////////////////////////////////////////////////////////////////////// +///请求 +#define THOST_FTDC_BT_Request '1' +///应答 +#define THOST_FTDC_BT_Response '2' +///通知 +#define THOST_FTDC_BT_Notice '3' + +typedef char TThostFtdcBusinessTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCfmmcReturnCodeType是一个监控中心返回码类型 +///////////////////////////////////////////////////////////////////////// +///成功 +#define THOST_FTDC_CRC_Success '0' +///该客户已经有流程在处理中 +#define THOST_FTDC_CRC_Working '1' +///监控中客户资料检查失败 +#define THOST_FTDC_CRC_InfoFail '2' +///监控中实名制检查失败 +#define THOST_FTDC_CRC_IDCardFail '3' +///其他错误 +#define THOST_FTDC_CRC_OtherFail '4' + +typedef char TThostFtdcCfmmcReturnCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExReturnCodeType是一个交易所返回码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcExReturnCodeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientTypeType是一个客户类型类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_CfMMCCT_All '0' +///个人 +#define THOST_FTDC_CfMMCCT_Person '1' +///单位 +#define THOST_FTDC_CfMMCCT_Company '2' +///其他 +#define THOST_FTDC_CfMMCCT_Other '3' +///特殊法人 +#define THOST_FTDC_CfMMCCT_SpecialOrgan '4' +///资管户 +#define THOST_FTDC_CfMMCCT_Asset '5' + +typedef char TThostFtdcClientTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeIDTypeType是一个交易所编号类型 +///////////////////////////////////////////////////////////////////////// +///上海期货交易所 +#define THOST_FTDC_EIDT_SHFE 'S' +///郑州商品交易所 +#define THOST_FTDC_EIDT_CZCE 'Z' +///大连商品交易所 +#define THOST_FTDC_EIDT_DCE 'D' +///中国金融期货交易所 +#define THOST_FTDC_EIDT_CFFEX 'J' +///上海国际能源交易中心股份有限公司 +#define THOST_FTDC_EIDT_INE 'N' + +typedef char TThostFtdcExchangeIDTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExClientIDTypeType是一个交易编码类型类型 +///////////////////////////////////////////////////////////////////////// +///套保 +#define THOST_FTDC_ECIDT_Hedge '1' +///套利 +#define THOST_FTDC_ECIDT_Arbitrage '2' +///投机 +#define THOST_FTDC_ECIDT_Speculation '3' + +typedef char TThostFtdcExClientIDTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientClassifyType是一个客户分类码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientClassifyType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAOrganTypeType是一个单位性质类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAOrganTypeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOACountryCodeType是一个国家代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOACountryCodeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAreaCodeType是一个区号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAreaCodeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFuturesIDType是一个监控中心为客户分配的代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFuturesIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffmcDateType是一个日期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffmcDateType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffmcTimeType是一个时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffmcTimeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNocIDType是一个组织机构代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNocIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUpdateFlagType是一个更新状态类型 +///////////////////////////////////////////////////////////////////////// +///未更新 +#define THOST_FTDC_UF_NoUpdate '0' +///更新全部信息成功 +#define THOST_FTDC_UF_Success '1' +///更新全部信息失败 +#define THOST_FTDC_UF_Fail '2' +///更新交易编码成功 +#define THOST_FTDC_UF_TCSuccess '3' +///更新交易编码失败 +#define THOST_FTDC_UF_TCFail '4' +///已丢弃 +#define THOST_FTDC_UF_Cancel '5' + +typedef char TThostFtdcUpdateFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplyOperateIDType是一个申请动作类型 +///////////////////////////////////////////////////////////////////////// +///开户 +#define THOST_FTDC_AOID_OpenInvestor '1' +///修改身份信息 +#define THOST_FTDC_AOID_ModifyIDCard '2' +///修改一般信息 +#define THOST_FTDC_AOID_ModifyNoIDCard '3' +///申请交易编码 +#define THOST_FTDC_AOID_ApplyTradingCode '4' +///撤销交易编码 +#define THOST_FTDC_AOID_CancelTradingCode '5' +///销户 +#define THOST_FTDC_AOID_CancelInvestor '6' +///账户休眠 +#define THOST_FTDC_AOID_FreezeAccount '8' +///激活休眠账户 +#define THOST_FTDC_AOID_ActiveFreezeAccount '9' + +typedef char TThostFtdcApplyOperateIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplyStatusIDType是一个申请状态类型 +///////////////////////////////////////////////////////////////////////// +///未补全 +#define THOST_FTDC_ASID_NoComplete '1' +///已提交 +#define THOST_FTDC_ASID_Submited '2' +///已审核 +#define THOST_FTDC_ASID_Checked '3' +///已拒绝 +#define THOST_FTDC_ASID_Refused '4' +///已删除 +#define THOST_FTDC_ASID_Deleted '5' + +typedef char TThostFtdcApplyStatusIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSendMethodType是一个发送方式类型 +///////////////////////////////////////////////////////////////////////// +///文件发送 +#define THOST_FTDC_UOASM_ByAPI '1' +///电子发送 +#define THOST_FTDC_UOASM_ByFile '2' + +typedef char TThostFtdcSendMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEventTypeType是一个业务操作类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcEventTypeType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEventModeType是一个操作方法类型 +///////////////////////////////////////////////////////////////////////// +///增加 +#define THOST_FTDC_EvM_ADD '1' +///修改 +#define THOST_FTDC_EvM_UPDATE '2' +///删除 +#define THOST_FTDC_EvM_DELETE '3' +///复核 +#define THOST_FTDC_EvM_CHECK '4' +///复制 +#define THOST_FTDC_EvM_COPY '5' +///注销 +#define THOST_FTDC_EvM_CANCEL '6' +///冲销 +#define THOST_FTDC_EvM_Reverse '7' + +typedef char TThostFtdcEventModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAAutoSendType是一个统一开户申请自动发送类型 +///////////////////////////////////////////////////////////////////////// +///自动发送并接收 +#define THOST_FTDC_UOAA_ASR '1' +///自动发送,不自动接收 +#define THOST_FTDC_UOAA_ASNR '2' +///不自动发送,自动接收 +#define THOST_FTDC_UOAA_NSAR '3' +///不自动发送,也不自动接收 +#define THOST_FTDC_UOAA_NSR '4' + +typedef char TThostFtdcUOAAutoSendType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryDepthType是一个查询深度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcQueryDepthType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataCenterIDType是一个数据中心代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDataCenterIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFlowIDType是一个流程ID类型 +///////////////////////////////////////////////////////////////////////// +///投资者对应投资者组设置 +#define THOST_FTDC_EvM_InvestorGroupFlow '1' +///投资者手续费率设置 +#define THOST_FTDC_EvM_InvestorRate '2' +///投资者手续费率模板关系设置 +#define THOST_FTDC_EvM_InvestorCommRateModel '3' + +typedef char TThostFtdcFlowIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckLevelType是一个复核级别类型 +///////////////////////////////////////////////////////////////////////// +///零级复核 +#define THOST_FTDC_CL_Zero '0' +///一级复核 +#define THOST_FTDC_CL_One '1' +///二级复核 +#define THOST_FTDC_CL_Two '2' + +typedef char TThostFtdcCheckLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckNoType是一个操作次数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCheckNoType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckStatusType是一个复核级别类型 +///////////////////////////////////////////////////////////////////////// +///未复核 +#define THOST_FTDC_CHS_Init '0' +///复核中 +#define THOST_FTDC_CHS_Checking '1' +///已复核 +#define THOST_FTDC_CHS_Checked '2' +///拒绝 +#define THOST_FTDC_CHS_Refuse '3' +///作废 +#define THOST_FTDC_CHS_Cancel '4' + +typedef char TThostFtdcCheckStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUsedStatusType是一个生效状态类型 +///////////////////////////////////////////////////////////////////////// +///未生效 +#define THOST_FTDC_CHU_Unused '0' +///已生效 +#define THOST_FTDC_CHU_Used '1' +///生效失败 +#define THOST_FTDC_CHU_Fail '2' + +typedef char TThostFtdcUsedStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateTemplateNameType是一个模型名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRateTemplateNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyStringType是一个用于查询的投资属性字段类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPropertyStringType[2049]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAcountOriginType是一个账户来源类型 +///////////////////////////////////////////////////////////////////////// +///手工录入 +#define THOST_FTDC_BAO_ByAccProperty '0' +///银期转账 +#define THOST_FTDC_BAO_ByFBTransfer '1' + +typedef char TThostFtdcBankAcountOriginType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMonthBillTradeSumType是一个结算单月报成交汇总方式类型 +///////////////////////////////////////////////////////////////////////// +///同日同合约 +#define THOST_FTDC_MBTS_ByInstrument '0' +///同日同合约同价格 +#define THOST_FTDC_MBTS_ByDayInsPrc '1' +///同合约 +#define THOST_FTDC_MBTS_ByDayIns '2' + +typedef char TThostFtdcMonthBillTradeSumType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFBTTradeCodeEnumType是一个银期交易代码枚举类型 +///////////////////////////////////////////////////////////////////////// +///银行发起银行转期货 +#define THOST_FTDC_FTC_BankLaunchBankToBroker '102001' +///期货发起银行转期货 +#define THOST_FTDC_FTC_BrokerLaunchBankToBroker '202001' +///银行发起期货转银行 +#define THOST_FTDC_FTC_BankLaunchBrokerToBank '102002' +///期货发起期货转银行 +#define THOST_FTDC_FTC_BrokerLaunchBrokerToBank '202002' + +typedef char TThostFtdcFBTTradeCodeEnumType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateTemplateIDType是一个模型代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRateTemplateIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskRateType是一个风险度类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRiskRateType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimestampType是一个时间戳类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTimestampType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorIDRuleNameType是一个号段规则名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorIDRuleNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorIDRuleExprType是一个号段规则表达式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorIDRuleExprType[513]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLastDriftType是一个上次OTP漂移值类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLastDriftType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLastSuccessType是一个上次OTP成功值类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcLastSuccessType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthKeyType是一个令牌密钥类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthKeyType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSerialNumberType是一个序列号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSerialNumberType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPTypeType是一个动态令牌类型类型 +///////////////////////////////////////////////////////////////////////// +///无动态令牌 +#define THOST_FTDC_OTP_NONE '0' +///时间令牌 +#define THOST_FTDC_OTP_TOTP '1' + +typedef char TThostFtdcOTPTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPVendorsIDType是一个动态令牌提供商类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTPVendorsIDType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPVendorsNameType是一个动态令牌提供商名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTPVendorsNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTPStatusType是一个动态令牌状态类型 +///////////////////////////////////////////////////////////////////////// +///未使用 +#define THOST_FTDC_OTPS_Unused '0' +///已使用 +#define THOST_FTDC_OTPS_Used '1' +///注销 +#define THOST_FTDC_OTPS_Disuse '2' + +typedef char TThostFtdcOTPStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBrokerUserTypeType是一个经济公司用户类型类型 +///////////////////////////////////////////////////////////////////////// +///投资者 +#define THOST_FTDC_BUT_Investor '1' +///操作员 +#define THOST_FTDC_BUT_BrokerUser '2' + +typedef char TThostFtdcBrokerUserTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFutureTypeType是一个期货类型类型 +///////////////////////////////////////////////////////////////////////// +///商品期货 +#define THOST_FTDC_FUTT_Commodity '1' +///金融期货 +#define THOST_FTDC_FUTT_Financial '2' + +typedef char TThostFtdcFutureTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundEventTypeType是一个资金管理操作类型类型 +///////////////////////////////////////////////////////////////////////// +///转账限额 +#define THOST_FTDC_FET_Restriction '0' +///当日转账限额 +#define THOST_FTDC_FET_TodayRestriction '1' +///期商流水 +#define THOST_FTDC_FET_Transfer '2' +///资金冻结 +#define THOST_FTDC_FET_Credit '3' +///投资者可提资金比例 +#define THOST_FTDC_FET_InvestorWithdrawAlm '4' +///单个银行帐户转账限额 +#define THOST_FTDC_FET_BankRestriction '5' +///银期签约账户 +#define THOST_FTDC_FET_Accountregister '6' +///交易所出入金 +#define THOST_FTDC_FET_ExchangeFundIO '7' +///投资者出入金 +#define THOST_FTDC_FET_InvestorFundIO '8' + +typedef char TThostFtdcFundEventTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAccountSourceTypeType是一个资金账户来源类型 +///////////////////////////////////////////////////////////////////////// +///银期同步 +#define THOST_FTDC_AST_FBTransfer '0' +///手工录入 +#define THOST_FTDC_AST_ManualEntry '1' + +typedef char TThostFtdcAccountSourceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCodeSourceTypeType是一个交易编码来源类型 +///////////////////////////////////////////////////////////////////////// +///统一开户(已规范) +#define THOST_FTDC_CST_UnifyAccount '0' +///手工录入(未规范) +#define THOST_FTDC_CST_ManualEntry '1' + +typedef char TThostFtdcCodeSourceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserRangeType是一个操作员范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_UR_All '0' +///单一操作员 +#define THOST_FTDC_UR_Single '1' + +typedef char TThostFtdcUserRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTimeSpanType是一个时间跨度类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcTimeSpanType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcImportSequenceIDType是一个动态令牌导入批次编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcImportSequenceIDType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcByGroupType是一个交易统计表按客户统计方式类型 +///////////////////////////////////////////////////////////////////////// +///按投资者统计 +#define THOST_FTDC_BG_Investor '2' +///按类统计 +#define THOST_FTDC_BG_Group '1' + +typedef char TThostFtdcByGroupType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSumStatModeType是一个交易统计表按范围统计方式类型 +///////////////////////////////////////////////////////////////////////// +///按合约统计 +#define THOST_FTDC_TSSM_Instrument '1' +///按产品统计 +#define THOST_FTDC_TSSM_Product '2' +///按交易所统计 +#define THOST_FTDC_TSSM_Exchange '3' + +typedef char TThostFtdcTradeSumStatModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcComTypeType是一个组合成交类型类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcComTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserProductIDType是一个产品标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserProductIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserProductNameType是一个产品名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserProductNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserProductMemoType是一个产品说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUserProductMemoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCCancelFlagType是一个新增或变更标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCCancelFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCDateType是一个日期类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCDateType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCInvestorNameType是一个客户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCInvestorNameType[201]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCOpenInvestorNameType是一个客户名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCOpenInvestorNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCInvestorIDType是一个客户代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCInvestorIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCIdentifiedCardNoType是一个证件号码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCIdentifiedCardNoType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCClientIDType是一个交易编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCClientIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCBankFlagType是一个银行标识类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCBankFlagType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCBankAccountType是一个银行账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCBankAccountType[23]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCOpenNameType是一个开户人类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCOpenNameType[401]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMemoType是一个说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCMemoType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTimeType是一个时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTimeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTradeIDType是一个成交流水号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTradeIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCExchangeInstIDType是一个合约代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCExchangeInstIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMortgageNameType是一个质押品名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCMortgageNameType[7]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCReasonType是一个事由类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCReasonType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIsSettlementType是一个是否为非结算会员类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIsSettlementType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMoneyType是一个资金类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCSRCMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCPriceType是一个价格类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCSRCPriceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCOptionsTypeType是一个期权类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCOptionsTypeType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCStrikePriceType是一个执行价类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCSRCStrikePriceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTargetProductIDType是一个标的品种类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTargetProductIDType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCTargetInstrIDType是一个标的合约类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCTargetInstrIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommModelNameType是一个手续费率模板名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommModelNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommModelMemoType是一个手续费率模板备注类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCommModelMemoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExprSetModeType是一个日期表达式设置类型类型 +///////////////////////////////////////////////////////////////////////// +///相对已有规则设置 +#define THOST_FTDC_ESM_Relative '1' +///典型设置 +#define THOST_FTDC_ESM_Typical '2' + +typedef char TThostFtdcExprSetModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRateInvestorRangeType是一个投资者范围类型 +///////////////////////////////////////////////////////////////////////// +///公司标准 +#define THOST_FTDC_RIR_All '1' +///模板 +#define THOST_FTDC_RIR_Model '2' +///单一投资者 +#define THOST_FTDC_RIR_Single '3' + +typedef char TThostFtdcRateInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAgentBrokerIDType是一个代理经纪公司代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAgentBrokerIDType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDRIdentityIDType是一个交易中心代码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDRIdentityIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDRIdentityNameType是一个交易中心名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDRIdentityNameType[65]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDBLinkIDType是一个DBLink标识号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDBLinkIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncDataStatusType是一个主次用系统数据同步状态类型 +///////////////////////////////////////////////////////////////////////// +///未同步 +#define THOST_FTDC_SDS_Initialize '0' +///同步中 +#define THOST_FTDC_SDS_Settlementing '1' +///已同步 +#define THOST_FTDC_SDS_Settlemented '2' + +typedef char TThostFtdcSyncDataStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeSourceType是一个成交来源类型 +///////////////////////////////////////////////////////////////////////// +///来自交易所普通回报 +#define THOST_FTDC_TSRC_NORMAL '0' +///来自查询 +#define THOST_FTDC_TSRC_QUERY '1' + +typedef char TThostFtdcTradeSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFlexStatModeType是一个产品合约统计方式类型 +///////////////////////////////////////////////////////////////////////// +///产品统计 +#define THOST_FTDC_FSM_Product '1' +///交易所统计 +#define THOST_FTDC_FSM_Exchange '2' +///统计所有 +#define THOST_FTDC_FSM_All '3' + +typedef char TThostFtdcFlexStatModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcByInvestorRangeType是一个投资者范围统计方式类型 +///////////////////////////////////////////////////////////////////////// +///属性统计 +#define THOST_FTDC_BIR_Property '1' +///统计所有 +#define THOST_FTDC_BIR_All '2' + +typedef char TThostFtdcByInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSRiskRateType是一个风险度类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSRiskRateType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSequenceNo12Type是一个序号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSequenceNo12Type; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPropertyInvestorRangeType是一个投资者范围类型 +///////////////////////////////////////////////////////////////////////// +///所有 +#define THOST_FTDC_PIR_All '1' +///投资者属性 +#define THOST_FTDC_PIR_Property '2' +///单一投资者 +#define THOST_FTDC_PIR_Single '3' + +typedef char TThostFtdcPropertyInvestorRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileStatusType是一个文件状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成 +#define THOST_FTDC_FIS_NoCreate '0' +///已生成 +#define THOST_FTDC_FIS_Created '1' +///生成失败 +#define THOST_FTDC_FIS_Failed '2' + +typedef char TThostFtdcFileStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFileGenStyleType是一个文件生成方式类型 +///////////////////////////////////////////////////////////////////////// +///下发 +#define THOST_FTDC_FGS_FileTransmit '0' +///生成 +#define THOST_FTDC_FGS_FileGen '1' + +typedef char TThostFtdcFileGenStyleType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysOperModeType是一个系统日志操作方法类型 +///////////////////////////////////////////////////////////////////////// +///增加 +#define THOST_FTDC_SoM_Add '1' +///修改 +#define THOST_FTDC_SoM_Update '2' +///删除 +#define THOST_FTDC_SoM_Delete '3' +///复制 +#define THOST_FTDC_SoM_Copy '4' +///激活 +#define THOST_FTDC_SoM_AcTive '5' +///注销 +#define THOST_FTDC_SoM_CanCel '6' +///重置 +#define THOST_FTDC_SoM_ReSet '7' + +typedef char TThostFtdcSysOperModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysOperTypeType是一个系统日志操作类型类型 +///////////////////////////////////////////////////////////////////////// +///修改操作员密码 +#define THOST_FTDC_SoT_UpdatePassword '0' +///操作员组织架构关系 +#define THOST_FTDC_SoT_UserDepartment '1' +///角色管理 +#define THOST_FTDC_SoT_RoleManager '2' +///角色功能设置 +#define THOST_FTDC_SoT_RoleFunction '3' +///基础参数设置 +#define THOST_FTDC_SoT_BaseParam '4' +///设置操作员 +#define THOST_FTDC_SoT_SetUserID '5' +///用户角色设置 +#define THOST_FTDC_SoT_SetUserRole '6' +///用户IP限制 +#define THOST_FTDC_SoT_UserIpRestriction '7' +///组织架构管理 +#define THOST_FTDC_SoT_DepartmentManager '8' +///组织架构向查询分类复制 +#define THOST_FTDC_SoT_DepartmentCopy '9' +///交易编码管理 +#define THOST_FTDC_SoT_Tradingcode 'A' +///投资者状态维护 +#define THOST_FTDC_SoT_InvestorStatus 'B' +///投资者权限管理 +#define THOST_FTDC_SoT_InvestorAuthority 'C' +///属性设置 +#define THOST_FTDC_SoT_PropertySet 'D' +///重置投资者密码 +#define THOST_FTDC_SoT_ReSetInvestorPasswd 'E' +///投资者个性信息维护 +#define THOST_FTDC_SoT_InvestorPersonalityInfo 'F' + +typedef char TThostFtdcSysOperTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCDataQueyTypeType是一个上报数据查询类型类型 +///////////////////////////////////////////////////////////////////////// +///查询当前交易日报送的数据 +#define THOST_FTDC_CSRCQ_Current '0' +///查询历史报送的代理经纪公司的数据 +#define THOST_FTDC_CSRCQ_History '1' + +typedef char TThostFtdcCSRCDataQueyTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFreezeStatusType是一个休眠状态类型 +///////////////////////////////////////////////////////////////////////// +///活跃 +#define THOST_FTDC_FRS_Normal '1' +///休眠 +#define THOST_FTDC_FRS_Freeze '0' + +typedef char TThostFtdcFreezeStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStandardStatusType是一个规范状态类型 +///////////////////////////////////////////////////////////////////////// +///已规范 +#define THOST_FTDC_STST_Standard '0' +///未规范 +#define THOST_FTDC_STST_NonStandard '1' + +typedef char TThostFtdcStandardStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCFreezeStatusType是一个休眠状态类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCFreezeStatusType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRightParamTypeType是一个配置类型类型 +///////////////////////////////////////////////////////////////////////// +///休眠户 +#define THOST_FTDC_RPT_Freeze '1' +///激活休眠户 +#define THOST_FTDC_RPT_FreezeActive '2' +///开仓权限限制 +#define THOST_FTDC_RPT_OpenLimit '3' +///解除开仓权限限制 +#define THOST_FTDC_RPT_RelieveOpenLimit '4' + +typedef char TThostFtdcRightParamTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRightTemplateIDType是一个模板代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRightTemplateIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRightTemplateNameType是一个模板名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRightTemplateNameType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataStatusType是一个反洗钱审核表数据状态类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_AMLDS_Normal '0' +///已删除 +#define THOST_FTDC_AMLDS_Deleted '1' + +typedef char TThostFtdcDataStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAMLCheckStatusType是一个审核状态类型 +///////////////////////////////////////////////////////////////////////// +///未复核 +#define THOST_FTDC_AMLCHS_Init '0' +///复核中 +#define THOST_FTDC_AMLCHS_Checking '1' +///已复核 +#define THOST_FTDC_AMLCHS_Checked '2' +///拒绝上报 +#define THOST_FTDC_AMLCHS_RefuseReport '3' + +typedef char TThostFtdcAMLCheckStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmlDateTypeType是一个日期类型类型 +///////////////////////////////////////////////////////////////////////// +///检查日期 +#define THOST_FTDC_AMLDT_DrawDay '0' +///发生日期 +#define THOST_FTDC_AMLDT_TouchDay '1' + +typedef char TThostFtdcAmlDateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmlCheckLevelType是一个审核级别类型 +///////////////////////////////////////////////////////////////////////// +///零级审核 +#define THOST_FTDC_AMLCL_CheckLevel0 '0' +///一级审核 +#define THOST_FTDC_AMLCL_CheckLevel1 '1' +///二级审核 +#define THOST_FTDC_AMLCL_CheckLevel2 '2' +///三级审核 +#define THOST_FTDC_AMLCL_CheckLevel3 '3' + +typedef char TThostFtdcAmlCheckLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmlCheckFlowType是一个反洗钱数据抽取审核流程类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAmlCheckFlowType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataTypeType是一个数据类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDataTypeType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExportFileTypeType是一个导出文件类型类型 +///////////////////////////////////////////////////////////////////////// +///CSV +#define THOST_FTDC_EFT_CSV '0' +///Excel +#define THOST_FTDC_EFT_EXCEL '1' +///DBF +#define THOST_FTDC_EFT_DBF '2' + +typedef char TThostFtdcExportFileTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerTypeType是一个结算配置类型类型 +///////////////////////////////////////////////////////////////////////// +///结算前准备 +#define THOST_FTDC_SMT_Before '1' +///结算 +#define THOST_FTDC_SMT_Settlement '2' +///结算后核对 +#define THOST_FTDC_SMT_After '3' +///结算后处理 +#define THOST_FTDC_SMT_Settlemented '4' + +typedef char TThostFtdcSettleManagerTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerIDType是一个结算配置代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettleManagerIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerNameType是一个结算配置名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSettleManagerNameType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerLevelType是一个结算配置等级类型 +///////////////////////////////////////////////////////////////////////// +///必要 +#define THOST_FTDC_SML_Must '1' +///警告 +#define THOST_FTDC_SML_Alarm '2' +///提示 +#define THOST_FTDC_SML_Prompt '3' +///不检查 +#define THOST_FTDC_SML_Ignore '4' + +typedef char TThostFtdcSettleManagerLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettleManagerGroupType是一个模块分组类型 +///////////////////////////////////////////////////////////////////////// +///交易所核对 +#define THOST_FTDC_SMG_Exhcange '1' +///内部核对 +#define THOST_FTDC_SMG_ASP '2' +///上报数据核对 +#define THOST_FTDC_SMG_CSRC '3' + +typedef char TThostFtdcSettleManagerGroupType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckResultMemoType是一个核对结果说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCheckResultMemoType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFunctionUrlType是一个功能链接类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcFunctionUrlType[1025]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthInfoType是一个客户端认证信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthInfoType[129]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthCodeType是一个客户端认证码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAuthCodeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLimitUseTypeType是一个保值额度使用类型类型 +///////////////////////////////////////////////////////////////////////// +///可重复使用 +#define THOST_FTDC_LUT_Repeatable '1' +///不可重复使用 +#define THOST_FTDC_LUT_Unrepeatable '2' + +typedef char TThostFtdcLimitUseTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDataResourceType是一个数据来源类型 +///////////////////////////////////////////////////////////////////////// +///本系统 +#define THOST_FTDC_DAR_Settle '1' +///交易所 +#define THOST_FTDC_DAR_Exchange '2' +///报送数据 +#define THOST_FTDC_DAR_CSRC '3' + +typedef char TThostFtdcDataResourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarginTypeType是一个保证金类型类型 +///////////////////////////////////////////////////////////////////////// +///交易所保证金率 +#define THOST_FTDC_MGT_ExchMarginRate '0' +///投资者保证金率 +#define THOST_FTDC_MGT_InstrMarginRate '1' +///投资者交易保证金率 +#define THOST_FTDC_MGT_InstrMarginRateTrade '2' + +typedef char TThostFtdcMarginTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcActiveTypeType是一个生效类型类型 +///////////////////////////////////////////////////////////////////////// +///仅当日生效 +#define THOST_FTDC_ACT_Intraday '1' +///长期生效 +#define THOST_FTDC_ACT_Long '2' + +typedef char TThostFtdcActiveTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMarginRateTypeType是一个冲突保证金率类型类型 +///////////////////////////////////////////////////////////////////////// +///交易所保证金率 +#define THOST_FTDC_MRT_Exchange '1' +///投资者保证金率 +#define THOST_FTDC_MRT_Investor '2' +///投资者交易保证金率 +#define THOST_FTDC_MRT_InvestorTrade '3' + +typedef char TThostFtdcMarginRateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBackUpStatusType是一个备份数据状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成备份数据 +#define THOST_FTDC_BUS_UnBak '0' +///备份数据生成中 +#define THOST_FTDC_BUS_BakUp '1' +///已生成备份数据 +#define THOST_FTDC_BUS_BakUped '2' +///备份数据失败 +#define THOST_FTDC_BUS_BakFail '3' + +typedef char TThostFtdcBackUpStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInitSettlementType是一个结算初始化状态类型 +///////////////////////////////////////////////////////////////////////// +///结算初始化未开始 +#define THOST_FTDC_SIS_UnInitialize '0' +///结算初始化中 +#define THOST_FTDC_SIS_Initialize '1' +///结算初始化完成 +#define THOST_FTDC_SIS_Initialized '2' + +typedef char TThostFtdcInitSettlementType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReportStatusType是一个报表数据生成状态类型 +///////////////////////////////////////////////////////////////////////// +///未生成报表数据 +#define THOST_FTDC_SRS_NoCreate '0' +///报表数据生成中 +#define THOST_FTDC_SRS_Create '1' +///已生成报表数据 +#define THOST_FTDC_SRS_Created '2' +///生成报表数据失败 +#define THOST_FTDC_SRS_CreateFail '3' + +typedef char TThostFtdcReportStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSaveStatusType是一个数据归档状态类型 +///////////////////////////////////////////////////////////////////////// +///归档未完成 +#define THOST_FTDC_SSS_UnSaveData '0' +///归档完成 +#define THOST_FTDC_SSS_SaveDatad '1' + +typedef char TThostFtdcSaveStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSettArchiveStatusType是一个结算确认数据归档状态类型 +///////////////////////////////////////////////////////////////////////// +///未归档数据 +#define THOST_FTDC_SAS_UnArchived '0' +///数据归档中 +#define THOST_FTDC_SAS_Archiving '1' +///已归档数据 +#define THOST_FTDC_SAS_Archived '2' +///归档数据失败 +#define THOST_FTDC_SAS_ArchiveFail '3' + +typedef char TThostFtdcSettArchiveStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCTPTypeType是一个CTP交易系统类型类型 +///////////////////////////////////////////////////////////////////////// +///未知类型 +#define THOST_FTDC_CTPT_Unkown '0' +///主中心 +#define THOST_FTDC_CTPT_MainCenter '1' +///备中心 +#define THOST_FTDC_CTPT_BackUp '2' + +typedef char TThostFtdcCTPTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcToolIDType是一个工具代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcToolIDType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcToolNameType是一个工具名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcToolNameType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCloseDealTypeType是一个平仓处理类型类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_CDT_Normal '0' +///投机平仓优先 +#define THOST_FTDC_CDT_SpecFirst '1' + +typedef char TThostFtdcCloseDealTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMortgageFundUseRangeType是一个货币质押资金可用范围类型 +///////////////////////////////////////////////////////////////////////// +///不能使用 +#define THOST_FTDC_MFUR_None '0' +///用于保证金 +#define THOST_FTDC_MFUR_Margin '1' +///用于手续费、盈亏、保证金 +#define THOST_FTDC_MFUR_All '2' +///人民币方案3 +#define THOST_FTDC_MFUR_CNY3 '3' + +typedef char TThostFtdcMortgageFundUseRangeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyUnitType是一个币种单位数量类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcCurrencyUnitType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExchangeRateType是一个汇率类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcExchangeRateType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSpecProductTypeType是一个特殊产品类型类型 +///////////////////////////////////////////////////////////////////////// +///郑商所套保产品 +#define THOST_FTDC_SPT_CzceHedge '1' +///货币质押产品 +#define THOST_FTDC_SPT_IneForeignCurrency '2' +///大连短线开平仓产品 +#define THOST_FTDC_SPT_DceOpenClose '3' + +typedef char TThostFtdcSpecProductTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundMortgageTypeType是一个货币质押类型类型 +///////////////////////////////////////////////////////////////////////// +///质押 +#define THOST_FTDC_FMT_Mortgage '1' +///解质 +#define THOST_FTDC_FMT_Redemption '2' + +typedef char TThostFtdcFundMortgageTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAccountSettlementParamIDType是一个投资者账户结算参数代码类型 +///////////////////////////////////////////////////////////////////////// +///基础保证金 +#define THOST_FTDC_ASPI_BaseMargin '1' +///最低权益标准 +#define THOST_FTDC_ASPI_LowestInterest '2' + +typedef char TThostFtdcAccountSettlementParamIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencyNameType是一个币种名称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencyNameType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencySignType是一个币种符号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencySignType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundMortDirectionType是一个货币质押方向类型 +///////////////////////////////////////////////////////////////////////// +///货币质入 +#define THOST_FTDC_FMD_In '1' +///货币质出 +#define THOST_FTDC_FMD_Out '2' + +typedef char TThostFtdcFundMortDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessClassType是一个换汇类别类型 +///////////////////////////////////////////////////////////////////////// +///盈利 +#define THOST_FTDC_BT_Profit '0' +///亏损 +#define THOST_FTDC_BT_Loss '1' +///其他 +#define THOST_FTDC_BT_Other 'Z' + +typedef char TThostFtdcBusinessClassType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSwapSourceTypeType是一个换汇数据来源类型 +///////////////////////////////////////////////////////////////////////// +///手工 +#define THOST_FTDC_SST_Manual '0' +///自动生成 +#define THOST_FTDC_SST_Automatic '1' + +typedef char TThostFtdcSwapSourceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrExDirectionType是一个换汇类型类型 +///////////////////////////////////////////////////////////////////////// +///结汇 +#define THOST_FTDC_CED_Settlement '0' +///售汇 +#define THOST_FTDC_CED_Sale '1' + +typedef char TThostFtdcCurrExDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencySwapStatusType是一个申请状态类型 +///////////////////////////////////////////////////////////////////////// +///已录入 +#define THOST_FTDC_CSS_Entry '1' +///已审核 +#define THOST_FTDC_CSS_Approve '2' +///已拒绝 +#define THOST_FTDC_CSS_Refuse '3' +///已撤销 +#define THOST_FTDC_CSS_Revoke '4' +///已发送 +#define THOST_FTDC_CSS_Send '5' +///换汇成功 +#define THOST_FTDC_CSS_Success '6' +///换汇失败 +#define THOST_FTDC_CSS_Failure '7' + +typedef char TThostFtdcCurrencySwapStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrExchCertNoType是一个凭证号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrExchCertNoType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBatchSerialNoType是一个批次号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBatchSerialNoType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReqFlagType是一个换汇发送标志类型 +///////////////////////////////////////////////////////////////////////// +///未发送 +#define THOST_FTDC_REQF_NoSend '0' +///发送成功 +#define THOST_FTDC_REQF_SendSuccess '1' +///发送失败 +#define THOST_FTDC_REQF_SendFailed '2' +///等待重发 +#define THOST_FTDC_REQF_WaitReSend '3' + +typedef char TThostFtdcReqFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcResFlagType是一个换汇返回成功标志类型 +///////////////////////////////////////////////////////////////////////// +///成功 +#define THOST_FTDC_RESF_Success '0' +///账户余额不足 +#define THOST_FTDC_RESF_InsuffiCient '1' +///交易结果未知 +#define THOST_FTDC_RESF_UnKnown '8' + +typedef char TThostFtdcResFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPageControlType是一个换汇页面控制类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPageControlType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRecordCountType是一个记录数类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRecordCountType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrencySwapMemoType是一个换汇需确认信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCurrencySwapMemoType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExStatusType是一个修改状态类型 +///////////////////////////////////////////////////////////////////////// +///修改前 +#define THOST_FTDC_EXS_Before '0' +///修改后 +#define THOST_FTDC_EXS_After '1' + +typedef char TThostFtdcExStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientRegionType是一个开户客户地域类型 +///////////////////////////////////////////////////////////////////////// +///国内客户 +#define THOST_FTDC_CR_Domestic '1' +///港澳台客户 +#define THOST_FTDC_CR_GMT '2' +///国外客户 +#define THOST_FTDC_CR_Foreign '3' + +typedef char TThostFtdcClientRegionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWorkPlaceType是一个工作单位类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWorkPlaceType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBusinessPeriodType是一个经营期限类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBusinessPeriodType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWebSiteType是一个网址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcWebSiteType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAIdCardTypeType是一个统一开户证件类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAIdCardTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientModeType是一个开户模式类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientModeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestorFullNameType是一个投资者全称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestorFullNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOABrokerIDType是一个境外中介机构ID类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOABrokerIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAZipCodeType是一个邮政编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAZipCodeType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAEMailType是一个电子邮箱类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOAEMailType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOldCityType是一个城市类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOldCityType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCorporateIdentifiedCardNoType是一个法人代表证件号码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCorporateIdentifiedCardNoType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHasBoardType是一个是否有董事会类型 +///////////////////////////////////////////////////////////////////////// +///没有 +#define THOST_FTDC_HB_No '0' +///有 +#define THOST_FTDC_HB_Yes '1' + +typedef char TThostFtdcHasBoardType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStartModeType是一个启动模式类型 +///////////////////////////////////////////////////////////////////////// +///正常 +#define THOST_FTDC_SM_Normal '1' +///应急 +#define THOST_FTDC_SM_Emerge '2' +///恢复 +#define THOST_FTDC_SM_Restore '3' + +typedef char TThostFtdcStartModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTemplateTypeType是一个模型类型类型 +///////////////////////////////////////////////////////////////////////// +///全量 +#define THOST_FTDC_TPT_Full '1' +///增量 +#define THOST_FTDC_TPT_Increment '2' +///备份 +#define THOST_FTDC_TPT_BackUp '3' + +typedef char TThostFtdcTemplateTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLoginModeType是一个登录模式类型 +///////////////////////////////////////////////////////////////////////// +///交易 +#define THOST_FTDC_LM_Trade '0' +///转账 +#define THOST_FTDC_LM_Transfer '1' + +typedef char TThostFtdcLoginModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPromptTypeType是一个日历提示类型类型 +///////////////////////////////////////////////////////////////////////// +///合约上下市 +#define THOST_FTDC_CPT_Instrument '1' +///保证金分段生效 +#define THOST_FTDC_CPT_Margin '2' + +typedef char TThostFtdcPromptTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLedgerManageIDType是一个分户管理资产编码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLedgerManageIDType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestVarietyType是一个投资品种类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestVarietyType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBankAccountTypeType是一个账户类别类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBankAccountTypeType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLedgerManageBankType是一个开户银行类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLedgerManageBankType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffexDepartmentNameType是一个开户营业部类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffexDepartmentNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCffexDepartmentCodeType是一个营业部代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCffexDepartmentCodeType[9]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHasTrusteeType是一个是否有托管人类型 +///////////////////////////////////////////////////////////////////////// +///有 +#define THOST_FTDC_HT_Yes '1' +///没有 +#define THOST_FTDC_HT_No '0' + +typedef char TThostFtdcHasTrusteeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCMemo1Type是一个说明类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCMemo1Type[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrCFullNameType是一个代理资产管理业务的期货公司全称类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAssetmgrCFullNameType[101]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrApprovalNOType是一个资产管理业务批文号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAssetmgrApprovalNOType[51]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrMgrNameType是一个资产管理业务负责人姓名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAssetmgrMgrNameType[401]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmTypeType是一个机构类型类型 +///////////////////////////////////////////////////////////////////////// +///银行 +#define THOST_FTDC_AMT_Bank '1' +///证券公司 +#define THOST_FTDC_AMT_Securities '2' +///基金公司 +#define THOST_FTDC_AMT_Fund '3' +///保险公司 +#define THOST_FTDC_AMT_Insurance '4' +///信托公司 +#define THOST_FTDC_AMT_Trust '5' +///其他 +#define THOST_FTDC_AMT_Other '9' + +typedef char TThostFtdcAmTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCAmTypeType是一个机构类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCAmTypeType[5]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCFundIOTypeType是一个出入金类型类型 +///////////////////////////////////////////////////////////////////////// +///出入金 +#define THOST_FTDC_CFIOT_FundIO '0' +///银期换汇 +#define THOST_FTDC_CFIOT_SwapCurrency '1' + +typedef char TThostFtdcCSRCFundIOTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCusAccountTypeType是一个结算账户类型类型 +///////////////////////////////////////////////////////////////////////// +///期货结算账户 +#define THOST_FTDC_CAT_Futures '1' +///纯期货资管业务下的资管结算账户 +#define THOST_FTDC_CAT_AssetmgrFuture '2' +///综合类资管业务下的期货资管托管账户 +#define THOST_FTDC_CAT_AssetmgrTrustee '3' +///综合类资管业务下的资金中转账户 +#define THOST_FTDC_CAT_AssetmgrTransfer '4' + +typedef char TThostFtdcCusAccountTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCNationalType是一个国籍类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCNationalType[4]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCSRCSecAgentIDType是一个二级代理ID类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCSRCSecAgentIDType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLanguageTypeType是一个通知语言类型类型 +///////////////////////////////////////////////////////////////////////// +///中文 +#define THOST_FTDC_LT_Chinese '1' +///英文 +#define THOST_FTDC_LT_English '2' + +typedef char TThostFtdcLanguageTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAmAccountType是一个投资账户类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAmAccountType[23]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrClientTypeType是一个资产管理客户类型类型 +///////////////////////////////////////////////////////////////////////// +///个人资管客户 +#define THOST_FTDC_AMCT_Person '1' +///单位资管客户 +#define THOST_FTDC_AMCT_Organ '2' +///特殊单位资管客户 +#define THOST_FTDC_AMCT_SpecialOrgan '4' + +typedef char TThostFtdcAssetmgrClientTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAssetmgrTypeType是一个投资类型类型 +///////////////////////////////////////////////////////////////////////// +///期货类 +#define THOST_FTDC_ASST_Futures '3' +///综合类 +#define THOST_FTDC_ASST_SpecialOrgan '4' + +typedef char TThostFtdcAssetmgrTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOMType是一个计量单位类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcUOMType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSHFEInstLifePhaseType是一个上期所合约生命周期状态类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSHFEInstLifePhaseType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSHFEProductClassType是一个产品类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSHFEProductClassType[11]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPriceDecimalType是一个价格小数位类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcPriceDecimalType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInTheMoneyFlagType是一个平值期权标志类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInTheMoneyFlagType[2]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCheckInstrTypeType是一个合约比较类型类型 +///////////////////////////////////////////////////////////////////////// +///合约交易所不存在 +#define THOST_FTDC_CIT_HasExch '0' +///合约本系统不存在 +#define THOST_FTDC_CIT_HasATP '1' +///合约比较不一致 +#define THOST_FTDC_CIT_HasDiff '2' + +typedef char TThostFtdcCheckInstrTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDeliveryTypeType是一个交割类型类型 +///////////////////////////////////////////////////////////////////////// +///手工交割 +#define THOST_FTDC_DT_HandDeliv '1' +///到期交割 +#define THOST_FTDC_DT_PersonDeliv '2' + +typedef char TThostFtdcDeliveryTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBigMoneyType是一个资金类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcBigMoneyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMaxMarginSideAlgorithmType是一个大额单边保证金算法类型 +///////////////////////////////////////////////////////////////////////// +///不使用大额单边保证金算法 +#define THOST_FTDC_MMSA_NO '0' +///使用大额单边保证金算法 +#define THOST_FTDC_MMSA_YES '1' + +typedef char TThostFtdcMaxMarginSideAlgorithmType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDAClientTypeType是一个资产管理客户类型类型 +///////////////////////////////////////////////////////////////////////// +///自然人 +#define THOST_FTDC_CACT_Person '0' +///法人 +#define THOST_FTDC_CACT_Company '1' +///其他 +#define THOST_FTDC_CACT_Other '2' + +typedef char TThostFtdcDAClientTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombinInstrIDType是一个套利合约代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombinInstrIDType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombinSettlePriceType是一个各腿结算价类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCombinSettlePriceType[61]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDCEPriorityType是一个优先级类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcDCEPriorityType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradeGroupIDType是一个成交组号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcTradeGroupIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIsCheckPrepaType是一个是否校验开户可用资金类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcIsCheckPrepaType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUOAAssetmgrTypeType是一个投资类型类型 +///////////////////////////////////////////////////////////////////////// +///期货类 +#define THOST_FTDC_UOAAT_Futures '1' +///综合类 +#define THOST_FTDC_UOAAT_SpecialOrgan '2' + +typedef char TThostFtdcUOAAssetmgrTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDirectionEnType是一个买卖方向类型 +///////////////////////////////////////////////////////////////////////// +///Buy +#define THOST_FTDC_DEN_Buy '0' +///Sell +#define THOST_FTDC_DEN_Sell '1' + +typedef char TThostFtdcDirectionEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOffsetFlagEnType是一个开平标志类型 +///////////////////////////////////////////////////////////////////////// +///Position Opening +#define THOST_FTDC_OFEN_Open '0' +///Position Close +#define THOST_FTDC_OFEN_Close '1' +///Forced Liquidation +#define THOST_FTDC_OFEN_ForceClose '2' +///Close Today +#define THOST_FTDC_OFEN_CloseToday '3' +///Close Prev. +#define THOST_FTDC_OFEN_CloseYesterday '4' +///Forced Reduction +#define THOST_FTDC_OFEN_ForceOff '5' +///Local Forced Liquidation +#define THOST_FTDC_OFEN_LocalForceClose '6' + +typedef char TThostFtdcOffsetFlagEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHedgeFlagEnType是一个投机套保标志类型 +///////////////////////////////////////////////////////////////////////// +///Speculation +#define THOST_FTDC_HFEN_Speculation '1' +///Arbitrage +#define THOST_FTDC_HFEN_Arbitrage '2' +///Hedge +#define THOST_FTDC_HFEN_Hedge '3' + +typedef char TThostFtdcHedgeFlagEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundIOTypeEnType是一个出入金类型类型 +///////////////////////////////////////////////////////////////////////// +///Deposit/Withdrawal +#define THOST_FTDC_FIOTEN_FundIO '1' +///Bank-Futures Transfer +#define THOST_FTDC_FIOTEN_Transfer '2' +///Bank-Futures FX Exchange +#define THOST_FTDC_FIOTEN_SwapCurrency '3' + +typedef char TThostFtdcFundIOTypeEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundTypeEnType是一个资金类型类型 +///////////////////////////////////////////////////////////////////////// +///Bank Deposit +#define THOST_FTDC_FTEN_Deposite '1' +///Payment/Fee +#define THOST_FTDC_FTEN_ItemFund '2' +///Brokerage Adj +#define THOST_FTDC_FTEN_Company '3' +///Internal Transfer +#define THOST_FTDC_FTEN_InnerTransfer '4' + +typedef char TThostFtdcFundTypeEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundDirectionEnType是一个出入金方向类型 +///////////////////////////////////////////////////////////////////////// +///Deposit +#define THOST_FTDC_FDEN_In '1' +///Withdrawal +#define THOST_FTDC_FDEN_Out '2' + +typedef char TThostFtdcFundDirectionEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcFundMortDirectionEnType是一个货币质押方向类型 +///////////////////////////////////////////////////////////////////////// +///Pledge +#define THOST_FTDC_FMDEN_In '1' +///Redemption +#define THOST_FTDC_FMDEN_Out '2' + +typedef char TThostFtdcFundMortDirectionEnType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSwapBusinessTypeType是一个换汇业务种类类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSwapBusinessTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionsTypeType是一个期权类型类型 +///////////////////////////////////////////////////////////////////////// +///看涨 +#define THOST_FTDC_CP_CallOptions '1' +///看跌 +#define THOST_FTDC_CP_PutOptions '2' + +typedef char TThostFtdcOptionsTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeModeType是一个执行方式类型 +///////////////////////////////////////////////////////////////////////// +///欧式 +#define THOST_FTDC_STM_Continental '0' +///美式 +#define THOST_FTDC_STM_American '1' +///百慕大 +#define THOST_FTDC_STM_Bermuda '2' + +typedef char TThostFtdcStrikeModeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeTypeType是一个执行类型类型 +///////////////////////////////////////////////////////////////////////// +///自身对冲 +#define THOST_FTDC_STT_Hedge '0' +///匹配执行 +#define THOST_FTDC_STT_Match '1' + +typedef char TThostFtdcStrikeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcApplyTypeType是一个中金所期权放弃执行申请类型类型 +///////////////////////////////////////////////////////////////////////// +///不执行数量 +#define THOST_FTDC_APPT_NotStrikeNum '4' + +typedef char TThostFtdcApplyTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcGiveUpDataSourceType是一个放弃执行申请数据来源类型 +///////////////////////////////////////////////////////////////////////// +///系统生成 +#define THOST_FTDC_GUDS_Gen '0' +///手工添加 +#define THOST_FTDC_GUDS_Hand '1' + +typedef char TThostFtdcGiveUpDataSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecOrderSysIDType是一个执行宣告系统编号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcExecOrderSysIDType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecResultType是一个执行结果类型 +///////////////////////////////////////////////////////////////////////// +///没有执行 +#define THOST_FTDC_OER_NoExec 'n' +///已经取消 +#define THOST_FTDC_OER_Canceled 'c' +///执行成功 +#define THOST_FTDC_OER_OK '0' +///期权持仓不够 +#define THOST_FTDC_OER_NoPosition '1' +///资金不够 +#define THOST_FTDC_OER_NoDeposit '2' +///会员不存在 +#define THOST_FTDC_OER_NoParticipant '3' +///客户不存在 +#define THOST_FTDC_OER_NoClient '4' +///合约不存在 +#define THOST_FTDC_OER_NoInstrument '6' +///没有执行权限 +#define THOST_FTDC_OER_NoRight '7' +///不合理的数量 +#define THOST_FTDC_OER_InvalidVolume '8' +///没有足够的历史成交 +#define THOST_FTDC_OER_NoEnoughHistoryTrade '9' +///未知 +#define THOST_FTDC_OER_Unknown 'a' + +typedef char TThostFtdcExecResultType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeSequenceType是一个执行序号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcStrikeSequenceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeTimeType是一个执行时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcStrikeTimeType[13]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombinationTypeType是一个组合类型类型 +///////////////////////////////////////////////////////////////////////// +///期货组合 +#define THOST_FTDC_COMBT_Future '0' +///垂直价差BUL +#define THOST_FTDC_COMBT_BUL '1' +///垂直价差BER +#define THOST_FTDC_COMBT_BER '2' +///跨式组合 +#define THOST_FTDC_COMBT_STD '3' +///宽跨式组合 +#define THOST_FTDC_COMBT_STG '4' +///备兑组合 +#define THOST_FTDC_COMBT_PRT '5' +///时间价差组合 +#define THOST_FTDC_COMBT_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是一个组合类型类型 +///////////////////////////////////////////////////////////////////////// +///期货对锁组合 +#define THOST_FTDC_DCECOMBT_SPL '0' +///期权对锁组合 +#define THOST_FTDC_DCECOMBT_OPL '1' +///期货跨期组合 +#define THOST_FTDC_DCECOMBT_SP '2' +///期货跨品种组合 +#define THOST_FTDC_DCECOMBT_SPC '3' +///买入期权垂直价差组合 +#define THOST_FTDC_DCECOMBT_BLS '4' +///卖出期权垂直价差组合 +#define THOST_FTDC_DCECOMBT_BES '5' +///期权日历价差组合 +#define THOST_FTDC_DCECOMBT_CAS '6' +///期权跨式组合 +#define THOST_FTDC_DCECOMBT_STD '7' +///期权宽跨式组合 +#define THOST_FTDC_DCECOMBT_STG '8' +///买入期货期权组合 +#define THOST_FTDC_DCECOMBT_BFO '9' +///卖出期货期权组合 +#define THOST_FTDC_DCECOMBT_SFO 'a' + +typedef char TThostFtdcDceCombinationTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptionRoyaltyPriceTypeType是一个期权权利金价格类型类型 +///////////////////////////////////////////////////////////////////////// +///昨结算价 +#define THOST_FTDC_ORPT_PreSettlementPrice '1' +///开仓价 +#define THOST_FTDC_ORPT_OpenPrice '4' +///最新价与昨结算价较大值 +#define THOST_FTDC_ORPT_MaxPreSettlementPrice '5' + +typedef char TThostFtdcOptionRoyaltyPriceTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBalanceAlgorithmType是一个权益算法类型 +///////////////////////////////////////////////////////////////////////// +///不计算期权市值盈亏 +#define THOST_FTDC_BLAG_Default '1' +///计算期权市值亏损 +#define THOST_FTDC_BLAG_IncludeOptValLost '2' + +typedef char TThostFtdcBalanceAlgorithmType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcActionTypeType是一个执行类型类型 +///////////////////////////////////////////////////////////////////////// +///执行 +#define THOST_FTDC_ACTP_Exec '1' +///放弃 +#define THOST_FTDC_ACTP_Abandon '2' + +typedef char TThostFtdcActionTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcForQuoteStatusType是一个询价状态类型 +///////////////////////////////////////////////////////////////////////// +///已经提交 +#define THOST_FTDC_FQST_Submitted 'a' +///已经接受 +#define THOST_FTDC_FQST_Accepted 'b' +///已经被拒绝 +#define THOST_FTDC_FQST_Rejected 'c' + +typedef char TThostFtdcForQuoteStatusType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcValueMethodType是一个取值方式类型 +///////////////////////////////////////////////////////////////////////// +///按绝对值 +#define THOST_FTDC_VM_Absolute '0' +///按比率 +#define THOST_FTDC_VM_Ratio '1' + +typedef char TThostFtdcValueMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecOrderPositionFlagType是一个期权行权后是否保留期货头寸的标记类型 +///////////////////////////////////////////////////////////////////////// +///保留 +#define THOST_FTDC_EOPF_Reserve '0' +///不保留 +#define THOST_FTDC_EOPF_UnReserve '1' + +typedef char TThostFtdcExecOrderPositionFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcExecOrderCloseFlagType是一个期权行权后生成的头寸是否自动平仓类型 +///////////////////////////////////////////////////////////////////////// +///自动平仓 +#define THOST_FTDC_EOCF_AutoClose '0' +///免于自动平仓 +#define THOST_FTDC_EOCF_NotToClose '1' + +typedef char TThostFtdcExecOrderCloseFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductTypeType是一个产品类型类型 +///////////////////////////////////////////////////////////////////////// +///期货 +#define THOST_FTDC_PTE_Futures '1' +///期权 +#define THOST_FTDC_PTE_Options '2' + +typedef char TThostFtdcProductTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCZCEUploadFileNameType是一个郑商所结算文件名类型 +///////////////////////////////////////////////////////////////////////// +///^\d{8}_zz_\d{4} +#define THOST_FTDC_CUFN_CUFN_O 'O' +///^\d{8}成交表 +#define THOST_FTDC_CUFN_CUFN_T 'T' +///^\d{8}单腿持仓表new +#define THOST_FTDC_CUFN_CUFN_P 'P' +///^\d{8}非平仓了结表 +#define THOST_FTDC_CUFN_CUFN_N 'N' +///^\d{8}平仓表 +#define THOST_FTDC_CUFN_CUFN_L 'L' +///^\d{8}资金表 +#define THOST_FTDC_CUFN_CUFN_F 'F' +///^\d{8}组合持仓表 +#define THOST_FTDC_CUFN_CUFN_C 'C' +///^\d{8}保证金参数表 +#define THOST_FTDC_CUFN_CUFN_M 'M' + +typedef char TThostFtdcCZCEUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDCEUploadFileNameType是一个大商所结算文件名类型 +///////////////////////////////////////////////////////////////////////// +///^\d{8}_dl_\d{3} +#define THOST_FTDC_DUFN_DUFN_O 'O' +///^\d{8}_成交表 +#define THOST_FTDC_DUFN_DUFN_T 'T' +///^\d{8}_持仓表 +#define THOST_FTDC_DUFN_DUFN_P 'P' +///^\d{8}_资金结算表 +#define THOST_FTDC_DUFN_DUFN_F 'F' +///^\d{8}_优惠组合持仓明细表 +#define THOST_FTDC_DUFN_DUFN_C 'C' +///^\d{8}_持仓明细表 +#define THOST_FTDC_DUFN_DUFN_D 'D' +///^\d{8}_保证金参数表 +#define THOST_FTDC_DUFN_DUFN_M 'M' +///^\d{8}_期权执行表 +#define THOST_FTDC_DUFN_DUFN_S 'S' + +typedef char TThostFtdcDCEUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSHFEUploadFileNameType是一个上期所结算文件名类型 +///////////////////////////////////////////////////////////////////////// +///^\d{4}_\d{8}_\d{8}_DailyFundChg +#define THOST_FTDC_SUFN_SUFN_O 'O' +///^\d{4}_\d{8}_\d{8}_Trade +#define THOST_FTDC_SUFN_SUFN_T 'T' +///^\d{4}_\d{8}_\d{8}_SettlementDetail +#define THOST_FTDC_SUFN_SUFN_P 'P' +///^\d{4}_\d{8}_\d{8}_Capital +#define THOST_FTDC_SUFN_SUFN_F 'F' + +typedef char TThostFtdcSHFEUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCFFEXUploadFileNameType是一个中金所结算文件名类型 +///////////////////////////////////////////////////////////////////////// +///^\d{4}_SG\d{1}_\d{8}_\d{1}_Trade +#define THOST_FTDC_CFUFN_SUFN_T 'T' +///^\d{4}_SG\d{1}_\d{8}_\d{1}_SettlementDetail +#define THOST_FTDC_CFUFN_SUFN_P 'P' +///^\d{4}_SG\d{1}_\d{8}_\d{1}_Capital +#define THOST_FTDC_CFUFN_SUFN_F 'F' +///^\d{4}_SG\d{1}_\d{8}_\d{1}_OptionExec +#define THOST_FTDC_CFUFN_SUFN_S 'S' + +typedef char TThostFtdcCFFEXUploadFileNameType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCombDirectionType是一个组合指令方向类型 +///////////////////////////////////////////////////////////////////////// +///申请组合 +#define THOST_FTDC_CMDR_Comb '0' +///申请拆分 +#define THOST_FTDC_CMDR_UnComb '1' +///操作员删组合单 +#define THOST_FTDC_CMDR_DelComb '2' + +typedef char TThostFtdcCombDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcStrikeOffsetTypeType是一个行权偏移类型类型 +///////////////////////////////////////////////////////////////////////// +///实值额 +#define THOST_FTDC_STOV_RealValue '1' +///盈利额 +#define THOST_FTDC_STOV_ProfitValue '2' +///实值比例 +#define THOST_FTDC_STOV_RealRatio '3' +///盈利比例 +#define THOST_FTDC_STOV_ProfitRatio '4' + +typedef char TThostFtdcStrikeOffsetTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcReserveOpenAccStasType是一个预约开户状态类型 +///////////////////////////////////////////////////////////////////////// +///等待处理中 +#define THOST_FTDC_ROAST_Processing '0' +///已撤销 +#define THOST_FTDC_ROAST_Cancelled '1' +///已开户 +#define THOST_FTDC_ROAST_Opened '2' +///无效请求 +#define THOST_FTDC_ROAST_Invalid '3' + +typedef char TThostFtdcReserveOpenAccStasType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLoginRemarkType是一个登录备注类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLoginRemarkType[36]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcInvestUnitIDType是一个投资单元代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcInvestUnitIDType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBulletinIDType是一个公告编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcBulletinIDType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNewsTypeType是一个公告类型类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNewsTypeType[3]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcNewsUrgencyType是一个紧急程度类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcNewsUrgencyType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAbstractType是一个消息摘要类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAbstractType[81]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcComeFromType是一个消息来源类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcComeFromType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcURLLinkType是一个WEB地址类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcURLLinkType[201]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLongIndividualNameType是一个长个人姓名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongIndividualNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcLongFBEBankAccountNameType是一个长换汇银行账户名类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcLongFBEBankAccountNameType[161]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDateTimeType是一个日期时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcDateTimeType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcWeakPasswordSourceType是一个弱密码来源类型 +///////////////////////////////////////////////////////////////////////// +///弱密码库 +#define THOST_FTDC_WPSR_Lib '1' +///手工录入 +#define THOST_FTDC_WPSR_Manual '2' + +typedef char TThostFtdcWeakPasswordSourceType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRandomStringType是一个随机串类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcRandomStringType[17]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOptSelfCloseFlagType是一个期权行权的头寸是否自对冲类型 +///////////////////////////////////////////////////////////////////////// +///自对冲期权仓位 +#define THOST_FTDC_OSCF_CloseSelfOptionPosition '1' +///保留期权仓位 +#define THOST_FTDC_OSCF_ReserveOptionPosition '2' +///自对冲卖方履约后的期货仓位 +#define THOST_FTDC_OSCF_SellCloseSelfFuturePosition '3' +///保留卖方履约后的期货仓位 +#define THOST_FTDC_OSCF_ReserveFuturePosition '4' + +typedef char TThostFtdcOptSelfCloseFlagType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBizTypeType是一个业务类型类型 +///////////////////////////////////////////////////////////////////////// +///期货 +#define THOST_FTDC_BZTP_Future '1' +///证券 +#define THOST_FTDC_BZTP_Stock '2' + +typedef char TThostFtdcBizTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAppTypeType是一个用户App类型类型 +///////////////////////////////////////////////////////////////////////// +///直连的投资者 +#define THOST_FTDC_APP_TYPE_Investor '1' +///为每个投资者都创建连接的中继 +#define THOST_FTDC_APP_TYPE_InvestorRelay '2' +///所有投资者共享一个操作员连接的中继 +#define THOST_FTDC_APP_TYPE_OperatorRelay '3' +///未知 +#define THOST_FTDC_APP_TYPE_UnKnown '4' + +typedef char TThostFtdcAppTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAppIDType是一个App代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAppIDType[33]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSystemInfoLenType是一个系统信息长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSystemInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdditionalInfoLenType是一个补充信息长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcAdditionalInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClientSystemInfoType是一个交易终端系统信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcClientSystemInfoType[273]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAdditionalInfoType是一个系统外部信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcAdditionalInfoType[261]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBase64ClientSystemInfoType是一个base64交易终端系统信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBase64ClientSystemInfoType[365]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcBase64AdditionalInfoType是一个base64系统外部信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcBase64AdditionalInfoType[349]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCurrentAuthMethodType是一个当前可用的认证模式,0代表无需认证模式 A从低位开始最后一位代表图片验证码,倒数第二位代表动态口令,倒数第三位代表短信验证码类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCurrentAuthMethodType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCaptchaInfoLenType是一个图片验证信息长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCaptchaInfoLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCaptchaInfoType是一个图片验证信息类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCaptchaInfoType[2561]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcUserTextSeqType是一个用户短信验证码的编号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcUserTextSeqType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandshakeDataType是一个握手数据内容类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcHandshakeDataType[301]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcHandshakeDataLenType是一个握手数据内容长度类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcHandshakeDataLenType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCryptoKeyVersionType是一个api与front通信密钥版本号类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCryptoKeyVersionType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRsaKeyVersionType是一个公钥版本号类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcRsaKeyVersionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSoftwareProviderIDType是一个交易软件商ID类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSoftwareProviderIDType[22]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCollectTimeType是一个信息采集时间类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcCollectTimeType[21]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcQueryFreqType是一个查询频率类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcQueryFreqType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcResponseValueType是一个应答类型类型 +///////////////////////////////////////////////////////////////////////// +///检查成功 +#define THOST_FTDC_RV_Right '0' +///检查失败 +#define THOST_FTDC_RV_Refuse '1' + +typedef char TThostFtdcResponseValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTCTradeTypeType是一个OTC成交类型类型 +///////////////////////////////////////////////////////////////////////// +///大宗交易 +#define THOST_FTDC_OTC_TRDT_Block '0' +///期转现 +#define THOST_FTDC_OTC_TRDT_EFP '1' + +typedef char TThostFtdcOTCTradeTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcMatchTypeType是一个期现风险匹配方式类型 +///////////////////////////////////////////////////////////////////////// +///基点价值 +#define THOST_FTDC_OTC_MT_DV01 '1' +///面值 +#define THOST_FTDC_OTC_MT_ParValue '2' + +typedef char TThostFtdcMatchTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOTCTraderIDType是一个OTC交易员代码类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcOTCTraderIDType[31]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcRiskValueType是一个期货风险值类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcRiskValueType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcIDBNameType是一个握手数据内容类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcIDBNameType[100]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcDiscountRatioType是一个折扣率类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcDiscountRatioType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcAuthTypeType是一个用户终端认证方式类型 +///////////////////////////////////////////////////////////////////////// +///白名单校验 +#define THOST_FTDC_AU_WHITE '0' +///黑名单校验 +#define THOST_FTDC_AU_BLACK '1' + +typedef char TThostFtdcAuthTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcClassTypeType是一个合约分类方式类型 +///////////////////////////////////////////////////////////////////////// +///所有合约 +#define THOST_FTDC_INS_ALL '0' +///期货、即期、期转现、Tas、金属指数合约 +#define THOST_FTDC_INS_FUTURE '1' +///期货、现货期权合约 +#define THOST_FTDC_INS_OPTION '2' +///组合合约 +#define THOST_FTDC_INS_COMB '3' + +typedef char TThostFtdcClassTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcTradingTypeType是一个合约交易状态分类方式类型 +///////////////////////////////////////////////////////////////////////// +///所有状态 +#define THOST_FTDC_TD_ALL '0' +///交易 +#define THOST_FTDC_TD_TRADE '1' +///非交易 +#define THOST_FTDC_TD_UNTRADE '2' + +typedef char TThostFtdcTradingTypeType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcProductStatusType是一个产品状态类型 +///////////////////////////////////////////////////////////////////////// +///可交易 +#define THOST_FTDC_PS_tradeable '1' +///不可交易 +#define THOST_FTDC_PS_untradeable '2' + +typedef char TThostFtdcProductStatusType; + +///////////////////////////////////////////////////////////////////////// +///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是一个操作标志类型 +///////////////////////////////////////////////////////////////////////// +///增加 +#define THOST_FTDC_ACD_Add '1' +///删除 +#define THOST_FTDC_ACD_Del '2' +///更新 +#define THOST_FTDC_ACD_Upd '3' + +typedef char TThostFtdcActionDirectionType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderCancelAlgType是一个撤单时选择席位算法类型 +///////////////////////////////////////////////////////////////////////// +///轮询席位撤单 +#define THOST_FTDC_OAC_Balance '1' +///优先原报单席位撤单 +#define THOST_FTDC_OAC_OrigFirst '2' + +typedef char TThostFtdcOrderCancelAlgType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSyncDescriptionType是一个追平描述类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSyncDescriptionType[257]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcCommonIntType是一个通用int类型类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcCommonIntType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSysVersionType是一个系统版本类型 +///////////////////////////////////////////////////////////////////////// +typedef char TThostFtdcSysVersionType[41]; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOpenLimitControlLevelType是一个开仓量限制粒度类型 +///////////////////////////////////////////////////////////////////////// +///不控制 +#define THOST_FTDC_PLCL_None '0' +///产品级别 +#define THOST_FTDC_PLCL_Product '1' +///合约级别 +#define THOST_FTDC_PLCL_Inst '2' + +typedef char TThostFtdcOpenLimitControlLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcOrderFreqControlLevelType是一个报单频率控制粒度类型 +///////////////////////////////////////////////////////////////////////// +///不控制 +#define THOST_FTDC_OFCL_None '0' +///产品级别 +#define THOST_FTDC_OFCL_Product '1' +///合约级别 +#define THOST_FTDC_OFCL_Inst '2' + +typedef char TThostFtdcOrderFreqControlLevelType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcEnumBoolType是一个枚举bool类型类型 +///////////////////////////////////////////////////////////////////////// +///false +#define THOST_FTDC_EBL_False '0' +///true +#define THOST_FTDC_EBL_True '1' + +typedef char TThostFtdcEnumBoolType; + +///////////////////////////////////////////////////////////////////////// +///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类型类型 +///////////////////////////////////////////////////////////////////////// +typedef double TThostFtdcDeltaType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcSpreadIdType是一个抵扣组优先级类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcSpreadIdType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPortfolioType是一个新型组保算法类型 +///////////////////////////////////////////////////////////////////////// +///不使用新型组保算法 +#define THOST_FTDC_EPF_None '0' +///SPBM算法 +#define THOST_FTDC_EPF_SPBM '1' + +typedef char TThostFtdcPortfolioType; + +///////////////////////////////////////////////////////////////////////// +///TFtdcPortfolioDefIDType是一个SPBM组合套餐ID类型 +///////////////////////////////////////////////////////////////////////// +typedef int TThostFtdcPortfolioDefIDType; + +#endif diff --git a/CTPAPI6.6.9/generated/ThostFtdcUserApiStruct.cs b/CTPAPI6.6.9/generated/ThostFtdcUserApiStruct.cs new file mode 100644 index 0000000..0ba3c85 --- /dev/null +++ b/CTPAPI6.6.9/generated/ThostFtdcUserApiStruct.cs @@ -0,0 +1,36652 @@ +//由 generator生成的文件,不要手工修改 + +using System.Runtime.InteropServices; +namespace XP.CTPSharp; +/// +/// 信息分发 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcDisseminationField +{ + public CThostFtdcDisseminationField() {} + /// + /// 序列系列号 + /// + public short SequenceSeries; + /// + /// 序列号 + /// + public int SequenceNo; +} +/// +/// 用户登录请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqUserLoginField +{ + public CThostFtdcReqUserLoginField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _InterfaceProductInfo = new byte[11]; + /// + /// 接口端产品信息 + /// + public string InterfaceProductInfo + { + get{ return GBKConvert.Instance.GetString(_InterfaceProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _InterfaceProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ProtocolInfo = new byte[11]; + /// + /// 协议信息 + /// + public string ProtocolInfo + { + get{ return GBKConvert.Instance.GetString(_ProtocolInfo); } + set{ GBKConvert.Instance.GetBytes(value, _ProtocolInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _OneTimePassword = new byte[41]; + /// + /// 动态密码 + /// + public string OneTimePassword + { + get{ return GBKConvert.Instance.GetString(_OneTimePassword); } + set{ GBKConvert.Instance.GetBytes(value, _OneTimePassword); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _LoginRemark = new byte[36]; + /// + /// 登录备注 + /// + public string LoginRemark + { + get{ return GBKConvert.Instance.GetString(_LoginRemark); } + set{ GBKConvert.Instance.GetBytes(value, _LoginRemark); } + } + /// + /// 终端IP端口 + /// + public int ClientIPPort; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _ClientIPAddress = new byte[33]; + /// + /// 终端IP地址 + /// + public string ClientIPAddress + { + get{ return GBKConvert.Instance.GetString(_ClientIPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _ClientIPAddress); } + } +} +/// +/// 用户登录应答 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspUserLoginField +{ + public CThostFtdcRspUserLoginField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _LoginTime = new byte[9]; + /// + /// 登录成功时间 + /// + public string LoginTime + { + get{ return GBKConvert.Instance.GetString(_LoginTime); } + set{ GBKConvert.Instance.GetBytes(value, _LoginTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _SystemName = new byte[41]; + /// + /// 交易系统名称 + /// + public string SystemName + { + get{ return GBKConvert.Instance.GetString(_SystemName); } + set{ GBKConvert.Instance.GetBytes(value, _SystemName); } + } + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _MaxOrderRef = new byte[13]; + /// + /// 最大报单引用 + /// + public string MaxOrderRef + { + get{ return GBKConvert.Instance.GetString(_MaxOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _MaxOrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _SHFETime = new byte[9]; + /// + /// 上期所时间 + /// + public string SHFETime + { + get{ return GBKConvert.Instance.GetString(_SHFETime); } + set{ GBKConvert.Instance.GetBytes(value, _SHFETime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _DCETime = new byte[9]; + /// + /// 大商所时间 + /// + public string DCETime + { + get{ return GBKConvert.Instance.GetString(_DCETime); } + set{ GBKConvert.Instance.GetBytes(value, _DCETime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CZCETime = new byte[9]; + /// + /// 郑商所时间 + /// + public string CZCETime + { + get{ return GBKConvert.Instance.GetString(_CZCETime); } + set{ GBKConvert.Instance.GetBytes(value, _CZCETime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _FFEXTime = new byte[9]; + /// + /// 中金所时间 + /// + public string FFEXTime + { + get{ return GBKConvert.Instance.GetString(_FFEXTime); } + set{ GBKConvert.Instance.GetBytes(value, _FFEXTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _INETime = new byte[9]; + /// + /// 能源中心时间 + /// + public string INETime + { + get{ return GBKConvert.Instance.GetString(_INETime); } + set{ GBKConvert.Instance.GetBytes(value, _INETime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _SysVersion = new byte[41]; + /// + /// 后台版本信息 + /// + public string SysVersion + { + get{ return GBKConvert.Instance.GetString(_SysVersion); } + set{ GBKConvert.Instance.GetBytes(value, _SysVersion); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _GFEXTime = new byte[9]; + /// + /// 广期所时间 + /// + public string GFEXTime + { + get{ return GBKConvert.Instance.GetString(_GFEXTime); } + set{ GBKConvert.Instance.GetBytes(value, _GFEXTime); } + } +} +/// +/// 用户登出请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcUserLogoutField +{ + public CThostFtdcUserLogoutField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } +} +/// +/// 强制交易员退出 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcForceUserLogoutField +{ + public CThostFtdcForceUserLogoutField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } +} +/// +/// 客户端认证请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqAuthenticateField +{ + public CThostFtdcReqAuthenticateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _AuthCode = new byte[17]; + /// + /// 认证码 + /// + public string AuthCode + { + get{ return GBKConvert.Instance.GetString(_AuthCode); } + set{ GBKConvert.Instance.GetBytes(value, _AuthCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _AppID = new byte[33]; + /// + /// App代码 + /// + public string AppID + { + get{ return GBKConvert.Instance.GetString(_AppID); } + set{ GBKConvert.Instance.GetBytes(value, _AppID); } + } +} +/// +/// 客户端认证响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspAuthenticateField +{ + public CThostFtdcRspAuthenticateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _AppID = new byte[33]; + /// + /// App代码 + /// + public string AppID + { + get{ return GBKConvert.Instance.GetString(_AppID); } + set{ GBKConvert.Instance.GetBytes(value, _AppID); } + } + public TThostFtdcAppTypeType AppType; +} +/// +/// 客户端认证信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcAuthenticationInfoField +{ + public CThostFtdcAuthenticationInfoField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _AuthInfo = new byte[129]; + /// + /// 认证信息 + /// + public string AuthInfo + { + get{ return GBKConvert.Instance.GetString(_AuthInfo); } + set{ GBKConvert.Instance.GetBytes(value, _AuthInfo); } + } + /// + /// 是否为认证结果 + /// + public int IsResult; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _AppID = new byte[33]; + /// + /// App代码 + /// + public string AppID + { + get{ return GBKConvert.Instance.GetString(_AppID); } + set{ GBKConvert.Instance.GetBytes(value, _AppID); } + } + public TThostFtdcAppTypeType AppType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _ClientIPAddress = new byte[33]; + /// + /// 终端IP地址 + /// + public string ClientIPAddress + { + get{ return GBKConvert.Instance.GetString(_ClientIPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _ClientIPAddress); } + } +} +/// +/// 用户登录应答2 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspUserLogin2Field +{ + public CThostFtdcRspUserLogin2Field() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _LoginTime = new byte[9]; + /// + /// 登录成功时间 + /// + public string LoginTime + { + get{ return GBKConvert.Instance.GetString(_LoginTime); } + set{ GBKConvert.Instance.GetBytes(value, _LoginTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _SystemName = new byte[41]; + /// + /// 交易系统名称 + /// + public string SystemName + { + get{ return GBKConvert.Instance.GetString(_SystemName); } + set{ GBKConvert.Instance.GetBytes(value, _SystemName); } + } + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _MaxOrderRef = new byte[13]; + /// + /// 最大报单引用 + /// + public string MaxOrderRef + { + get{ return GBKConvert.Instance.GetString(_MaxOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _MaxOrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _SHFETime = new byte[9]; + /// + /// 上期所时间 + /// + public string SHFETime + { + get{ return GBKConvert.Instance.GetString(_SHFETime); } + set{ GBKConvert.Instance.GetBytes(value, _SHFETime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _DCETime = new byte[9]; + /// + /// 大商所时间 + /// + public string DCETime + { + get{ return GBKConvert.Instance.GetString(_DCETime); } + set{ GBKConvert.Instance.GetBytes(value, _DCETime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CZCETime = new byte[9]; + /// + /// 郑商所时间 + /// + public string CZCETime + { + get{ return GBKConvert.Instance.GetString(_CZCETime); } + set{ GBKConvert.Instance.GetBytes(value, _CZCETime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _FFEXTime = new byte[9]; + /// + /// 中金所时间 + /// + public string FFEXTime + { + get{ return GBKConvert.Instance.GetString(_FFEXTime); } + set{ GBKConvert.Instance.GetBytes(value, _FFEXTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _INETime = new byte[9]; + /// + /// 能源中心时间 + /// + public string INETime + { + get{ return GBKConvert.Instance.GetString(_INETime); } + set{ GBKConvert.Instance.GetBytes(value, _INETime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _RandomString = new byte[17]; + /// + /// 随机串 + /// + public string RandomString + { + get{ return GBKConvert.Instance.GetString(_RandomString); } + set{ GBKConvert.Instance.GetBytes(value, _RandomString); } + } +} +/// +/// 银期转帐报文头 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTransferHeaderField +{ + public CThostFtdcTransferHeaderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _Version = new byte[4]; + /// + /// 版本号,常量,1.0 + /// + public string Version + { + get{ return GBKConvert.Instance.GetString(_Version); } + set{ GBKConvert.Instance.GetBytes(value, _Version); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 交易代码,必填 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期,必填,格式:yyyymmdd + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间,必填,格式:hhmmss + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeSerial = new byte[9]; + /// + /// 发起方流水号,N/A + /// + public string TradeSerial + { + get{ return GBKConvert.Instance.GetString(_TradeSerial); } + set{ GBKConvert.Instance.GetBytes(value, _TradeSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _FutureID = new byte[11]; + /// + /// 期货公司代码,必填 + /// + public string FutureID + { + get{ return GBKConvert.Instance.GetString(_FutureID); } + set{ GBKConvert.Instance.GetBytes(value, _FutureID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码,根据查询银行得到,必填 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBrchID = new byte[5]; + /// + /// 银行分中心代码,根据查询银行得到,必填 + /// + public string BankBrchID + { + get{ return GBKConvert.Instance.GetString(_BankBrchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBrchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 操作员,N/A + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 交易设备类型,N/A + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _RecordNum = new byte[7]; + /// + /// 记录数,N/A + /// + public string RecordNum + { + get{ return GBKConvert.Instance.GetString(_RecordNum); } + set{ GBKConvert.Instance.GetBytes(value, _RecordNum); } + } + /// + /// 会话编号,N/A + /// + public int SessionID; + /// + /// 请求编号,N/A + /// + public int RequestID; +} +/// +/// 银行资金转期货请求,TradeCode=202001 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTransferBankToFutureReqField +{ + public CThostFtdcTransferBankToFutureReqField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _FutureAccount = new byte[13]; + /// + /// 期货资金账户 + /// + public string FutureAccount + { + get{ return GBKConvert.Instance.GetString(_FutureAccount); } + set{ GBKConvert.Instance.GetBytes(value, _FutureAccount); } + } + public TThostFtdcFuturePwdFlagType FuturePwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _FutureAccPwd = new byte[17]; + /// + /// 密码 + /// + public string FutureAccPwd + { + get{ return GBKConvert.Instance.GetString(_FutureAccPwd); } + set{ GBKConvert.Instance.GetBytes(value, _FutureAccPwd); } + } + /// + /// 转账金额 + /// + public double TradeAmt; + /// + /// 客户手续费 + /// + public double CustFee; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyCode = new byte[4]; + /// + /// 币种:RMB-人民币 USD-美圆 HKD-港元 + /// + public string CurrencyCode + { + get{ return GBKConvert.Instance.GetString(_CurrencyCode); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyCode); } + } +} +/// +/// 银行资金转期货请求响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTransferBankToFutureRspField +{ + public CThostFtdcTransferBankToFutureRspField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _RetCode = new byte[5]; + /// + /// 响应代码 + /// + public string RetCode + { + get{ return GBKConvert.Instance.GetString(_RetCode); } + set{ GBKConvert.Instance.GetBytes(value, _RetCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _RetInfo = new byte[129]; + /// + /// 响应信息 + /// + public string RetInfo + { + get{ return GBKConvert.Instance.GetString(_RetInfo); } + set{ GBKConvert.Instance.GetBytes(value, _RetInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _FutureAccount = new byte[13]; + /// + /// 资金账户 + /// + public string FutureAccount + { + get{ return GBKConvert.Instance.GetString(_FutureAccount); } + set{ GBKConvert.Instance.GetBytes(value, _FutureAccount); } + } + /// + /// 转帐金额 + /// + public double TradeAmt; + /// + /// 应收客户手续费 + /// + public double CustFee; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyCode = new byte[4]; + /// + /// 币种 + /// + public string CurrencyCode + { + get{ return GBKConvert.Instance.GetString(_CurrencyCode); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyCode); } + } +} +/// +/// 期货资金转银行请求,TradeCode=202002 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTransferFutureToBankReqField +{ + public CThostFtdcTransferFutureToBankReqField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _FutureAccount = new byte[13]; + /// + /// 期货资金账户 + /// + public string FutureAccount + { + get{ return GBKConvert.Instance.GetString(_FutureAccount); } + set{ GBKConvert.Instance.GetBytes(value, _FutureAccount); } + } + public TThostFtdcFuturePwdFlagType FuturePwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _FutureAccPwd = new byte[17]; + /// + /// 密码 + /// + public string FutureAccPwd + { + get{ return GBKConvert.Instance.GetString(_FutureAccPwd); } + set{ GBKConvert.Instance.GetBytes(value, _FutureAccPwd); } + } + /// + /// 转账金额 + /// + public double TradeAmt; + /// + /// 客户手续费 + /// + public double CustFee; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyCode = new byte[4]; + /// + /// 币种:RMB-人民币 USD-美圆 HKD-港元 + /// + public string CurrencyCode + { + get{ return GBKConvert.Instance.GetString(_CurrencyCode); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyCode); } + } +} +/// +/// 期货资金转银行请求响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTransferFutureToBankRspField +{ + public CThostFtdcTransferFutureToBankRspField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _RetCode = new byte[5]; + /// + /// 响应代码 + /// + public string RetCode + { + get{ return GBKConvert.Instance.GetString(_RetCode); } + set{ GBKConvert.Instance.GetBytes(value, _RetCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _RetInfo = new byte[129]; + /// + /// 响应信息 + /// + public string RetInfo + { + get{ return GBKConvert.Instance.GetString(_RetInfo); } + set{ GBKConvert.Instance.GetBytes(value, _RetInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _FutureAccount = new byte[13]; + /// + /// 资金账户 + /// + public string FutureAccount + { + get{ return GBKConvert.Instance.GetString(_FutureAccount); } + set{ GBKConvert.Instance.GetBytes(value, _FutureAccount); } + } + /// + /// 转帐金额 + /// + public double TradeAmt; + /// + /// 应收客户手续费 + /// + public double CustFee; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyCode = new byte[4]; + /// + /// 币种 + /// + public string CurrencyCode + { + get{ return GBKConvert.Instance.GetString(_CurrencyCode); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyCode); } + } +} +/// +/// 查询银行资金请求,TradeCode=204002 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTransferQryBankReqField +{ + public CThostFtdcTransferQryBankReqField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _FutureAccount = new byte[13]; + /// + /// 期货资金账户 + /// + public string FutureAccount + { + get{ return GBKConvert.Instance.GetString(_FutureAccount); } + set{ GBKConvert.Instance.GetBytes(value, _FutureAccount); } + } + public TThostFtdcFuturePwdFlagType FuturePwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _FutureAccPwd = new byte[17]; + /// + /// 密码 + /// + public string FutureAccPwd + { + get{ return GBKConvert.Instance.GetString(_FutureAccPwd); } + set{ GBKConvert.Instance.GetBytes(value, _FutureAccPwd); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyCode = new byte[4]; + /// + /// 币种:RMB-人民币 USD-美圆 HKD-港元 + /// + public string CurrencyCode + { + get{ return GBKConvert.Instance.GetString(_CurrencyCode); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyCode); } + } +} +/// +/// 查询银行资金请求响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTransferQryBankRspField +{ + public CThostFtdcTransferQryBankRspField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _RetCode = new byte[5]; + /// + /// 响应代码 + /// + public string RetCode + { + get{ return GBKConvert.Instance.GetString(_RetCode); } + set{ GBKConvert.Instance.GetBytes(value, _RetCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _RetInfo = new byte[129]; + /// + /// 响应信息 + /// + public string RetInfo + { + get{ return GBKConvert.Instance.GetString(_RetInfo); } + set{ GBKConvert.Instance.GetBytes(value, _RetInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _FutureAccount = new byte[13]; + /// + /// 资金账户 + /// + public string FutureAccount + { + get{ return GBKConvert.Instance.GetString(_FutureAccount); } + set{ GBKConvert.Instance.GetBytes(value, _FutureAccount); } + } + /// + /// 银行余额 + /// + public double TradeAmt; + /// + /// 银行可用余额 + /// + public double UseAmt; + /// + /// 银行可取余额 + /// + public double FetchAmt; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyCode = new byte[4]; + /// + /// 币种 + /// + public string CurrencyCode + { + get{ return GBKConvert.Instance.GetString(_CurrencyCode); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyCode); } + } +} +/// +/// 查询银行交易明细请求,TradeCode=204999 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTransferQryDetailReqField +{ + public CThostFtdcTransferQryDetailReqField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _FutureAccount = new byte[13]; + /// + /// 期货资金账户 + /// + public string FutureAccount + { + get{ return GBKConvert.Instance.GetString(_FutureAccount); } + set{ GBKConvert.Instance.GetBytes(value, _FutureAccount); } + } +} +/// +/// 查询银行交易明细请求响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTransferQryDetailRspField +{ + public CThostFtdcTransferQryDetailRspField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 交易代码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + /// + /// 期货流水号 + /// + public int FutureSerial; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _FutureID = new byte[11]; + /// + /// 期货公司代码 + /// + public string FutureID + { + get{ return GBKConvert.Instance.GetString(_FutureID); } + set{ GBKConvert.Instance.GetBytes(value, _FutureID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=22)] + public readonly byte[] _FutureAccount = new byte[22]; + /// + /// 资金帐号 + /// + public string FutureAccount + { + get{ return GBKConvert.Instance.GetString(_FutureAccount); } + set{ GBKConvert.Instance.GetBytes(value, _FutureAccount); } + } + /// + /// 银行流水号 + /// + public int BankSerial; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBrchID = new byte[5]; + /// + /// 银行分中心代码 + /// + public string BankBrchID + { + get{ return GBKConvert.Instance.GetString(_BankBrchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBrchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行账号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _CertCode = new byte[21]; + /// + /// 证件号码 + /// + public string CertCode + { + get{ return GBKConvert.Instance.GetString(_CertCode); } + set{ GBKConvert.Instance.GetBytes(value, _CertCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyCode = new byte[4]; + /// + /// 货币代码 + /// + public string CurrencyCode + { + get{ return GBKConvert.Instance.GetString(_CurrencyCode); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyCode); } + } + /// + /// 发生金额 + /// + public double TxAmount; + public TThostFtdcTransferValidFlagType Flag; +} +/// +/// 响应信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspInfoField +{ + public CThostFtdcRspInfoField() {} + public bool NoError => ErrorID == 0; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } +} +/// +/// 交易所 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeField +{ + public CThostFtdcExchangeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=61)] + public readonly byte[] _ExchangeName = new byte[61]; + /// + /// 交易所名称 + /// + public string ExchangeName + { + get{ return GBKConvert.Instance.GetString(_ExchangeName); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeName); } + } + public TThostFtdcExchangePropertyType ExchangeProperty; +} +/// +/// 产品 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcProductField +{ + public CThostFtdcProductField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ProductName = new byte[21]; + /// + /// 产品名称 + /// + public string ProductName + { + get{ return GBKConvert.Instance.GetString(_ProductName); } + set{ GBKConvert.Instance.GetBytes(value, _ProductName); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + public TThostFtdcProductClassType ProductClass; + /// + /// 合约数量乘数 + /// + public int VolumeMultiple; + /// + /// 最小变动价位 + /// + public double PriceTick; + /// + /// 市价单最大下单量 + /// + public int MaxMarketOrderVolume; + /// + /// 市价单最小下单量 + /// + public int MinMarketOrderVolume; + /// + /// 限价单最大下单量 + /// + public int MaxLimitOrderVolume; + /// + /// 限价单最小下单量 + /// + public int MinLimitOrderVolume; + public TThostFtdcPositionTypeType PositionType; + public TThostFtdcPositionDateTypeType PositionDateType; + public TThostFtdcCloseDealTypeType CloseDealType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _TradeCurrencyID = new byte[4]; + /// + /// 交易币种类型 + /// + public string TradeCurrencyID + { + get{ return GBKConvert.Instance.GetString(_TradeCurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCurrencyID); } + } + public TThostFtdcMortgageFundUseRangeType MortgageFundUseRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + /// + /// 合约基础商品乘数 + /// + public double UnderlyingMultiple; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeProductID = new byte[81]; + /// + /// 交易所产品代码 + /// + public string ExchangeProductID + { + get{ return GBKConvert.Instance.GetString(_ExchangeProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeProductID); } + } + public TThostFtdcOpenLimitControlLevelType OpenLimitControlLevel; + public TThostFtdcOrderFreqControlLevelType OrderFreqControlLevel; +} +/// +/// 合约 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInstrumentField +{ + public CThostFtdcInstrumentField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _InstrumentName = new byte[21]; + /// + /// 合约名称 + /// + public string InstrumentName + { + get{ return GBKConvert.Instance.GetString(_InstrumentName); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentName); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve3 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve3 + { + get{ return GBKConvert.Instance.GetString(_reserve3); } + set{ GBKConvert.Instance.GetBytes(value, _reserve3); } + } + public TThostFtdcProductClassType ProductClass; + /// + /// 交割年份 + /// + public int DeliveryYear; + /// + /// 交割月 + /// + public int DeliveryMonth; + /// + /// 市价单最大下单量 + /// + public int MaxMarketOrderVolume; + /// + /// 市价单最小下单量 + /// + public int MinMarketOrderVolume; + /// + /// 限价单最大下单量 + /// + public int MaxLimitOrderVolume; + /// + /// 限价单最小下单量 + /// + public int MinLimitOrderVolume; + /// + /// 合约数量乘数 + /// + public int VolumeMultiple; + /// + /// 最小变动价位 + /// + public double PriceTick; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CreateDate = new byte[9]; + /// + /// 创建日 + /// + public string CreateDate + { + get{ return GBKConvert.Instance.GetString(_CreateDate); } + set{ GBKConvert.Instance.GetBytes(value, _CreateDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _OpenDate = new byte[9]; + /// + /// 上市日 + /// + public string OpenDate + { + get{ return GBKConvert.Instance.GetString(_OpenDate); } + set{ GBKConvert.Instance.GetBytes(value, _OpenDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExpireDate = new byte[9]; + /// + /// 到期日 + /// + public string ExpireDate + { + get{ return GBKConvert.Instance.GetString(_ExpireDate); } + set{ GBKConvert.Instance.GetBytes(value, _ExpireDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _StartDelivDate = new byte[9]; + /// + /// 开始交割日 + /// + public string StartDelivDate + { + get{ return GBKConvert.Instance.GetString(_StartDelivDate); } + set{ GBKConvert.Instance.GetBytes(value, _StartDelivDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _EndDelivDate = new byte[9]; + /// + /// 结束交割日 + /// + public string EndDelivDate + { + get{ return GBKConvert.Instance.GetString(_EndDelivDate); } + set{ GBKConvert.Instance.GetBytes(value, _EndDelivDate); } + } + public TThostFtdcInstLifePhaseType InstLifePhase; + /// + /// 当前是否交易 + /// + public int IsTrading; + public TThostFtdcPositionTypeType PositionType; + public TThostFtdcPositionDateTypeType PositionDateType; + /// + /// 多头保证金率 + /// + public double LongMarginRatio; + /// + /// 空头保证金率 + /// + public double ShortMarginRatio; + public TThostFtdcMaxMarginSideAlgorithmType MaxMarginSideAlgorithm; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve4 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve4 + { + get{ return GBKConvert.Instance.GetString(_reserve4); } + set{ GBKConvert.Instance.GetBytes(value, _reserve4); } + } + /// + /// 执行价 + /// + public double StrikePrice; + public TThostFtdcOptionsTypeType OptionsType; + /// + /// 合约基础商品乘数 + /// + public double UnderlyingMultiple; + public TThostFtdcCombinationTypeType CombinationType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _UnderlyingInstrID = new byte[81]; + /// + /// 基础商品代码 + /// + public string UnderlyingInstrID + { + get{ return GBKConvert.Instance.GetString(_UnderlyingInstrID); } + set{ GBKConvert.Instance.GetBytes(value, _UnderlyingInstrID); } + } +} +/// +/// 经纪公司 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBrokerField +{ + public CThostFtdcBrokerField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BrokerAbbr = new byte[9]; + /// + /// 经纪公司简称 + /// + public string BrokerAbbr + { + get{ return GBKConvert.Instance.GetString(_BrokerAbbr); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerAbbr); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _BrokerName = new byte[81]; + /// + /// 经纪公司名称 + /// + public string BrokerName + { + get{ return GBKConvert.Instance.GetString(_BrokerName); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerName); } + } + /// + /// 是否活跃 + /// + public int IsActive; +} +/// +/// 交易所交易员 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTraderField +{ + public CThostFtdcTraderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 安装数量 + /// + public int InstallCount; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + public TThostFtdcOrderCancelAlgType OrderCancelAlg; +} +/// +/// 投资者 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInvestorField +{ + public CThostFtdcInvestorField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorGroupID = new byte[13]; + /// + /// 投资者分组代码 + /// + public string InvestorGroupID + { + get{ return GBKConvert.Instance.GetString(_InvestorGroupID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorGroupID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InvestorName = new byte[81]; + /// + /// 投资者名称 + /// + public string InvestorName + { + get{ return GBKConvert.Instance.GetString(_InvestorName); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorName); } + } + public TThostFtdcIdCardTypeType IdentifiedCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + /// + /// 是否活跃 + /// + public int IsActive; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Telephone = new byte[41]; + /// + /// 联系电话 + /// + public string Telephone + { + get{ return GBKConvert.Instance.GetString(_Telephone); } + set{ GBKConvert.Instance.GetBytes(value, _Telephone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _Address = new byte[101]; + /// + /// 通讯地址 + /// + public string Address + { + get{ return GBKConvert.Instance.GetString(_Address); } + set{ GBKConvert.Instance.GetBytes(value, _Address); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _OpenDate = new byte[9]; + /// + /// 开户日期 + /// + public string OpenDate + { + get{ return GBKConvert.Instance.GetString(_OpenDate); } + set{ GBKConvert.Instance.GetBytes(value, _OpenDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Mobile = new byte[41]; + /// + /// 手机 + /// + public string Mobile + { + get{ return GBKConvert.Instance.GetString(_Mobile); } + set{ GBKConvert.Instance.GetBytes(value, _Mobile); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _CommModelID = new byte[13]; + /// + /// 手续费率模板代码 + /// + public string CommModelID + { + get{ return GBKConvert.Instance.GetString(_CommModelID); } + set{ GBKConvert.Instance.GetBytes(value, _CommModelID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _MarginModelID = new byte[13]; + /// + /// 保证金率模板代码 + /// + public string MarginModelID + { + get{ return GBKConvert.Instance.GetString(_MarginModelID); } + set{ GBKConvert.Instance.GetBytes(value, _MarginModelID); } + } + public TThostFtdcEnumBoolType IsOrderFreq; + public TThostFtdcEnumBoolType IsOpenVolLimit; +} +/// +/// 交易编码 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTradingCodeField +{ + public CThostFtdcTradingCodeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + /// + /// 是否活跃 + /// + public int IsActive; + public TThostFtdcClientIDTypeType ClientIDType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + public TThostFtdcBizTypeType BizType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } +} +/// +/// 会员编码和经纪公司编码对照表 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcPartBrokerField +{ + public CThostFtdcPartBrokerField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + /// + /// 是否活跃 + /// + public int IsActive; +} +/// +/// 管理用户 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSuperUserField +{ + public CThostFtdcSuperUserField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _UserName = new byte[81]; + /// + /// 用户名称 + /// + public string UserName + { + get{ return GBKConvert.Instance.GetString(_UserName); } + set{ GBKConvert.Instance.GetBytes(value, _UserName); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 是否活跃 + /// + public int IsActive; +} +/// +/// 管理用户功能权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSuperUserFunctionField +{ + public CThostFtdcSuperUserFunctionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcFunctionCodeType FunctionCode; +} +/// +/// 投资者组 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInvestorGroupField +{ + public CThostFtdcInvestorGroupField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorGroupID = new byte[13]; + /// + /// 投资者分组代码 + /// + public string InvestorGroupID + { + get{ return GBKConvert.Instance.GetString(_InvestorGroupID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorGroupID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _InvestorGroupName = new byte[41]; + /// + /// 投资者分组名称 + /// + public string InvestorGroupName + { + get{ return GBKConvert.Instance.GetString(_InvestorGroupName); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorGroupName); } + } +} +/// +/// 资金账户 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTradingAccountField +{ + public CThostFtdcTradingAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + /// + /// 上次质押金额 + /// + public double PreMortgage; + /// + /// 上次信用额度 + /// + public double PreCredit; + /// + /// 上次存款额 + /// + public double PreDeposit; + /// + /// 上次结算准备金 + /// + public double PreBalance; + /// + /// 上次占用的保证金 + /// + public double PreMargin; + /// + /// 利息基数 + /// + public double InterestBase; + /// + /// 利息收入 + /// + public double Interest; + /// + /// 入金金额 + /// + public double Deposit; + /// + /// 出金金额 + /// + public double Withdraw; + /// + /// 冻结的保证金 + /// + public double FrozenMargin; + /// + /// 冻结的资金 + /// + public double FrozenCash; + /// + /// 冻结的手续费 + /// + public double FrozenCommission; + /// + /// 当前保证金总额 + /// + public double CurrMargin; + /// + /// 资金差额 + /// + public double CashIn; + /// + /// 手续费 + /// + public double Commission; + /// + /// 平仓盈亏 + /// + public double CloseProfit; + /// + /// 持仓盈亏 + /// + public double PositionProfit; + /// + /// 期货结算准备金 + /// + public double Balance; + /// + /// 可用资金 + /// + public double Available; + /// + /// 可取资金 + /// + public double WithdrawQuota; + /// + /// 基本准备金 + /// + public double Reserve; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + /// + /// 信用额度 + /// + public double Credit; + /// + /// 质押金额 + /// + public double Mortgage; + /// + /// 交易所保证金 + /// + public double ExchangeMargin; + /// + /// 投资者交割保证金 + /// + public double DeliveryMargin; + /// + /// 交易所交割保证金 + /// + public double ExchangeDeliveryMargin; + /// + /// 保底期货结算准备金 + /// + public double ReserveBalance; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 上次货币质入金额 + /// + public double PreFundMortgageIn; + /// + /// 上次货币质出金额 + /// + public double PreFundMortgageOut; + /// + /// 货币质入金额 + /// + public double FundMortgageIn; + /// + /// 货币质出金额 + /// + public double FundMortgageOut; + /// + /// 货币质押余额 + /// + public double FundMortgageAvailable; + /// + /// 可质押货币金额 + /// + public double MortgageableFund; + /// + /// 特殊产品占用保证金 + /// + public double SpecProductMargin; + /// + /// 特殊产品冻结保证金 + /// + public double SpecProductFrozenMargin; + /// + /// 特殊产品手续费 + /// + public double SpecProductCommission; + /// + /// 特殊产品冻结手续费 + /// + public double SpecProductFrozenCommission; + /// + /// 特殊产品持仓盈亏 + /// + public double SpecProductPositionProfit; + /// + /// 特殊产品平仓盈亏 + /// + public double SpecProductCloseProfit; + /// + /// 根据持仓盈亏算法计算的特殊产品持仓盈亏 + /// + public double SpecProductPositionProfitByAlg; + /// + /// 特殊产品交易所保证金 + /// + public double SpecProductExchangeMargin; + public TThostFtdcBizTypeType BizType; + /// + /// 延时换汇冻结金额 + /// + public double FrozenSwap; + /// + /// 剩余换汇额度 + /// + public double RemainSwap; +} +/// +/// 投资者持仓 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInvestorPositionField +{ + public CThostFtdcInvestorPositionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcPosiDirectionType PosiDirection; + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcPositionDateType PositionDate; + /// + /// 上日持仓 + /// + public int YdPosition; + /// + /// 今日持仓 + /// + public int Position; + /// + /// 多头冻结 + /// + public int LongFrozen; + /// + /// 空头冻结 + /// + public int ShortFrozen; + /// + /// 开仓冻结金额 + /// + public double LongFrozenAmount; + /// + /// 开仓冻结金额 + /// + public double ShortFrozenAmount; + /// + /// 开仓量 + /// + public int OpenVolume; + /// + /// 平仓量 + /// + public int CloseVolume; + /// + /// 开仓金额 + /// + public double OpenAmount; + /// + /// 平仓金额 + /// + public double CloseAmount; + /// + /// 持仓成本 + /// + public double PositionCost; + /// + /// 上次占用的保证金 + /// + public double PreMargin; + /// + /// 占用的保证金 + /// + public double UseMargin; + /// + /// 冻结的保证金 + /// + public double FrozenMargin; + /// + /// 冻结的资金 + /// + public double FrozenCash; + /// + /// 冻结的手续费 + /// + public double FrozenCommission; + /// + /// 资金差额 + /// + public double CashIn; + /// + /// 手续费 + /// + public double Commission; + /// + /// 平仓盈亏 + /// + public double CloseProfit; + /// + /// 持仓盈亏 + /// + public double PositionProfit; + /// + /// 上次结算价 + /// + public double PreSettlementPrice; + /// + /// 本次结算价 + /// + public double SettlementPrice; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + /// + /// 开仓成本 + /// + public double OpenCost; + /// + /// 交易所保证金 + /// + public double ExchangeMargin; + /// + /// 组合成交形成的持仓 + /// + public int CombPosition; + /// + /// 组合多头冻结 + /// + public int CombLongFrozen; + /// + /// 组合空头冻结 + /// + public int CombShortFrozen; + /// + /// 逐日盯市平仓盈亏 + /// + public double CloseProfitByDate; + /// + /// 逐笔对冲平仓盈亏 + /// + public double CloseProfitByTrade; + /// + /// 今日持仓 + /// + public int TodayPosition; + /// + /// 保证金率 + /// + public double MarginRateByMoney; + /// + /// 保证金率(按手数) + /// + public double MarginRateByVolume; + /// + /// 执行冻结 + /// + public int StrikeFrozen; + /// + /// 执行冻结金额 + /// + public double StrikeFrozenAmount; + /// + /// 放弃执行冻结 + /// + public int AbandonFrozen; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 执行冻结的昨仓 + /// + public int YdStrikeFrozen; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + /// + /// 持仓成本差值 + /// + public double PositionCostOffset; + /// + /// tas持仓手数 + /// + public int TasPosition; + /// + /// tas持仓成本 + /// + public double TasPositionCost; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 合约保证金率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInstrumentMarginRateField +{ + public CThostFtdcInstrumentMarginRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 多头保证金率 + /// + public double LongMarginRatioByMoney; + /// + /// 多头保证金费 + /// + public double LongMarginRatioByVolume; + /// + /// 空头保证金率 + /// + public double ShortMarginRatioByMoney; + /// + /// 空头保证金费 + /// + public double ShortMarginRatioByVolume; + /// + /// 是否相对交易所收取 + /// + public int IsRelative; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 合约手续费率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInstrumentCommissionRateField +{ + public CThostFtdcInstrumentCommissionRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 开仓手续费率 + /// + public double OpenRatioByMoney; + /// + /// 开仓手续费 + /// + public double OpenRatioByVolume; + /// + /// 平仓手续费率 + /// + public double CloseRatioByMoney; + /// + /// 平仓手续费 + /// + public double CloseRatioByVolume; + /// + /// 平今手续费率 + /// + public double CloseTodayRatioByMoney; + /// + /// 平今手续费 + /// + public double CloseTodayRatioByVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + public TThostFtdcBizTypeType BizType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 深度行情 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcDepthMarketDataField +{ + public CThostFtdcDepthMarketDataField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + /// + /// 最新价 + /// + public double LastPrice; + /// + /// 上次结算价 + /// + public double PreSettlementPrice; + /// + /// 昨收盘 + /// + public double PreClosePrice; + /// + /// 昨持仓量 + /// + public double PreOpenInterest; + /// + /// 今开盘 + /// + public double OpenPrice; + /// + /// 最高价 + /// + public double HighestPrice; + /// + /// 最低价 + /// + public double LowestPrice; + /// + /// 数量 + /// + public int Volume; + /// + /// 成交金额 + /// + public double Turnover; + /// + /// 持仓量 + /// + public double OpenInterest; + /// + /// 今收盘 + /// + public double ClosePrice; + /// + /// 本次结算价 + /// + public double SettlementPrice; + /// + /// 涨停板价 + /// + public double UpperLimitPrice; + /// + /// 跌停板价 + /// + public double LowerLimitPrice; + /// + /// 昨虚实度 + /// + public double PreDelta; + /// + /// 今虚实度 + /// + public double CurrDelta; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _UpdateTime = new byte[9]; + /// + /// 最后修改时间 + /// + public string UpdateTime + { + get{ return GBKConvert.Instance.GetString(_UpdateTime); } + set{ GBKConvert.Instance.GetBytes(value, _UpdateTime); } + } + /// + /// 最后修改毫秒 + /// + public int UpdateMillisec; + /// + /// 申买价一 + /// + public double BidPrice1; + /// + /// 申买量一 + /// + public int BidVolume1; + /// + /// 申卖价一 + /// + public double AskPrice1; + /// + /// 申卖量一 + /// + public int AskVolume1; + /// + /// 申买价二 + /// + public double BidPrice2; + /// + /// 申买量二 + /// + public int BidVolume2; + /// + /// 申卖价二 + /// + public double AskPrice2; + /// + /// 申卖量二 + /// + public int AskVolume2; + /// + /// 申买价三 + /// + public double BidPrice3; + /// + /// 申买量三 + /// + public int BidVolume3; + /// + /// 申卖价三 + /// + public double AskPrice3; + /// + /// 申卖量三 + /// + public int AskVolume3; + /// + /// 申买价四 + /// + public double BidPrice4; + /// + /// 申买量四 + /// + public int BidVolume4; + /// + /// 申卖价四 + /// + public double AskPrice4; + /// + /// 申卖量四 + /// + public int AskVolume4; + /// + /// 申买价五 + /// + public double BidPrice5; + /// + /// 申买量五 + /// + public int BidVolume5; + /// + /// 申卖价五 + /// + public double AskPrice5; + /// + /// 申卖量五 + /// + public int AskVolume5; + /// + /// 当日均价 + /// + public double AveragePrice; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDay = new byte[9]; + /// + /// 业务日期 + /// + public string ActionDay + { + get{ return GBKConvert.Instance.GetString(_ActionDay); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + /// + /// 上带价 + /// + public double BandingUpperPrice; + /// + /// 下带价 + /// + public double BandingLowerPrice; +} +/// +/// 投资者合约交易权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInstrumentTradingRightField +{ + public CThostFtdcInstrumentTradingRightField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcTradingRightType TradingRight; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 经纪公司用户 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBrokerUserField +{ + public CThostFtdcBrokerUserField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _UserName = new byte[81]; + /// + /// 用户名称 + /// + public string UserName + { + get{ return GBKConvert.Instance.GetString(_UserName); } + set{ GBKConvert.Instance.GetBytes(value, _UserName); } + } + public TThostFtdcUserTypeType UserType; + /// + /// 是否活跃 + /// + public int IsActive; + /// + /// 是否使用令牌 + /// + public int IsUsingOTP; + /// + /// 是否强制终端认证 + /// + public int IsAuthForce; +} +/// +/// 经纪公司用户口令 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBrokerUserPasswordField +{ + public CThostFtdcBrokerUserPasswordField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _LastUpdateTime = new byte[17]; + /// + /// 上次修改时间 + /// + public string LastUpdateTime + { + get{ return GBKConvert.Instance.GetString(_LastUpdateTime); } + set{ GBKConvert.Instance.GetBytes(value, _LastUpdateTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _LastLoginTime = new byte[17]; + /// + /// 上次登陆时间 + /// + public string LastLoginTime + { + get{ return GBKConvert.Instance.GetString(_LastLoginTime); } + set{ GBKConvert.Instance.GetBytes(value, _LastLoginTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExpireDate = new byte[9]; + /// + /// 密码过期时间 + /// + public string ExpireDate + { + get{ return GBKConvert.Instance.GetString(_ExpireDate); } + set{ GBKConvert.Instance.GetBytes(value, _ExpireDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _WeakExpireDate = new byte[9]; + /// + /// 弱密码过期时间 + /// + public string WeakExpireDate + { + get{ return GBKConvert.Instance.GetString(_WeakExpireDate); } + set{ GBKConvert.Instance.GetBytes(value, _WeakExpireDate); } + } +} +/// +/// 经纪公司用户功能权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBrokerUserFunctionField +{ + public CThostFtdcBrokerUserFunctionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcBrokerFunctionCodeType BrokerFunctionCode; +} +/// +/// 交易所交易员报盘机 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTraderOfferField +{ + public CThostFtdcTraderOfferField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderLocalID = new byte[13]; + /// + /// 本地报单编号 + /// + public string OrderLocalID + { + get{ return GBKConvert.Instance.GetString(_OrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderLocalID); } + } + public TThostFtdcTraderConnectStatusType TraderConnectStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ConnectRequestDate = new byte[9]; + /// + /// 发出连接请求的日期 + /// + public string ConnectRequestDate + { + get{ return GBKConvert.Instance.GetString(_ConnectRequestDate); } + set{ GBKConvert.Instance.GetBytes(value, _ConnectRequestDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ConnectRequestTime = new byte[9]; + /// + /// 发出连接请求的时间 + /// + public string ConnectRequestTime + { + get{ return GBKConvert.Instance.GetString(_ConnectRequestTime); } + set{ GBKConvert.Instance.GetBytes(value, _ConnectRequestTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _LastReportDate = new byte[9]; + /// + /// 上次报告日期 + /// + public string LastReportDate + { + get{ return GBKConvert.Instance.GetString(_LastReportDate); } + set{ GBKConvert.Instance.GetBytes(value, _LastReportDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _LastReportTime = new byte[9]; + /// + /// 上次报告时间 + /// + public string LastReportTime + { + get{ return GBKConvert.Instance.GetString(_LastReportTime); } + set{ GBKConvert.Instance.GetBytes(value, _LastReportTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ConnectDate = new byte[9]; + /// + /// 完成连接日期 + /// + public string ConnectDate + { + get{ return GBKConvert.Instance.GetString(_ConnectDate); } + set{ GBKConvert.Instance.GetBytes(value, _ConnectDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ConnectTime = new byte[9]; + /// + /// 完成连接时间 + /// + public string ConnectTime + { + get{ return GBKConvert.Instance.GetString(_ConnectTime); } + set{ GBKConvert.Instance.GetBytes(value, _ConnectTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _StartDate = new byte[9]; + /// + /// 启动日期 + /// + public string StartDate + { + get{ return GBKConvert.Instance.GetString(_StartDate); } + set{ GBKConvert.Instance.GetBytes(value, _StartDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _StartTime = new byte[9]; + /// + /// 启动时间 + /// + public string StartTime + { + get{ return GBKConvert.Instance.GetString(_StartTime); } + set{ GBKConvert.Instance.GetBytes(value, _StartTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MaxTradeID = new byte[21]; + /// + /// 本席位最大成交编号 + /// + public string MaxTradeID + { + get{ return GBKConvert.Instance.GetString(_MaxTradeID); } + set{ GBKConvert.Instance.GetBytes(value, _MaxTradeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _MaxOrderMessageReference = new byte[7]; + /// + /// 本席位最大报单备拷 + /// + public string MaxOrderMessageReference + { + get{ return GBKConvert.Instance.GetString(_MaxOrderMessageReference); } + set{ GBKConvert.Instance.GetBytes(value, _MaxOrderMessageReference); } + } + public TThostFtdcOrderCancelAlgType OrderCancelAlg; +} +/// +/// 投资者结算结果 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSettlementInfoField +{ + public CThostFtdcSettlementInfoField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 序号 + /// + public int SequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=501)] + public readonly byte[] _Content = new byte[501]; + /// + /// 消息正文 + /// + public string Content + { + get{ return GBKConvert.Instance.GetString(_Content); } + set{ GBKConvert.Instance.GetBytes(value, _Content); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 合约保证金率调整 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInstrumentMarginRateAdjustField +{ + public CThostFtdcInstrumentMarginRateAdjustField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 多头保证金率 + /// + public double LongMarginRatioByMoney; + /// + /// 多头保证金费 + /// + public double LongMarginRatioByVolume; + /// + /// 空头保证金率 + /// + public double ShortMarginRatioByMoney; + /// + /// 空头保证金费 + /// + public double ShortMarginRatioByVolume; + /// + /// 是否相对交易所收取 + /// + public int IsRelative; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 交易所保证金率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeMarginRateField +{ + public CThostFtdcExchangeMarginRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 多头保证金率 + /// + public double LongMarginRatioByMoney; + /// + /// 多头保证金费 + /// + public double LongMarginRatioByVolume; + /// + /// 空头保证金率 + /// + public double ShortMarginRatioByMoney; + /// + /// 空头保证金费 + /// + public double ShortMarginRatioByVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 交易所保证金率调整 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeMarginRateAdjustField +{ + public CThostFtdcExchangeMarginRateAdjustField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 跟随交易所投资者多头保证金率 + /// + public double LongMarginRatioByMoney; + /// + /// 跟随交易所投资者多头保证金费 + /// + public double LongMarginRatioByVolume; + /// + /// 跟随交易所投资者空头保证金率 + /// + public double ShortMarginRatioByMoney; + /// + /// 跟随交易所投资者空头保证金费 + /// + public double ShortMarginRatioByVolume; + /// + /// 交易所多头保证金率 + /// + public double ExchLongMarginRatioByMoney; + /// + /// 交易所多头保证金费 + /// + public double ExchLongMarginRatioByVolume; + /// + /// 交易所空头保证金率 + /// + public double ExchShortMarginRatioByMoney; + /// + /// 交易所空头保证金费 + /// + public double ExchShortMarginRatioByVolume; + /// + /// 不跟随交易所投资者多头保证金率 + /// + public double NoLongMarginRatioByMoney; + /// + /// 不跟随交易所投资者多头保证金费 + /// + public double NoLongMarginRatioByVolume; + /// + /// 不跟随交易所投资者空头保证金率 + /// + public double NoShortMarginRatioByMoney; + /// + /// 不跟随交易所投资者空头保证金费 + /// + public double NoShortMarginRatioByVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 汇率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeRateField +{ + public CThostFtdcExchangeRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _FromCurrencyID = new byte[4]; + /// + /// 源币种 + /// + public string FromCurrencyID + { + get{ return GBKConvert.Instance.GetString(_FromCurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _FromCurrencyID); } + } + /// + /// 源币种单位数量 + /// + public double FromCurrencyUnit; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _ToCurrencyID = new byte[4]; + /// + /// 目标币种 + /// + public string ToCurrencyID + { + get{ return GBKConvert.Instance.GetString(_ToCurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _ToCurrencyID); } + } + /// + /// 汇率 + /// + public double ExchangeRate; +} +/// +/// 结算引用 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSettlementRefField +{ + public CThostFtdcSettlementRefField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; +} +/// +/// 当前时间 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCurrentTimeField +{ + public CThostFtdcCurrentTimeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CurrDate = new byte[9]; + /// + /// 当前交易日 + /// + public string CurrDate + { + get{ return GBKConvert.Instance.GetString(_CurrDate); } + set{ GBKConvert.Instance.GetBytes(value, _CurrDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CurrTime = new byte[9]; + /// + /// 当前时间 + /// + public string CurrTime + { + get{ return GBKConvert.Instance.GetString(_CurrTime); } + set{ GBKConvert.Instance.GetBytes(value, _CurrTime); } + } + /// + /// 当前时间(毫秒) + /// + public int CurrMillisec; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDay = new byte[9]; + /// + /// 自然日期 + /// + public string ActionDay + { + get{ return GBKConvert.Instance.GetString(_ActionDay); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDay); } + } +} +/// +/// 通讯阶段 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCommPhaseField +{ + public CThostFtdcCommPhaseField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 通讯时段编号 + /// + public short CommPhaseNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _SystemID = new byte[21]; + /// + /// 系统编号 + /// + public string SystemID + { + get{ return GBKConvert.Instance.GetString(_SystemID); } + set{ GBKConvert.Instance.GetBytes(value, _SystemID); } + } +} +/// +/// 登录信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcLoginInfoField +{ + public CThostFtdcLoginInfoField() {} + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _LoginDate = new byte[9]; + /// + /// 登录日期 + /// + public string LoginDate + { + get{ return GBKConvert.Instance.GetString(_LoginDate); } + set{ GBKConvert.Instance.GetBytes(value, _LoginDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _LoginTime = new byte[9]; + /// + /// 登录时间 + /// + public string LoginTime + { + get{ return GBKConvert.Instance.GetString(_LoginTime); } + set{ GBKConvert.Instance.GetBytes(value, _LoginTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _InterfaceProductInfo = new byte[11]; + /// + /// 接口端产品信息 + /// + public string InterfaceProductInfo + { + get{ return GBKConvert.Instance.GetString(_InterfaceProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _InterfaceProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ProtocolInfo = new byte[11]; + /// + /// 协议信息 + /// + public string ProtocolInfo + { + get{ return GBKConvert.Instance.GetString(_ProtocolInfo); } + set{ GBKConvert.Instance.GetBytes(value, _ProtocolInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _SystemName = new byte[41]; + /// + /// 系统名称 + /// + public string SystemName + { + get{ return GBKConvert.Instance.GetString(_SystemName); } + set{ GBKConvert.Instance.GetBytes(value, _SystemName); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _PasswordDeprecated = new byte[41]; + /// + /// 密码,已弃用 + /// + public string PasswordDeprecated + { + get{ return GBKConvert.Instance.GetString(_PasswordDeprecated); } + set{ GBKConvert.Instance.GetBytes(value, _PasswordDeprecated); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _MaxOrderRef = new byte[13]; + /// + /// 最大报单引用 + /// + public string MaxOrderRef + { + get{ return GBKConvert.Instance.GetString(_MaxOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _MaxOrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _SHFETime = new byte[9]; + /// + /// 上期所时间 + /// + public string SHFETime + { + get{ return GBKConvert.Instance.GetString(_SHFETime); } + set{ GBKConvert.Instance.GetBytes(value, _SHFETime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _DCETime = new byte[9]; + /// + /// 大商所时间 + /// + public string DCETime + { + get{ return GBKConvert.Instance.GetString(_DCETime); } + set{ GBKConvert.Instance.GetBytes(value, _DCETime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CZCETime = new byte[9]; + /// + /// 郑商所时间 + /// + public string CZCETime + { + get{ return GBKConvert.Instance.GetString(_CZCETime); } + set{ GBKConvert.Instance.GetBytes(value, _CZCETime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _FFEXTime = new byte[9]; + /// + /// 中金所时间 + /// + public string FFEXTime + { + get{ return GBKConvert.Instance.GetString(_FFEXTime); } + set{ GBKConvert.Instance.GetBytes(value, _FFEXTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _OneTimePassword = new byte[41]; + /// + /// 动态密码 + /// + public string OneTimePassword + { + get{ return GBKConvert.Instance.GetString(_OneTimePassword); } + set{ GBKConvert.Instance.GetBytes(value, _OneTimePassword); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _INETime = new byte[9]; + /// + /// 能源中心时间 + /// + public string INETime + { + get{ return GBKConvert.Instance.GetString(_INETime); } + set{ GBKConvert.Instance.GetBytes(value, _INETime); } + } + /// + /// 查询时是否需要流控 + /// + public int IsQryControl; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _LoginRemark = new byte[36]; + /// + /// 登录备注 + /// + public string LoginRemark + { + get{ return GBKConvert.Instance.GetString(_LoginRemark); } + set{ GBKConvert.Instance.GetBytes(value, _LoginRemark); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 登录信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcLogoutAllField +{ + public CThostFtdcLogoutAllField() {} + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _SystemName = new byte[41]; + /// + /// 系统名称 + /// + public string SystemName + { + get{ return GBKConvert.Instance.GetString(_SystemName); } + set{ GBKConvert.Instance.GetBytes(value, _SystemName); } + } +} +/// +/// 前置状态 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcFrontStatusField +{ + public CThostFtdcFrontStatusField() {} + /// + /// 前置编号 + /// + public int FrontID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _LastReportDate = new byte[9]; + /// + /// 上次报告日期 + /// + public string LastReportDate + { + get{ return GBKConvert.Instance.GetString(_LastReportDate); } + set{ GBKConvert.Instance.GetBytes(value, _LastReportDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _LastReportTime = new byte[9]; + /// + /// 上次报告时间 + /// + public string LastReportTime + { + get{ return GBKConvert.Instance.GetString(_LastReportTime); } + set{ GBKConvert.Instance.GetBytes(value, _LastReportTime); } + } + /// + /// 是否活跃 + /// + public int IsActive; +} +/// +/// 用户口令变更 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcUserPasswordUpdateField +{ + public CThostFtdcUserPasswordUpdateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _OldPassword = new byte[41]; + /// + /// 原来的口令 + /// + public string OldPassword + { + get{ return GBKConvert.Instance.GetString(_OldPassword); } + set{ GBKConvert.Instance.GetBytes(value, _OldPassword); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _NewPassword = new byte[41]; + /// + /// 新的口令 + /// + public string NewPassword + { + get{ return GBKConvert.Instance.GetString(_NewPassword); } + set{ GBKConvert.Instance.GetBytes(value, _NewPassword); } + } +} +/// +/// 输入报单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInputOrderField +{ + public CThostFtdcInputOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderRef = new byte[13]; + /// + /// 报单引用 + /// + public string OrderRef + { + get{ return GBKConvert.Instance.GetString(_OrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _OrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcOrderPriceTypeType OrderPriceType; + public TThostFtdcDirectionType Direction; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombOffsetFlag = new byte[5]; + /// + /// 组合开平标志 + /// + public string CombOffsetFlag + { + get{ return GBKConvert.Instance.GetString(_CombOffsetFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombOffsetFlag); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombHedgeFlag = new byte[5]; + /// + /// 组合投机套保标志 + /// + public string CombHedgeFlag + { + get{ return GBKConvert.Instance.GetString(_CombHedgeFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombHedgeFlag); } + } + /// + /// 价格 + /// + public double LimitPrice; + /// + /// 数量 + /// + public int VolumeTotalOriginal; + public TThostFtdcTimeConditionType TimeCondition; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _GTDDate = new byte[9]; + /// + /// GTD日期 + /// + public string GTDDate + { + get{ return GBKConvert.Instance.GetString(_GTDDate); } + set{ GBKConvert.Instance.GetBytes(value, _GTDDate); } + } + public TThostFtdcVolumeConditionType VolumeCondition; + /// + /// 最小成交量 + /// + public int MinVolume; + public TThostFtdcContingentConditionType ContingentCondition; + /// + /// 止损价 + /// + public double StopPrice; + public TThostFtdcForceCloseReasonType ForceCloseReason; + /// + /// 自动挂起标志 + /// + public int IsAutoSuspend; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 用户强评标志 + /// + public int UserForceClose; + /// + /// 互换单标志 + /// + public int IsSwapOrder; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 交易编码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 报单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcOrderField +{ + public CThostFtdcOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderRef = new byte[13]; + /// + /// 报单引用 + /// + public string OrderRef + { + get{ return GBKConvert.Instance.GetString(_OrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _OrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcOrderPriceTypeType OrderPriceType; + public TThostFtdcDirectionType Direction; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombOffsetFlag = new byte[5]; + /// + /// 组合开平标志 + /// + public string CombOffsetFlag + { + get{ return GBKConvert.Instance.GetString(_CombOffsetFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombOffsetFlag); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombHedgeFlag = new byte[5]; + /// + /// 组合投机套保标志 + /// + public string CombHedgeFlag + { + get{ return GBKConvert.Instance.GetString(_CombHedgeFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombHedgeFlag); } + } + /// + /// 价格 + /// + public double LimitPrice; + /// + /// 数量 + /// + public int VolumeTotalOriginal; + public TThostFtdcTimeConditionType TimeCondition; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _GTDDate = new byte[9]; + /// + /// GTD日期 + /// + public string GTDDate + { + get{ return GBKConvert.Instance.GetString(_GTDDate); } + set{ GBKConvert.Instance.GetBytes(value, _GTDDate); } + } + public TThostFtdcVolumeConditionType VolumeCondition; + /// + /// 最小成交量 + /// + public int MinVolume; + public TThostFtdcContingentConditionType ContingentCondition; + /// + /// 止损价 + /// + public double StopPrice; + public TThostFtdcForceCloseReasonType ForceCloseReason; + /// + /// 自动挂起标志 + /// + public int IsAutoSuspend; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderLocalID = new byte[13]; + /// + /// 本地报单编号 + /// + public string OrderLocalID + { + get{ return GBKConvert.Instance.GetString(_OrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + /// + /// 报单提示序号 + /// + public int NotifySequence; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + public TThostFtdcOrderSourceType OrderSource; + public TThostFtdcOrderStatusType OrderStatus; + public TThostFtdcOrderTypeType OrderType; + /// + /// 今成交数量 + /// + public int VolumeTraded; + /// + /// 剩余数量 + /// + public int VolumeTotal; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertDate = new byte[9]; + /// + /// 报单日期 + /// + public string InsertDate + { + get{ return GBKConvert.Instance.GetString(_InsertDate); } + set{ GBKConvert.Instance.GetBytes(value, _InsertDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTime = new byte[9]; + /// + /// 委托时间 + /// + public string InsertTime + { + get{ return GBKConvert.Instance.GetString(_InsertTime); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActiveTime = new byte[9]; + /// + /// 激活时间 + /// + public string ActiveTime + { + get{ return GBKConvert.Instance.GetString(_ActiveTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActiveTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _SuspendTime = new byte[9]; + /// + /// 挂起时间 + /// + public string SuspendTime + { + get{ return GBKConvert.Instance.GetString(_SuspendTime); } + set{ GBKConvert.Instance.GetBytes(value, _SuspendTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _UpdateTime = new byte[9]; + /// + /// 最后修改时间 + /// + public string UpdateTime + { + get{ return GBKConvert.Instance.GetString(_UpdateTime); } + set{ GBKConvert.Instance.GetBytes(value, _UpdateTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CancelTime = new byte[9]; + /// + /// 撤销时间 + /// + public string CancelTime + { + get{ return GBKConvert.Instance.GetString(_CancelTime); } + set{ GBKConvert.Instance.GetBytes(value, _CancelTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ActiveTraderID = new byte[21]; + /// + /// 最后修改交易所交易员代码 + /// + public string ActiveTraderID + { + get{ return GBKConvert.Instance.GetString(_ActiveTraderID); } + set{ GBKConvert.Instance.GetBytes(value, _ActiveTraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClearingPartID = new byte[11]; + /// + /// 结算会员编号 + /// + public string ClearingPartID + { + get{ return GBKConvert.Instance.GetString(_ClearingPartID); } + set{ GBKConvert.Instance.GetBytes(value, _ClearingPartID); } + } + /// + /// 序号 + /// + public int SequenceNo; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + /// + /// 用户强评标志 + /// + public int UserForceClose; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _ActiveUserID = new byte[16]; + /// + /// 操作用户代码 + /// + public string ActiveUserID + { + get{ return GBKConvert.Instance.GetString(_ActiveUserID); } + set{ GBKConvert.Instance.GetBytes(value, _ActiveUserID); } + } + /// + /// 经纪公司报单编号 + /// + public int BrokerOrderSeq; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _RelativeOrderSysID = new byte[21]; + /// + /// 相关报单 + /// + public string RelativeOrderSysID + { + get{ return GBKConvert.Instance.GetString(_RelativeOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _RelativeOrderSysID); } + } + /// + /// 郑商所成交数量 + /// + public int ZCETotalTradedVolume; + /// + /// 互换单标志 + /// + public int IsSwapOrder; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve3 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve3 + { + get{ return GBKConvert.Instance.GetString(_reserve3); } + set{ GBKConvert.Instance.GetBytes(value, _reserve3); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 交易所报单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeOrderField +{ + public CThostFtdcExchangeOrderField() {} + public TThostFtdcOrderPriceTypeType OrderPriceType; + public TThostFtdcDirectionType Direction; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombOffsetFlag = new byte[5]; + /// + /// 组合开平标志 + /// + public string CombOffsetFlag + { + get{ return GBKConvert.Instance.GetString(_CombOffsetFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombOffsetFlag); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombHedgeFlag = new byte[5]; + /// + /// 组合投机套保标志 + /// + public string CombHedgeFlag + { + get{ return GBKConvert.Instance.GetString(_CombHedgeFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombHedgeFlag); } + } + /// + /// 价格 + /// + public double LimitPrice; + /// + /// 数量 + /// + public int VolumeTotalOriginal; + public TThostFtdcTimeConditionType TimeCondition; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _GTDDate = new byte[9]; + /// + /// GTD日期 + /// + public string GTDDate + { + get{ return GBKConvert.Instance.GetString(_GTDDate); } + set{ GBKConvert.Instance.GetBytes(value, _GTDDate); } + } + public TThostFtdcVolumeConditionType VolumeCondition; + /// + /// 最小成交量 + /// + public int MinVolume; + public TThostFtdcContingentConditionType ContingentCondition; + /// + /// 止损价 + /// + public double StopPrice; + public TThostFtdcForceCloseReasonType ForceCloseReason; + /// + /// 自动挂起标志 + /// + public int IsAutoSuspend; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderLocalID = new byte[13]; + /// + /// 本地报单编号 + /// + public string OrderLocalID + { + get{ return GBKConvert.Instance.GetString(_OrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + /// + /// 报单提示序号 + /// + public int NotifySequence; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + public TThostFtdcOrderSourceType OrderSource; + public TThostFtdcOrderStatusType OrderStatus; + public TThostFtdcOrderTypeType OrderType; + /// + /// 今成交数量 + /// + public int VolumeTraded; + /// + /// 剩余数量 + /// + public int VolumeTotal; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertDate = new byte[9]; + /// + /// 报单日期 + /// + public string InsertDate + { + get{ return GBKConvert.Instance.GetString(_InsertDate); } + set{ GBKConvert.Instance.GetBytes(value, _InsertDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTime = new byte[9]; + /// + /// 委托时间 + /// + public string InsertTime + { + get{ return GBKConvert.Instance.GetString(_InsertTime); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActiveTime = new byte[9]; + /// + /// 激活时间 + /// + public string ActiveTime + { + get{ return GBKConvert.Instance.GetString(_ActiveTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActiveTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _SuspendTime = new byte[9]; + /// + /// 挂起时间 + /// + public string SuspendTime + { + get{ return GBKConvert.Instance.GetString(_SuspendTime); } + set{ GBKConvert.Instance.GetBytes(value, _SuspendTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _UpdateTime = new byte[9]; + /// + /// 最后修改时间 + /// + public string UpdateTime + { + get{ return GBKConvert.Instance.GetString(_UpdateTime); } + set{ GBKConvert.Instance.GetBytes(value, _UpdateTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CancelTime = new byte[9]; + /// + /// 撤销时间 + /// + public string CancelTime + { + get{ return GBKConvert.Instance.GetString(_CancelTime); } + set{ GBKConvert.Instance.GetBytes(value, _CancelTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ActiveTraderID = new byte[21]; + /// + /// 最后修改交易所交易员代码 + /// + public string ActiveTraderID + { + get{ return GBKConvert.Instance.GetString(_ActiveTraderID); } + set{ GBKConvert.Instance.GetBytes(value, _ActiveTraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClearingPartID = new byte[11]; + /// + /// 结算会员编号 + /// + public string ClearingPartID + { + get{ return GBKConvert.Instance.GetString(_ClearingPartID); } + set{ GBKConvert.Instance.GetBytes(value, _ClearingPartID); } + } + /// + /// 序号 + /// + public int SequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 交易所报单插入失败 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeOrderInsertErrorField +{ + public CThostFtdcExchangeOrderInsertErrorField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderLocalID = new byte[13]; + /// + /// 本地报单编号 + /// + public string OrderLocalID + { + get{ return GBKConvert.Instance.GetString(_OrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderLocalID); } + } + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } +} +/// +/// 输入报单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInputOrderActionField +{ + public CThostFtdcInputOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 报单操作引用 + /// + public int OrderActionRef; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderRef = new byte[13]; + /// + /// 报单引用 + /// + public string OrderRef + { + get{ return GBKConvert.Instance.GetString(_OrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _OrderRef); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + /// + /// 价格 + /// + public double LimitPrice; + /// + /// 数量变化 + /// + public int VolumeChange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 报单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcOrderActionField +{ + public CThostFtdcOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 报单操作引用 + /// + public int OrderActionRef; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderRef = new byte[13]; + /// + /// 报单引用 + /// + public string OrderRef + { + get{ return GBKConvert.Instance.GetString(_OrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _OrderRef); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + /// + /// 价格 + /// + public double LimitPrice; + /// + /// 数量变化 + /// + public int VolumeChange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDate = new byte[9]; + /// + /// 操作日期 + /// + public string ActionDate + { + get{ return GBKConvert.Instance.GetString(_ActionDate); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionTime = new byte[9]; + /// + /// 操作时间 + /// + public string ActionTime + { + get{ return GBKConvert.Instance.GetString(_ActionTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActionTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderLocalID = new byte[13]; + /// + /// 本地报单编号 + /// + public string OrderLocalID + { + get{ return GBKConvert.Instance.GetString(_OrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 操作本地编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOrderActionStatusType OrderActionStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 交易所报单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeOrderActionField +{ + public CThostFtdcExchangeOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + /// + /// 价格 + /// + public double LimitPrice; + /// + /// 数量变化 + /// + public int VolumeChange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDate = new byte[9]; + /// + /// 操作日期 + /// + public string ActionDate + { + get{ return GBKConvert.Instance.GetString(_ActionDate); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionTime = new byte[9]; + /// + /// 操作时间 + /// + public string ActionTime + { + get{ return GBKConvert.Instance.GetString(_ActionTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActionTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderLocalID = new byte[13]; + /// + /// 本地报单编号 + /// + public string OrderLocalID + { + get{ return GBKConvert.Instance.GetString(_OrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 操作本地编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOrderActionStatusType OrderActionStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 交易所报单操作失败 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeOrderActionErrorField +{ + public CThostFtdcExchangeOrderActionErrorField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderLocalID = new byte[13]; + /// + /// 本地报单编号 + /// + public string OrderLocalID + { + get{ return GBKConvert.Instance.GetString(_OrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 操作本地编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } +} +/// +/// 交易所成交 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeTradeField +{ + public CThostFtdcExchangeTradeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TradeID = new byte[21]; + /// + /// 成交编号 + /// + public string TradeID + { + get{ return GBKConvert.Instance.GetString(_TradeID); } + set{ GBKConvert.Instance.GetBytes(value, _TradeID); } + } + public TThostFtdcDirectionType Direction; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + public TThostFtdcTradingRoleType TradingRole; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcOffsetFlagType OffsetFlag; + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 价格 + /// + public double Price; + /// + /// 数量 + /// + public int Volume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 成交时期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 成交时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + public TThostFtdcTradeTypeType TradeType; + public TThostFtdcPriceSourceType PriceSource; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderLocalID = new byte[13]; + /// + /// 本地报单编号 + /// + public string OrderLocalID + { + get{ return GBKConvert.Instance.GetString(_OrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClearingPartID = new byte[11]; + /// + /// 结算会员编号 + /// + public string ClearingPartID + { + get{ return GBKConvert.Instance.GetString(_ClearingPartID); } + set{ GBKConvert.Instance.GetBytes(value, _ClearingPartID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + /// + /// 序号 + /// + public int SequenceNo; + public TThostFtdcTradeSourceType TradeSource; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } +} +/// +/// 成交 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTradeField +{ + public CThostFtdcTradeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderRef = new byte[13]; + /// + /// 报单引用 + /// + public string OrderRef + { + get{ return GBKConvert.Instance.GetString(_OrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _OrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TradeID = new byte[21]; + /// + /// 成交编号 + /// + public string TradeID + { + get{ return GBKConvert.Instance.GetString(_TradeID); } + set{ GBKConvert.Instance.GetBytes(value, _TradeID); } + } + public TThostFtdcDirectionType Direction; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + public TThostFtdcTradingRoleType TradingRole; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + public TThostFtdcOffsetFlagType OffsetFlag; + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 价格 + /// + public double Price; + /// + /// 数量 + /// + public int Volume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 成交时期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 成交时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + public TThostFtdcTradeTypeType TradeType; + public TThostFtdcPriceSourceType PriceSource; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderLocalID = new byte[13]; + /// + /// 本地报单编号 + /// + public string OrderLocalID + { + get{ return GBKConvert.Instance.GetString(_OrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClearingPartID = new byte[11]; + /// + /// 结算会员编号 + /// + public string ClearingPartID + { + get{ return GBKConvert.Instance.GetString(_ClearingPartID); } + set{ GBKConvert.Instance.GetBytes(value, _ClearingPartID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + /// + /// 序号 + /// + public int SequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + /// + /// 经纪公司报单编号 + /// + public int BrokerOrderSeq; + public TThostFtdcTradeSourceType TradeSource; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } +} +/// +/// 用户会话 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcUserSessionField +{ + public CThostFtdcUserSessionField() {} + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _LoginDate = new byte[9]; + /// + /// 登录日期 + /// + public string LoginDate + { + get{ return GBKConvert.Instance.GetString(_LoginDate); } + set{ GBKConvert.Instance.GetBytes(value, _LoginDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _LoginTime = new byte[9]; + /// + /// 登录时间 + /// + public string LoginTime + { + get{ return GBKConvert.Instance.GetString(_LoginTime); } + set{ GBKConvert.Instance.GetBytes(value, _LoginTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _InterfaceProductInfo = new byte[11]; + /// + /// 接口端产品信息 + /// + public string InterfaceProductInfo + { + get{ return GBKConvert.Instance.GetString(_InterfaceProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _InterfaceProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ProtocolInfo = new byte[11]; + /// + /// 协议信息 + /// + public string ProtocolInfo + { + get{ return GBKConvert.Instance.GetString(_ProtocolInfo); } + set{ GBKConvert.Instance.GetBytes(value, _ProtocolInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _LoginRemark = new byte[36]; + /// + /// 登录备注 + /// + public string LoginRemark + { + get{ return GBKConvert.Instance.GetString(_LoginRemark); } + set{ GBKConvert.Instance.GetBytes(value, _LoginRemark); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询最大报单数量 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryMaxOrderVolumeField +{ + public CThostFtdcQryMaxOrderVolumeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcDirectionType Direction; + public TThostFtdcOffsetFlagType OffsetFlag; + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 最大允许报单数量 + /// + public int MaxVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 投资者结算结果确认信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSettlementInfoConfirmField +{ + public CThostFtdcSettlementInfoConfirmField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ConfirmDate = new byte[9]; + /// + /// 确认日期 + /// + public string ConfirmDate + { + get{ return GBKConvert.Instance.GetString(_ConfirmDate); } + set{ GBKConvert.Instance.GetBytes(value, _ConfirmDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ConfirmTime = new byte[9]; + /// + /// 确认时间 + /// + public string ConfirmTime + { + get{ return GBKConvert.Instance.GetString(_ConfirmTime); } + set{ GBKConvert.Instance.GetBytes(value, _ConfirmTime); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 出入金同步 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDepositField +{ + public CThostFtdcSyncDepositField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=15)] + public readonly byte[] _DepositSeqNo = new byte[15]; + /// + /// 出入金流水号 + /// + public string DepositSeqNo + { + get{ return GBKConvert.Instance.GetString(_DepositSeqNo); } + set{ GBKConvert.Instance.GetBytes(value, _DepositSeqNo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 入金金额 + /// + public double Deposit; + /// + /// 是否强制进行 + /// + public int IsForce; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 是否是个股期权内转 + /// + public int IsFromSopt; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _TradingPassword = new byte[41]; + /// + /// 资金密码 + /// + public string TradingPassword + { + get{ return GBKConvert.Instance.GetString(_TradingPassword); } + set{ GBKConvert.Instance.GetBytes(value, _TradingPassword); } + } +} +/// +/// 货币质押同步 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncFundMortgageField +{ + public CThostFtdcSyncFundMortgageField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=15)] + public readonly byte[] _MortgageSeqNo = new byte[15]; + /// + /// 货币质押流水号 + /// + public string MortgageSeqNo + { + get{ return GBKConvert.Instance.GetString(_MortgageSeqNo); } + set{ GBKConvert.Instance.GetBytes(value, _MortgageSeqNo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _FromCurrencyID = new byte[4]; + /// + /// 源币种 + /// + public string FromCurrencyID + { + get{ return GBKConvert.Instance.GetString(_FromCurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _FromCurrencyID); } + } + /// + /// 质押金额 + /// + public double MortgageAmount; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _ToCurrencyID = new byte[4]; + /// + /// 目标币种 + /// + public string ToCurrencyID + { + get{ return GBKConvert.Instance.GetString(_ToCurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _ToCurrencyID); } + } +} +/// +/// 经纪公司同步 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBrokerSyncField +{ + public CThostFtdcBrokerSyncField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } +} +/// +/// 正在同步中的投资者 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncingInvestorField +{ + public CThostFtdcSyncingInvestorField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorGroupID = new byte[13]; + /// + /// 投资者分组代码 + /// + public string InvestorGroupID + { + get{ return GBKConvert.Instance.GetString(_InvestorGroupID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorGroupID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InvestorName = new byte[81]; + /// + /// 投资者名称 + /// + public string InvestorName + { + get{ return GBKConvert.Instance.GetString(_InvestorName); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorName); } + } + public TThostFtdcIdCardTypeType IdentifiedCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + /// + /// 是否活跃 + /// + public int IsActive; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Telephone = new byte[41]; + /// + /// 联系电话 + /// + public string Telephone + { + get{ return GBKConvert.Instance.GetString(_Telephone); } + set{ GBKConvert.Instance.GetBytes(value, _Telephone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _Address = new byte[101]; + /// + /// 通讯地址 + /// + public string Address + { + get{ return GBKConvert.Instance.GetString(_Address); } + set{ GBKConvert.Instance.GetBytes(value, _Address); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _OpenDate = new byte[9]; + /// + /// 开户日期 + /// + public string OpenDate + { + get{ return GBKConvert.Instance.GetString(_OpenDate); } + set{ GBKConvert.Instance.GetBytes(value, _OpenDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Mobile = new byte[41]; + /// + /// 手机 + /// + public string Mobile + { + get{ return GBKConvert.Instance.GetString(_Mobile); } + set{ GBKConvert.Instance.GetBytes(value, _Mobile); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _CommModelID = new byte[13]; + /// + /// 手续费率模板代码 + /// + public string CommModelID + { + get{ return GBKConvert.Instance.GetString(_CommModelID); } + set{ GBKConvert.Instance.GetBytes(value, _CommModelID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _MarginModelID = new byte[13]; + /// + /// 保证金率模板代码 + /// + public string MarginModelID + { + get{ return GBKConvert.Instance.GetString(_MarginModelID); } + set{ GBKConvert.Instance.GetBytes(value, _MarginModelID); } + } + public TThostFtdcEnumBoolType IsOrderFreq; + public TThostFtdcEnumBoolType IsOpenVolLimit; +} +/// +/// 正在同步中的交易代码 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncingTradingCodeField +{ + public CThostFtdcSyncingTradingCodeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + /// + /// 是否活跃 + /// + public int IsActive; + public TThostFtdcClientIDTypeType ClientIDType; +} +/// +/// 正在同步中的投资者分组 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncingInvestorGroupField +{ + public CThostFtdcSyncingInvestorGroupField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorGroupID = new byte[13]; + /// + /// 投资者分组代码 + /// + public string InvestorGroupID + { + get{ return GBKConvert.Instance.GetString(_InvestorGroupID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorGroupID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _InvestorGroupName = new byte[41]; + /// + /// 投资者分组名称 + /// + public string InvestorGroupName + { + get{ return GBKConvert.Instance.GetString(_InvestorGroupName); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorGroupName); } + } +} +/// +/// 正在同步中的交易账号 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncingTradingAccountField +{ + public CThostFtdcSyncingTradingAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + /// + /// 上次质押金额 + /// + public double PreMortgage; + /// + /// 上次信用额度 + /// + public double PreCredit; + /// + /// 上次存款额 + /// + public double PreDeposit; + /// + /// 上次结算准备金 + /// + public double PreBalance; + /// + /// 上次占用的保证金 + /// + public double PreMargin; + /// + /// 利息基数 + /// + public double InterestBase; + /// + /// 利息收入 + /// + public double Interest; + /// + /// 入金金额 + /// + public double Deposit; + /// + /// 出金金额 + /// + public double Withdraw; + /// + /// 冻结的保证金 + /// + public double FrozenMargin; + /// + /// 冻结的资金 + /// + public double FrozenCash; + /// + /// 冻结的手续费 + /// + public double FrozenCommission; + /// + /// 当前保证金总额 + /// + public double CurrMargin; + /// + /// 资金差额 + /// + public double CashIn; + /// + /// 手续费 + /// + public double Commission; + /// + /// 平仓盈亏 + /// + public double CloseProfit; + /// + /// 持仓盈亏 + /// + public double PositionProfit; + /// + /// 期货结算准备金 + /// + public double Balance; + /// + /// 可用资金 + /// + public double Available; + /// + /// 可取资金 + /// + public double WithdrawQuota; + /// + /// 基本准备金 + /// + public double Reserve; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + /// + /// 信用额度 + /// + public double Credit; + /// + /// 质押金额 + /// + public double Mortgage; + /// + /// 交易所保证金 + /// + public double ExchangeMargin; + /// + /// 投资者交割保证金 + /// + public double DeliveryMargin; + /// + /// 交易所交割保证金 + /// + public double ExchangeDeliveryMargin; + /// + /// 保底期货结算准备金 + /// + public double ReserveBalance; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 上次货币质入金额 + /// + public double PreFundMortgageIn; + /// + /// 上次货币质出金额 + /// + public double PreFundMortgageOut; + /// + /// 货币质入金额 + /// + public double FundMortgageIn; + /// + /// 货币质出金额 + /// + public double FundMortgageOut; + /// + /// 货币质押余额 + /// + public double FundMortgageAvailable; + /// + /// 可质押货币金额 + /// + public double MortgageableFund; + /// + /// 特殊产品占用保证金 + /// + public double SpecProductMargin; + /// + /// 特殊产品冻结保证金 + /// + public double SpecProductFrozenMargin; + /// + /// 特殊产品手续费 + /// + public double SpecProductCommission; + /// + /// 特殊产品冻结手续费 + /// + public double SpecProductFrozenCommission; + /// + /// 特殊产品持仓盈亏 + /// + public double SpecProductPositionProfit; + /// + /// 特殊产品平仓盈亏 + /// + public double SpecProductCloseProfit; + /// + /// 根据持仓盈亏算法计算的特殊产品持仓盈亏 + /// + public double SpecProductPositionProfitByAlg; + /// + /// 特殊产品交易所保证金 + /// + public double SpecProductExchangeMargin; + /// + /// 延时换汇冻结金额 + /// + public double FrozenSwap; + /// + /// 剩余换汇额度 + /// + public double RemainSwap; +} +/// +/// 正在同步中的投资者持仓 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncingInvestorPositionField +{ + public CThostFtdcSyncingInvestorPositionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcPosiDirectionType PosiDirection; + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcPositionDateType PositionDate; + /// + /// 上日持仓 + /// + public int YdPosition; + /// + /// 今日持仓 + /// + public int Position; + /// + /// 多头冻结 + /// + public int LongFrozen; + /// + /// 空头冻结 + /// + public int ShortFrozen; + /// + /// 开仓冻结金额 + /// + public double LongFrozenAmount; + /// + /// 开仓冻结金额 + /// + public double ShortFrozenAmount; + /// + /// 开仓量 + /// + public int OpenVolume; + /// + /// 平仓量 + /// + public int CloseVolume; + /// + /// 开仓金额 + /// + public double OpenAmount; + /// + /// 平仓金额 + /// + public double CloseAmount; + /// + /// 持仓成本 + /// + public double PositionCost; + /// + /// 上次占用的保证金 + /// + public double PreMargin; + /// + /// 占用的保证金 + /// + public double UseMargin; + /// + /// 冻结的保证金 + /// + public double FrozenMargin; + /// + /// 冻结的资金 + /// + public double FrozenCash; + /// + /// 冻结的手续费 + /// + public double FrozenCommission; + /// + /// 资金差额 + /// + public double CashIn; + /// + /// 手续费 + /// + public double Commission; + /// + /// 平仓盈亏 + /// + public double CloseProfit; + /// + /// 持仓盈亏 + /// + public double PositionProfit; + /// + /// 上次结算价 + /// + public double PreSettlementPrice; + /// + /// 本次结算价 + /// + public double SettlementPrice; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + /// + /// 开仓成本 + /// + public double OpenCost; + /// + /// 交易所保证金 + /// + public double ExchangeMargin; + /// + /// 组合成交形成的持仓 + /// + public int CombPosition; + /// + /// 组合多头冻结 + /// + public int CombLongFrozen; + /// + /// 组合空头冻结 + /// + public int CombShortFrozen; + /// + /// 逐日盯市平仓盈亏 + /// + public double CloseProfitByDate; + /// + /// 逐笔对冲平仓盈亏 + /// + public double CloseProfitByTrade; + /// + /// 今日持仓 + /// + public int TodayPosition; + /// + /// 保证金率 + /// + public double MarginRateByMoney; + /// + /// 保证金率(按手数) + /// + public double MarginRateByVolume; + /// + /// 执行冻结 + /// + public int StrikeFrozen; + /// + /// 执行冻结金额 + /// + public double StrikeFrozenAmount; + /// + /// 放弃执行冻结 + /// + public int AbandonFrozen; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 执行冻结的昨仓 + /// + public int YdStrikeFrozen; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + /// + /// 持仓成本差值 + /// + public double PositionCostOffset; + /// + /// tas持仓手数 + /// + public int TasPosition; + /// + /// tas持仓成本 + /// + public double TasPositionCost; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 正在同步中的合约保证金率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncingInstrumentMarginRateField +{ + public CThostFtdcSyncingInstrumentMarginRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 多头保证金率 + /// + public double LongMarginRatioByMoney; + /// + /// 多头保证金费 + /// + public double LongMarginRatioByVolume; + /// + /// 空头保证金率 + /// + public double ShortMarginRatioByMoney; + /// + /// 空头保证金费 + /// + public double ShortMarginRatioByVolume; + /// + /// 是否相对交易所收取 + /// + public int IsRelative; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 正在同步中的合约手续费率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncingInstrumentCommissionRateField +{ + public CThostFtdcSyncingInstrumentCommissionRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 开仓手续费率 + /// + public double OpenRatioByMoney; + /// + /// 开仓手续费 + /// + public double OpenRatioByVolume; + /// + /// 平仓手续费率 + /// + public double CloseRatioByMoney; + /// + /// 平仓手续费 + /// + public double CloseRatioByVolume; + /// + /// 平今手续费率 + /// + public double CloseTodayRatioByMoney; + /// + /// 平今手续费 + /// + public double CloseTodayRatioByVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 正在同步中的合约交易权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncingInstrumentTradingRightField +{ + public CThostFtdcSyncingInstrumentTradingRightField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcTradingRightType TradingRight; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询报单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryOrderField +{ + public CThostFtdcQryOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTimeStart = new byte[9]; + /// + /// 开始时间 + /// + public string InsertTimeStart + { + get{ return GBKConvert.Instance.GetString(_InsertTimeStart); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTimeStart); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTimeEnd = new byte[9]; + /// + /// 结束时间 + /// + public string InsertTimeEnd + { + get{ return GBKConvert.Instance.GetString(_InsertTimeEnd); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTimeEnd); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询成交 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryTradeField +{ + public CThostFtdcQryTradeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TradeID = new byte[21]; + /// + /// 成交编号 + /// + public string TradeID + { + get{ return GBKConvert.Instance.GetString(_TradeID); } + set{ GBKConvert.Instance.GetBytes(value, _TradeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTimeStart = new byte[9]; + /// + /// 开始时间 + /// + public string TradeTimeStart + { + get{ return GBKConvert.Instance.GetString(_TradeTimeStart); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTimeStart); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTimeEnd = new byte[9]; + /// + /// 结束时间 + /// + public string TradeTimeEnd + { + get{ return GBKConvert.Instance.GetString(_TradeTimeEnd); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTimeEnd); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询投资者持仓 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInvestorPositionField +{ + public CThostFtdcQryInvestorPositionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询资金账户 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryTradingAccountField +{ + public CThostFtdcQryTradingAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + public TThostFtdcBizTypeType BizType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } +} +/// +/// 查询投资者 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInvestorField +{ + public CThostFtdcQryInvestorField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } +} +/// +/// 查询交易编码 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryTradingCodeField +{ + public CThostFtdcQryTradingCodeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + public TThostFtdcClientIDTypeType ClientIDType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } +} +/// +/// 查询投资者组 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInvestorGroupField +{ + public CThostFtdcQryInvestorGroupField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } +} +/// +/// 查询合约保证金率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInstrumentMarginRateField +{ + public CThostFtdcQryInstrumentMarginRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询手续费率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInstrumentCommissionRateField +{ + public CThostFtdcQryInstrumentCommissionRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询合约交易权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInstrumentTradingRightField +{ + public CThostFtdcQryInstrumentTradingRightField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询经纪公司 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryBrokerField +{ + public CThostFtdcQryBrokerField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } +} +/// +/// 查询交易员 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryTraderField +{ + public CThostFtdcQryTraderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } +} +/// +/// 查询管理用户功能权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySuperUserFunctionField +{ + public CThostFtdcQrySuperUserFunctionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } +} +/// +/// 查询用户会话 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryUserSessionField +{ + public CThostFtdcQryUserSessionField() {} + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } +} +/// +/// 查询经纪公司会员代码 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryPartBrokerField +{ + public CThostFtdcQryPartBrokerField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } +} +/// +/// 查询前置状态 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryFrontStatusField +{ + public CThostFtdcQryFrontStatusField() {} + /// + /// 前置编号 + /// + public int FrontID; +} +/// +/// 查询交易所报单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeOrderField +{ + public CThostFtdcQryExchangeOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } +} +/// +/// 查询报单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryOrderActionField +{ + public CThostFtdcQryOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } +} +/// +/// 查询交易所报单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeOrderActionField +{ + public CThostFtdcQryExchangeOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } +} +/// +/// 查询管理用户 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySuperUserField +{ + public CThostFtdcQrySuperUserField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } +} +/// +/// 查询交易所 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeField +{ + public CThostFtdcQryExchangeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } +} +/// +/// 查询产品 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryProductField +{ + public CThostFtdcQryProductField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcProductClassType ProductClass; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } +} +/// +/// 查询合约 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInstrumentField +{ + public CThostFtdcQryInstrumentField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve3 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve3 + { + get{ return GBKConvert.Instance.GetString(_reserve3); } + set{ GBKConvert.Instance.GetBytes(value, _reserve3); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } +} +/// +/// 查询行情 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryDepthMarketDataField +{ + public CThostFtdcQryDepthMarketDataField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询经纪公司用户 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryBrokerUserField +{ + public CThostFtdcQryBrokerUserField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } +} +/// +/// 查询经纪公司用户权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryBrokerUserFunctionField +{ + public CThostFtdcQryBrokerUserFunctionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } +} +/// +/// 查询交易员报盘机 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryTraderOfferField +{ + public CThostFtdcQryTraderOfferField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } +} +/// +/// 查询出入金流水 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySyncDepositField +{ + public CThostFtdcQrySyncDepositField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=15)] + public readonly byte[] _DepositSeqNo = new byte[15]; + /// + /// 出入金流水号 + /// + public string DepositSeqNo + { + get{ return GBKConvert.Instance.GetString(_DepositSeqNo); } + set{ GBKConvert.Instance.GetBytes(value, _DepositSeqNo); } + } +} +/// +/// 查询投资者结算结果 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySettlementInfoField +{ + public CThostFtdcQrySettlementInfoField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 查询交易所保证金率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeMarginRateField +{ + public CThostFtdcQryExchangeMarginRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询交易所调整保证金率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeMarginRateAdjustField +{ + public CThostFtdcQryExchangeMarginRateAdjustField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询汇率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeRateField +{ + public CThostFtdcQryExchangeRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _FromCurrencyID = new byte[4]; + /// + /// 源币种 + /// + public string FromCurrencyID + { + get{ return GBKConvert.Instance.GetString(_FromCurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _FromCurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _ToCurrencyID = new byte[4]; + /// + /// 目标币种 + /// + public string ToCurrencyID + { + get{ return GBKConvert.Instance.GetString(_ToCurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _ToCurrencyID); } + } +} +/// +/// 查询货币质押流水 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySyncFundMortgageField +{ + public CThostFtdcQrySyncFundMortgageField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=15)] + public readonly byte[] _MortgageSeqNo = new byte[15]; + /// + /// 货币质押流水号 + /// + public string MortgageSeqNo + { + get{ return GBKConvert.Instance.GetString(_MortgageSeqNo); } + set{ GBKConvert.Instance.GetBytes(value, _MortgageSeqNo); } + } +} +/// +/// 查询报单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryHisOrderField +{ + public CThostFtdcQryHisOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTimeStart = new byte[9]; + /// + /// 开始时间 + /// + public string InsertTimeStart + { + get{ return GBKConvert.Instance.GetString(_InsertTimeStart); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTimeStart); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTimeEnd = new byte[9]; + /// + /// 结束时间 + /// + public string InsertTimeEnd + { + get{ return GBKConvert.Instance.GetString(_InsertTimeEnd); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTimeEnd); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 当前期权合约最小保证金 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcOptionInstrMiniMarginField +{ + public CThostFtdcOptionInstrMiniMarginField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 单位(手)期权合约最小保证金 + /// + public double MinMargin; + public TThostFtdcValueMethodType ValueMethod; + /// + /// 是否跟随交易所收取 + /// + public int IsRelative; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 当前期权合约保证金调整系数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcOptionInstrMarginAdjustField +{ + public CThostFtdcOptionInstrMarginAdjustField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 投机空头保证金调整系数 + /// + public double SShortMarginRatioByMoney; + /// + /// 投机空头保证金调整系数 + /// + public double SShortMarginRatioByVolume; + /// + /// 保值空头保证金调整系数 + /// + public double HShortMarginRatioByMoney; + /// + /// 保值空头保证金调整系数 + /// + public double HShortMarginRatioByVolume; + /// + /// 套利空头保证金调整系数 + /// + public double AShortMarginRatioByMoney; + /// + /// 套利空头保证金调整系数 + /// + public double AShortMarginRatioByVolume; + /// + /// 是否跟随交易所收取 + /// + public int IsRelative; + /// + /// 做市商空头保证金调整系数 + /// + public double MShortMarginRatioByMoney; + /// + /// 做市商空头保证金调整系数 + /// + public double MShortMarginRatioByVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 当前期权合约手续费的详细内容 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcOptionInstrCommRateField +{ + public CThostFtdcOptionInstrCommRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 开仓手续费率 + /// + public double OpenRatioByMoney; + /// + /// 开仓手续费 + /// + public double OpenRatioByVolume; + /// + /// 平仓手续费率 + /// + public double CloseRatioByMoney; + /// + /// 平仓手续费 + /// + public double CloseRatioByVolume; + /// + /// 平今手续费率 + /// + public double CloseTodayRatioByMoney; + /// + /// 平今手续费 + /// + public double CloseTodayRatioByVolume; + /// + /// 执行手续费率 + /// + public double StrikeRatioByMoney; + /// + /// 执行手续费 + /// + public double StrikeRatioByVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 期权交易成本 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcOptionInstrTradeCostField +{ + public CThostFtdcOptionInstrTradeCostField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 期权合约保证金不变部分 + /// + public double FixedMargin; + /// + /// 期权合约最小保证金 + /// + public double MiniMargin; + /// + /// 期权合约权利金 + /// + public double Royalty; + /// + /// 交易所期权合约保证金不变部分 + /// + public double ExchFixedMargin; + /// + /// 交易所期权合约最小保证金 + /// + public double ExchMiniMargin; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 期权交易成本查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryOptionInstrTradeCostField +{ + public CThostFtdcQryOptionInstrTradeCostField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 期权合约报价 + /// + public double InputPrice; + /// + /// 标的价格,填0则用昨结算价 + /// + public double UnderlyingPrice; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 期权手续费率查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryOptionInstrCommRateField +{ + public CThostFtdcQryOptionInstrCommRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 股指现货指数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcIndexPriceField +{ + public CThostFtdcIndexPriceField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + /// + /// 指数现货收盘价 + /// + public double ClosePrice; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 输入的执行宣告 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInputExecOrderField +{ + public CThostFtdcInputExecOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ExecOrderRef = new byte[13]; + /// + /// 执行宣告引用 + /// + public string ExecOrderRef + { + get{ return GBKConvert.Instance.GetString(_ExecOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + /// + /// 数量 + /// + public int Volume; + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOffsetFlagType OffsetFlag; + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcActionTypeType ActionType; + public TThostFtdcPosiDirectionType PosiDirection; + public TThostFtdcExecOrderPositionFlagType ReservePositionFlag; + public TThostFtdcExecOrderCloseFlagType CloseFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 交易编码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 输入执行宣告操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInputExecOrderActionField +{ + public CThostFtdcInputExecOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 执行宣告操作引用 + /// + public int ExecOrderActionRef; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ExecOrderRef = new byte[13]; + /// + /// 执行宣告引用 + /// + public string ExecOrderRef + { + get{ return GBKConvert.Instance.GetString(_ExecOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderRef); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ExecOrderSysID = new byte[21]; + /// + /// 执行宣告操作编号 + /// + public string ExecOrderSysID + { + get{ return GBKConvert.Instance.GetString(_ExecOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 执行宣告 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExecOrderField +{ + public CThostFtdcExecOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ExecOrderRef = new byte[13]; + /// + /// 执行宣告引用 + /// + public string ExecOrderRef + { + get{ return GBKConvert.Instance.GetString(_ExecOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + /// + /// 数量 + /// + public int Volume; + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOffsetFlagType OffsetFlag; + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcActionTypeType ActionType; + public TThostFtdcPosiDirectionType PosiDirection; + public TThostFtdcExecOrderPositionFlagType ReservePositionFlag; + public TThostFtdcExecOrderCloseFlagType CloseFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ExecOrderLocalID = new byte[13]; + /// + /// 本地执行宣告编号 + /// + public string ExecOrderLocalID + { + get{ return GBKConvert.Instance.GetString(_ExecOrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + /// + /// 报单提示序号 + /// + public int NotifySequence; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ExecOrderSysID = new byte[21]; + /// + /// 执行宣告编号 + /// + public string ExecOrderSysID + { + get{ return GBKConvert.Instance.GetString(_ExecOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertDate = new byte[9]; + /// + /// 报单日期 + /// + public string InsertDate + { + get{ return GBKConvert.Instance.GetString(_InsertDate); } + set{ GBKConvert.Instance.GetBytes(value, _InsertDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTime = new byte[9]; + /// + /// 插入时间 + /// + public string InsertTime + { + get{ return GBKConvert.Instance.GetString(_InsertTime); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CancelTime = new byte[9]; + /// + /// 撤销时间 + /// + public string CancelTime + { + get{ return GBKConvert.Instance.GetString(_CancelTime); } + set{ GBKConvert.Instance.GetBytes(value, _CancelTime); } + } + public TThostFtdcExecResultType ExecResult; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClearingPartID = new byte[11]; + /// + /// 结算会员编号 + /// + public string ClearingPartID + { + get{ return GBKConvert.Instance.GetString(_ClearingPartID); } + set{ GBKConvert.Instance.GetBytes(value, _ClearingPartID); } + } + /// + /// 序号 + /// + public int SequenceNo; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _ActiveUserID = new byte[16]; + /// + /// 操作用户代码 + /// + public string ActiveUserID + { + get{ return GBKConvert.Instance.GetString(_ActiveUserID); } + set{ GBKConvert.Instance.GetBytes(value, _ActiveUserID); } + } + /// + /// 经纪公司报单编号 + /// + public int BrokerExecOrderSeq; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve3 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve3 + { + get{ return GBKConvert.Instance.GetString(_reserve3); } + set{ GBKConvert.Instance.GetBytes(value, _reserve3); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 执行宣告操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExecOrderActionField +{ + public CThostFtdcExecOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 执行宣告操作引用 + /// + public int ExecOrderActionRef; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ExecOrderRef = new byte[13]; + /// + /// 执行宣告引用 + /// + public string ExecOrderRef + { + get{ return GBKConvert.Instance.GetString(_ExecOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderRef); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ExecOrderSysID = new byte[21]; + /// + /// 执行宣告操作编号 + /// + public string ExecOrderSysID + { + get{ return GBKConvert.Instance.GetString(_ExecOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDate = new byte[9]; + /// + /// 操作日期 + /// + public string ActionDate + { + get{ return GBKConvert.Instance.GetString(_ActionDate); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionTime = new byte[9]; + /// + /// 操作时间 + /// + public string ActionTime + { + get{ return GBKConvert.Instance.GetString(_ActionTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActionTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ExecOrderLocalID = new byte[13]; + /// + /// 本地执行宣告编号 + /// + public string ExecOrderLocalID + { + get{ return GBKConvert.Instance.GetString(_ExecOrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 操作本地编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOrderActionStatusType OrderActionStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcActionTypeType ActionType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 执行宣告查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExecOrderField +{ + public CThostFtdcQryExecOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ExecOrderSysID = new byte[21]; + /// + /// 执行宣告编号 + /// + public string ExecOrderSysID + { + get{ return GBKConvert.Instance.GetString(_ExecOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTimeStart = new byte[9]; + /// + /// 开始时间 + /// + public string InsertTimeStart + { + get{ return GBKConvert.Instance.GetString(_InsertTimeStart); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTimeStart); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTimeEnd = new byte[9]; + /// + /// 结束时间 + /// + public string InsertTimeEnd + { + get{ return GBKConvert.Instance.GetString(_InsertTimeEnd); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTimeEnd); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 交易所执行宣告信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeExecOrderField +{ + public CThostFtdcExchangeExecOrderField() {} + /// + /// 数量 + /// + public int Volume; + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOffsetFlagType OffsetFlag; + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcActionTypeType ActionType; + public TThostFtdcPosiDirectionType PosiDirection; + public TThostFtdcExecOrderPositionFlagType ReservePositionFlag; + public TThostFtdcExecOrderCloseFlagType CloseFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ExecOrderLocalID = new byte[13]; + /// + /// 本地执行宣告编号 + /// + public string ExecOrderLocalID + { + get{ return GBKConvert.Instance.GetString(_ExecOrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + /// + /// 报单提示序号 + /// + public int NotifySequence; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ExecOrderSysID = new byte[21]; + /// + /// 执行宣告编号 + /// + public string ExecOrderSysID + { + get{ return GBKConvert.Instance.GetString(_ExecOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertDate = new byte[9]; + /// + /// 报单日期 + /// + public string InsertDate + { + get{ return GBKConvert.Instance.GetString(_InsertDate); } + set{ GBKConvert.Instance.GetBytes(value, _InsertDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTime = new byte[9]; + /// + /// 插入时间 + /// + public string InsertTime + { + get{ return GBKConvert.Instance.GetString(_InsertTime); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CancelTime = new byte[9]; + /// + /// 撤销时间 + /// + public string CancelTime + { + get{ return GBKConvert.Instance.GetString(_CancelTime); } + set{ GBKConvert.Instance.GetBytes(value, _CancelTime); } + } + public TThostFtdcExecResultType ExecResult; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClearingPartID = new byte[11]; + /// + /// 结算会员编号 + /// + public string ClearingPartID + { + get{ return GBKConvert.Instance.GetString(_ClearingPartID); } + set{ GBKConvert.Instance.GetBytes(value, _ClearingPartID); } + } + /// + /// 序号 + /// + public int SequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 交易所执行宣告查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeExecOrderField +{ + public CThostFtdcQryExchangeExecOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } +} +/// +/// 执行宣告操作查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExecOrderActionField +{ + public CThostFtdcQryExecOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } +} +/// +/// 交易所执行宣告操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeExecOrderActionField +{ + public CThostFtdcExchangeExecOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ExecOrderSysID = new byte[21]; + /// + /// 执行宣告操作编号 + /// + public string ExecOrderSysID + { + get{ return GBKConvert.Instance.GetString(_ExecOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDate = new byte[9]; + /// + /// 操作日期 + /// + public string ActionDate + { + get{ return GBKConvert.Instance.GetString(_ActionDate); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionTime = new byte[9]; + /// + /// 操作时间 + /// + public string ActionTime + { + get{ return GBKConvert.Instance.GetString(_ActionTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActionTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ExecOrderLocalID = new byte[13]; + /// + /// 本地执行宣告编号 + /// + public string ExecOrderLocalID + { + get{ return GBKConvert.Instance.GetString(_ExecOrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 操作本地编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOrderActionStatusType OrderActionStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcActionTypeType ActionType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + /// + /// 数量 + /// + public int Volume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } +} +/// +/// 交易所执行宣告操作查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeExecOrderActionField +{ + public CThostFtdcQryExchangeExecOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } +} +/// +/// 错误执行宣告 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcErrExecOrderField +{ + public CThostFtdcErrExecOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ExecOrderRef = new byte[13]; + /// + /// 执行宣告引用 + /// + public string ExecOrderRef + { + get{ return GBKConvert.Instance.GetString(_ExecOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + /// + /// 数量 + /// + public int Volume; + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOffsetFlagType OffsetFlag; + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcActionTypeType ActionType; + public TThostFtdcPosiDirectionType PosiDirection; + public TThostFtdcExecOrderPositionFlagType ReservePositionFlag; + public TThostFtdcExecOrderCloseFlagType CloseFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 交易编码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询错误执行宣告 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryErrExecOrderField +{ + public CThostFtdcQryErrExecOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } +} +/// +/// 错误执行宣告操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcErrExecOrderActionField +{ + public CThostFtdcErrExecOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 执行宣告操作引用 + /// + public int ExecOrderActionRef; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ExecOrderRef = new byte[13]; + /// + /// 执行宣告引用 + /// + public string ExecOrderRef + { + get{ return GBKConvert.Instance.GetString(_ExecOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderRef); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ExecOrderSysID = new byte[21]; + /// + /// 执行宣告操作编号 + /// + public string ExecOrderSysID + { + get{ return GBKConvert.Instance.GetString(_ExecOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ExecOrderSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询错误执行宣告操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryErrExecOrderActionField +{ + public CThostFtdcQryErrExecOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } +} +/// +/// 投资者期权合约交易权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcOptionInstrTradingRightField +{ + public CThostFtdcOptionInstrTradingRightField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcDirectionType Direction; + public TThostFtdcTradingRightType TradingRight; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询期权合约交易权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryOptionInstrTradingRightField +{ + public CThostFtdcQryOptionInstrTradingRightField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcDirectionType Direction; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 输入的询价 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInputForQuoteField +{ + public CThostFtdcInputForQuoteField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ForQuoteRef = new byte[13]; + /// + /// 询价引用 + /// + public string ForQuoteRef + { + get{ return GBKConvert.Instance.GetString(_ForQuoteRef); } + set{ GBKConvert.Instance.GetBytes(value, _ForQuoteRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 询价 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcForQuoteField +{ + public CThostFtdcForQuoteField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ForQuoteRef = new byte[13]; + /// + /// 询价引用 + /// + public string ForQuoteRef + { + get{ return GBKConvert.Instance.GetString(_ForQuoteRef); } + set{ GBKConvert.Instance.GetBytes(value, _ForQuoteRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ForQuoteLocalID = new byte[13]; + /// + /// 本地询价编号 + /// + public string ForQuoteLocalID + { + get{ return GBKConvert.Instance.GetString(_ForQuoteLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ForQuoteLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertDate = new byte[9]; + /// + /// 报单日期 + /// + public string InsertDate + { + get{ return GBKConvert.Instance.GetString(_InsertDate); } + set{ GBKConvert.Instance.GetBytes(value, _InsertDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTime = new byte[9]; + /// + /// 插入时间 + /// + public string InsertTime + { + get{ return GBKConvert.Instance.GetString(_InsertTime); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTime); } + } + public TThostFtdcForQuoteStatusType ForQuoteStatus; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _ActiveUserID = new byte[16]; + /// + /// 操作用户代码 + /// + public string ActiveUserID + { + get{ return GBKConvert.Instance.GetString(_ActiveUserID); } + set{ GBKConvert.Instance.GetBytes(value, _ActiveUserID); } + } + /// + /// 经纪公司询价编号 + /// + public int BrokerForQutoSeq; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve3 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve3 + { + get{ return GBKConvert.Instance.GetString(_reserve3); } + set{ GBKConvert.Instance.GetBytes(value, _reserve3); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 询价查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryForQuoteField +{ + public CThostFtdcQryForQuoteField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTimeStart = new byte[9]; + /// + /// 开始时间 + /// + public string InsertTimeStart + { + get{ return GBKConvert.Instance.GetString(_InsertTimeStart); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTimeStart); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTimeEnd = new byte[9]; + /// + /// 结束时间 + /// + public string InsertTimeEnd + { + get{ return GBKConvert.Instance.GetString(_InsertTimeEnd); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTimeEnd); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 交易所询价信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeForQuoteField +{ + public CThostFtdcExchangeForQuoteField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ForQuoteLocalID = new byte[13]; + /// + /// 本地询价编号 + /// + public string ForQuoteLocalID + { + get{ return GBKConvert.Instance.GetString(_ForQuoteLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ForQuoteLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertDate = new byte[9]; + /// + /// 报单日期 + /// + public string InsertDate + { + get{ return GBKConvert.Instance.GetString(_InsertDate); } + set{ GBKConvert.Instance.GetBytes(value, _InsertDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTime = new byte[9]; + /// + /// 插入时间 + /// + public string InsertTime + { + get{ return GBKConvert.Instance.GetString(_InsertTime); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTime); } + } + public TThostFtdcForQuoteStatusType ForQuoteStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 交易所询价查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeForQuoteField +{ + public CThostFtdcQryExchangeForQuoteField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } +} +/// +/// 输入的报价 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInputQuoteField +{ + public CThostFtdcInputQuoteField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _QuoteRef = new byte[13]; + /// + /// 报价引用 + /// + public string QuoteRef + { + get{ return GBKConvert.Instance.GetString(_QuoteRef); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + /// + /// 卖价格 + /// + public double AskPrice; + /// + /// 买价格 + /// + public double BidPrice; + /// + /// 卖数量 + /// + public int AskVolume; + /// + /// 买数量 + /// + public int BidVolume; + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOffsetFlagType AskOffsetFlag; + public TThostFtdcOffsetFlagType BidOffsetFlag; + public TThostFtdcHedgeFlagType AskHedgeFlag; + public TThostFtdcHedgeFlagType BidHedgeFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AskOrderRef = new byte[13]; + /// + /// 衍生卖报单引用 + /// + public string AskOrderRef + { + get{ return GBKConvert.Instance.GetString(_AskOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _AskOrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BidOrderRef = new byte[13]; + /// + /// 衍生买报单引用 + /// + public string BidOrderRef + { + get{ return GBKConvert.Instance.GetString(_BidOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _BidOrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ForQuoteSysID = new byte[21]; + /// + /// 应价编号 + /// + public string ForQuoteSysID + { + get{ return GBKConvert.Instance.GetString(_ForQuoteSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ForQuoteSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 交易编码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ReplaceSysID = new byte[21]; + /// + /// 被顶单编号 + /// + public string ReplaceSysID + { + get{ return GBKConvert.Instance.GetString(_ReplaceSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ReplaceSysID); } + } +} +/// +/// 输入报价操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInputQuoteActionField +{ + public CThostFtdcInputQuoteActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 报价操作引用 + /// + public int QuoteActionRef; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _QuoteRef = new byte[13]; + /// + /// 报价引用 + /// + public string QuoteRef + { + get{ return GBKConvert.Instance.GetString(_QuoteRef); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteRef); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _QuoteSysID = new byte[21]; + /// + /// 报价操作编号 + /// + public string QuoteSysID + { + get{ return GBKConvert.Instance.GetString(_QuoteSysID); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 交易编码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 报价 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQuoteField +{ + public CThostFtdcQuoteField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _QuoteRef = new byte[13]; + /// + /// 报价引用 + /// + public string QuoteRef + { + get{ return GBKConvert.Instance.GetString(_QuoteRef); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + /// + /// 卖价格 + /// + public double AskPrice; + /// + /// 买价格 + /// + public double BidPrice; + /// + /// 卖数量 + /// + public int AskVolume; + /// + /// 买数量 + /// + public int BidVolume; + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOffsetFlagType AskOffsetFlag; + public TThostFtdcOffsetFlagType BidOffsetFlag; + public TThostFtdcHedgeFlagType AskHedgeFlag; + public TThostFtdcHedgeFlagType BidHedgeFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _QuoteLocalID = new byte[13]; + /// + /// 本地报价编号 + /// + public string QuoteLocalID + { + get{ return GBKConvert.Instance.GetString(_QuoteLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + /// + /// 报价提示序号 + /// + public int NotifySequence; + public TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _QuoteSysID = new byte[21]; + /// + /// 报价编号 + /// + public string QuoteSysID + { + get{ return GBKConvert.Instance.GetString(_QuoteSysID); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertDate = new byte[9]; + /// + /// 报单日期 + /// + public string InsertDate + { + get{ return GBKConvert.Instance.GetString(_InsertDate); } + set{ GBKConvert.Instance.GetBytes(value, _InsertDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTime = new byte[9]; + /// + /// 插入时间 + /// + public string InsertTime + { + get{ return GBKConvert.Instance.GetString(_InsertTime); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CancelTime = new byte[9]; + /// + /// 撤销时间 + /// + public string CancelTime + { + get{ return GBKConvert.Instance.GetString(_CancelTime); } + set{ GBKConvert.Instance.GetBytes(value, _CancelTime); } + } + public TThostFtdcOrderStatusType QuoteStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClearingPartID = new byte[11]; + /// + /// 结算会员编号 + /// + public string ClearingPartID + { + get{ return GBKConvert.Instance.GetString(_ClearingPartID); } + set{ GBKConvert.Instance.GetBytes(value, _ClearingPartID); } + } + /// + /// 序号 + /// + public int SequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _AskOrderSysID = new byte[21]; + /// + /// 卖方报单编号 + /// + public string AskOrderSysID + { + get{ return GBKConvert.Instance.GetString(_AskOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _AskOrderSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BidOrderSysID = new byte[21]; + /// + /// 买方报单编号 + /// + public string BidOrderSysID + { + get{ return GBKConvert.Instance.GetString(_BidOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _BidOrderSysID); } + } + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _ActiveUserID = new byte[16]; + /// + /// 操作用户代码 + /// + public string ActiveUserID + { + get{ return GBKConvert.Instance.GetString(_ActiveUserID); } + set{ GBKConvert.Instance.GetBytes(value, _ActiveUserID); } + } + /// + /// 经纪公司报价编号 + /// + public int BrokerQuoteSeq; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AskOrderRef = new byte[13]; + /// + /// 衍生卖报单引用 + /// + public string AskOrderRef + { + get{ return GBKConvert.Instance.GetString(_AskOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _AskOrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BidOrderRef = new byte[13]; + /// + /// 衍生买报单引用 + /// + public string BidOrderRef + { + get{ return GBKConvert.Instance.GetString(_BidOrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _BidOrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ForQuoteSysID = new byte[21]; + /// + /// 应价编号 + /// + public string ForQuoteSysID + { + get{ return GBKConvert.Instance.GetString(_ForQuoteSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ForQuoteSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve3 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve3 + { + get{ return GBKConvert.Instance.GetString(_reserve3); } + set{ GBKConvert.Instance.GetBytes(value, _reserve3); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ReplaceSysID = new byte[21]; + /// + /// 被顶单编号 + /// + public string ReplaceSysID + { + get{ return GBKConvert.Instance.GetString(_ReplaceSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ReplaceSysID); } + } +} +/// +/// 报价操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQuoteActionField +{ + public CThostFtdcQuoteActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 报价操作引用 + /// + public int QuoteActionRef; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _QuoteRef = new byte[13]; + /// + /// 报价引用 + /// + public string QuoteRef + { + get{ return GBKConvert.Instance.GetString(_QuoteRef); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteRef); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _QuoteSysID = new byte[21]; + /// + /// 报价操作编号 + /// + public string QuoteSysID + { + get{ return GBKConvert.Instance.GetString(_QuoteSysID); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDate = new byte[9]; + /// + /// 操作日期 + /// + public string ActionDate + { + get{ return GBKConvert.Instance.GetString(_ActionDate); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionTime = new byte[9]; + /// + /// 操作时间 + /// + public string ActionTime + { + get{ return GBKConvert.Instance.GetString(_ActionTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActionTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _QuoteLocalID = new byte[13]; + /// + /// 本地报价编号 + /// + public string QuoteLocalID + { + get{ return GBKConvert.Instance.GetString(_QuoteLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 操作本地编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOrderActionStatusType OrderActionStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 报价查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryQuoteField +{ + public CThostFtdcQryQuoteField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _QuoteSysID = new byte[21]; + /// + /// 报价编号 + /// + public string QuoteSysID + { + get{ return GBKConvert.Instance.GetString(_QuoteSysID); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTimeStart = new byte[9]; + /// + /// 开始时间 + /// + public string InsertTimeStart + { + get{ return GBKConvert.Instance.GetString(_InsertTimeStart); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTimeStart); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTimeEnd = new byte[9]; + /// + /// 结束时间 + /// + public string InsertTimeEnd + { + get{ return GBKConvert.Instance.GetString(_InsertTimeEnd); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTimeEnd); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 交易所报价信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeQuoteField +{ + public CThostFtdcExchangeQuoteField() {} + /// + /// 卖价格 + /// + public double AskPrice; + /// + /// 买价格 + /// + public double BidPrice; + /// + /// 卖数量 + /// + public int AskVolume; + /// + /// 买数量 + /// + public int BidVolume; + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOffsetFlagType AskOffsetFlag; + public TThostFtdcOffsetFlagType BidOffsetFlag; + public TThostFtdcHedgeFlagType AskHedgeFlag; + public TThostFtdcHedgeFlagType BidHedgeFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _QuoteLocalID = new byte[13]; + /// + /// 本地报价编号 + /// + public string QuoteLocalID + { + get{ return GBKConvert.Instance.GetString(_QuoteLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + /// + /// 报价提示序号 + /// + public int NotifySequence; + public TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _QuoteSysID = new byte[21]; + /// + /// 报价编号 + /// + public string QuoteSysID + { + get{ return GBKConvert.Instance.GetString(_QuoteSysID); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertDate = new byte[9]; + /// + /// 报单日期 + /// + public string InsertDate + { + get{ return GBKConvert.Instance.GetString(_InsertDate); } + set{ GBKConvert.Instance.GetBytes(value, _InsertDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTime = new byte[9]; + /// + /// 插入时间 + /// + public string InsertTime + { + get{ return GBKConvert.Instance.GetString(_InsertTime); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CancelTime = new byte[9]; + /// + /// 撤销时间 + /// + public string CancelTime + { + get{ return GBKConvert.Instance.GetString(_CancelTime); } + set{ GBKConvert.Instance.GetBytes(value, _CancelTime); } + } + public TThostFtdcOrderStatusType QuoteStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClearingPartID = new byte[11]; + /// + /// 结算会员编号 + /// + public string ClearingPartID + { + get{ return GBKConvert.Instance.GetString(_ClearingPartID); } + set{ GBKConvert.Instance.GetBytes(value, _ClearingPartID); } + } + /// + /// 序号 + /// + public int SequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _AskOrderSysID = new byte[21]; + /// + /// 卖方报单编号 + /// + public string AskOrderSysID + { + get{ return GBKConvert.Instance.GetString(_AskOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _AskOrderSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BidOrderSysID = new byte[21]; + /// + /// 买方报单编号 + /// + public string BidOrderSysID + { + get{ return GBKConvert.Instance.GetString(_BidOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _BidOrderSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ForQuoteSysID = new byte[21]; + /// + /// 应价编号 + /// + public string ForQuoteSysID + { + get{ return GBKConvert.Instance.GetString(_ForQuoteSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ForQuoteSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 交易所报价查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeQuoteField +{ + public CThostFtdcQryExchangeQuoteField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } +} +/// +/// 报价操作查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryQuoteActionField +{ + public CThostFtdcQryQuoteActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } +} +/// +/// 交易所报价操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeQuoteActionField +{ + public CThostFtdcExchangeQuoteActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _QuoteSysID = new byte[21]; + /// + /// 报价操作编号 + /// + public string QuoteSysID + { + get{ return GBKConvert.Instance.GetString(_QuoteSysID); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDate = new byte[9]; + /// + /// 操作日期 + /// + public string ActionDate + { + get{ return GBKConvert.Instance.GetString(_ActionDate); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionTime = new byte[9]; + /// + /// 操作时间 + /// + public string ActionTime + { + get{ return GBKConvert.Instance.GetString(_ActionTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActionTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _QuoteLocalID = new byte[13]; + /// + /// 本地报价编号 + /// + public string QuoteLocalID + { + get{ return GBKConvert.Instance.GetString(_QuoteLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 操作本地编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOrderActionStatusType OrderActionStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 交易所报价操作查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeQuoteActionField +{ + public CThostFtdcQryExchangeQuoteActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } +} +/// +/// 期权合约delta值 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcOptionInstrDeltaField +{ + public CThostFtdcOptionInstrDeltaField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// Delta值 + /// + public double Delta; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 发给做市商的询价请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcForQuoteRspField +{ + public CThostFtdcForQuoteRspField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ForQuoteSysID = new byte[21]; + /// + /// 询价编号 + /// + public string ForQuoteSysID + { + get{ return GBKConvert.Instance.GetString(_ForQuoteSysID); } + set{ GBKConvert.Instance.GetBytes(value, _ForQuoteSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ForQuoteTime = new byte[9]; + /// + /// 询价时间 + /// + public string ForQuoteTime + { + get{ return GBKConvert.Instance.GetString(_ForQuoteTime); } + set{ GBKConvert.Instance.GetBytes(value, _ForQuoteTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDay = new byte[9]; + /// + /// 业务日期 + /// + public string ActionDay + { + get{ return GBKConvert.Instance.GetString(_ActionDay); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 当前期权合约执行偏移值的详细内容 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcStrikeOffsetField +{ + public CThostFtdcStrikeOffsetField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 执行偏移值 + /// + public double Offset; + public TThostFtdcStrikeOffsetTypeType OffsetType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 期权执行偏移值查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryStrikeOffsetField +{ + public CThostFtdcQryStrikeOffsetField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 输入批量报单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInputBatchOrderActionField +{ + public CThostFtdcInputBatchOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 报单操作引用 + /// + public int OrderActionRef; + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 批量报单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBatchOrderActionField +{ + public CThostFtdcBatchOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 报单操作引用 + /// + public int OrderActionRef; + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDate = new byte[9]; + /// + /// 操作日期 + /// + public string ActionDate + { + get{ return GBKConvert.Instance.GetString(_ActionDate); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionTime = new byte[9]; + /// + /// 操作时间 + /// + public string ActionTime + { + get{ return GBKConvert.Instance.GetString(_ActionTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActionTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 操作本地编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOrderActionStatusType OrderActionStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 交易所批量报单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeBatchOrderActionField +{ + public CThostFtdcExchangeBatchOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDate = new byte[9]; + /// + /// 操作日期 + /// + public string ActionDate + { + get{ return GBKConvert.Instance.GetString(_ActionDate); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionTime = new byte[9]; + /// + /// 操作时间 + /// + public string ActionTime + { + get{ return GBKConvert.Instance.GetString(_ActionTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActionTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 操作本地编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOrderActionStatusType OrderActionStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询批量报单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryBatchOrderActionField +{ + public CThostFtdcQryBatchOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } +} +/// +/// 组合合约安全系数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCombInstrumentGuardField +{ + public CThostFtdcCombInstrumentGuardField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + /// + /// + /// + public double GuarantRatio; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 组合合约安全系数查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryCombInstrumentGuardField +{ + public CThostFtdcQryCombInstrumentGuardField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 输入的申请组合 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInputCombActionField +{ + public CThostFtdcInputCombActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _CombActionRef = new byte[13]; + /// + /// 组合引用 + /// + public string CombActionRef + { + get{ return GBKConvert.Instance.GetString(_CombActionRef); } + set{ GBKConvert.Instance.GetBytes(value, _CombActionRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcDirectionType Direction; + /// + /// 数量 + /// + public int Volume; + public TThostFtdcCombDirectionType CombDirection; + public TThostFtdcHedgeFlagType HedgeFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 申请组合 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCombActionField +{ + public CThostFtdcCombActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _CombActionRef = new byte[13]; + /// + /// 组合引用 + /// + public string CombActionRef + { + get{ return GBKConvert.Instance.GetString(_CombActionRef); } + set{ GBKConvert.Instance.GetBytes(value, _CombActionRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcDirectionType Direction; + /// + /// 数量 + /// + public int Volume; + public TThostFtdcCombDirectionType CombDirection; + public TThostFtdcHedgeFlagType HedgeFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 本地申请组合编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcOrderActionStatusType ActionStatus; + /// + /// 报单提示序号 + /// + public int NotifySequence; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + /// + /// 序号 + /// + public int SequenceNo; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve3 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve3 + { + get{ return GBKConvert.Instance.GetString(_reserve3); } + set{ GBKConvert.Instance.GetBytes(value, _reserve3); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ComTradeID = new byte[21]; + /// + /// 组合编号 + /// + public string ComTradeID + { + get{ return GBKConvert.Instance.GetString(_ComTradeID); } + set{ GBKConvert.Instance.GetBytes(value, _ComTradeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 申请组合查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryCombActionField +{ + public CThostFtdcQryCombActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 交易所申请组合信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeCombActionField +{ + public CThostFtdcExchangeCombActionField() {} + public TThostFtdcDirectionType Direction; + /// + /// 数量 + /// + public int Volume; + public TThostFtdcCombDirectionType CombDirection; + public TThostFtdcHedgeFlagType HedgeFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 本地申请组合编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcOrderActionStatusType ActionStatus; + /// + /// 报单提示序号 + /// + public int NotifySequence; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + /// + /// 序号 + /// + public int SequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ComTradeID = new byte[21]; + /// + /// 组合编号 + /// + public string ComTradeID + { + get{ return GBKConvert.Instance.GetString(_ComTradeID); } + set{ GBKConvert.Instance.GetBytes(value, _ComTradeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 交易所申请组合查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeCombActionField +{ + public CThostFtdcQryExchangeCombActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } +} +/// +/// 产品报价汇率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcProductExchRateField +{ + public CThostFtdcProductExchRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _QuoteCurrencyID = new byte[4]; + /// + /// 报价币种类型 + /// + public string QuoteCurrencyID + { + get{ return GBKConvert.Instance.GetString(_QuoteCurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteCurrencyID); } + } + /// + /// 汇率 + /// + public double ExchangeRate; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } +} +/// +/// 产品报价汇率查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryProductExchRateField +{ + public CThostFtdcQryProductExchRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } +} +/// +/// 查询询价价差参数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryForQuoteParamField +{ + public CThostFtdcQryForQuoteParamField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 询价价差参数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcForQuoteParamField +{ + public CThostFtdcForQuoteParamField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 最新价 + /// + public double LastPrice; + /// + /// 价差 + /// + public double PriceInterval; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 当前做市商期权合约手续费的详细内容 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMMOptionInstrCommRateField +{ + public CThostFtdcMMOptionInstrCommRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 开仓手续费率 + /// + public double OpenRatioByMoney; + /// + /// 开仓手续费 + /// + public double OpenRatioByVolume; + /// + /// 平仓手续费率 + /// + public double CloseRatioByMoney; + /// + /// 平仓手续费 + /// + public double CloseRatioByVolume; + /// + /// 平今手续费率 + /// + public double CloseTodayRatioByMoney; + /// + /// 平今手续费 + /// + public double CloseTodayRatioByVolume; + /// + /// 执行手续费率 + /// + public double StrikeRatioByMoney; + /// + /// 执行手续费 + /// + public double StrikeRatioByVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 做市商期权手续费率查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryMMOptionInstrCommRateField +{ + public CThostFtdcQryMMOptionInstrCommRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 做市商合约手续费率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMMInstrumentCommissionRateField +{ + public CThostFtdcMMInstrumentCommissionRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 开仓手续费率 + /// + public double OpenRatioByMoney; + /// + /// 开仓手续费 + /// + public double OpenRatioByVolume; + /// + /// 平仓手续费率 + /// + public double CloseRatioByMoney; + /// + /// 平仓手续费 + /// + public double CloseRatioByVolume; + /// + /// 平今手续费率 + /// + public double CloseTodayRatioByMoney; + /// + /// 平今手续费 + /// + public double CloseTodayRatioByVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询做市商合约手续费率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryMMInstrumentCommissionRateField +{ + public CThostFtdcQryMMInstrumentCommissionRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 当前报单手续费的详细内容 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInstrumentOrderCommRateField +{ + public CThostFtdcInstrumentOrderCommRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 报单手续费 + /// + public double OrderCommByVolume; + /// + /// 撤单手续费 + /// + public double OrderActionCommByVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + /// + /// 报单手续费 + /// + public double OrderCommByTrade; + /// + /// 撤单手续费 + /// + public double OrderActionCommByTrade; +} +/// +/// 报单手续费率查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInstrumentOrderCommRateField +{ + public CThostFtdcQryInstrumentOrderCommRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 交易参数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTradeParamField +{ + public CThostFtdcTradeParamField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + public TThostFtdcTradeParamIDType TradeParamID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=256)] + public readonly byte[] _TradeParamValue = new byte[256]; + /// + /// 参数代码值 + /// + public string TradeParamValue + { + get{ return GBKConvert.Instance.GetString(_TradeParamValue); } + set{ GBKConvert.Instance.GetBytes(value, _TradeParamValue); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _Memo = new byte[161]; + /// + /// 备注 + /// + public string Memo + { + get{ return GBKConvert.Instance.GetString(_Memo); } + set{ GBKConvert.Instance.GetBytes(value, _Memo); } + } +} +/// +/// 合约保证金率调整 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInstrumentMarginRateULField +{ + public CThostFtdcInstrumentMarginRateULField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 多头保证金率 + /// + public double LongMarginRatioByMoney; + /// + /// 多头保证金费 + /// + public double LongMarginRatioByVolume; + /// + /// 空头保证金率 + /// + public double ShortMarginRatioByMoney; + /// + /// 空头保证金费 + /// + public double ShortMarginRatioByVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 期货持仓限制参数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcFutureLimitPosiParamField +{ + public CThostFtdcFutureLimitPosiParamField() {} + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + /// + /// 当日投机开仓数量限制 + /// + public int SpecOpenVolume; + /// + /// 当日套利开仓数量限制 + /// + public int ArbiOpenVolume; + /// + /// 当日投机+套利开仓数量限制 + /// + public int OpenVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } +} +/// +/// 禁止登录IP +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcLoginForbiddenIPField +{ + public CThostFtdcLoginForbiddenIPField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// IP列表 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcIPListField +{ + public CThostFtdcIPListField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + /// + /// 是否白名单 + /// + public int IsWhite; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 输入的期权自对冲 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInputOptionSelfCloseField +{ + public CThostFtdcInputOptionSelfCloseField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OptionSelfCloseRef = new byte[13]; + /// + /// 期权自对冲引用 + /// + public string OptionSelfCloseRef + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseRef); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + /// + /// 数量 + /// + public int Volume; + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 交易编码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 输入期权自对冲操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInputOptionSelfCloseActionField +{ + public CThostFtdcInputOptionSelfCloseActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 期权自对冲操作引用 + /// + public int OptionSelfCloseActionRef; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OptionSelfCloseRef = new byte[13]; + /// + /// 期权自对冲引用 + /// + public string OptionSelfCloseRef + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseRef); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseRef); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OptionSelfCloseSysID = new byte[21]; + /// + /// 期权自对冲操作编号 + /// + public string OptionSelfCloseSysID + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 期权自对冲 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcOptionSelfCloseField +{ + public CThostFtdcOptionSelfCloseField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OptionSelfCloseRef = new byte[13]; + /// + /// 期权自对冲引用 + /// + public string OptionSelfCloseRef + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseRef); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + /// + /// 数量 + /// + public int Volume; + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OptionSelfCloseLocalID = new byte[13]; + /// + /// 本地期权自对冲编号 + /// + public string OptionSelfCloseLocalID + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + /// + /// 报单提示序号 + /// + public int NotifySequence; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OptionSelfCloseSysID = new byte[21]; + /// + /// 期权自对冲编号 + /// + public string OptionSelfCloseSysID + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertDate = new byte[9]; + /// + /// 报单日期 + /// + public string InsertDate + { + get{ return GBKConvert.Instance.GetString(_InsertDate); } + set{ GBKConvert.Instance.GetBytes(value, _InsertDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTime = new byte[9]; + /// + /// 插入时间 + /// + public string InsertTime + { + get{ return GBKConvert.Instance.GetString(_InsertTime); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CancelTime = new byte[9]; + /// + /// 撤销时间 + /// + public string CancelTime + { + get{ return GBKConvert.Instance.GetString(_CancelTime); } + set{ GBKConvert.Instance.GetBytes(value, _CancelTime); } + } + public TThostFtdcExecResultType ExecResult; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClearingPartID = new byte[11]; + /// + /// 结算会员编号 + /// + public string ClearingPartID + { + get{ return GBKConvert.Instance.GetString(_ClearingPartID); } + set{ GBKConvert.Instance.GetBytes(value, _ClearingPartID); } + } + /// + /// 序号 + /// + public int SequenceNo; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _ActiveUserID = new byte[16]; + /// + /// 操作用户代码 + /// + public string ActiveUserID + { + get{ return GBKConvert.Instance.GetString(_ActiveUserID); } + set{ GBKConvert.Instance.GetBytes(value, _ActiveUserID); } + } + /// + /// 经纪公司报单编号 + /// + public int BrokerOptionSelfCloseSeq; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve3 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve3 + { + get{ return GBKConvert.Instance.GetString(_reserve3); } + set{ GBKConvert.Instance.GetBytes(value, _reserve3); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 期权自对冲操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcOptionSelfCloseActionField +{ + public CThostFtdcOptionSelfCloseActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 期权自对冲操作引用 + /// + public int OptionSelfCloseActionRef; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OptionSelfCloseRef = new byte[13]; + /// + /// 期权自对冲引用 + /// + public string OptionSelfCloseRef + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseRef); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseRef); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OptionSelfCloseSysID = new byte[21]; + /// + /// 期权自对冲操作编号 + /// + public string OptionSelfCloseSysID + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDate = new byte[9]; + /// + /// 操作日期 + /// + public string ActionDate + { + get{ return GBKConvert.Instance.GetString(_ActionDate); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionTime = new byte[9]; + /// + /// 操作时间 + /// + public string ActionTime + { + get{ return GBKConvert.Instance.GetString(_ActionTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActionTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OptionSelfCloseLocalID = new byte[13]; + /// + /// 本地期权自对冲编号 + /// + public string OptionSelfCloseLocalID + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 操作本地编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOrderActionStatusType OrderActionStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 期权自对冲查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryOptionSelfCloseField +{ + public CThostFtdcQryOptionSelfCloseField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OptionSelfCloseSysID = new byte[21]; + /// + /// 期权自对冲编号 + /// + public string OptionSelfCloseSysID + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTimeStart = new byte[9]; + /// + /// 开始时间 + /// + public string InsertTimeStart + { + get{ return GBKConvert.Instance.GetString(_InsertTimeStart); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTimeStart); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTimeEnd = new byte[9]; + /// + /// 结束时间 + /// + public string InsertTimeEnd + { + get{ return GBKConvert.Instance.GetString(_InsertTimeEnd); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTimeEnd); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 交易所期权自对冲信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeOptionSelfCloseField +{ + public CThostFtdcExchangeOptionSelfCloseField() {} + /// + /// 数量 + /// + public int Volume; + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OptionSelfCloseLocalID = new byte[13]; + /// + /// 本地期权自对冲编号 + /// + public string OptionSelfCloseLocalID + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + /// + /// 报单提示序号 + /// + public int NotifySequence; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OptionSelfCloseSysID = new byte[21]; + /// + /// 期权自对冲编号 + /// + public string OptionSelfCloseSysID + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseSysID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertDate = new byte[9]; + /// + /// 报单日期 + /// + public string InsertDate + { + get{ return GBKConvert.Instance.GetString(_InsertDate); } + set{ GBKConvert.Instance.GetBytes(value, _InsertDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTime = new byte[9]; + /// + /// 插入时间 + /// + public string InsertTime + { + get{ return GBKConvert.Instance.GetString(_InsertTime); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CancelTime = new byte[9]; + /// + /// 撤销时间 + /// + public string CancelTime + { + get{ return GBKConvert.Instance.GetString(_CancelTime); } + set{ GBKConvert.Instance.GetBytes(value, _CancelTime); } + } + public TThostFtdcExecResultType ExecResult; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClearingPartID = new byte[11]; + /// + /// 结算会员编号 + /// + public string ClearingPartID + { + get{ return GBKConvert.Instance.GetString(_ClearingPartID); } + set{ GBKConvert.Instance.GetBytes(value, _ClearingPartID); } + } + /// + /// 序号 + /// + public int SequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 期权自对冲操作查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryOptionSelfCloseActionField +{ + public CThostFtdcQryOptionSelfCloseActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } +} +/// +/// 交易所期权自对冲操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeOptionSelfCloseActionField +{ + public CThostFtdcExchangeOptionSelfCloseActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OptionSelfCloseSysID = new byte[21]; + /// + /// 期权自对冲操作编号 + /// + public string OptionSelfCloseSysID + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDate = new byte[9]; + /// + /// 操作日期 + /// + public string ActionDate + { + get{ return GBKConvert.Instance.GetString(_ActionDate); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionTime = new byte[9]; + /// + /// 操作时间 + /// + public string ActionTime + { + get{ return GBKConvert.Instance.GetString(_ActionTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActionTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OptionSelfCloseLocalID = new byte[13]; + /// + /// 本地期权自对冲编号 + /// + public string OptionSelfCloseLocalID + { + get{ return GBKConvert.Instance.GetString(_OptionSelfCloseLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OptionSelfCloseLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 操作本地编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOrderActionStatusType OrderActionStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + public TThostFtdcOptSelfCloseFlagType OptSelfCloseFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } +} +/// +/// 延时换汇同步 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDelaySwapField +{ + public CThostFtdcSyncDelaySwapField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=15)] + public readonly byte[] _DelaySwapSeqNo = new byte[15]; + /// + /// 换汇流水号 + /// + public string DelaySwapSeqNo + { + get{ return GBKConvert.Instance.GetString(_DelaySwapSeqNo); } + set{ GBKConvert.Instance.GetBytes(value, _DelaySwapSeqNo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _FromCurrencyID = new byte[4]; + /// + /// 源币种 + /// + public string FromCurrencyID + { + get{ return GBKConvert.Instance.GetString(_FromCurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _FromCurrencyID); } + } + /// + /// 源金额 + /// + public double FromAmount; + /// + /// 源换汇冻结金额(可用冻结) + /// + public double FromFrozenSwap; + /// + /// 源剩余换汇额度(可提冻结) + /// + public double FromRemainSwap; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _ToCurrencyID = new byte[4]; + /// + /// 目标币种 + /// + public string ToCurrencyID + { + get{ return GBKConvert.Instance.GetString(_ToCurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _ToCurrencyID); } + } + /// + /// 目标金额 + /// + public double ToAmount; + /// + /// 是否手工换汇 + /// + public int IsManualSwap; + /// + /// 是否将所有外币的剩余换汇额度设置为0 + /// + public int IsAllRemainSetZero; +} +/// +/// 查询延时换汇同步 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySyncDelaySwapField +{ + public CThostFtdcQrySyncDelaySwapField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=15)] + public readonly byte[] _DelaySwapSeqNo = new byte[15]; + /// + /// 延时换汇流水号 + /// + public string DelaySwapSeqNo + { + get{ return GBKConvert.Instance.GetString(_DelaySwapSeqNo); } + set{ GBKConvert.Instance.GetBytes(value, _DelaySwapSeqNo); } + } +} +/// +/// 投资单元 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInvestUnitField +{ + public CThostFtdcInvestUnitField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InvestorUnitName = new byte[81]; + /// + /// 投资者单元名称 + /// + public string InvestorUnitName + { + get{ return GBKConvert.Instance.GetString(_InvestorUnitName); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorUnitName); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorGroupID = new byte[13]; + /// + /// 投资者分组代码 + /// + public string InvestorGroupID + { + get{ return GBKConvert.Instance.GetString(_InvestorGroupID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorGroupID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _CommModelID = new byte[13]; + /// + /// 手续费率模板代码 + /// + public string CommModelID + { + get{ return GBKConvert.Instance.GetString(_CommModelID); } + set{ GBKConvert.Instance.GetBytes(value, _CommModelID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _MarginModelID = new byte[13]; + /// + /// 保证金率模板代码 + /// + public string MarginModelID + { + get{ return GBKConvert.Instance.GetString(_MarginModelID); } + set{ GBKConvert.Instance.GetBytes(value, _MarginModelID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 查询投资单元 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInvestUnitField +{ + public CThostFtdcQryInvestUnitField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } +} +/// +/// 二级代理商资金校验模式 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSecAgentCheckModeField +{ + public CThostFtdcSecAgentCheckModeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BrokerSecAgentID = new byte[13]; + /// + /// 境外中介机构资金帐号 + /// + public string BrokerSecAgentID + { + get{ return GBKConvert.Instance.GetString(_BrokerSecAgentID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerSecAgentID); } + } + /// + /// 是否需要校验自己的资金账户 + /// + public int CheckSelfAccount; +} +/// +/// 二级代理商信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSecAgentTradeInfoField +{ + public CThostFtdcSecAgentTradeInfoField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BrokerSecAgentID = new byte[13]; + /// + /// 境外中介机构资金帐号 + /// + public string BrokerSecAgentID + { + get{ return GBKConvert.Instance.GetString(_BrokerSecAgentID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerSecAgentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 二级代理商姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 市场行情 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataField +{ + public CThostFtdcMarketDataField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + /// + /// 最新价 + /// + public double LastPrice; + /// + /// 上次结算价 + /// + public double PreSettlementPrice; + /// + /// 昨收盘 + /// + public double PreClosePrice; + /// + /// 昨持仓量 + /// + public double PreOpenInterest; + /// + /// 今开盘 + /// + public double OpenPrice; + /// + /// 最高价 + /// + public double HighestPrice; + /// + /// 最低价 + /// + public double LowestPrice; + /// + /// 数量 + /// + public int Volume; + /// + /// 成交金额 + /// + public double Turnover; + /// + /// 持仓量 + /// + public double OpenInterest; + /// + /// 今收盘 + /// + public double ClosePrice; + /// + /// 本次结算价 + /// + public double SettlementPrice; + /// + /// 涨停板价 + /// + public double UpperLimitPrice; + /// + /// 跌停板价 + /// + public double LowerLimitPrice; + /// + /// 昨虚实度 + /// + public double PreDelta; + /// + /// 今虚实度 + /// + public double CurrDelta; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _UpdateTime = new byte[9]; + /// + /// 最后修改时间 + /// + public string UpdateTime + { + get{ return GBKConvert.Instance.GetString(_UpdateTime); } + set{ GBKConvert.Instance.GetBytes(value, _UpdateTime); } + } + /// + /// 最后修改毫秒 + /// + public int UpdateMillisec; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDay = new byte[9]; + /// + /// 业务日期 + /// + public string ActionDay + { + get{ return GBKConvert.Instance.GetString(_ActionDay); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } +} +/// +/// 行情基础属性 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataBaseField +{ + public CThostFtdcMarketDataBaseField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 上次结算价 + /// + public double PreSettlementPrice; + /// + /// 昨收盘 + /// + public double PreClosePrice; + /// + /// 昨持仓量 + /// + public double PreOpenInterest; + /// + /// 昨虚实度 + /// + public double PreDelta; +} +/// +/// 行情静态属性 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataStaticField +{ + public CThostFtdcMarketDataStaticField() {} + /// + /// 今开盘 + /// + public double OpenPrice; + /// + /// 最高价 + /// + public double HighestPrice; + /// + /// 最低价 + /// + public double LowestPrice; + /// + /// 今收盘 + /// + public double ClosePrice; + /// + /// 涨停板价 + /// + public double UpperLimitPrice; + /// + /// 跌停板价 + /// + public double LowerLimitPrice; + /// + /// 本次结算价 + /// + public double SettlementPrice; + /// + /// 今虚实度 + /// + public double CurrDelta; +} +/// +/// 行情最新成交属性 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataLastMatchField +{ + public CThostFtdcMarketDataLastMatchField() {} + /// + /// 最新价 + /// + public double LastPrice; + /// + /// 数量 + /// + public int Volume; + /// + /// 成交金额 + /// + public double Turnover; + /// + /// 持仓量 + /// + public double OpenInterest; +} +/// +/// 行情最优价属性 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataBestPriceField +{ + public CThostFtdcMarketDataBestPriceField() {} + /// + /// 申买价一 + /// + public double BidPrice1; + /// + /// 申买量一 + /// + public int BidVolume1; + /// + /// 申卖价一 + /// + public double AskPrice1; + /// + /// 申卖量一 + /// + public int AskVolume1; +} +/// +/// 行情申买二、三属性 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataBid23Field +{ + public CThostFtdcMarketDataBid23Field() {} + /// + /// 申买价二 + /// + public double BidPrice2; + /// + /// 申买量二 + /// + public int BidVolume2; + /// + /// 申买价三 + /// + public double BidPrice3; + /// + /// 申买量三 + /// + public int BidVolume3; +} +/// +/// 行情申卖二、三属性 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataAsk23Field +{ + public CThostFtdcMarketDataAsk23Field() {} + /// + /// 申卖价二 + /// + public double AskPrice2; + /// + /// 申卖量二 + /// + public int AskVolume2; + /// + /// 申卖价三 + /// + public double AskPrice3; + /// + /// 申卖量三 + /// + public int AskVolume3; +} +/// +/// 行情申买四、五属性 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataBid45Field +{ + public CThostFtdcMarketDataBid45Field() {} + /// + /// 申买价四 + /// + public double BidPrice4; + /// + /// 申买量四 + /// + public int BidVolume4; + /// + /// 申买价五 + /// + public double BidPrice5; + /// + /// 申买量五 + /// + public int BidVolume5; +} +/// +/// 行情申卖四、五属性 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataAsk45Field +{ + public CThostFtdcMarketDataAsk45Field() {} + /// + /// 申卖价四 + /// + public double AskPrice4; + /// + /// 申卖量四 + /// + public int AskVolume4; + /// + /// 申卖价五 + /// + public double AskPrice5; + /// + /// 申卖量五 + /// + public int AskVolume5; +} +/// +/// 行情更新时间属性 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataUpdateTimeField +{ + public CThostFtdcMarketDataUpdateTimeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _UpdateTime = new byte[9]; + /// + /// 最后修改时间 + /// + public string UpdateTime + { + get{ return GBKConvert.Instance.GetString(_UpdateTime); } + set{ GBKConvert.Instance.GetBytes(value, _UpdateTime); } + } + /// + /// 最后修改毫秒 + /// + public int UpdateMillisec; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDay = new byte[9]; + /// + /// 业务日期 + /// + public string ActionDay + { + get{ return GBKConvert.Instance.GetString(_ActionDay); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 行情上下带价 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataBandingPriceField +{ + public CThostFtdcMarketDataBandingPriceField() {} + /// + /// 上带价 + /// + public double BandingUpperPrice; + /// + /// 下带价 + /// + public double BandingLowerPrice; +} +/// +/// 行情交易所代码属性 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataExchangeField +{ + public CThostFtdcMarketDataExchangeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } +} +/// +/// 指定的合约 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSpecificInstrumentField +{ + public CThostFtdcSpecificInstrumentField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 合约状态 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInstrumentStatusField +{ + public CThostFtdcInstrumentStatusField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _SettlementGroupID = new byte[9]; + /// + /// 结算组代码 + /// + public string SettlementGroupID + { + get{ return GBKConvert.Instance.GetString(_SettlementGroupID); } + set{ GBKConvert.Instance.GetBytes(value, _SettlementGroupID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + public TThostFtdcInstrumentStatusType InstrumentStatus; + /// + /// 交易阶段编号 + /// + public int TradingSegmentSN; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _EnterTime = new byte[9]; + /// + /// 进入本状态时间 + /// + public string EnterTime + { + get{ return GBKConvert.Instance.GetString(_EnterTime); } + set{ GBKConvert.Instance.GetBytes(value, _EnterTime); } + } + public TThostFtdcInstStatusEnterReasonType EnterReason; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询合约状态 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInstrumentStatusField +{ + public CThostFtdcQryInstrumentStatusField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } +} +/// +/// 投资者账户 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInvestorAccountField +{ + public CThostFtdcInvestorAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 浮动盈亏算法 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcPositionProfitAlgorithmField +{ + public CThostFtdcPositionProfitAlgorithmField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + public TThostFtdcAlgorithmType Algorithm; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _Memo = new byte[161]; + /// + /// 备注 + /// + public string Memo + { + get{ return GBKConvert.Instance.GetString(_Memo); } + set{ GBKConvert.Instance.GetBytes(value, _Memo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 会员资金折扣 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcDiscountField +{ + public CThostFtdcDiscountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 资金折扣比例 + /// + public double Discount; +} +/// +/// 查询转帐银行 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryTransferBankField +{ + public CThostFtdcQryTransferBankField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBrchID = new byte[5]; + /// + /// 银行分中心代码 + /// + public string BankBrchID + { + get{ return GBKConvert.Instance.GetString(_BankBrchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBrchID); } + } +} +/// +/// 转帐银行 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTransferBankField +{ + public CThostFtdcTransferBankField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBrchID = new byte[5]; + /// + /// 银行分中心代码 + /// + public string BankBrchID + { + get{ return GBKConvert.Instance.GetString(_BankBrchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBrchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _BankName = new byte[101]; + /// + /// 银行名称 + /// + public string BankName + { + get{ return GBKConvert.Instance.GetString(_BankName); } + set{ GBKConvert.Instance.GetBytes(value, _BankName); } + } + /// + /// 是否活跃 + /// + public int IsActive; +} +/// +/// 查询投资者持仓明细 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInvestorPositionDetailField +{ + public CThostFtdcQryInvestorPositionDetailField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 投资者持仓明细 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInvestorPositionDetailField +{ + public CThostFtdcInvestorPositionDetailField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcDirectionType Direction; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _OpenDate = new byte[9]; + /// + /// 开仓日期 + /// + public string OpenDate + { + get{ return GBKConvert.Instance.GetString(_OpenDate); } + set{ GBKConvert.Instance.GetBytes(value, _OpenDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TradeID = new byte[21]; + /// + /// 成交编号 + /// + public string TradeID + { + get{ return GBKConvert.Instance.GetString(_TradeID); } + set{ GBKConvert.Instance.GetBytes(value, _TradeID); } + } + /// + /// 数量 + /// + public int Volume; + /// + /// 开仓价 + /// + public double OpenPrice; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + public TThostFtdcTradeTypeType TradeType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 逐日盯市平仓盈亏 + /// + public double CloseProfitByDate; + /// + /// 逐笔对冲平仓盈亏 + /// + public double CloseProfitByTrade; + /// + /// 逐日盯市持仓盈亏 + /// + public double PositionProfitByDate; + /// + /// 逐笔对冲持仓盈亏 + /// + public double PositionProfitByTrade; + /// + /// 投资者保证金 + /// + public double Margin; + /// + /// 交易所保证金 + /// + public double ExchMargin; + /// + /// 保证金率 + /// + public double MarginRateByMoney; + /// + /// 保证金率(按手数) + /// + public double MarginRateByVolume; + /// + /// 昨结算价 + /// + public double LastSettlementPrice; + /// + /// 结算价 + /// + public double SettlementPrice; + /// + /// 平仓量 + /// + public int CloseVolume; + /// + /// 平仓金额 + /// + public double CloseAmount; + /// + /// 先开先平剩余数量 + /// + public int TimeFirstVolume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + public TThostFtdcSpecPosiTypeType SpecPosiType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _CombInstrumentID = new byte[81]; + /// + /// 组合合约代码 + /// + public string CombInstrumentID + { + get{ return GBKConvert.Instance.GetString(_CombInstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _CombInstrumentID); } + } +} +/// +/// 资金账户口令域 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTradingAccountPasswordField +{ + public CThostFtdcTradingAccountPasswordField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 交易所行情报盘机 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMDTraderOfferField +{ + public CThostFtdcMDTraderOfferField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderLocalID = new byte[13]; + /// + /// 本地报单编号 + /// + public string OrderLocalID + { + get{ return GBKConvert.Instance.GetString(_OrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderLocalID); } + } + public TThostFtdcTraderConnectStatusType TraderConnectStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ConnectRequestDate = new byte[9]; + /// + /// 发出连接请求的日期 + /// + public string ConnectRequestDate + { + get{ return GBKConvert.Instance.GetString(_ConnectRequestDate); } + set{ GBKConvert.Instance.GetBytes(value, _ConnectRequestDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ConnectRequestTime = new byte[9]; + /// + /// 发出连接请求的时间 + /// + public string ConnectRequestTime + { + get{ return GBKConvert.Instance.GetString(_ConnectRequestTime); } + set{ GBKConvert.Instance.GetBytes(value, _ConnectRequestTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _LastReportDate = new byte[9]; + /// + /// 上次报告日期 + /// + public string LastReportDate + { + get{ return GBKConvert.Instance.GetString(_LastReportDate); } + set{ GBKConvert.Instance.GetBytes(value, _LastReportDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _LastReportTime = new byte[9]; + /// + /// 上次报告时间 + /// + public string LastReportTime + { + get{ return GBKConvert.Instance.GetString(_LastReportTime); } + set{ GBKConvert.Instance.GetBytes(value, _LastReportTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ConnectDate = new byte[9]; + /// + /// 完成连接日期 + /// + public string ConnectDate + { + get{ return GBKConvert.Instance.GetString(_ConnectDate); } + set{ GBKConvert.Instance.GetBytes(value, _ConnectDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ConnectTime = new byte[9]; + /// + /// 完成连接时间 + /// + public string ConnectTime + { + get{ return GBKConvert.Instance.GetString(_ConnectTime); } + set{ GBKConvert.Instance.GetBytes(value, _ConnectTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _StartDate = new byte[9]; + /// + /// 启动日期 + /// + public string StartDate + { + get{ return GBKConvert.Instance.GetString(_StartDate); } + set{ GBKConvert.Instance.GetBytes(value, _StartDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _StartTime = new byte[9]; + /// + /// 启动时间 + /// + public string StartTime + { + get{ return GBKConvert.Instance.GetString(_StartTime); } + set{ GBKConvert.Instance.GetBytes(value, _StartTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MaxTradeID = new byte[21]; + /// + /// 本席位最大成交编号 + /// + public string MaxTradeID + { + get{ return GBKConvert.Instance.GetString(_MaxTradeID); } + set{ GBKConvert.Instance.GetBytes(value, _MaxTradeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _MaxOrderMessageReference = new byte[7]; + /// + /// 本席位最大报单备拷 + /// + public string MaxOrderMessageReference + { + get{ return GBKConvert.Instance.GetString(_MaxOrderMessageReference); } + set{ GBKConvert.Instance.GetBytes(value, _MaxOrderMessageReference); } + } + public TThostFtdcOrderCancelAlgType OrderCancelAlg; +} +/// +/// 查询行情报盘机 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryMDTraderOfferField +{ + public CThostFtdcQryMDTraderOfferField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } +} +/// +/// 查询客户通知 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryNoticeField +{ + public CThostFtdcQryNoticeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } +} +/// +/// 客户通知 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcNoticeField +{ + public CThostFtdcNoticeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=501)] + public readonly byte[] _Content = new byte[501]; + /// + /// 消息正文 + /// + public string Content + { + get{ return GBKConvert.Instance.GetString(_Content); } + set{ GBKConvert.Instance.GetBytes(value, _Content); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=2)] + public readonly byte[] _SequenceLabel = new byte[2]; + /// + /// 经纪公司通知内容序列号 + /// + public string SequenceLabel + { + get{ return GBKConvert.Instance.GetString(_SequenceLabel); } + set{ GBKConvert.Instance.GetBytes(value, _SequenceLabel); } + } +} +/// +/// 用户权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcUserRightField +{ + public CThostFtdcUserRightField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcUserRightTypeType UserRightType; + /// + /// 是否禁止 + /// + public int IsForbidden; +} +/// +/// 查询结算信息确认域 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySettlementInfoConfirmField +{ + public CThostFtdcQrySettlementInfoConfirmField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 装载结算信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcLoadSettlementInfoField +{ + public CThostFtdcLoadSettlementInfoField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } +} +/// +/// 经纪公司可提资金算法表 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBrokerWithdrawAlgorithmField +{ + public CThostFtdcBrokerWithdrawAlgorithmField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + public TThostFtdcAlgorithmType WithdrawAlgorithm; + /// + /// 资金使用率 + /// + public double UsingRatio; + public TThostFtdcIncludeCloseProfitType IncludeCloseProfit; + public TThostFtdcAllWithoutTradeType AllWithoutTrade; + public TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit; + /// + /// 是否启用用户事件 + /// + public int IsBrokerUserEvent; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 货币质押比率 + /// + public double FundMortgageRatio; + public TThostFtdcBalanceAlgorithmType BalanceAlgorithm; +} +/// +/// 资金账户口令变更域 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTradingAccountPasswordUpdateV1Field +{ + public CThostFtdcTradingAccountPasswordUpdateV1Field() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _OldPassword = new byte[41]; + /// + /// 原来的口令 + /// + public string OldPassword + { + get{ return GBKConvert.Instance.GetString(_OldPassword); } + set{ GBKConvert.Instance.GetBytes(value, _OldPassword); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _NewPassword = new byte[41]; + /// + /// 新的口令 + /// + public string NewPassword + { + get{ return GBKConvert.Instance.GetString(_NewPassword); } + set{ GBKConvert.Instance.GetBytes(value, _NewPassword); } + } +} +/// +/// 资金账户口令变更域 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTradingAccountPasswordUpdateField +{ + public CThostFtdcTradingAccountPasswordUpdateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _OldPassword = new byte[41]; + /// + /// 原来的口令 + /// + public string OldPassword + { + get{ return GBKConvert.Instance.GetString(_OldPassword); } + set{ GBKConvert.Instance.GetBytes(value, _OldPassword); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _NewPassword = new byte[41]; + /// + /// 新的口令 + /// + public string NewPassword + { + get{ return GBKConvert.Instance.GetString(_NewPassword); } + set{ GBKConvert.Instance.GetBytes(value, _NewPassword); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 查询组合合约分腿 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryCombinationLegField +{ + public CThostFtdcQryCombinationLegField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + /// + /// 单腿编号 + /// + public int LegID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _CombInstrumentID = new byte[81]; + /// + /// 组合合约代码 + /// + public string CombInstrumentID + { + get{ return GBKConvert.Instance.GetString(_CombInstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _CombInstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _LegInstrumentID = new byte[81]; + /// + /// 单腿合约代码 + /// + public string LegInstrumentID + { + get{ return GBKConvert.Instance.GetString(_LegInstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _LegInstrumentID); } + } +} +/// +/// 查询组合合约分腿 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySyncStatusField +{ + public CThostFtdcQrySyncStatusField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } +} +/// +/// 组合交易合约的单腿 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCombinationLegField +{ + public CThostFtdcCombinationLegField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + /// + /// 单腿编号 + /// + public int LegID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + public TThostFtdcDirectionType Direction; + /// + /// 单腿乘数 + /// + public int LegMultiple; + /// + /// 派生层数 + /// + public int ImplyLevel; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _CombInstrumentID = new byte[81]; + /// + /// 组合合约代码 + /// + public string CombInstrumentID + { + get{ return GBKConvert.Instance.GetString(_CombInstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _CombInstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _LegInstrumentID = new byte[81]; + /// + /// 单腿合约代码 + /// + public string LegInstrumentID + { + get{ return GBKConvert.Instance.GetString(_LegInstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _LegInstrumentID); } + } +} +/// +/// 数据同步状态 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncStatusField +{ + public CThostFtdcSyncStatusField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + public TThostFtdcDataSyncStatusType DataSyncStatus; +} +/// +/// 查询联系人 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryLinkManField +{ + public CThostFtdcQryLinkManField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } +} +/// +/// 联系人 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcLinkManField +{ + public CThostFtdcLinkManField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcPersonTypeType PersonType; + public TThostFtdcIdCardTypeType IdentifiedCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _PersonName = new byte[81]; + /// + /// 名称 + /// + public string PersonName + { + get{ return GBKConvert.Instance.GetString(_PersonName); } + set{ GBKConvert.Instance.GetBytes(value, _PersonName); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Telephone = new byte[41]; + /// + /// 联系电话 + /// + public string Telephone + { + get{ return GBKConvert.Instance.GetString(_Telephone); } + set{ GBKConvert.Instance.GetBytes(value, _Telephone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _Address = new byte[101]; + /// + /// 通讯地址 + /// + public string Address + { + get{ return GBKConvert.Instance.GetString(_Address); } + set{ GBKConvert.Instance.GetBytes(value, _Address); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _ZipCode = new byte[7]; + /// + /// 邮政编码 + /// + public string ZipCode + { + get{ return GBKConvert.Instance.GetString(_ZipCode); } + set{ GBKConvert.Instance.GetBytes(value, _ZipCode); } + } + /// + /// 优先级 + /// + public int Priority; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UOAZipCode = new byte[11]; + /// + /// 开户邮政编码 + /// + public string UOAZipCode + { + get{ return GBKConvert.Instance.GetString(_UOAZipCode); } + set{ GBKConvert.Instance.GetBytes(value, _UOAZipCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _PersonFullName = new byte[101]; + /// + /// 全称 + /// + public string PersonFullName + { + get{ return GBKConvert.Instance.GetString(_PersonFullName); } + set{ GBKConvert.Instance.GetBytes(value, _PersonFullName); } + } +} +/// +/// 查询经纪公司用户事件 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryBrokerUserEventField +{ + public CThostFtdcQryBrokerUserEventField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcUserEventTypeType UserEventType; +} +/// +/// 查询经纪公司用户事件 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBrokerUserEventField +{ + public CThostFtdcBrokerUserEventField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcUserEventTypeType UserEventType; + /// + /// 用户事件序号 + /// + public int EventSequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _EventDate = new byte[9]; + /// + /// 事件发生日期 + /// + public string EventDate + { + get{ return GBKConvert.Instance.GetString(_EventDate); } + set{ GBKConvert.Instance.GetBytes(value, _EventDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _EventTime = new byte[9]; + /// + /// 事件发生时间 + /// + public string EventTime + { + get{ return GBKConvert.Instance.GetString(_EventTime); } + set{ GBKConvert.Instance.GetBytes(value, _EventTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=1025)] + public readonly byte[] _UserEventInfo = new byte[1025]; + /// + /// 用户事件信息 + /// + public string UserEventInfo + { + get{ return GBKConvert.Instance.GetString(_UserEventInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserEventInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询签约银行请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryContractBankField +{ + public CThostFtdcQryContractBankField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBrchID = new byte[5]; + /// + /// 银行分中心代码 + /// + public string BankBrchID + { + get{ return GBKConvert.Instance.GetString(_BankBrchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBrchID); } + } +} +/// +/// 查询签约银行响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcContractBankField +{ + public CThostFtdcContractBankField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBrchID = new byte[5]; + /// + /// 银行分中心代码 + /// + public string BankBrchID + { + get{ return GBKConvert.Instance.GetString(_BankBrchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBrchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _BankName = new byte[101]; + /// + /// 银行名称 + /// + public string BankName + { + get{ return GBKConvert.Instance.GetString(_BankName); } + set{ GBKConvert.Instance.GetBytes(value, _BankName); } + } +} +/// +/// 投资者组合持仓明细 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInvestorPositionCombineDetailField +{ + public CThostFtdcInvestorPositionCombineDetailField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _OpenDate = new byte[9]; + /// + /// 开仓日期 + /// + public string OpenDate + { + get{ return GBKConvert.Instance.GetString(_OpenDate); } + set{ GBKConvert.Instance.GetBytes(value, _OpenDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ComTradeID = new byte[21]; + /// + /// 组合编号 + /// + public string ComTradeID + { + get{ return GBKConvert.Instance.GetString(_ComTradeID); } + set{ GBKConvert.Instance.GetBytes(value, _ComTradeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TradeID = new byte[21]; + /// + /// 撮合编号 + /// + public string TradeID + { + get{ return GBKConvert.Instance.GetString(_TradeID); } + set{ GBKConvert.Instance.GetBytes(value, _TradeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcDirectionType Direction; + /// + /// 持仓量 + /// + public int TotalAmt; + /// + /// 投资者保证金 + /// + public double Margin; + /// + /// 交易所保证金 + /// + public double ExchMargin; + /// + /// 保证金率 + /// + public double MarginRateByMoney; + /// + /// 保证金率(按手数) + /// + public double MarginRateByVolume; + /// + /// 单腿编号 + /// + public int LegID; + /// + /// 单腿乘数 + /// + public int LegMultiple; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + /// + /// 成交组号 + /// + public int TradeGroupID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _CombInstrumentID = new byte[81]; + /// + /// 组合持仓合约编码 + /// + public string CombInstrumentID + { + get{ return GBKConvert.Instance.GetString(_CombInstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _CombInstrumentID); } + } +} +/// +/// 预埋单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcParkedOrderField +{ + public CThostFtdcParkedOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderRef = new byte[13]; + /// + /// 报单引用 + /// + public string OrderRef + { + get{ return GBKConvert.Instance.GetString(_OrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _OrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcOrderPriceTypeType OrderPriceType; + public TThostFtdcDirectionType Direction; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombOffsetFlag = new byte[5]; + /// + /// 组合开平标志 + /// + public string CombOffsetFlag + { + get{ return GBKConvert.Instance.GetString(_CombOffsetFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombOffsetFlag); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombHedgeFlag = new byte[5]; + /// + /// 组合投机套保标志 + /// + public string CombHedgeFlag + { + get{ return GBKConvert.Instance.GetString(_CombHedgeFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombHedgeFlag); } + } + /// + /// 价格 + /// + public double LimitPrice; + /// + /// 数量 + /// + public int VolumeTotalOriginal; + public TThostFtdcTimeConditionType TimeCondition; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _GTDDate = new byte[9]; + /// + /// GTD日期 + /// + public string GTDDate + { + get{ return GBKConvert.Instance.GetString(_GTDDate); } + set{ GBKConvert.Instance.GetBytes(value, _GTDDate); } + } + public TThostFtdcVolumeConditionType VolumeCondition; + /// + /// 最小成交量 + /// + public int MinVolume; + public TThostFtdcContingentConditionType ContingentCondition; + /// + /// 止损价 + /// + public double StopPrice; + public TThostFtdcForceCloseReasonType ForceCloseReason; + /// + /// 自动挂起标志 + /// + public int IsAutoSuspend; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 用户强评标志 + /// + public int UserForceClose; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ParkedOrderID = new byte[13]; + /// + /// 预埋报单编号 + /// + public string ParkedOrderID + { + get{ return GBKConvert.Instance.GetString(_ParkedOrderID); } + set{ GBKConvert.Instance.GetBytes(value, _ParkedOrderID); } + } + public TThostFtdcUserTypeType UserType; + public TThostFtdcParkedOrderStatusType Status; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + /// + /// 互换单标志 + /// + public int IsSwapOrder; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 交易编码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 输入预埋单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcParkedOrderActionField +{ + public CThostFtdcParkedOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 报单操作引用 + /// + public int OrderActionRef; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderRef = new byte[13]; + /// + /// 报单引用 + /// + public string OrderRef + { + get{ return GBKConvert.Instance.GetString(_OrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _OrderRef); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + /// + /// 价格 + /// + public double LimitPrice; + /// + /// 数量变化 + /// + public int VolumeChange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ParkedOrderActionID = new byte[13]; + /// + /// 预埋撤单单编号 + /// + public string ParkedOrderActionID + { + get{ return GBKConvert.Instance.GetString(_ParkedOrderActionID); } + set{ GBKConvert.Instance.GetBytes(value, _ParkedOrderActionID); } + } + public TThostFtdcUserTypeType UserType; + public TThostFtdcParkedOrderStatusType Status; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询预埋单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryParkedOrderField +{ + public CThostFtdcQryParkedOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询预埋撤单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryParkedOrderActionField +{ + public CThostFtdcQryParkedOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 删除预埋单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRemoveParkedOrderField +{ + public CThostFtdcRemoveParkedOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ParkedOrderID = new byte[13]; + /// + /// 预埋报单编号 + /// + public string ParkedOrderID + { + get{ return GBKConvert.Instance.GetString(_ParkedOrderID); } + set{ GBKConvert.Instance.GetBytes(value, _ParkedOrderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } +} +/// +/// 删除预埋撤单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRemoveParkedOrderActionField +{ + public CThostFtdcRemoveParkedOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ParkedOrderActionID = new byte[13]; + /// + /// 预埋撤单编号 + /// + public string ParkedOrderActionID + { + get{ return GBKConvert.Instance.GetString(_ParkedOrderActionID); } + set{ GBKConvert.Instance.GetBytes(value, _ParkedOrderActionID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } +} +/// +/// 经纪公司可提资金算法表 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInvestorWithdrawAlgorithmField +{ + public CThostFtdcInvestorWithdrawAlgorithmField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 可提资金比例 + /// + public double UsingRatio; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 货币质押比率 + /// + public double FundMortgageRatio; +} +/// +/// 查询组合持仓明细 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInvestorPositionCombineDetailField +{ + public CThostFtdcQryInvestorPositionCombineDetailField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _CombInstrumentID = new byte[81]; + /// + /// 组合持仓合约编码 + /// + public string CombInstrumentID + { + get{ return GBKConvert.Instance.GetString(_CombInstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _CombInstrumentID); } + } +} +/// +/// 成交均价 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarketDataAveragePriceField +{ + public CThostFtdcMarketDataAveragePriceField() {} + /// + /// 当日均价 + /// + public double AveragePrice; +} +/// +/// 校验投资者密码 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcVerifyInvestorPasswordField +{ + public CThostFtdcVerifyInvestorPasswordField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } +} +/// +/// 用户IP +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcUserIPField +{ + public CThostFtdcUserIPField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPMask = new byte[33]; + /// + /// IP地址掩码 + /// + public string IPMask + { + get{ return GBKConvert.Instance.GetString(_IPMask); } + set{ GBKConvert.Instance.GetBytes(value, _IPMask); } + } +} +/// +/// 用户事件通知信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTradingNoticeInfoField +{ + public CThostFtdcTradingNoticeInfoField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _SendTime = new byte[9]; + /// + /// 发送时间 + /// + public string SendTime + { + get{ return GBKConvert.Instance.GetString(_SendTime); } + set{ GBKConvert.Instance.GetBytes(value, _SendTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=501)] + public readonly byte[] _FieldContent = new byte[501]; + /// + /// 消息正文 + /// + public string FieldContent + { + get{ return GBKConvert.Instance.GetString(_FieldContent); } + set{ GBKConvert.Instance.GetBytes(value, _FieldContent); } + } + /// + /// 序列系列号 + /// + public short SequenceSeries; + /// + /// 序列号 + /// + public int SequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } +} +/// +/// 用户事件通知 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTradingNoticeField +{ + public CThostFtdcTradingNoticeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 序列系列号 + /// + public short SequenceSeries; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _SendTime = new byte[9]; + /// + /// 发送时间 + /// + public string SendTime + { + get{ return GBKConvert.Instance.GetString(_SendTime); } + set{ GBKConvert.Instance.GetBytes(value, _SendTime); } + } + /// + /// 序列号 + /// + public int SequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=501)] + public readonly byte[] _FieldContent = new byte[501]; + /// + /// 消息正文 + /// + public string FieldContent + { + get{ return GBKConvert.Instance.GetString(_FieldContent); } + set{ GBKConvert.Instance.GetBytes(value, _FieldContent); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } +} +/// +/// 查询交易事件通知 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryTradingNoticeField +{ + public CThostFtdcQryTradingNoticeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } +} +/// +/// 查询错误报单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryErrOrderField +{ + public CThostFtdcQryErrOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } +} +/// +/// 错误报单 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcErrOrderField +{ + public CThostFtdcErrOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderRef = new byte[13]; + /// + /// 报单引用 + /// + public string OrderRef + { + get{ return GBKConvert.Instance.GetString(_OrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _OrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcOrderPriceTypeType OrderPriceType; + public TThostFtdcDirectionType Direction; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombOffsetFlag = new byte[5]; + /// + /// 组合开平标志 + /// + public string CombOffsetFlag + { + get{ return GBKConvert.Instance.GetString(_CombOffsetFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombOffsetFlag); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombHedgeFlag = new byte[5]; + /// + /// 组合投机套保标志 + /// + public string CombHedgeFlag + { + get{ return GBKConvert.Instance.GetString(_CombHedgeFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombHedgeFlag); } + } + /// + /// 价格 + /// + public double LimitPrice; + /// + /// 数量 + /// + public int VolumeTotalOriginal; + public TThostFtdcTimeConditionType TimeCondition; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _GTDDate = new byte[9]; + /// + /// GTD日期 + /// + public string GTDDate + { + get{ return GBKConvert.Instance.GetString(_GTDDate); } + set{ GBKConvert.Instance.GetBytes(value, _GTDDate); } + } + public TThostFtdcVolumeConditionType VolumeCondition; + /// + /// 最小成交量 + /// + public int MinVolume; + public TThostFtdcContingentConditionType ContingentCondition; + /// + /// 止损价 + /// + public double StopPrice; + public TThostFtdcForceCloseReasonType ForceCloseReason; + /// + /// 自动挂起标志 + /// + public int IsAutoSuspend; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 用户强评标志 + /// + public int UserForceClose; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + /// + /// 互换单标志 + /// + public int IsSwapOrder; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 交易编码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询错误报单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcErrorConditionalOrderField +{ + public CThostFtdcErrorConditionalOrderField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderRef = new byte[13]; + /// + /// 报单引用 + /// + public string OrderRef + { + get{ return GBKConvert.Instance.GetString(_OrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _OrderRef); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcOrderPriceTypeType OrderPriceType; + public TThostFtdcDirectionType Direction; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombOffsetFlag = new byte[5]; + /// + /// 组合开平标志 + /// + public string CombOffsetFlag + { + get{ return GBKConvert.Instance.GetString(_CombOffsetFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombOffsetFlag); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombHedgeFlag = new byte[5]; + /// + /// 组合投机套保标志 + /// + public string CombHedgeFlag + { + get{ return GBKConvert.Instance.GetString(_CombHedgeFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombHedgeFlag); } + } + /// + /// 价格 + /// + public double LimitPrice; + /// + /// 数量 + /// + public int VolumeTotalOriginal; + public TThostFtdcTimeConditionType TimeCondition; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _GTDDate = new byte[9]; + /// + /// GTD日期 + /// + public string GTDDate + { + get{ return GBKConvert.Instance.GetString(_GTDDate); } + set{ GBKConvert.Instance.GetBytes(value, _GTDDate); } + } + public TThostFtdcVolumeConditionType VolumeCondition; + /// + /// 最小成交量 + /// + public int MinVolume; + public TThostFtdcContingentConditionType ContingentCondition; + /// + /// 止损价 + /// + public double StopPrice; + public TThostFtdcForceCloseReasonType ForceCloseReason; + /// + /// 自动挂起标志 + /// + public int IsAutoSuspend; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderLocalID = new byte[13]; + /// + /// 本地报单编号 + /// + public string OrderLocalID + { + get{ return GBKConvert.Instance.GetString(_OrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcOrderSubmitStatusType OrderSubmitStatus; + /// + /// 报单提示序号 + /// + public int NotifySequence; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + public TThostFtdcOrderSourceType OrderSource; + public TThostFtdcOrderStatusType OrderStatus; + public TThostFtdcOrderTypeType OrderType; + /// + /// 今成交数量 + /// + public int VolumeTraded; + /// + /// 剩余数量 + /// + public int VolumeTotal; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertDate = new byte[9]; + /// + /// 报单日期 + /// + public string InsertDate + { + get{ return GBKConvert.Instance.GetString(_InsertDate); } + set{ GBKConvert.Instance.GetBytes(value, _InsertDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _InsertTime = new byte[9]; + /// + /// 委托时间 + /// + public string InsertTime + { + get{ return GBKConvert.Instance.GetString(_InsertTime); } + set{ GBKConvert.Instance.GetBytes(value, _InsertTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActiveTime = new byte[9]; + /// + /// 激活时间 + /// + public string ActiveTime + { + get{ return GBKConvert.Instance.GetString(_ActiveTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActiveTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _SuspendTime = new byte[9]; + /// + /// 挂起时间 + /// + public string SuspendTime + { + get{ return GBKConvert.Instance.GetString(_SuspendTime); } + set{ GBKConvert.Instance.GetBytes(value, _SuspendTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _UpdateTime = new byte[9]; + /// + /// 最后修改时间 + /// + public string UpdateTime + { + get{ return GBKConvert.Instance.GetString(_UpdateTime); } + set{ GBKConvert.Instance.GetBytes(value, _UpdateTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CancelTime = new byte[9]; + /// + /// 撤销时间 + /// + public string CancelTime + { + get{ return GBKConvert.Instance.GetString(_CancelTime); } + set{ GBKConvert.Instance.GetBytes(value, _CancelTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ActiveTraderID = new byte[21]; + /// + /// 最后修改交易所交易员代码 + /// + public string ActiveTraderID + { + get{ return GBKConvert.Instance.GetString(_ActiveTraderID); } + set{ GBKConvert.Instance.GetBytes(value, _ActiveTraderID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClearingPartID = new byte[11]; + /// + /// 结算会员编号 + /// + public string ClearingPartID + { + get{ return GBKConvert.Instance.GetString(_ClearingPartID); } + set{ GBKConvert.Instance.GetBytes(value, _ClearingPartID); } + } + /// + /// 序号 + /// + public int SequenceNo; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + /// + /// 用户强评标志 + /// + public int UserForceClose; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _ActiveUserID = new byte[16]; + /// + /// 操作用户代码 + /// + public string ActiveUserID + { + get{ return GBKConvert.Instance.GetString(_ActiveUserID); } + set{ GBKConvert.Instance.GetBytes(value, _ActiveUserID); } + } + /// + /// 经纪公司报单编号 + /// + public int BrokerOrderSeq; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _RelativeOrderSysID = new byte[21]; + /// + /// 相关报单 + /// + public string RelativeOrderSysID + { + get{ return GBKConvert.Instance.GetString(_RelativeOrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _RelativeOrderSysID); } + } + /// + /// 郑商所成交数量 + /// + public int ZCETotalTradedVolume; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + /// + /// 互换单标志 + /// + public int IsSwapOrder; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve3 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve3 + { + get{ return GBKConvert.Instance.GetString(_reserve3); } + set{ GBKConvert.Instance.GetBytes(value, _reserve3); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询错误报单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryErrOrderActionField +{ + public CThostFtdcQryErrOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } +} +/// +/// 错误报单操作 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcErrOrderActionField +{ + public CThostFtdcErrOrderActionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 报单操作引用 + /// + public int OrderActionRef; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderRef = new byte[13]; + /// + /// 报单引用 + /// + public string OrderRef + { + get{ return GBKConvert.Instance.GetString(_OrderRef); } + set{ GBKConvert.Instance.GetBytes(value, _OrderRef); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 前置编号 + /// + public int FrontID; + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _OrderSysID = new byte[21]; + /// + /// 报单编号 + /// + public string OrderSysID + { + get{ return GBKConvert.Instance.GetString(_OrderSysID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderSysID); } + } + public TThostFtdcActionFlagType ActionFlag; + /// + /// 价格 + /// + public double LimitPrice; + /// + /// 数量变化 + /// + public int VolumeChange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDate = new byte[9]; + /// + /// 操作日期 + /// + public string ActionDate + { + get{ return GBKConvert.Instance.GetString(_ActionDate); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionTime = new byte[9]; + /// + /// 操作时间 + /// + public string ActionTime + { + get{ return GBKConvert.Instance.GetString(_ActionTime); } + set{ GBKConvert.Instance.GetBytes(value, _ActionTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TraderID = new byte[21]; + /// + /// 交易所交易员代码 + /// + public string TraderID + { + get{ return GBKConvert.Instance.GetString(_TraderID); } + set{ GBKConvert.Instance.GetBytes(value, _TraderID); } + } + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _OrderLocalID = new byte[13]; + /// + /// 本地报单编号 + /// + public string OrderLocalID + { + get{ return GBKConvert.Instance.GetString(_OrderLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _OrderLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _ActionLocalID = new byte[13]; + /// + /// 操作本地编号 + /// + public string ActionLocalID + { + get{ return GBKConvert.Instance.GetString(_ActionLocalID); } + set{ GBKConvert.Instance.GetBytes(value, _ActionLocalID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ClientID = new byte[11]; + /// + /// 客户代码 + /// + public string ClientID + { + get{ return GBKConvert.Instance.GetString(_ClientID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _BusinessUnit = new byte[21]; + /// + /// 业务单元 + /// + public string BusinessUnit + { + get{ return GBKConvert.Instance.GetString(_BusinessUnit); } + set{ GBKConvert.Instance.GetBytes(value, _BusinessUnit); } + } + public TThostFtdcOrderActionStatusType OrderActionStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _StatusMsg = new byte[81]; + /// + /// 状态信息 + /// + public string StatusMsg + { + get{ return GBKConvert.Instance.GetString(_StatusMsg); } + set{ GBKConvert.Instance.GetBytes(value, _StatusMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BranchID = new byte[9]; + /// + /// 营业部编号 + /// + public string BranchID + { + get{ return GBKConvert.Instance.GetString(_BranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve2 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询交易所状态 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryExchangeSequenceField +{ + public CThostFtdcQryExchangeSequenceField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } +} +/// +/// 交易所状态 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcExchangeSequenceField +{ + public CThostFtdcExchangeSequenceField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 序号 + /// + public int SequenceNo; + public TThostFtdcInstrumentStatusType MarketStatus; +} +/// +/// 根据价格查询最大报单数量 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryMaxOrderVolumeWithPriceField +{ + public CThostFtdcQryMaxOrderVolumeWithPriceField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcDirectionType Direction; + public TThostFtdcOffsetFlagType OffsetFlag; + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 最大允许报单数量 + /// + public int MaxVolume; + /// + /// 报单价格 + /// + public double Price; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询经纪公司交易参数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryBrokerTradingParamsField +{ + public CThostFtdcQryBrokerTradingParamsField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } +} +/// +/// 经纪公司交易参数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBrokerTradingParamsField +{ + public CThostFtdcBrokerTradingParamsField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcMarginPriceTypeType MarginPriceType; + public TThostFtdcAlgorithmType Algorithm; + public TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + public TThostFtdcOptionRoyaltyPriceTypeType OptionRoyaltyPriceType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } +} +/// +/// 查询经纪公司交易算法 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryBrokerTradingAlgosField +{ + public CThostFtdcQryBrokerTradingAlgosField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 经纪公司交易算法 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBrokerTradingAlgosField +{ + public CThostFtdcBrokerTradingAlgosField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcHandlePositionAlgoIDType HandlePositionAlgoID; + public TThostFtdcFindMarginRateAlgoIDType FindMarginRateAlgoID; + public TThostFtdcHandleTradingAccountAlgoIDType HandleTradingAccountAlgoID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询经纪公司资金 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQueryBrokerDepositField +{ + public CThostFtdcQueryBrokerDepositField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } +} +/// +/// 经纪公司资金 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBrokerDepositField +{ + public CThostFtdcBrokerDepositField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 会员代码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 上次结算准备金 + /// + public double PreBalance; + /// + /// 当前保证金总额 + /// + public double CurrMargin; + /// + /// 平仓盈亏 + /// + public double CloseProfit; + /// + /// 期货结算准备金 + /// + public double Balance; + /// + /// 入金金额 + /// + public double Deposit; + /// + /// 出金金额 + /// + public double Withdraw; + /// + /// 可提资金 + /// + public double Available; + /// + /// 基本准备金 + /// + public double Reserve; + /// + /// 冻结的保证金 + /// + public double FrozenMargin; +} +/// +/// 查询保证金监管系统经纪公司密钥 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryCFMMCBrokerKeyField +{ + public CThostFtdcQryCFMMCBrokerKeyField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } +} +/// +/// 保证金监管系统经纪公司密钥 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCFMMCBrokerKeyField +{ + public CThostFtdcCFMMCBrokerKeyField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 经纪公司统一编码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CreateDate = new byte[9]; + /// + /// 密钥生成日期 + /// + public string CreateDate + { + get{ return GBKConvert.Instance.GetString(_CreateDate); } + set{ GBKConvert.Instance.GetBytes(value, _CreateDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CreateTime = new byte[9]; + /// + /// 密钥生成时间 + /// + public string CreateTime + { + get{ return GBKConvert.Instance.GetString(_CreateTime); } + set{ GBKConvert.Instance.GetBytes(value, _CreateTime); } + } + /// + /// 密钥编号 + /// + public int KeyID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _CurrentKey = new byte[21]; + /// + /// 动态密钥 + /// + public string CurrentKey + { + get{ return GBKConvert.Instance.GetString(_CurrentKey); } + set{ GBKConvert.Instance.GetBytes(value, _CurrentKey); } + } + public TThostFtdcCFMMCKeyKindType KeyKind; +} +/// +/// 保证金监管系统经纪公司资金账户密钥 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCFMMCTradingAccountKeyField +{ + public CThostFtdcCFMMCTradingAccountKeyField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 经纪公司统一编码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + /// + /// 密钥编号 + /// + public int KeyID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _CurrentKey = new byte[21]; + /// + /// 动态密钥 + /// + public string CurrentKey + { + get{ return GBKConvert.Instance.GetString(_CurrentKey); } + set{ GBKConvert.Instance.GetBytes(value, _CurrentKey); } + } +} +/// +/// 请求查询保证金监管系统经纪公司资金账户密钥 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryCFMMCTradingAccountKeyField +{ + public CThostFtdcQryCFMMCTradingAccountKeyField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } +} +/// +/// 用户动态令牌参数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBrokerUserOTPParamField +{ + public CThostFtdcBrokerUserOTPParamField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=2)] + public readonly byte[] _OTPVendorsID = new byte[2]; + /// + /// 动态令牌提供商 + /// + public string OTPVendorsID + { + get{ return GBKConvert.Instance.GetString(_OTPVendorsID); } + set{ GBKConvert.Instance.GetBytes(value, _OTPVendorsID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _SerialNumber = new byte[17]; + /// + /// 动态令牌序列号 + /// + public string SerialNumber + { + get{ return GBKConvert.Instance.GetString(_SerialNumber); } + set{ GBKConvert.Instance.GetBytes(value, _SerialNumber); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _AuthKey = new byte[41]; + /// + /// 令牌密钥 + /// + public string AuthKey + { + get{ return GBKConvert.Instance.GetString(_AuthKey); } + set{ GBKConvert.Instance.GetBytes(value, _AuthKey); } + } + /// + /// 漂移值 + /// + public int LastDrift; + /// + /// 成功值 + /// + public int LastSuccess; + public TThostFtdcOTPTypeType OTPType; +} +/// +/// 手工同步用户动态令牌 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcManualSyncBrokerUserOTPField +{ + public CThostFtdcManualSyncBrokerUserOTPField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcOTPTypeType OTPType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _FirstOTP = new byte[41]; + /// + /// 第一个动态密码 + /// + public string FirstOTP + { + get{ return GBKConvert.Instance.GetString(_FirstOTP); } + set{ GBKConvert.Instance.GetBytes(value, _FirstOTP); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _SecondOTP = new byte[41]; + /// + /// 第二个动态密码 + /// + public string SecondOTP + { + get{ return GBKConvert.Instance.GetString(_SecondOTP); } + set{ GBKConvert.Instance.GetBytes(value, _SecondOTP); } + } +} +/// +/// 投资者手续费率模板 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCommRateModelField +{ + public CThostFtdcCommRateModelField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _CommModelID = new byte[13]; + /// + /// 手续费率模板代码 + /// + public string CommModelID + { + get{ return GBKConvert.Instance.GetString(_CommModelID); } + set{ GBKConvert.Instance.GetBytes(value, _CommModelID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _CommModelName = new byte[161]; + /// + /// 模板名称 + /// + public string CommModelName + { + get{ return GBKConvert.Instance.GetString(_CommModelName); } + set{ GBKConvert.Instance.GetBytes(value, _CommModelName); } + } +} +/// +/// 请求查询投资者手续费率模板 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryCommRateModelField +{ + public CThostFtdcQryCommRateModelField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _CommModelID = new byte[13]; + /// + /// 手续费率模板代码 + /// + public string CommModelID + { + get{ return GBKConvert.Instance.GetString(_CommModelID); } + set{ GBKConvert.Instance.GetBytes(value, _CommModelID); } + } +} +/// +/// 投资者保证金率模板 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMarginModelField +{ + public CThostFtdcMarginModelField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _MarginModelID = new byte[13]; + /// + /// 保证金率模板代码 + /// + public string MarginModelID + { + get{ return GBKConvert.Instance.GetString(_MarginModelID); } + set{ GBKConvert.Instance.GetBytes(value, _MarginModelID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _MarginModelName = new byte[161]; + /// + /// 模板名称 + /// + public string MarginModelName + { + get{ return GBKConvert.Instance.GetString(_MarginModelName); } + set{ GBKConvert.Instance.GetBytes(value, _MarginModelName); } + } +} +/// +/// 请求查询投资者保证金率模板 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryMarginModelField +{ + public CThostFtdcQryMarginModelField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _MarginModelID = new byte[13]; + /// + /// 保证金率模板代码 + /// + public string MarginModelID + { + get{ return GBKConvert.Instance.GetString(_MarginModelID); } + set{ GBKConvert.Instance.GetBytes(value, _MarginModelID); } + } +} +/// +/// 仓单折抵信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcEWarrantOffsetField +{ + public CThostFtdcEWarrantOffsetField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcDirectionType Direction; + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 数量 + /// + public int Volume; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询仓单折抵信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryEWarrantOffsetField +{ + public CThostFtdcQryEWarrantOffsetField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 查询投资者品种/跨品种保证金 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInvestorProductGroupMarginField +{ + public CThostFtdcQryInvestorProductGroupMarginField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductGroupID = new byte[81]; + /// + /// 品种/跨品种标示 + /// + public string ProductGroupID + { + get{ return GBKConvert.Instance.GetString(_ProductGroupID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductGroupID); } + } +} +/// +/// 投资者品种/跨品种保证金 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInvestorProductGroupMarginField +{ + public CThostFtdcInvestorProductGroupMarginField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + /// + /// 冻结的保证金 + /// + public double FrozenMargin; + /// + /// 多头冻结的保证金 + /// + public double LongFrozenMargin; + /// + /// 空头冻结的保证金 + /// + public double ShortFrozenMargin; + /// + /// 占用的保证金 + /// + public double UseMargin; + /// + /// 多头保证金 + /// + public double LongUseMargin; + /// + /// 空头保证金 + /// + public double ShortUseMargin; + /// + /// 交易所保证金 + /// + public double ExchMargin; + /// + /// 交易所多头保证金 + /// + public double LongExchMargin; + /// + /// 交易所空头保证金 + /// + public double ShortExchMargin; + /// + /// 平仓盈亏 + /// + public double CloseProfit; + /// + /// 冻结的手续费 + /// + public double FrozenCommission; + /// + /// 手续费 + /// + public double Commission; + /// + /// 冻结的资金 + /// + public double FrozenCash; + /// + /// 资金差额 + /// + public double CashIn; + /// + /// 持仓盈亏 + /// + public double PositionProfit; + /// + /// 折抵总金额 + /// + public double OffsetAmount; + /// + /// 多头折抵总金额 + /// + public double LongOffsetAmount; + /// + /// 空头折抵总金额 + /// + public double ShortOffsetAmount; + /// + /// 交易所折抵总金额 + /// + public double ExchOffsetAmount; + /// + /// 交易所多头折抵总金额 + /// + public double LongExchOffsetAmount; + /// + /// 交易所空头折抵总金额 + /// + public double ShortExchOffsetAmount; + public TThostFtdcHedgeFlagType HedgeFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductGroupID = new byte[81]; + /// + /// 品种/跨品种标示 + /// + public string ProductGroupID + { + get{ return GBKConvert.Instance.GetString(_ProductGroupID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductGroupID); } + } +} +/// +/// 查询监控中心用户令牌 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQueryCFMMCTradingAccountTokenField +{ + public CThostFtdcQueryCFMMCTradingAccountTokenField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } +} +/// +/// 监控中心用户令牌 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCFMMCTradingAccountTokenField +{ + public CThostFtdcCFMMCTradingAccountTokenField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ParticipantID = new byte[11]; + /// + /// 经纪公司统一编码 + /// + public string ParticipantID + { + get{ return GBKConvert.Instance.GetString(_ParticipantID); } + set{ GBKConvert.Instance.GetBytes(value, _ParticipantID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + /// + /// 密钥编号 + /// + public int KeyID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _Token = new byte[21]; + /// + /// 动态令牌 + /// + public string Token + { + get{ return GBKConvert.Instance.GetString(_Token); } + set{ GBKConvert.Instance.GetBytes(value, _Token); } + } +} +/// +/// 查询产品组 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryProductGroupField +{ + public CThostFtdcQryProductGroupField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } +} +/// +/// 投资者品种/跨品种保证金产品组 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcProductGroupField +{ + public CThostFtdcProductGroupField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve2 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve2 + { + get{ return GBKConvert.Instance.GetString(_reserve2); } + set{ GBKConvert.Instance.GetBytes(value, _reserve2); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductGroupID = new byte[81]; + /// + /// 产品组代码 + /// + public string ProductGroupID + { + get{ return GBKConvert.Instance.GetString(_ProductGroupID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductGroupID); } + } +} +/// +/// 交易所公告 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBulletinField +{ + public CThostFtdcBulletinField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 公告编号 + /// + public int BulletinID; + /// + /// 序列号 + /// + public int SequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _NewsType = new byte[3]; + /// + /// 公告类型 + /// + public string NewsType + { + get{ return GBKConvert.Instance.GetString(_NewsType); } + set{ GBKConvert.Instance.GetBytes(value, _NewsType); } + } + /// + /// 紧急程度 + /// + public byte NewsUrgency; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _SendTime = new byte[9]; + /// + /// 发送时间 + /// + public string SendTime + { + get{ return GBKConvert.Instance.GetString(_SendTime); } + set{ GBKConvert.Instance.GetBytes(value, _SendTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _Abstract = new byte[81]; + /// + /// 消息摘要 + /// + public string Abstract + { + get{ return GBKConvert.Instance.GetString(_Abstract); } + set{ GBKConvert.Instance.GetBytes(value, _Abstract); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ComeFrom = new byte[21]; + /// + /// 消息来源 + /// + public string ComeFrom + { + get{ return GBKConvert.Instance.GetString(_ComeFrom); } + set{ GBKConvert.Instance.GetBytes(value, _ComeFrom); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=501)] + public readonly byte[] _Content = new byte[501]; + /// + /// 消息正文 + /// + public string Content + { + get{ return GBKConvert.Instance.GetString(_Content); } + set{ GBKConvert.Instance.GetBytes(value, _Content); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=201)] + public readonly byte[] _URLLink = new byte[201]; + /// + /// WEB地址 + /// + public string URLLink + { + get{ return GBKConvert.Instance.GetString(_URLLink); } + set{ GBKConvert.Instance.GetBytes(value, _URLLink); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _MarketID = new byte[31]; + /// + /// 市场代码 + /// + public string MarketID + { + get{ return GBKConvert.Instance.GetString(_MarketID); } + set{ GBKConvert.Instance.GetBytes(value, _MarketID); } + } +} +/// +/// 查询交易所公告 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryBulletinField +{ + public CThostFtdcQryBulletinField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 公告编号 + /// + public int BulletinID; + /// + /// 序列号 + /// + public int SequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _NewsType = new byte[3]; + /// + /// 公告类型 + /// + public string NewsType + { + get{ return GBKConvert.Instance.GetString(_NewsType); } + set{ GBKConvert.Instance.GetBytes(value, _NewsType); } + } + /// + /// 紧急程度 + /// + public byte NewsUrgency; +} +/// +/// MulticastInstrument +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcMulticastInstrumentField +{ + public CThostFtdcMulticastInstrumentField() {} + /// + /// 主题号 + /// + public int TopicID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + /// + /// 合约编号 + /// + public int InstrumentNo; + /// + /// 基准价 + /// + public double CodePrice; + /// + /// 合约数量乘数 + /// + public int VolumeMultiple; + /// + /// 最小变动价位 + /// + public double PriceTick; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// QryMulticastInstrument +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryMulticastInstrumentField +{ + public CThostFtdcQryMulticastInstrumentField() {} + /// + /// 主题号 + /// + public int TopicID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _reserve1 = new byte[31]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// App客户端权限分配 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcAppIDAuthAssignField +{ + public CThostFtdcAppIDAuthAssignField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _AppID = new byte[33]; + /// + /// App代码 + /// + public string AppID + { + get{ return GBKConvert.Instance.GetString(_AppID); } + set{ GBKConvert.Instance.GetBytes(value, _AppID); } + } + /// + /// 交易中心代码 + /// + public int DRIdentityID; +} +/// +/// 转帐开户请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqOpenAccountField +{ + public CThostFtdcReqOpenAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcGenderType Gender; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _CountryCode = new byte[21]; + /// + /// 国家代码 + /// + public string CountryCode + { + get{ return GBKConvert.Instance.GetString(_CountryCode); } + set{ GBKConvert.Instance.GetBytes(value, _CountryCode); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _Address = new byte[101]; + /// + /// 地址 + /// + public string Address + { + get{ return GBKConvert.Instance.GetString(_Address); } + set{ GBKConvert.Instance.GetBytes(value, _Address); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _ZipCode = new byte[7]; + /// + /// 邮编 + /// + public string ZipCode + { + get{ return GBKConvert.Instance.GetString(_ZipCode); } + set{ GBKConvert.Instance.GetBytes(value, _ZipCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Telephone = new byte[41]; + /// + /// 电话号码 + /// + public string Telephone + { + get{ return GBKConvert.Instance.GetString(_Telephone); } + set{ GBKConvert.Instance.GetBytes(value, _Telephone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MobilePhone = new byte[21]; + /// + /// 手机 + /// + public string MobilePhone + { + get{ return GBKConvert.Instance.GetString(_MobilePhone); } + set{ GBKConvert.Instance.GetBytes(value, _MobilePhone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Fax = new byte[41]; + /// + /// 传真 + /// + public string Fax + { + get{ return GBKConvert.Instance.GetString(_Fax); } + set{ GBKConvert.Instance.GetBytes(value, _Fax); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _EMail = new byte[41]; + /// + /// 电子邮件 + /// + public string EMail + { + get{ return GBKConvert.Instance.GetString(_EMail); } + set{ GBKConvert.Instance.GetBytes(value, _EMail); } + } + public TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + public TThostFtdcCashExchangeCodeType CashExchangeCode; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + public TThostFtdcBankAccTypeType BankSecuAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankSecuAcc = new byte[41]; + /// + /// 期货单位帐号 + /// + public string BankSecuAcc + { + get{ return GBKConvert.Instance.GetString(_BankSecuAcc); } + set{ GBKConvert.Instance.GetBytes(value, _BankSecuAcc); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 交易ID + /// + public int TID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 转帐销户请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqCancelAccountField +{ + public CThostFtdcReqCancelAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcGenderType Gender; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _CountryCode = new byte[21]; + /// + /// 国家代码 + /// + public string CountryCode + { + get{ return GBKConvert.Instance.GetString(_CountryCode); } + set{ GBKConvert.Instance.GetBytes(value, _CountryCode); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _Address = new byte[101]; + /// + /// 地址 + /// + public string Address + { + get{ return GBKConvert.Instance.GetString(_Address); } + set{ GBKConvert.Instance.GetBytes(value, _Address); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _ZipCode = new byte[7]; + /// + /// 邮编 + /// + public string ZipCode + { + get{ return GBKConvert.Instance.GetString(_ZipCode); } + set{ GBKConvert.Instance.GetBytes(value, _ZipCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Telephone = new byte[41]; + /// + /// 电话号码 + /// + public string Telephone + { + get{ return GBKConvert.Instance.GetString(_Telephone); } + set{ GBKConvert.Instance.GetBytes(value, _Telephone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MobilePhone = new byte[21]; + /// + /// 手机 + /// + public string MobilePhone + { + get{ return GBKConvert.Instance.GetString(_MobilePhone); } + set{ GBKConvert.Instance.GetBytes(value, _MobilePhone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Fax = new byte[41]; + /// + /// 传真 + /// + public string Fax + { + get{ return GBKConvert.Instance.GetString(_Fax); } + set{ GBKConvert.Instance.GetBytes(value, _Fax); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _EMail = new byte[41]; + /// + /// 电子邮件 + /// + public string EMail + { + get{ return GBKConvert.Instance.GetString(_EMail); } + set{ GBKConvert.Instance.GetBytes(value, _EMail); } + } + public TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + public TThostFtdcCashExchangeCodeType CashExchangeCode; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + public TThostFtdcBankAccTypeType BankSecuAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankSecuAcc = new byte[41]; + /// + /// 期货单位帐号 + /// + public string BankSecuAcc + { + get{ return GBKConvert.Instance.GetString(_BankSecuAcc); } + set{ GBKConvert.Instance.GetBytes(value, _BankSecuAcc); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 交易ID + /// + public int TID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 变更银行账户请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqChangeAccountField +{ + public CThostFtdcReqChangeAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcGenderType Gender; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _CountryCode = new byte[21]; + /// + /// 国家代码 + /// + public string CountryCode + { + get{ return GBKConvert.Instance.GetString(_CountryCode); } + set{ GBKConvert.Instance.GetBytes(value, _CountryCode); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _Address = new byte[101]; + /// + /// 地址 + /// + public string Address + { + get{ return GBKConvert.Instance.GetString(_Address); } + set{ GBKConvert.Instance.GetBytes(value, _Address); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _ZipCode = new byte[7]; + /// + /// 邮编 + /// + public string ZipCode + { + get{ return GBKConvert.Instance.GetString(_ZipCode); } + set{ GBKConvert.Instance.GetBytes(value, _ZipCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Telephone = new byte[41]; + /// + /// 电话号码 + /// + public string Telephone + { + get{ return GBKConvert.Instance.GetString(_Telephone); } + set{ GBKConvert.Instance.GetBytes(value, _Telephone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MobilePhone = new byte[21]; + /// + /// 手机 + /// + public string MobilePhone + { + get{ return GBKConvert.Instance.GetString(_MobilePhone); } + set{ GBKConvert.Instance.GetBytes(value, _MobilePhone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Fax = new byte[41]; + /// + /// 传真 + /// + public string Fax + { + get{ return GBKConvert.Instance.GetString(_Fax); } + set{ GBKConvert.Instance.GetBytes(value, _Fax); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _EMail = new byte[41]; + /// + /// 电子邮件 + /// + public string EMail + { + get{ return GBKConvert.Instance.GetString(_EMail); } + set{ GBKConvert.Instance.GetBytes(value, _EMail); } + } + public TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _NewBankAccount = new byte[41]; + /// + /// 新银行帐号 + /// + public string NewBankAccount + { + get{ return GBKConvert.Instance.GetString(_NewBankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _NewBankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _NewBankPassWord = new byte[41]; + /// + /// 新银行密码 + /// + public string NewBankPassWord + { + get{ return GBKConvert.Instance.GetString(_NewBankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _NewBankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + public TThostFtdcBankAccTypeType BankAccType; + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + /// + /// 交易ID + /// + public int TID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 转账请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqTransferField +{ + public CThostFtdcReqTransferField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 安装编号 + /// + public int InstallID; + /// + /// 期货公司流水号 + /// + public int FutureSerial; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 转帐金额 + /// + public double TradeAmount; + /// + /// 期货可取金额 + /// + public double FutureFetchAmount; + public TThostFtdcFeePayFlagType FeePayFlag; + /// + /// 应收客户费用 + /// + public double CustFee; + /// + /// 应收期货公司费用 + /// + public double BrokerFee; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _Message = new byte[129]; + /// + /// 发送方给接收方的消息 + /// + public string Message + { + get{ return GBKConvert.Instance.GetString(_Message); } + set{ GBKConvert.Instance.GetBytes(value, _Message); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + public TThostFtdcBankAccTypeType BankSecuAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankSecuAcc = new byte[41]; + /// + /// 期货单位帐号 + /// + public string BankSecuAcc + { + get{ return GBKConvert.Instance.GetString(_BankSecuAcc); } + set{ GBKConvert.Instance.GetBytes(value, _BankSecuAcc); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + public TThostFtdcTransferStatusType TransferStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 银行发起银行资金转期货响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspTransferField +{ + public CThostFtdcRspTransferField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 安装编号 + /// + public int InstallID; + /// + /// 期货公司流水号 + /// + public int FutureSerial; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 转帐金额 + /// + public double TradeAmount; + /// + /// 期货可取金额 + /// + public double FutureFetchAmount; + public TThostFtdcFeePayFlagType FeePayFlag; + /// + /// 应收客户费用 + /// + public double CustFee; + /// + /// 应收期货公司费用 + /// + public double BrokerFee; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _Message = new byte[129]; + /// + /// 发送方给接收方的消息 + /// + public string Message + { + get{ return GBKConvert.Instance.GetString(_Message); } + set{ GBKConvert.Instance.GetBytes(value, _Message); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + public TThostFtdcBankAccTypeType BankSecuAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankSecuAcc = new byte[41]; + /// + /// 期货单位帐号 + /// + public string BankSecuAcc + { + get{ return GBKConvert.Instance.GetString(_BankSecuAcc); } + set{ GBKConvert.Instance.GetBytes(value, _BankSecuAcc); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + public TThostFtdcTransferStatusType TransferStatus; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 冲正请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqRepealField +{ + public CThostFtdcReqRepealField() {} + /// + /// 冲正时间间隔 + /// + public int RepealTimeInterval; + /// + /// 已经冲正次数 + /// + public int RepealedTimes; + public TThostFtdcBankRepealFlagType BankRepealFlag; + public TThostFtdcBrokerRepealFlagType BrokerRepealFlag; + /// + /// 被冲正平台流水号 + /// + public int PlateRepealSerial; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankRepealSerial = new byte[13]; + /// + /// 被冲正银行流水号 + /// + public string BankRepealSerial + { + get{ return GBKConvert.Instance.GetString(_BankRepealSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankRepealSerial); } + } + /// + /// 被冲正期货流水号 + /// + public int FutureRepealSerial; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 安装编号 + /// + public int InstallID; + /// + /// 期货公司流水号 + /// + public int FutureSerial; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 转帐金额 + /// + public double TradeAmount; + /// + /// 期货可取金额 + /// + public double FutureFetchAmount; + public TThostFtdcFeePayFlagType FeePayFlag; + /// + /// 应收客户费用 + /// + public double CustFee; + /// + /// 应收期货公司费用 + /// + public double BrokerFee; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _Message = new byte[129]; + /// + /// 发送方给接收方的消息 + /// + public string Message + { + get{ return GBKConvert.Instance.GetString(_Message); } + set{ GBKConvert.Instance.GetBytes(value, _Message); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + public TThostFtdcBankAccTypeType BankSecuAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankSecuAcc = new byte[41]; + /// + /// 期货单位帐号 + /// + public string BankSecuAcc + { + get{ return GBKConvert.Instance.GetString(_BankSecuAcc); } + set{ GBKConvert.Instance.GetBytes(value, _BankSecuAcc); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + public TThostFtdcTransferStatusType TransferStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 冲正响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspRepealField +{ + public CThostFtdcRspRepealField() {} + /// + /// 冲正时间间隔 + /// + public int RepealTimeInterval; + /// + /// 已经冲正次数 + /// + public int RepealedTimes; + public TThostFtdcBankRepealFlagType BankRepealFlag; + public TThostFtdcBrokerRepealFlagType BrokerRepealFlag; + /// + /// 被冲正平台流水号 + /// + public int PlateRepealSerial; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankRepealSerial = new byte[13]; + /// + /// 被冲正银行流水号 + /// + public string BankRepealSerial + { + get{ return GBKConvert.Instance.GetString(_BankRepealSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankRepealSerial); } + } + /// + /// 被冲正期货流水号 + /// + public int FutureRepealSerial; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 安装编号 + /// + public int InstallID; + /// + /// 期货公司流水号 + /// + public int FutureSerial; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 转帐金额 + /// + public double TradeAmount; + /// + /// 期货可取金额 + /// + public double FutureFetchAmount; + public TThostFtdcFeePayFlagType FeePayFlag; + /// + /// 应收客户费用 + /// + public double CustFee; + /// + /// 应收期货公司费用 + /// + public double BrokerFee; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _Message = new byte[129]; + /// + /// 发送方给接收方的消息 + /// + public string Message + { + get{ return GBKConvert.Instance.GetString(_Message); } + set{ GBKConvert.Instance.GetBytes(value, _Message); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + public TThostFtdcBankAccTypeType BankSecuAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankSecuAcc = new byte[41]; + /// + /// 期货单位帐号 + /// + public string BankSecuAcc + { + get{ return GBKConvert.Instance.GetString(_BankSecuAcc); } + set{ GBKConvert.Instance.GetBytes(value, _BankSecuAcc); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + public TThostFtdcTransferStatusType TransferStatus; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 查询账户信息请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqQueryAccountField +{ + public CThostFtdcReqQueryAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 期货公司流水号 + /// + public int FutureSerial; + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + public TThostFtdcBankAccTypeType BankSecuAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankSecuAcc = new byte[41]; + /// + /// 期货单位帐号 + /// + public string BankSecuAcc + { + get{ return GBKConvert.Instance.GetString(_BankSecuAcc); } + set{ GBKConvert.Instance.GetBytes(value, _BankSecuAcc); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 查询账户信息响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspQueryAccountField +{ + public CThostFtdcRspQueryAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 期货公司流水号 + /// + public int FutureSerial; + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + public TThostFtdcBankAccTypeType BankSecuAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankSecuAcc = new byte[41]; + /// + /// 期货单位帐号 + /// + public string BankSecuAcc + { + get{ return GBKConvert.Instance.GetString(_BankSecuAcc); } + set{ GBKConvert.Instance.GetBytes(value, _BankSecuAcc); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + /// + /// 银行可用金额 + /// + public double BankUseAmount; + /// + /// 银行可取金额 + /// + public double BankFetchAmount; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 期商签到签退 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcFutureSignIOField +{ + public CThostFtdcFutureSignIOField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; +} +/// +/// 期商签到响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspFutureSignInField +{ + public CThostFtdcRspFutureSignInField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _PinKey = new byte[129]; + /// + /// PIN密钥 + /// + public string PinKey + { + get{ return GBKConvert.Instance.GetString(_PinKey); } + set{ GBKConvert.Instance.GetBytes(value, _PinKey); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _MacKey = new byte[129]; + /// + /// MAC密钥 + /// + public string MacKey + { + get{ return GBKConvert.Instance.GetString(_MacKey); } + set{ GBKConvert.Instance.GetBytes(value, _MacKey); } + } +} +/// +/// 期商签退请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqFutureSignOutField +{ + public CThostFtdcReqFutureSignOutField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; +} +/// +/// 期商签退响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspFutureSignOutField +{ + public CThostFtdcRspFutureSignOutField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } +} +/// +/// 查询指定流水号的交易结果请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqQueryTradeResultBySerialField +{ + public CThostFtdcReqQueryTradeResultBySerialField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + /// + /// 流水号 + /// + public int Reference; + public TThostFtdcInstitutionTypeType RefrenceIssureType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _RefrenceIssure = new byte[36]; + /// + /// 本流水号发布者机构编码 + /// + public string RefrenceIssure + { + get{ return GBKConvert.Instance.GetString(_RefrenceIssure); } + set{ GBKConvert.Instance.GetBytes(value, _RefrenceIssure); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 转帐金额 + /// + public double TradeAmount; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 查询指定流水号的交易结果响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspQueryTradeResultBySerialField +{ + public CThostFtdcRspQueryTradeResultBySerialField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + /// + /// 流水号 + /// + public int Reference; + public TThostFtdcInstitutionTypeType RefrenceIssureType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _RefrenceIssure = new byte[36]; + /// + /// 本流水号发布者机构编码 + /// + public string RefrenceIssure + { + get{ return GBKConvert.Instance.GetString(_RefrenceIssure); } + set{ GBKConvert.Instance.GetBytes(value, _RefrenceIssure); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _OriginReturnCode = new byte[7]; + /// + /// 原始返回代码 + /// + public string OriginReturnCode + { + get{ return GBKConvert.Instance.GetString(_OriginReturnCode); } + set{ GBKConvert.Instance.GetBytes(value, _OriginReturnCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _OriginDescrInfoForReturnCode = new byte[129]; + /// + /// 原始返回码描述 + /// + public string OriginDescrInfoForReturnCode + { + get{ return GBKConvert.Instance.GetString(_OriginDescrInfoForReturnCode); } + set{ GBKConvert.Instance.GetBytes(value, _OriginDescrInfoForReturnCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 转帐金额 + /// + public double TradeAmount; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } +} +/// +/// 日终文件就绪请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqDayEndFileReadyField +{ + public CThostFtdcReqDayEndFileReadyField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + public TThostFtdcFileBusinessCodeType FileBusinessCode; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } +} +/// +/// 返回结果 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReturnResultField +{ + public CThostFtdcReturnResultField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _ReturnCode = new byte[7]; + /// + /// 返回代码 + /// + public string ReturnCode + { + get{ return GBKConvert.Instance.GetString(_ReturnCode); } + set{ GBKConvert.Instance.GetBytes(value, _ReturnCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _DescrInfoForReturnCode = new byte[129]; + /// + /// 返回码描述 + /// + public string DescrInfoForReturnCode + { + get{ return GBKConvert.Instance.GetString(_DescrInfoForReturnCode); } + set{ GBKConvert.Instance.GetBytes(value, _DescrInfoForReturnCode); } + } +} +/// +/// 验证期货资金密码 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcVerifyFuturePasswordField +{ + public CThostFtdcVerifyFuturePasswordField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + /// + /// 安装编号 + /// + public int InstallID; + /// + /// 交易ID + /// + public int TID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 验证客户信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcVerifyCustInfoField +{ + public CThostFtdcVerifyCustInfoField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 验证期货资金密码和客户信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcVerifyFuturePasswordAndCustInfoField +{ + public CThostFtdcVerifyFuturePasswordAndCustInfoField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 验证期货资金密码和客户信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcDepositResultInformField +{ + public CThostFtdcDepositResultInformField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=15)] + public readonly byte[] _DepositSeqNo = new byte[15]; + /// + /// 出入金流水号,该流水号为银期报盘返回的流水号 + /// + public string DepositSeqNo + { + get{ return GBKConvert.Instance.GetString(_DepositSeqNo); } + set{ GBKConvert.Instance.GetBytes(value, _DepositSeqNo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 入金金额 + /// + public double Deposit; + /// + /// 请求编号 + /// + public int RequestID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _ReturnCode = new byte[7]; + /// + /// 返回代码 + /// + public string ReturnCode + { + get{ return GBKConvert.Instance.GetString(_ReturnCode); } + set{ GBKConvert.Instance.GetBytes(value, _ReturnCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _DescrInfoForReturnCode = new byte[129]; + /// + /// 返回码描述 + /// + public string DescrInfoForReturnCode + { + get{ return GBKConvert.Instance.GetString(_DescrInfoForReturnCode); } + set{ GBKConvert.Instance.GetBytes(value, _DescrInfoForReturnCode); } + } +} +/// +/// 交易核心向银期报盘发出密钥同步请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqSyncKeyField +{ + public CThostFtdcReqSyncKeyField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _Message = new byte[129]; + /// + /// 交易核心给银期报盘的消息 + /// + public string Message + { + get{ return GBKConvert.Instance.GetString(_Message); } + set{ GBKConvert.Instance.GetBytes(value, _Message); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; +} +/// +/// 交易核心向银期报盘发出密钥同步响应 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspSyncKeyField +{ + public CThostFtdcRspSyncKeyField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _Message = new byte[129]; + /// + /// 交易核心给银期报盘的消息 + /// + public string Message + { + get{ return GBKConvert.Instance.GetString(_Message); } + set{ GBKConvert.Instance.GetBytes(value, _Message); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } +} +/// +/// 查询账户信息通知 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcNotifyQueryAccountField +{ + public CThostFtdcNotifyQueryAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 期货公司流水号 + /// + public int FutureSerial; + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + public TThostFtdcBankAccTypeType BankSecuAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankSecuAcc = new byte[41]; + /// + /// 期货单位帐号 + /// + public string BankSecuAcc + { + get{ return GBKConvert.Instance.GetString(_BankSecuAcc); } + set{ GBKConvert.Instance.GetBytes(value, _BankSecuAcc); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + /// + /// 银行可用金额 + /// + public double BankUseAmount; + /// + /// 银行可取金额 + /// + public double BankFetchAmount; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 银期转账交易流水表 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTransferSerialField +{ + public CThostFtdcTransferSerialField() {} + /// + /// 平台流水号 + /// + public int PlateSerial; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易发起方日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 交易代码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + /// + /// 会话编号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行编码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构编码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期货公司编码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + public TThostFtdcFutureAccTypeType FutureAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 期货公司流水号 + /// + public int FutureSerial; + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 交易金额 + /// + public double TradeAmount; + /// + /// 应收客户费用 + /// + public double CustFee; + /// + /// 应收期货公司费用 + /// + public double BrokerFee; + public TThostFtdcAvailabilityFlagType AvailabilityFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperatorCode = new byte[17]; + /// + /// 操作员 + /// + public string OperatorCode + { + get{ return GBKConvert.Instance.GetString(_OperatorCode); } + set{ GBKConvert.Instance.GetBytes(value, _OperatorCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankNewAccount = new byte[41]; + /// + /// 新银行帐号 + /// + public string BankNewAccount + { + get{ return GBKConvert.Instance.GetString(_BankNewAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankNewAccount); } + } + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } +} +/// +/// 请求查询转帐流水 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryTransferSerialField +{ + public CThostFtdcQryTransferSerialField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行编码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 期商签到通知 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcNotifyFutureSignInField +{ + public CThostFtdcNotifyFutureSignInField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _PinKey = new byte[129]; + /// + /// PIN密钥 + /// + public string PinKey + { + get{ return GBKConvert.Instance.GetString(_PinKey); } + set{ GBKConvert.Instance.GetBytes(value, _PinKey); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _MacKey = new byte[129]; + /// + /// MAC密钥 + /// + public string MacKey + { + get{ return GBKConvert.Instance.GetString(_MacKey); } + set{ GBKConvert.Instance.GetBytes(value, _MacKey); } + } +} +/// +/// 期商签退通知 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcNotifyFutureSignOutField +{ + public CThostFtdcNotifyFutureSignOutField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } +} +/// +/// 交易核心向银期报盘发出密钥同步处理结果的通知 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcNotifySyncKeyField +{ + public CThostFtdcNotifySyncKeyField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + /// + /// 安装编号 + /// + public int InstallID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=129)] + public readonly byte[] _Message = new byte[129]; + /// + /// 交易核心给银期报盘的消息 + /// + public string Message + { + get{ return GBKConvert.Instance.GetString(_Message); } + set{ GBKConvert.Instance.GetBytes(value, _Message); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 请求编号 + /// + public int RequestID; + /// + /// 交易ID + /// + public int TID; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } +} +/// +/// 请求查询银期签约关系 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryAccountregisterField +{ + public CThostFtdcQryAccountregisterField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行编码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构编码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 客户开销户信息表 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcAccountregisterField +{ + public CThostFtdcAccountregisterField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDay = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDay + { + get{ return GBKConvert.Instance.GetString(_TradeDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行编码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构编码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期货公司编码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期货公司分支机构编码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + public TThostFtdcOpenOrDestroyType OpenOrDestroy; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _RegDate = new byte[9]; + /// + /// 签约日期 + /// + public string RegDate + { + get{ return GBKConvert.Instance.GetString(_RegDate); } + set{ GBKConvert.Instance.GetBytes(value, _RegDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _OutDate = new byte[9]; + /// + /// 解约日期 + /// + public string OutDate + { + get{ return GBKConvert.Instance.GetString(_OutDate); } + set{ GBKConvert.Instance.GetBytes(value, _OutDate); } + } + /// + /// 交易ID + /// + public int TID; + public TThostFtdcCustTypeType CustType; + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 银期开户信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcOpenAccountField +{ + public CThostFtdcOpenAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcGenderType Gender; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _CountryCode = new byte[21]; + /// + /// 国家代码 + /// + public string CountryCode + { + get{ return GBKConvert.Instance.GetString(_CountryCode); } + set{ GBKConvert.Instance.GetBytes(value, _CountryCode); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _Address = new byte[101]; + /// + /// 地址 + /// + public string Address + { + get{ return GBKConvert.Instance.GetString(_Address); } + set{ GBKConvert.Instance.GetBytes(value, _Address); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _ZipCode = new byte[7]; + /// + /// 邮编 + /// + public string ZipCode + { + get{ return GBKConvert.Instance.GetString(_ZipCode); } + set{ GBKConvert.Instance.GetBytes(value, _ZipCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Telephone = new byte[41]; + /// + /// 电话号码 + /// + public string Telephone + { + get{ return GBKConvert.Instance.GetString(_Telephone); } + set{ GBKConvert.Instance.GetBytes(value, _Telephone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MobilePhone = new byte[21]; + /// + /// 手机 + /// + public string MobilePhone + { + get{ return GBKConvert.Instance.GetString(_MobilePhone); } + set{ GBKConvert.Instance.GetBytes(value, _MobilePhone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Fax = new byte[41]; + /// + /// 传真 + /// + public string Fax + { + get{ return GBKConvert.Instance.GetString(_Fax); } + set{ GBKConvert.Instance.GetBytes(value, _Fax); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _EMail = new byte[41]; + /// + /// 电子邮件 + /// + public string EMail + { + get{ return GBKConvert.Instance.GetString(_EMail); } + set{ GBKConvert.Instance.GetBytes(value, _EMail); } + } + public TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + public TThostFtdcCashExchangeCodeType CashExchangeCode; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + public TThostFtdcBankAccTypeType BankSecuAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankSecuAcc = new byte[41]; + /// + /// 期货单位帐号 + /// + public string BankSecuAcc + { + get{ return GBKConvert.Instance.GetString(_BankSecuAcc); } + set{ GBKConvert.Instance.GetBytes(value, _BankSecuAcc); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 交易ID + /// + public int TID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 银期销户信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCancelAccountField +{ + public CThostFtdcCancelAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcGenderType Gender; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _CountryCode = new byte[21]; + /// + /// 国家代码 + /// + public string CountryCode + { + get{ return GBKConvert.Instance.GetString(_CountryCode); } + set{ GBKConvert.Instance.GetBytes(value, _CountryCode); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _Address = new byte[101]; + /// + /// 地址 + /// + public string Address + { + get{ return GBKConvert.Instance.GetString(_Address); } + set{ GBKConvert.Instance.GetBytes(value, _Address); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _ZipCode = new byte[7]; + /// + /// 邮编 + /// + public string ZipCode + { + get{ return GBKConvert.Instance.GetString(_ZipCode); } + set{ GBKConvert.Instance.GetBytes(value, _ZipCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Telephone = new byte[41]; + /// + /// 电话号码 + /// + public string Telephone + { + get{ return GBKConvert.Instance.GetString(_Telephone); } + set{ GBKConvert.Instance.GetBytes(value, _Telephone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MobilePhone = new byte[21]; + /// + /// 手机 + /// + public string MobilePhone + { + get{ return GBKConvert.Instance.GetString(_MobilePhone); } + set{ GBKConvert.Instance.GetBytes(value, _MobilePhone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Fax = new byte[41]; + /// + /// 传真 + /// + public string Fax + { + get{ return GBKConvert.Instance.GetString(_Fax); } + set{ GBKConvert.Instance.GetBytes(value, _Fax); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _EMail = new byte[41]; + /// + /// 电子邮件 + /// + public string EMail + { + get{ return GBKConvert.Instance.GetString(_EMail); } + set{ GBKConvert.Instance.GetBytes(value, _EMail); } + } + public TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + public TThostFtdcCashExchangeCodeType CashExchangeCode; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] + public readonly byte[] _DeviceID = new byte[3]; + /// + /// 渠道标志 + /// + public string DeviceID + { + get{ return GBKConvert.Instance.GetString(_DeviceID); } + set{ GBKConvert.Instance.GetBytes(value, _DeviceID); } + } + public TThostFtdcBankAccTypeType BankSecuAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankSecuAcc = new byte[41]; + /// + /// 期货单位帐号 + /// + public string BankSecuAcc + { + get{ return GBKConvert.Instance.GetString(_BankSecuAcc); } + set{ GBKConvert.Instance.GetBytes(value, _BankSecuAcc); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _OperNo = new byte[17]; + /// + /// 交易柜员 + /// + public string OperNo + { + get{ return GBKConvert.Instance.GetString(_OperNo); } + set{ GBKConvert.Instance.GetBytes(value, _OperNo); } + } + /// + /// 交易ID + /// + public int TID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户标识 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 银期变更银行账号信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcChangeAccountField +{ + public CThostFtdcChangeAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _CustomerName = new byte[51]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcGenderType Gender; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _CountryCode = new byte[21]; + /// + /// 国家代码 + /// + public string CountryCode + { + get{ return GBKConvert.Instance.GetString(_CountryCode); } + set{ GBKConvert.Instance.GetBytes(value, _CountryCode); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _Address = new byte[101]; + /// + /// 地址 + /// + public string Address + { + get{ return GBKConvert.Instance.GetString(_Address); } + set{ GBKConvert.Instance.GetBytes(value, _Address); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _ZipCode = new byte[7]; + /// + /// 邮编 + /// + public string ZipCode + { + get{ return GBKConvert.Instance.GetString(_ZipCode); } + set{ GBKConvert.Instance.GetBytes(value, _ZipCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Telephone = new byte[41]; + /// + /// 电话号码 + /// + public string Telephone + { + get{ return GBKConvert.Instance.GetString(_Telephone); } + set{ GBKConvert.Instance.GetBytes(value, _Telephone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MobilePhone = new byte[21]; + /// + /// 手机 + /// + public string MobilePhone + { + get{ return GBKConvert.Instance.GetString(_MobilePhone); } + set{ GBKConvert.Instance.GetBytes(value, _MobilePhone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Fax = new byte[41]; + /// + /// 传真 + /// + public string Fax + { + get{ return GBKConvert.Instance.GetString(_Fax); } + set{ GBKConvert.Instance.GetBytes(value, _Fax); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _EMail = new byte[41]; + /// + /// 电子邮件 + /// + public string EMail + { + get{ return GBKConvert.Instance.GetString(_EMail); } + set{ GBKConvert.Instance.GetBytes(value, _EMail); } + } + public TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _NewBankAccount = new byte[41]; + /// + /// 新银行帐号 + /// + public string NewBankAccount + { + get{ return GBKConvert.Instance.GetString(_NewBankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _NewBankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _NewBankPassWord = new byte[41]; + /// + /// 新银行密码 + /// + public string NewBankPassWord + { + get{ return GBKConvert.Instance.GetString(_NewBankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _NewBankPassWord); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + public TThostFtdcBankAccTypeType BankAccType; + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + public TThostFtdcPwdFlagType BankPwdFlag; + public TThostFtdcPwdFlagType SecuPwdFlag; + /// + /// 交易ID + /// + public int TID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _LongCustomerName = new byte[161]; + /// + /// 长客户姓名 + /// + public string LongCustomerName + { + get{ return GBKConvert.Instance.GetString(_LongCustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _LongCustomerName); } + } +} +/// +/// 二级代理操作员银期权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSecAgentACIDMapField +{ + public CThostFtdcSecAgentACIDMapField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账户 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BrokerSecAgentID = new byte[13]; + /// + /// 境外中介机构资金帐号 + /// + public string BrokerSecAgentID + { + get{ return GBKConvert.Instance.GetString(_BrokerSecAgentID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerSecAgentID); } + } +} +/// +/// 二级代理操作员银期权限查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySecAgentACIDMapField +{ + public CThostFtdcQrySecAgentACIDMapField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 资金账户 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 灾备中心交易权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcUserRightsAssignField +{ + public CThostFtdcUserRightsAssignField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 应用单元代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + /// + /// 交易中心代码 + /// + public int DRIdentityID; +} +/// +/// 经济公司是否有在本标示的交易权限 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcBrokerUserRightAssignField +{ + public CThostFtdcBrokerUserRightAssignField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 应用单元代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + /// + /// 交易中心代码 + /// + public int DRIdentityID; + /// + /// 能否交易 + /// + public int Tradeable; +} +/// +/// 灾备交易转换报文 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcDRTransferField +{ + public CThostFtdcDRTransferField() {} + /// + /// 原交易中心代码 + /// + public int OrigDRIdentityID; + /// + /// 目标交易中心代码 + /// + public int DestDRIdentityID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _OrigBrokerID = new byte[11]; + /// + /// 原应用单元代码 + /// + public string OrigBrokerID + { + get{ return GBKConvert.Instance.GetString(_OrigBrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _OrigBrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _DestBrokerID = new byte[11]; + /// + /// 目标易用单元代码 + /// + public string DestBrokerID + { + get{ return GBKConvert.Instance.GetString(_DestBrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _DestBrokerID); } + } +} +/// +/// Fens用户信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcFensUserInfoField +{ + public CThostFtdcFensUserInfoField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcLoginModeType LoginMode; +} +/// +/// 当前银期所属交易中心 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCurrTransferIdentityField +{ + public CThostFtdcCurrTransferIdentityField() {} + /// + /// 交易中心代码 + /// + public int IdentityID; +} +/// +/// 禁止登录用户 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcLoginForbiddenUserField +{ + public CThostFtdcLoginForbiddenUserField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询禁止登录用户 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryLoginForbiddenUserField +{ + public CThostFtdcQryLoginForbiddenUserField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } +} +/// +/// 资金账户基本准备金 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcTradingAccountReserveField +{ + public CThostFtdcTradingAccountReserveField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + /// + /// 基本准备金 + /// + public double Reserve; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 查询禁止登录IP +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryLoginForbiddenIPField +{ + public CThostFtdcQryLoginForbiddenIPField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询IP列表 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryIPListField +{ + public CThostFtdcQryIPListField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询用户下单权限分配表 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryUserRightsAssignField +{ + public CThostFtdcQryUserRightsAssignField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 应用单元代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } +} +/// +/// 银期预约开户确认请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReserveOpenAccountConfirmField +{ + public CThostFtdcReserveOpenAccountConfirmField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _CustomerName = new byte[161]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcGenderType Gender; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _CountryCode = new byte[21]; + /// + /// 国家代码 + /// + public string CountryCode + { + get{ return GBKConvert.Instance.GetString(_CountryCode); } + set{ GBKConvert.Instance.GetBytes(value, _CountryCode); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _Address = new byte[101]; + /// + /// 地址 + /// + public string Address + { + get{ return GBKConvert.Instance.GetString(_Address); } + set{ GBKConvert.Instance.GetBytes(value, _Address); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _ZipCode = new byte[7]; + /// + /// 邮编 + /// + public string ZipCode + { + get{ return GBKConvert.Instance.GetString(_ZipCode); } + set{ GBKConvert.Instance.GetBytes(value, _ZipCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Telephone = new byte[41]; + /// + /// 电话号码 + /// + public string Telephone + { + get{ return GBKConvert.Instance.GetString(_Telephone); } + set{ GBKConvert.Instance.GetBytes(value, _Telephone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MobilePhone = new byte[21]; + /// + /// 手机 + /// + public string MobilePhone + { + get{ return GBKConvert.Instance.GetString(_MobilePhone); } + set{ GBKConvert.Instance.GetBytes(value, _MobilePhone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Fax = new byte[41]; + /// + /// 传真 + /// + public string Fax + { + get{ return GBKConvert.Instance.GetString(_Fax); } + set{ GBKConvert.Instance.GetBytes(value, _Fax); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _EMail = new byte[41]; + /// + /// 电子邮件 + /// + public string EMail + { + get{ return GBKConvert.Instance.GetString(_EMail); } + set{ GBKConvert.Instance.GetBytes(value, _EMail); } + } + public TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + /// + /// 交易ID + /// + public int TID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 期货密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankReserveOpenSeq = new byte[13]; + /// + /// 预约开户银行流水号 + /// + public string BankReserveOpenSeq + { + get{ return GBKConvert.Instance.GetString(_BankReserveOpenSeq); } + set{ GBKConvert.Instance.GetBytes(value, _BankReserveOpenSeq); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _BookDate = new byte[9]; + /// + /// 预约开户日期 + /// + public string BookDate + { + get{ return GBKConvert.Instance.GetString(_BookDate); } + set{ GBKConvert.Instance.GetBytes(value, _BookDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BookPsw = new byte[41]; + /// + /// 预约开户验证密码 + /// + public string BookPsw + { + get{ return GBKConvert.Instance.GetString(_BookPsw); } + set{ GBKConvert.Instance.GetBytes(value, _BookPsw); } + } + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } +} +/// +/// 银期预约开户 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReserveOpenAccountField +{ + public CThostFtdcReserveOpenAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _TradeCode = new byte[7]; + /// + /// 业务功能码 + /// + public string TradeCode + { + get{ return GBKConvert.Instance.GetString(_TradeCode); } + set{ GBKConvert.Instance.GetBytes(value, _TradeCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行代码 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _BankBranchID = new byte[5]; + /// + /// 银行分支机构代码 + /// + public string BankBranchID + { + get{ return GBKConvert.Instance.GetString(_BankBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BankBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 期商代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _BrokerBranchID = new byte[31]; + /// + /// 期商分支机构代码 + /// + public string BrokerBranchID + { + get{ return GBKConvert.Instance.GetString(_BrokerBranchID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerBranchID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeDate = new byte[9]; + /// + /// 交易日期 + /// + public string TradeDate + { + get{ return GBKConvert.Instance.GetString(_TradeDate); } + set{ GBKConvert.Instance.GetBytes(value, _TradeDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradeTime = new byte[9]; + /// + /// 交易时间 + /// + public string TradeTime + { + get{ return GBKConvert.Instance.GetString(_TradeTime); } + set{ GBKConvert.Instance.GetBytes(value, _TradeTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BankSerial = new byte[13]; + /// + /// 银行流水号 + /// + public string BankSerial + { + get{ return GBKConvert.Instance.GetString(_BankSerial); } + set{ GBKConvert.Instance.GetBytes(value, _BankSerial); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易系统日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 银期平台消息流水号 + /// + public int PlateSerial; + public TThostFtdcLastFragmentType LastFragment; + /// + /// 会话号 + /// + public int SessionID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=161)] + public readonly byte[] _CustomerName = new byte[161]; + /// + /// 客户姓名 + /// + public string CustomerName + { + get{ return GBKConvert.Instance.GetString(_CustomerName); } + set{ GBKConvert.Instance.GetBytes(value, _CustomerName); } + } + public TThostFtdcIdCardTypeType IdCardType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=51)] + public readonly byte[] _IdentifiedCardNo = new byte[51]; + /// + /// 证件号码 + /// + public string IdentifiedCardNo + { + get{ return GBKConvert.Instance.GetString(_IdentifiedCardNo); } + set{ GBKConvert.Instance.GetBytes(value, _IdentifiedCardNo); } + } + public TThostFtdcGenderType Gender; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _CountryCode = new byte[21]; + /// + /// 国家代码 + /// + public string CountryCode + { + get{ return GBKConvert.Instance.GetString(_CountryCode); } + set{ GBKConvert.Instance.GetBytes(value, _CountryCode); } + } + public TThostFtdcCustTypeType CustType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _Address = new byte[101]; + /// + /// 地址 + /// + public string Address + { + get{ return GBKConvert.Instance.GetString(_Address); } + set{ GBKConvert.Instance.GetBytes(value, _Address); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=7)] + public readonly byte[] _ZipCode = new byte[7]; + /// + /// 邮编 + /// + public string ZipCode + { + get{ return GBKConvert.Instance.GetString(_ZipCode); } + set{ GBKConvert.Instance.GetBytes(value, _ZipCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Telephone = new byte[41]; + /// + /// 电话号码 + /// + public string Telephone + { + get{ return GBKConvert.Instance.GetString(_Telephone); } + set{ GBKConvert.Instance.GetBytes(value, _Telephone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MobilePhone = new byte[21]; + /// + /// 手机 + /// + public string MobilePhone + { + get{ return GBKConvert.Instance.GetString(_MobilePhone); } + set{ GBKConvert.Instance.GetBytes(value, _MobilePhone); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Fax = new byte[41]; + /// + /// 传真 + /// + public string Fax + { + get{ return GBKConvert.Instance.GetString(_Fax); } + set{ GBKConvert.Instance.GetBytes(value, _Fax); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _EMail = new byte[41]; + /// + /// 电子邮件 + /// + public string EMail + { + get{ return GBKConvert.Instance.GetString(_EMail); } + set{ GBKConvert.Instance.GetBytes(value, _EMail); } + } + public TThostFtdcMoneyAccountStatusType MoneyAccountStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行帐号 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankPassWord = new byte[41]; + /// + /// 银行密码 + /// + public string BankPassWord + { + get{ return GBKConvert.Instance.GetString(_BankPassWord); } + set{ GBKConvert.Instance.GetBytes(value, _BankPassWord); } + } + /// + /// 安装编号 + /// + public int InstallID; + public TThostFtdcYesNoIndicatorType VerifyCertNoFlag; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _Digest = new byte[36]; + /// + /// 摘要 + /// + public string Digest + { + get{ return GBKConvert.Instance.GetString(_Digest); } + set{ GBKConvert.Instance.GetBytes(value, _Digest); } + } + public TThostFtdcBankAccTypeType BankAccType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _BrokerIDByBank = new byte[33]; + /// + /// 期货公司银行编码 + /// + public string BrokerIDByBank + { + get{ return GBKConvert.Instance.GetString(_BrokerIDByBank); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerIDByBank); } + } + /// + /// 交易ID + /// + public int TID; + public TThostFtdcReserveOpenAccStasType ReserveOpenAccStas; + /// + /// 错误代码 + /// + public int ErrorID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ErrorMsg = new byte[81]; + /// + /// 错误信息 + /// + public string ErrorMsg + { + get{ return GBKConvert.Instance.GetString(_ErrorMsg); } + set{ GBKConvert.Instance.GetBytes(value, _ErrorMsg); } + } +} +/// +/// 银行账户属性 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcAccountPropertyField +{ + public CThostFtdcAccountPropertyField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _BankID = new byte[4]; + /// + /// 银行统一标识类型 + /// + public string BankID + { + get{ return GBKConvert.Instance.GetString(_BankID); } + set{ GBKConvert.Instance.GetBytes(value, _BankID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _BankAccount = new byte[41]; + /// + /// 银行账户 + /// + public string BankAccount + { + get{ return GBKConvert.Instance.GetString(_BankAccount); } + set{ GBKConvert.Instance.GetBytes(value, _BankAccount); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _OpenName = new byte[101]; + /// + /// 银行账户的开户人名称 + /// + public string OpenName + { + get{ return GBKConvert.Instance.GetString(_OpenName); } + set{ GBKConvert.Instance.GetBytes(value, _OpenName); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=101)] + public readonly byte[] _OpenBank = new byte[101]; + /// + /// 银行账户的开户行 + /// + public string OpenBank + { + get{ return GBKConvert.Instance.GetString(_OpenBank); } + set{ GBKConvert.Instance.GetBytes(value, _OpenBank); } + } + /// + /// 是否活跃 + /// + public int IsActive; + public TThostFtdcAccountSourceTypeType AccountSourceType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _OpenDate = new byte[9]; + /// + /// 开户日期 + /// + public string OpenDate + { + get{ return GBKConvert.Instance.GetString(_OpenDate); } + set{ GBKConvert.Instance.GetBytes(value, _OpenDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _CancelDate = new byte[9]; + /// + /// 注销日期 + /// + public string CancelDate + { + get{ return GBKConvert.Instance.GetString(_CancelDate); } + set{ GBKConvert.Instance.GetBytes(value, _CancelDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=65)] + public readonly byte[] _OperatorID = new byte[65]; + /// + /// 录入员代码 + /// + public string OperatorID + { + get{ return GBKConvert.Instance.GetString(_OperatorID); } + set{ GBKConvert.Instance.GetBytes(value, _OperatorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _OperateDate = new byte[9]; + /// + /// 录入日期 + /// + public string OperateDate + { + get{ return GBKConvert.Instance.GetString(_OperateDate); } + set{ GBKConvert.Instance.GetBytes(value, _OperateDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _OperateTime = new byte[9]; + /// + /// 录入时间 + /// + public string OperateTime + { + get{ return GBKConvert.Instance.GetString(_OperateTime); } + set{ GBKConvert.Instance.GetBytes(value, _OperateTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } +} +/// +/// 查询当前交易中心 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryCurrDRIdentityField +{ + public CThostFtdcQryCurrDRIdentityField() {} + /// + /// 交易中心代码 + /// + public int DRIdentityID; +} +/// +/// 当前交易中心 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCurrDRIdentityField +{ + public CThostFtdcCurrDRIdentityField() {} + /// + /// 交易中心代码 + /// + public int DRIdentityID; +} +/// +/// 查询二级代理商资金校验模式 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySecAgentCheckModeField +{ + public CThostFtdcQrySecAgentCheckModeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } +} +/// +/// 查询二级代理商信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySecAgentTradeInfoField +{ + public CThostFtdcQrySecAgentTradeInfoField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _BrokerSecAgentID = new byte[13]; + /// + /// 境外中介机构资金帐号 + /// + public string BrokerSecAgentID + { + get{ return GBKConvert.Instance.GetString(_BrokerSecAgentID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerSecAgentID); } + } +} +/// +/// 用户发出获取安全安全登陆方法请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqUserAuthMethodField +{ + public CThostFtdcReqUserAuthMethodField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } +} +/// +/// 用户发出获取安全安全登陆方法回复 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspUserAuthMethodField +{ + public CThostFtdcRspUserAuthMethodField() {} + /// + /// 当前可以用的认证模式 + /// + public int UsableAuthMethod; +} +/// +/// 用户发出获取安全安全登陆方法请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqGenUserCaptchaField +{ + public CThostFtdcReqGenUserCaptchaField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } +} +/// +/// 生成的图片验证码信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspGenUserCaptchaField +{ + public CThostFtdcRspGenUserCaptchaField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + /// + /// 图片信息长度 + /// + public int CaptchaInfoLen; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=2561)] + public readonly byte[] _CaptchaInfo = new byte[2561]; + /// + /// 图片信息 + /// + public string CaptchaInfo + { + get{ return GBKConvert.Instance.GetString(_CaptchaInfo); } + set{ GBKConvert.Instance.GetBytes(value, _CaptchaInfo); } + } +} +/// +/// 用户发出获取安全安全登陆方法请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqGenUserTextField +{ + public CThostFtdcReqGenUserTextField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } +} +/// +/// 短信验证码生成的回复 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspGenUserTextField +{ + public CThostFtdcRspGenUserTextField() {} + /// + /// 短信验证码序号 + /// + public int UserTextSeq; +} +/// +/// 用户发出带图形验证码的登录请求请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqUserLoginWithCaptchaField +{ + public CThostFtdcReqUserLoginWithCaptchaField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _InterfaceProductInfo = new byte[11]; + /// + /// 接口端产品信息 + /// + public string InterfaceProductInfo + { + get{ return GBKConvert.Instance.GetString(_InterfaceProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _InterfaceProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ProtocolInfo = new byte[11]; + /// + /// 协议信息 + /// + public string ProtocolInfo + { + get{ return GBKConvert.Instance.GetString(_ProtocolInfo); } + set{ GBKConvert.Instance.GetBytes(value, _ProtocolInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _LoginRemark = new byte[36]; + /// + /// 登录备注 + /// + public string LoginRemark + { + get{ return GBKConvert.Instance.GetString(_LoginRemark); } + set{ GBKConvert.Instance.GetBytes(value, _LoginRemark); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Captcha = new byte[41]; + /// + /// 图形验证码的文字内容 + /// + public string Captcha + { + get{ return GBKConvert.Instance.GetString(_Captcha); } + set{ GBKConvert.Instance.GetBytes(value, _Captcha); } + } + /// + /// 终端IP端口 + /// + public int ClientIPPort; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _ClientIPAddress = new byte[33]; + /// + /// 终端IP地址 + /// + public string ClientIPAddress + { + get{ return GBKConvert.Instance.GetString(_ClientIPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _ClientIPAddress); } + } +} +/// +/// 用户发出带短信验证码的登录请求请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqUserLoginWithTextField +{ + public CThostFtdcReqUserLoginWithTextField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _InterfaceProductInfo = new byte[11]; + /// + /// 接口端产品信息 + /// + public string InterfaceProductInfo + { + get{ return GBKConvert.Instance.GetString(_InterfaceProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _InterfaceProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ProtocolInfo = new byte[11]; + /// + /// 协议信息 + /// + public string ProtocolInfo + { + get{ return GBKConvert.Instance.GetString(_ProtocolInfo); } + set{ GBKConvert.Instance.GetBytes(value, _ProtocolInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _LoginRemark = new byte[36]; + /// + /// 登录备注 + /// + public string LoginRemark + { + get{ return GBKConvert.Instance.GetString(_LoginRemark); } + set{ GBKConvert.Instance.GetBytes(value, _LoginRemark); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Text = new byte[41]; + /// + /// 短信验证码文字内容 + /// + public string Text + { + get{ return GBKConvert.Instance.GetString(_Text); } + set{ GBKConvert.Instance.GetBytes(value, _Text); } + } + /// + /// 终端IP端口 + /// + public int ClientIPPort; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _ClientIPAddress = new byte[33]; + /// + /// 终端IP地址 + /// + public string ClientIPAddress + { + get{ return GBKConvert.Instance.GetString(_ClientIPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _ClientIPAddress); } + } +} +/// +/// 用户发出带动态验证码的登录请求请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqUserLoginWithOTPField +{ + public CThostFtdcReqUserLoginWithOTPField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _InterfaceProductInfo = new byte[11]; + /// + /// 接口端产品信息 + /// + public string InterfaceProductInfo + { + get{ return GBKConvert.Instance.GetString(_InterfaceProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _InterfaceProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ProtocolInfo = new byte[11]; + /// + /// 协议信息 + /// + public string ProtocolInfo + { + get{ return GBKConvert.Instance.GetString(_ProtocolInfo); } + set{ GBKConvert.Instance.GetBytes(value, _ProtocolInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _LoginRemark = new byte[36]; + /// + /// 登录备注 + /// + public string LoginRemark + { + get{ return GBKConvert.Instance.GetString(_LoginRemark); } + set{ GBKConvert.Instance.GetBytes(value, _LoginRemark); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _OTPPassword = new byte[41]; + /// + /// OTP密码 + /// + public string OTPPassword + { + get{ return GBKConvert.Instance.GetString(_OTPPassword); } + set{ GBKConvert.Instance.GetBytes(value, _OTPPassword); } + } + /// + /// 终端IP端口 + /// + public int ClientIPPort; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _ClientIPAddress = new byte[33]; + /// + /// 终端IP地址 + /// + public string ClientIPAddress + { + get{ return GBKConvert.Instance.GetString(_ClientIPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _ClientIPAddress); } + } +} +/// +/// api握手请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqApiHandshakeField +{ + public CThostFtdcReqApiHandshakeField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=31)] + public readonly byte[] _CryptoKeyVersion = new byte[31]; + /// + /// api与front通信密钥版本号 + /// + public string CryptoKeyVersion + { + get{ return GBKConvert.Instance.GetString(_CryptoKeyVersion); } + set{ GBKConvert.Instance.GetBytes(value, _CryptoKeyVersion); } + } +} +/// +/// front发给api的握手回复 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRspApiHandshakeField +{ + public CThostFtdcRspApiHandshakeField() {} + /// + /// 握手回复数据长度 + /// + public int FrontHandshakeDataLen; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=301)] + public readonly byte[] _FrontHandshakeData = new byte[301]; + /// + /// 握手回复数据 + /// + public string FrontHandshakeData + { + get{ return GBKConvert.Instance.GetString(_FrontHandshakeData); } + set{ GBKConvert.Instance.GetBytes(value, _FrontHandshakeData); } + } + /// + /// API认证是否开启 + /// + public int IsApiAuthEnabled; +} +/// +/// api给front的验证key的请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqVerifyApiKeyField +{ + public CThostFtdcReqVerifyApiKeyField() {} + /// + /// 握手回复数据长度 + /// + public int ApiHandshakeDataLen; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=301)] + public readonly byte[] _ApiHandshakeData = new byte[301]; + /// + /// 握手回复数据 + /// + public string ApiHandshakeData + { + get{ return GBKConvert.Instance.GetString(_ApiHandshakeData); } + set{ GBKConvert.Instance.GetBytes(value, _ApiHandshakeData); } + } +} +/// +/// 操作员组织架构关系 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcDepartmentUserField +{ + public CThostFtdcDepartmentUserField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcDepartmentRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } +} +/// +/// 查询频率,每秒查询比数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQueryFreqField +{ + public CThostFtdcQueryFreqField() {} + /// + /// 查询频率 + /// + public int QueryFreq; +} +/// +/// 禁止认证IP +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcAuthForbiddenIPField +{ + public CThostFtdcAuthForbiddenIPField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询禁止认证IP +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryAuthForbiddenIPField +{ + public CThostFtdcQryAuthForbiddenIPField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// IP地址 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 换汇可提冻结 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDelaySwapFrozenField +{ + public CThostFtdcSyncDelaySwapFrozenField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=15)] + public readonly byte[] _DelaySwapSeqNo = new byte[15]; + /// + /// 换汇流水号 + /// + public string DelaySwapSeqNo + { + get{ return GBKConvert.Instance.GetString(_DelaySwapSeqNo); } + set{ GBKConvert.Instance.GetBytes(value, _DelaySwapSeqNo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _FromCurrencyID = new byte[4]; + /// + /// 源币种 + /// + public string FromCurrencyID + { + get{ return GBKConvert.Instance.GetString(_FromCurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _FromCurrencyID); } + } + /// + /// 源剩余换汇额度(可提冻结) + /// + public double FromRemainSwap; + /// + /// 是否手工换汇 + /// + public int IsManualSwap; +} +/// +/// 用户系统信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcUserSystemInfoField +{ + public CThostFtdcUserSystemInfoField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + /// + /// 用户端系统内部信息长度 + /// + public int ClientSystemInfoLen; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=273)] + public readonly byte[] _ClientSystemInfo = new byte[273]; + /// + /// 用户端系统内部信息 + /// + public string ClientSystemInfo + { + get{ return GBKConvert.Instance.GetString(_ClientSystemInfo); } + set{ GBKConvert.Instance.GetBytes(value, _ClientSystemInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _reserve1 = new byte[16]; + /// + /// 保留的无效字段 + /// + public string reserve1 + { + get{ return GBKConvert.Instance.GetString(_reserve1); } + set{ GBKConvert.Instance.GetBytes(value, _reserve1); } + } + /// + /// 终端IP端口 + /// + public int ClientIPPort; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ClientLoginTime = new byte[9]; + /// + /// 登录成功时间 + /// + public string ClientLoginTime + { + get{ return GBKConvert.Instance.GetString(_ClientLoginTime); } + set{ GBKConvert.Instance.GetBytes(value, _ClientLoginTime); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _ClientAppID = new byte[33]; + /// + /// App代码 + /// + public string ClientAppID + { + get{ return GBKConvert.Instance.GetString(_ClientAppID); } + set{ GBKConvert.Instance.GetBytes(value, _ClientAppID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _ClientPublicIP = new byte[33]; + /// + /// 用户公网IP + /// + public string ClientPublicIP + { + get{ return GBKConvert.Instance.GetString(_ClientPublicIP); } + set{ GBKConvert.Instance.GetBytes(value, _ClientPublicIP); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=151)] + public readonly byte[] _ClientLoginRemark = new byte[151]; + /// + /// 客户登录备注2 + /// + public string ClientLoginRemark + { + get{ return GBKConvert.Instance.GetString(_ClientLoginRemark); } + set{ GBKConvert.Instance.GetBytes(value, _ClientLoginRemark); } + } +} +/// +/// 终端用户绑定信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcAuthUserIDField +{ + public CThostFtdcAuthUserIDField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _AppID = new byte[33]; + /// + /// App代码 + /// + public string AppID + { + get{ return GBKConvert.Instance.GetString(_AppID); } + set{ GBKConvert.Instance.GetBytes(value, _AppID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + public TThostFtdcAuthTypeType AuthType; +} +/// +/// 用户IP绑定信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcAuthIPField +{ + public CThostFtdcAuthIPField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _AppID = new byte[33]; + /// + /// App代码 + /// + public string AppID + { + get{ return GBKConvert.Instance.GetString(_AppID); } + set{ GBKConvert.Instance.GetBytes(value, _AppID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _IPAddress = new byte[33]; + /// + /// 用户代码 + /// + public string IPAddress + { + get{ return GBKConvert.Instance.GetString(_IPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _IPAddress); } + } +} +/// +/// 查询分类合约 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryClassifiedInstrumentField +{ + public CThostFtdcQryClassifiedInstrumentField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } + public TThostFtdcTradingTypeType TradingType; + public TThostFtdcClassTypeType ClassType; +} +/// +/// 查询组合优惠比例 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryCombPromotionParamField +{ + public CThostFtdcQryCombPromotionParamField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 组合优惠比例 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcCombPromotionParamField +{ + public CThostFtdcCombPromotionParamField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=5)] + public readonly byte[] _CombHedgeFlag = new byte[5]; + /// + /// 投机套保标志 + /// + public string CombHedgeFlag + { + get{ return GBKConvert.Instance.GetString(_CombHedgeFlag); } + set{ GBKConvert.Instance.GetBytes(value, _CombHedgeFlag); } + } + /// + /// 期权组合保证金比例 + /// + public double Xparameter; +} +/// +/// 国密用户登录请求 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcReqUserLoginSCField +{ + public CThostFtdcReqUserLoginSCField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=16)] + public readonly byte[] _UserID = new byte[16]; + /// + /// 用户代码 + /// + public string UserID + { + get{ return GBKConvert.Instance.GetString(_UserID); } + set{ GBKConvert.Instance.GetBytes(value, _UserID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _Password = new byte[41]; + /// + /// 密码 + /// + public string Password + { + get{ return GBKConvert.Instance.GetString(_Password); } + set{ GBKConvert.Instance.GetBytes(value, _Password); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _UserProductInfo = new byte[11]; + /// + /// 用户端产品信息 + /// + public string UserProductInfo + { + get{ return GBKConvert.Instance.GetString(_UserProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _UserProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _InterfaceProductInfo = new byte[11]; + /// + /// 接口端产品信息 + /// + public string InterfaceProductInfo + { + get{ return GBKConvert.Instance.GetString(_InterfaceProductInfo); } + set{ GBKConvert.Instance.GetBytes(value, _InterfaceProductInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _ProtocolInfo = new byte[11]; + /// + /// 协议信息 + /// + public string ProtocolInfo + { + get{ return GBKConvert.Instance.GetString(_ProtocolInfo); } + set{ GBKConvert.Instance.GetBytes(value, _ProtocolInfo); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _MacAddress = new byte[21]; + /// + /// Mac地址 + /// + public string MacAddress + { + get{ return GBKConvert.Instance.GetString(_MacAddress); } + set{ GBKConvert.Instance.GetBytes(value, _MacAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=41)] + public readonly byte[] _OneTimePassword = new byte[41]; + /// + /// 动态密码 + /// + public string OneTimePassword + { + get{ return GBKConvert.Instance.GetString(_OneTimePassword); } + set{ GBKConvert.Instance.GetBytes(value, _OneTimePassword); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _ClientIPAddress = new byte[33]; + /// + /// 终端IP地址 + /// + public string ClientIPAddress + { + get{ return GBKConvert.Instance.GetString(_ClientIPAddress); } + set{ GBKConvert.Instance.GetBytes(value, _ClientIPAddress); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=36)] + public readonly byte[] _LoginRemark = new byte[36]; + /// + /// 登录备注 + /// + public string LoginRemark + { + get{ return GBKConvert.Instance.GetString(_LoginRemark); } + set{ GBKConvert.Instance.GetBytes(value, _LoginRemark); } + } + /// + /// 终端IP端口 + /// + public int ClientIPPort; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _AuthCode = new byte[17]; + /// + /// 认证码 + /// + public string AuthCode + { + get{ return GBKConvert.Instance.GetString(_AuthCode); } + set{ GBKConvert.Instance.GetBytes(value, _AuthCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=33)] + public readonly byte[] _AppID = new byte[33]; + /// + /// App代码 + /// + public string AppID + { + get{ return GBKConvert.Instance.GetString(_AppID); } + set{ GBKConvert.Instance.GetBytes(value, _AppID); } + } +} +/// +/// 投资者风险结算持仓查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryRiskSettleInvstPositionField +{ + public CThostFtdcQryRiskSettleInvstPositionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } +} +/// +/// 风险结算产品查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryRiskSettleProductStatusField +{ + public CThostFtdcQryRiskSettleProductStatusField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } +} +/// +/// 投资者风险结算持仓 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRiskSettleInvstPositionField +{ + public CThostFtdcRiskSettleInvstPositionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcPosiDirectionType PosiDirection; + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcPositionDateType PositionDate; + /// + /// 上日持仓 + /// + public int YdPosition; + /// + /// 今日持仓 + /// + public int Position; + /// + /// 多头冻结 + /// + public int LongFrozen; + /// + /// 空头冻结 + /// + public int ShortFrozen; + /// + /// 开仓冻结金额 + /// + public double LongFrozenAmount; + /// + /// 开仓冻结金额 + /// + public double ShortFrozenAmount; + /// + /// 开仓量 + /// + public int OpenVolume; + /// + /// 平仓量 + /// + public int CloseVolume; + /// + /// 开仓金额 + /// + public double OpenAmount; + /// + /// 平仓金额 + /// + public double CloseAmount; + /// + /// 持仓成本 + /// + public double PositionCost; + /// + /// 上次占用的保证金 + /// + public double PreMargin; + /// + /// 占用的保证金 + /// + public double UseMargin; + /// + /// 冻结的保证金 + /// + public double FrozenMargin; + /// + /// 冻结的资金 + /// + public double FrozenCash; + /// + /// 冻结的手续费 + /// + public double FrozenCommission; + /// + /// 资金差额 + /// + public double CashIn; + /// + /// 手续费 + /// + public double Commission; + /// + /// 平仓盈亏 + /// + public double CloseProfit; + /// + /// 持仓盈亏 + /// + public double PositionProfit; + /// + /// 上次结算价 + /// + public double PreSettlementPrice; + /// + /// 本次结算价 + /// + public double SettlementPrice; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + /// + /// 开仓成本 + /// + public double OpenCost; + /// + /// 交易所保证金 + /// + public double ExchangeMargin; + /// + /// 组合成交形成的持仓 + /// + public int CombPosition; + /// + /// 组合多头冻结 + /// + public int CombLongFrozen; + /// + /// 组合空头冻结 + /// + public int CombShortFrozen; + /// + /// 逐日盯市平仓盈亏 + /// + public double CloseProfitByDate; + /// + /// 逐笔对冲平仓盈亏 + /// + public double CloseProfitByTrade; + /// + /// 今日持仓 + /// + public int TodayPosition; + /// + /// 保证金率 + /// + public double MarginRateByMoney; + /// + /// 保证金率(按手数) + /// + public double MarginRateByVolume; + /// + /// 执行冻结 + /// + public int StrikeFrozen; + /// + /// 执行冻结金额 + /// + public double StrikeFrozenAmount; + /// + /// 放弃执行冻结 + /// + public int AbandonFrozen; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 执行冻结的昨仓 + /// + public int YdStrikeFrozen; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=17)] + public readonly byte[] _InvestUnitID = new byte[17]; + /// + /// 投资单元代码 + /// + public string InvestUnitID + { + get{ return GBKConvert.Instance.GetString(_InvestUnitID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestUnitID); } + } + /// + /// 持仓成本差值 + /// + public double PositionCostOffset; + /// + /// tas持仓手数 + /// + public int TasPosition; + /// + /// tas持仓成本 + /// + public double TasPositionCost; +} +/// +/// 风险品种 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcRiskSettleProductStatusField +{ + public CThostFtdcRiskSettleProductStatusField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品编号 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } + public TThostFtdcProductStatusType ProductStatus; +} +/// +/// 风险结算追平信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaInfoField +{ + public CThostFtdcSyncDeltaInfoField() {} + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; + public TThostFtdcSyncDeltaStatusType SyncDeltaStatus; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=257)] + public readonly byte[] _SyncDescription = new byte[257]; + /// + /// 追平描述 + /// + public string SyncDescription + { + get{ return GBKConvert.Instance.GetString(_SyncDescription); } + set{ GBKConvert.Instance.GetBytes(value, _SyncDescription); } + } + /// + /// 是否只有资金追平 + /// + public int IsOnlyTrdDelta; +} +/// +/// 风险结算追平产品信息 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaProductStatusField +{ + public CThostFtdcSyncDeltaProductStatusField() {} + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } + public TThostFtdcProductStatusType ProductStatus; +} +/// +/// 风险结算追平持仓明细 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaInvstPosDtlField +{ + public CThostFtdcSyncDeltaInvstPosDtlField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcDirectionType Direction; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _OpenDate = new byte[9]; + /// + /// 开仓日期 + /// + public string OpenDate + { + get{ return GBKConvert.Instance.GetString(_OpenDate); } + set{ GBKConvert.Instance.GetBytes(value, _OpenDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TradeID = new byte[21]; + /// + /// 成交编号 + /// + public string TradeID + { + get{ return GBKConvert.Instance.GetString(_TradeID); } + set{ GBKConvert.Instance.GetBytes(value, _TradeID); } + } + /// + /// 数量 + /// + public int Volume; + /// + /// 开仓价 + /// + public double OpenPrice; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + public TThostFtdcTradeTypeType TradeType; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _CombInstrumentID = new byte[81]; + /// + /// 组合合约代码 + /// + public string CombInstrumentID + { + get{ return GBKConvert.Instance.GetString(_CombInstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _CombInstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 逐日盯市平仓盈亏 + /// + public double CloseProfitByDate; + /// + /// 逐笔对冲平仓盈亏 + /// + public double CloseProfitByTrade; + /// + /// 逐日盯市持仓盈亏 + /// + public double PositionProfitByDate; + /// + /// 逐笔对冲持仓盈亏 + /// + public double PositionProfitByTrade; + /// + /// 投资者保证金 + /// + public double Margin; + /// + /// 交易所保证金 + /// + public double ExchMargin; + /// + /// 保证金率 + /// + public double MarginRateByMoney; + /// + /// 保证金率(按手数) + /// + public double MarginRateByVolume; + /// + /// 昨结算价 + /// + public double LastSettlementPrice; + /// + /// 结算价 + /// + public double SettlementPrice; + /// + /// 平仓量 + /// + public int CloseVolume; + /// + /// 平仓金额 + /// + public double CloseAmount; + /// + /// 先开先平剩余数量 + /// + public int TimeFirstVolume; + public TThostFtdcSpecPosiTypeType SpecPosiType; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平组合持仓明细 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaInvstPosCombDtlField +{ + public CThostFtdcSyncDeltaInvstPosCombDtlField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _OpenDate = new byte[9]; + /// + /// 开仓日期 + /// + public string OpenDate + { + get{ return GBKConvert.Instance.GetString(_OpenDate); } + set{ GBKConvert.Instance.GetBytes(value, _OpenDate); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 结算编号 + /// + public int SettlementID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _ComTradeID = new byte[21]; + /// + /// 组合编号 + /// + public string ComTradeID + { + get{ return GBKConvert.Instance.GetString(_ComTradeID); } + set{ GBKConvert.Instance.GetBytes(value, _ComTradeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=21)] + public readonly byte[] _TradeID = new byte[21]; + /// + /// 撮合编号 + /// + public string TradeID + { + get{ return GBKConvert.Instance.GetString(_TradeID); } + set{ GBKConvert.Instance.GetBytes(value, _TradeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + public TThostFtdcDirectionType Direction; + /// + /// 持仓量 + /// + public int TotalAmt; + /// + /// 投资者保证金 + /// + public double Margin; + /// + /// 交易所保证金 + /// + public double ExchMargin; + /// + /// 保证金率 + /// + public double MarginRateByMoney; + /// + /// 保证金率(按手数) + /// + public double MarginRateByVolume; + /// + /// 单腿编号 + /// + public int LegID; + /// + /// 单腿乘数 + /// + public int LegMultiple; + /// + /// 成交组号 + /// + public int TradeGroupID; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平资金 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaTradingAccountField +{ + public CThostFtdcSyncDeltaTradingAccountField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _AccountID = new byte[13]; + /// + /// 投资者帐号 + /// + public string AccountID + { + get{ return GBKConvert.Instance.GetString(_AccountID); } + set{ GBKConvert.Instance.GetBytes(value, _AccountID); } + } + /// + /// 上次质押金额 + /// + public double PreMortgage; + /// + /// 上次信用额度 + /// + public double PreCredit; + /// + /// 上次存款额 + /// + public double PreDeposit; + /// + /// 上次结算准备金 + /// + public double PreBalance; + /// + /// 上次占用的保证金 + /// + public double PreMargin; + /// + /// 利息基数 + /// + public double InterestBase; + /// + /// 利息收入 + /// + public double Interest; + /// + /// 入金金额 + /// + public double Deposit; + /// + /// 出金金额 + /// + public double Withdraw; + /// + /// 冻结的保证金 + /// + public double FrozenMargin; + /// + /// 冻结的资金 + /// + public double FrozenCash; + /// + /// 冻结的手续费 + /// + public double FrozenCommission; + /// + /// 当前保证金总额 + /// + public double CurrMargin; + /// + /// 资金差额 + /// + public double CashIn; + /// + /// 手续费 + /// + public double Commission; + /// + /// 平仓盈亏 + /// + public double CloseProfit; + /// + /// 持仓盈亏 + /// + public double PositionProfit; + /// + /// 期货结算准备金 + /// + public double Balance; + /// + /// 可用资金 + /// + public double Available; + /// + /// 可取资金 + /// + public double WithdrawQuota; + /// + /// 基本准备金 + /// + public double Reserve; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + /// + /// 结算编号 + /// + public int SettlementID; + /// + /// 信用额度 + /// + public double Credit; + /// + /// 质押金额 + /// + public double Mortgage; + /// + /// 交易所保证金 + /// + public double ExchangeMargin; + /// + /// 投资者交割保证金 + /// + public double DeliveryMargin; + /// + /// 交易所交割保证金 + /// + public double ExchangeDeliveryMargin; + /// + /// 保底期货结算准备金 + /// + public double ReserveBalance; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _CurrencyID = new byte[4]; + /// + /// 币种代码 + /// + public string CurrencyID + { + get{ return GBKConvert.Instance.GetString(_CurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _CurrencyID); } + } + /// + /// 上次货币质入金额 + /// + public double PreFundMortgageIn; + /// + /// 上次货币质出金额 + /// + public double PreFundMortgageOut; + /// + /// 货币质入金额 + /// + public double FundMortgageIn; + /// + /// 货币质出金额 + /// + public double FundMortgageOut; + /// + /// 货币质押余额 + /// + public double FundMortgageAvailable; + /// + /// 可质押货币金额 + /// + public double MortgageableFund; + /// + /// 特殊产品占用保证金 + /// + public double SpecProductMargin; + /// + /// 特殊产品冻结保证金 + /// + public double SpecProductFrozenMargin; + /// + /// 特殊产品手续费 + /// + public double SpecProductCommission; + /// + /// 特殊产品冻结手续费 + /// + public double SpecProductFrozenCommission; + /// + /// 特殊产品持仓盈亏 + /// + public double SpecProductPositionProfit; + /// + /// 特殊产品平仓盈亏 + /// + public double SpecProductCloseProfit; + /// + /// 根据持仓盈亏算法计算的特殊产品持仓盈亏 + /// + public double SpecProductPositionProfitByAlg; + /// + /// 特殊产品交易所保证金 + /// + public double SpecProductExchangeMargin; + /// + /// 延时换汇冻结金额 + /// + public double FrozenSwap; + /// + /// 剩余换汇额度 + /// + public double RemainSwap; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 投资者风险结算总保证金 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaInitInvstMarginField +{ + public CThostFtdcSyncDeltaInitInvstMarginField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 追平前总风险保证金 + /// + public double LastRiskTotalInvstMargin; + /// + /// 追平前交易所总风险保证金 + /// + public double LastRiskTotalExchMargin; + /// + /// 本次追平品种总保证金 + /// + public double ThisSyncInvstMargin; + /// + /// 本次追平品种交易所总保证金 + /// + public double ThisSyncExchMargin; + /// + /// 本次未追平品种总保证金 + /// + public double RemainRiskInvstMargin; + /// + /// 本次未追平品种交易所总保证金 + /// + public double RemainRiskExchMargin; + /// + /// 追平前总特殊产品风险保证金 + /// + public double LastRiskSpecTotalInvstMargin; + /// + /// 追平前总特殊产品交易所风险保证金 + /// + public double LastRiskSpecTotalExchMargin; + /// + /// 本次追平品种特殊产品总保证金 + /// + public double ThisSyncSpecInvstMargin; + /// + /// 本次追平品种特殊产品交易所总保证金 + /// + public double ThisSyncSpecExchMargin; + /// + /// 本次未追平品种特殊产品总保证金 + /// + public double RemainRiskSpecInvstMargin; + /// + /// 本次未追平品种特殊产品交易所总保证金 + /// + public double RemainRiskSpecExchMargin; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平组合优先级 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaDceCombInstrumentField +{ + public CThostFtdcSyncDeltaDceCombInstrumentField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _CombInstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string CombInstrumentID + { + get{ return GBKConvert.Instance.GetString(_CombInstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _CombInstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + /// + /// 成交组号 + /// + public int TradeGroupID; + public TThostFtdcHedgeFlagType CombHedgeFlag; + public TThostFtdcDceCombinationTypeType CombinationType; + public TThostFtdcDirectionType Direction; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } + /// + /// 期权组合保证金比例 + /// + public double Xparameter; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平投资者期货保证金率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaInvstMarginRateField +{ + public CThostFtdcSyncDeltaInvstMarginRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 多头保证金率 + /// + public double LongMarginRatioByMoney; + /// + /// 多头保证金费 + /// + public double LongMarginRatioByVolume; + /// + /// 空头保证金率 + /// + public double ShortMarginRatioByMoney; + /// + /// 空头保证金费 + /// + public double ShortMarginRatioByVolume; + /// + /// 是否相对交易所收取 + /// + public int IsRelative; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平交易所期货保证金率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaExchMarginRateField +{ + public CThostFtdcSyncDeltaExchMarginRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 多头保证金率 + /// + public double LongMarginRatioByMoney; + /// + /// 多头保证金费 + /// + public double LongMarginRatioByVolume; + /// + /// 空头保证金率 + /// + public double ShortMarginRatioByMoney; + /// + /// 空头保证金费 + /// + public double ShortMarginRatioByVolume; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平中金现货期权交易所保证金率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaOptExchMarginField +{ + public CThostFtdcSyncDeltaOptExchMarginField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + /// + /// 投机空头保证金调整系数 + /// + public double SShortMarginRatioByMoney; + /// + /// 投机空头保证金调整系数 + /// + public double SShortMarginRatioByVolume; + /// + /// 保值空头保证金调整系数 + /// + public double HShortMarginRatioByMoney; + /// + /// 保值空头保证金调整系数 + /// + public double HShortMarginRatioByVolume; + /// + /// 套利空头保证金调整系数 + /// + public double AShortMarginRatioByMoney; + /// + /// 套利空头保证金调整系数 + /// + public double AShortMarginRatioByVolume; + /// + /// 做市商空头保证金调整系数 + /// + public double MShortMarginRatioByMoney; + /// + /// 做市商空头保证金调整系数 + /// + public double MShortMarginRatioByVolume; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平中金现货期权投资者保证金率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaOptInvstMarginField +{ + public CThostFtdcSyncDeltaOptInvstMarginField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 投机空头保证金调整系数 + /// + public double SShortMarginRatioByMoney; + /// + /// 投机空头保证金调整系数 + /// + public double SShortMarginRatioByVolume; + /// + /// 保值空头保证金调整系数 + /// + public double HShortMarginRatioByMoney; + /// + /// 保值空头保证金调整系数 + /// + public double HShortMarginRatioByVolume; + /// + /// 套利空头保证金调整系数 + /// + public double AShortMarginRatioByMoney; + /// + /// 套利空头保证金调整系数 + /// + public double AShortMarginRatioByVolume; + /// + /// 是否跟随交易所收取 + /// + public int IsRelative; + /// + /// 做市商空头保证金调整系数 + /// + public double MShortMarginRatioByMoney; + /// + /// 做市商空头保证金调整系数 + /// + public double MShortMarginRatioByVolume; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平期权标的调整保证金率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaInvstMarginRateULField +{ + public CThostFtdcSyncDeltaInvstMarginRateULField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 多头保证金率 + /// + public double LongMarginRatioByMoney; + /// + /// 多头保证金费 + /// + public double LongMarginRatioByVolume; + /// + /// 空头保证金率 + /// + public double ShortMarginRatioByMoney; + /// + /// 空头保证金费 + /// + public double ShortMarginRatioByVolume; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平期权手续费率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaOptInvstCommRateField +{ + public CThostFtdcSyncDeltaOptInvstCommRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 开仓手续费率 + /// + public double OpenRatioByMoney; + /// + /// 开仓手续费 + /// + public double OpenRatioByVolume; + /// + /// 平仓手续费率 + /// + public double CloseRatioByMoney; + /// + /// 平仓手续费 + /// + public double CloseRatioByVolume; + /// + /// 平今手续费率 + /// + public double CloseTodayRatioByMoney; + /// + /// 平今手续费 + /// + public double CloseTodayRatioByVolume; + /// + /// 执行手续费率 + /// + public double StrikeRatioByMoney; + /// + /// 执行手续费 + /// + public double StrikeRatioByVolume; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平期货手续费率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaInvstCommRateField +{ + public CThostFtdcSyncDeltaInvstCommRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 开仓手续费率 + /// + public double OpenRatioByMoney; + /// + /// 开仓手续费 + /// + public double OpenRatioByVolume; + /// + /// 平仓手续费率 + /// + public double CloseRatioByMoney; + /// + /// 平仓手续费 + /// + public double CloseRatioByVolume; + /// + /// 平今手续费率 + /// + public double CloseTodayRatioByMoney; + /// + /// 平今手续费 + /// + public double CloseTodayRatioByVolume; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平交叉汇率 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaProductExchRateField +{ + public CThostFtdcSyncDeltaProductExchRateField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProductID = new byte[81]; + /// + /// 产品代码 + /// + public string ProductID + { + get{ return GBKConvert.Instance.GetString(_ProductID); } + set{ GBKConvert.Instance.GetBytes(value, _ProductID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=4)] + public readonly byte[] _QuoteCurrencyID = new byte[4]; + /// + /// 报价币种类型 + /// + public string QuoteCurrencyID + { + get{ return GBKConvert.Instance.GetString(_QuoteCurrencyID); } + set{ GBKConvert.Instance.GetBytes(value, _QuoteCurrencyID); } + } + /// + /// 汇率 + /// + public double ExchangeRate; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平行情 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaDepthMarketDataField +{ + public CThostFtdcSyncDeltaDepthMarketDataField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ExchangeInstID = new byte[81]; + /// + /// 合约在交易所的代码 + /// + public string ExchangeInstID + { + get{ return GBKConvert.Instance.GetString(_ExchangeInstID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeInstID); } + } + /// + /// 最新价 + /// + public double LastPrice; + /// + /// 上次结算价 + /// + public double PreSettlementPrice; + /// + /// 昨收盘 + /// + public double PreClosePrice; + /// + /// 昨持仓量 + /// + public double PreOpenInterest; + /// + /// 今开盘 + /// + public double OpenPrice; + /// + /// 最高价 + /// + public double HighestPrice; + /// + /// 最低价 + /// + public double LowestPrice; + /// + /// 数量 + /// + public int Volume; + /// + /// 成交金额 + /// + public double Turnover; + /// + /// 持仓量 + /// + public double OpenInterest; + /// + /// 今收盘 + /// + public double ClosePrice; + /// + /// 本次结算价 + /// + public double SettlementPrice; + /// + /// 涨停板价 + /// + public double UpperLimitPrice; + /// + /// 跌停板价 + /// + public double LowerLimitPrice; + /// + /// 昨虚实度 + /// + public double PreDelta; + /// + /// 今虚实度 + /// + public double CurrDelta; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _UpdateTime = new byte[9]; + /// + /// 最后修改时间 + /// + public string UpdateTime + { + get{ return GBKConvert.Instance.GetString(_UpdateTime); } + set{ GBKConvert.Instance.GetBytes(value, _UpdateTime); } + } + /// + /// 最后修改毫秒 + /// + public int UpdateMillisec; + /// + /// 申买价一 + /// + public double BidPrice1; + /// + /// 申买量一 + /// + public int BidVolume1; + /// + /// 申卖价一 + /// + public double AskPrice1; + /// + /// 申卖量一 + /// + public int AskVolume1; + /// + /// 申买价二 + /// + public double BidPrice2; + /// + /// 申买量二 + /// + public int BidVolume2; + /// + /// 申卖价二 + /// + public double AskPrice2; + /// + /// 申卖量二 + /// + public int AskVolume2; + /// + /// 申买价三 + /// + public double BidPrice3; + /// + /// 申买量三 + /// + public int BidVolume3; + /// + /// 申卖价三 + /// + public double AskPrice3; + /// + /// 申卖量三 + /// + public int AskVolume3; + /// + /// 申买价四 + /// + public double BidPrice4; + /// + /// 申买量四 + /// + public int BidVolume4; + /// + /// 申卖价四 + /// + public double AskPrice4; + /// + /// 申卖量四 + /// + public int AskVolume4; + /// + /// 申买价五 + /// + public double BidPrice5; + /// + /// 申买量五 + /// + public int BidVolume5; + /// + /// 申卖价五 + /// + public double AskPrice5; + /// + /// 申卖量五 + /// + public int AskVolume5; + /// + /// 当日均价 + /// + public double AveragePrice; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ActionDay = new byte[9]; + /// + /// 业务日期 + /// + public string ActionDay + { + get{ return GBKConvert.Instance.GetString(_ActionDay); } + set{ GBKConvert.Instance.GetBytes(value, _ActionDay); } + } + /// + /// 上带价 + /// + public double BandingUpperPrice; + /// + /// 下带价 + /// + public double BandingLowerPrice; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平现货指数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaIndexPriceField +{ + public CThostFtdcSyncDeltaIndexPriceField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + /// + /// 指数现货收盘价 + /// + public double ClosePrice; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// 风险结算追平仓单折抵 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncDeltaEWarrantOffsetField +{ + public CThostFtdcSyncDeltaEWarrantOffsetField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日期 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + public TThostFtdcDirectionType Direction; + public TThostFtdcHedgeFlagType HedgeFlag; + /// + /// 数量 + /// + public int Volume; + public TThostFtdcActionDirectionType ActionDirection; + /// + /// 追平序号 + /// + public int SyncDeltaSequenceNo; +} +/// +/// SPBM期货合约保证金参数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSPBMFutureParameterField +{ + public CThostFtdcSPBMFutureParameterField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProdFamilyCode = new byte[81]; + /// + /// 品种代码 + /// + public string ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _ProdFamilyCode); } + } + /// + /// 期货合约因子 + /// + public int Cvf; + public TThostFtdcTimeRangeType TimeRange; + /// + /// 品种保证金标准 + /// + public double MarginRate; + /// + /// 期货合约内部对锁仓费率折扣比例 + /// + public double LockRateX; + /// + /// 提高保证金标准 + /// + public double AddOnRate; + /// + /// 昨结算价 + /// + public double PreSettlementPrice; +} +/// +/// SPBM期权合约保证金参数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSPBMOptionParameterField +{ + public CThostFtdcSPBMOptionParameterField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProdFamilyCode = new byte[81]; + /// + /// 品种代码 + /// + public string ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _ProdFamilyCode); } + } + /// + /// 期权合约因子 + /// + public int Cvf; + /// + /// 期权冲抵价格 + /// + public double DownPrice; + /// + /// Delta值 + /// + public double Delta; + /// + /// 卖方期权风险转换最低值 + /// + public double SlimiDelta; + /// + /// 昨结算价 + /// + public double PreSettlementPrice; +} +/// +/// SPBM品种内对锁仓折扣参数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSPBMIntraParameterField +{ + public CThostFtdcSPBMIntraParameterField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProdFamilyCode = new byte[81]; + /// + /// 品种代码 + /// + public string ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _ProdFamilyCode); } + } + /// + /// 品种内合约间对锁仓费率折扣比例 + /// + public double IntraRateY; +} +/// +/// SPBM跨品种抵扣参数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSPBMInterParameterField +{ + public CThostFtdcSPBMInterParameterField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 优先级 + /// + public int SpreadId; + /// + /// 品种间对锁仓费率折扣比例 + /// + public double InterRateZ; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _Leg1ProdFamilyCode = new byte[81]; + /// + /// 第一腿构成品种 + /// + public string Leg1ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_Leg1ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _Leg1ProdFamilyCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _Leg2ProdFamilyCode = new byte[81]; + /// + /// 第二腿构成品种 + /// + public string Leg2ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_Leg2ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _Leg2ProdFamilyCode); } + } +} +/// +/// 同步SPBM参数结束 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSyncSPBMParameterEndField +{ + public CThostFtdcSyncSPBMParameterEndField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _TradingDay = new byte[9]; + /// + /// 交易日 + /// + public string TradingDay + { + get{ return GBKConvert.Instance.GetString(_TradingDay); } + set{ GBKConvert.Instance.GetBytes(value, _TradingDay); } + } +} +/// +/// SPBM期货合约保证金参数查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySPBMFutureParameterField +{ + public CThostFtdcQrySPBMFutureParameterField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProdFamilyCode = new byte[81]; + /// + /// 品种代码 + /// + public string ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _ProdFamilyCode); } + } +} +/// +/// SPBM期权合约保证金参数查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySPBMOptionParameterField +{ + public CThostFtdcQrySPBMOptionParameterField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _InstrumentID = new byte[81]; + /// + /// 合约代码 + /// + public string InstrumentID + { + get{ return GBKConvert.Instance.GetString(_InstrumentID); } + set{ GBKConvert.Instance.GetBytes(value, _InstrumentID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProdFamilyCode = new byte[81]; + /// + /// 品种代码 + /// + public string ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _ProdFamilyCode); } + } +} +/// +/// SPBM品种内对锁仓折扣参数查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySPBMIntraParameterField +{ + public CThostFtdcQrySPBMIntraParameterField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProdFamilyCode = new byte[81]; + /// + /// 品种代码 + /// + public string ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _ProdFamilyCode); } + } +} +/// +/// SPBM跨品种抵扣参数查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySPBMInterParameterField +{ + public CThostFtdcQrySPBMInterParameterField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _Leg1ProdFamilyCode = new byte[81]; + /// + /// 第一腿构成品种 + /// + public string Leg1ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_Leg1ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _Leg1ProdFamilyCode); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _Leg2ProdFamilyCode = new byte[81]; + /// + /// 第二腿构成品种 + /// + public string Leg2ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_Leg2ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _Leg2ProdFamilyCode); } + } +} +/// +/// 组合保证金套餐 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSPBMPortfDefinitionField +{ + public CThostFtdcSPBMPortfDefinitionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 组合保证金套餐代码 + /// + public int PortfolioDefID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProdFamilyCode = new byte[81]; + /// + /// 品种代码 + /// + public string ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _ProdFamilyCode); } + } + /// + /// 是否启用SPBM + /// + public int IsSPBM; +} +/// +/// 投资者套餐选择 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcSPBMInvestorPortfDefField +{ + public CThostFtdcSPBMInvestorPortfDefField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + /// + /// 组合保证金套餐代码 + /// + public int PortfolioDefID; +} +/// +/// 投资者新型组合保证金系数 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInvestorPortfMarginRatioField +{ + public CThostFtdcInvestorPortfMarginRatioField() {} + public TThostFtdcInvestorRangeType InvestorRange; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 会员对投资者收取的保证金和交易所对投资者收取的保证金的比例 + /// + public double MarginRatio; +} +/// +/// 组合保证金套餐查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySPBMPortfDefinitionField +{ + public CThostFtdcQrySPBMPortfDefinitionField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + /// + /// 组合保证金套餐代码 + /// + public int PortfolioDefID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProdFamilyCode = new byte[81]; + /// + /// 品种代码 + /// + public string ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _ProdFamilyCode); } + } +} +/// +/// 投资者套餐选择查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQrySPBMInvestorPortfDefField +{ + public CThostFtdcQrySPBMInvestorPortfDefField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } +} +/// +/// 投资者新型组合保证金系数查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInvestorPortfMarginRatioField +{ + public CThostFtdcQryInvestorPortfMarginRatioField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } +} +/// +/// 投资者产品SPBM明细 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcInvestorProdSPBMDetailField +{ + public CThostFtdcInvestorProdSPBMDetailField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProdFamilyCode = new byte[81]; + /// + /// 品种代码 + /// + public string ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _ProdFamilyCode); } + } + /// + /// 合约内对锁保证金 + /// + public double IntraInstrMargin; + /// + /// 买归集保证金 + /// + public double BCollectingMargin; + /// + /// 卖归集保证金 + /// + public double SCollectingMargin; + /// + /// 品种内合约间对锁保证金 + /// + public double IntraProdMargin; + /// + /// 净保证金 + /// + public double NetMargin; + /// + /// 产品间对锁保证金 + /// + public double InterProdMargin; + /// + /// 裸保证金 + /// + public double SingleMargin; + /// + /// 附加保证金 + /// + public double AddOnMargin; + /// + /// 交割月保证金 + /// + public double DeliveryMargin; + /// + /// 看涨期权最低风险 + /// + public double CallOptionMinRisk; + /// + /// 看跌期权最低风险 + /// + public double PutOptionMinRisk; + /// + /// 卖方期权最低风险 + /// + public double OptionMinRisk; + /// + /// 买方期权冲抵价值 + /// + public double OptionValueOffset; + /// + /// 卖方期权权利金 + /// + public double OptionRoyalty; + /// + /// 价值冲抵 + /// + public double RealOptionValueOffset; + /// + /// 保证金 + /// + public double Margin; + /// + /// 交易所保证金 + /// + public double ExchMargin; +} +/// +/// 投资者产品SPBM明细查询 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcQryInvestorProdSPBMDetailField +{ + public CThostFtdcQryInvestorProdSPBMDetailField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=81)] + public readonly byte[] _ProdFamilyCode = new byte[81]; + /// + /// 品种代码 + /// + public string ProdFamilyCode + { + get{ return GBKConvert.Instance.GetString(_ProdFamilyCode); } + set{ GBKConvert.Instance.GetBytes(value, _ProdFamilyCode); } + } +} +/// +/// 组保交易参数设置 +/// +[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] +public struct CThostFtdcPortfTradeParamSettingField +{ + public CThostFtdcPortfTradeParamSettingField() {} + [MarshalAs(UnmanagedType.ByValArray, SizeConst=9)] + public readonly byte[] _ExchangeID = new byte[9]; + /// + /// 交易所代码 + /// + public string ExchangeID + { + get{ return GBKConvert.Instance.GetString(_ExchangeID); } + set{ GBKConvert.Instance.GetBytes(value, _ExchangeID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=11)] + public readonly byte[] _BrokerID = new byte[11]; + /// + /// 经纪公司代码 + /// + public string BrokerID + { + get{ return GBKConvert.Instance.GetString(_BrokerID); } + set{ GBKConvert.Instance.GetBytes(value, _BrokerID); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst=13)] + public readonly byte[] _InvestorID = new byte[13]; + /// + /// 投资者代码 + /// + public string InvestorID + { + get{ return GBKConvert.Instance.GetString(_InvestorID); } + set{ GBKConvert.Instance.GetBytes(value, _InvestorID); } + } + public TThostFtdcPortfolioType Portfolio; + /// + /// 撤单是否验资 + /// + public int IsActionVerify; + /// + /// 平仓是否验资 + /// + public int IsCloseVerify; +} diff --git a/CTPAPI6.6.9/generated/ThostFtdcUserApiStruct.h b/CTPAPI6.6.9/generated/ThostFtdcUserApiStruct.h new file mode 100644 index 0000000..f2076df --- /dev/null +++ b/CTPAPI6.6.9/generated/ThostFtdcUserApiStruct.h @@ -0,0 +1,11195 @@ +///////////////////////////////////////////////////////////////////////// +///@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/CTPAPI6.6.9/thostmduserapi_se.dll b/CTPAPI6.6.9/thostmduserapi_se.dll new file mode 100644 index 0000000..6ebc1be Binary files /dev/null and b/CTPAPI6.6.9/thostmduserapi_se.dll differ diff --git a/CTPAPI6.6.9/thosttraderapi_se.dll b/CTPAPI6.6.9/thosttraderapi_se.dll new file mode 100644 index 0000000..c6154fe Binary files /dev/null and b/CTPAPI6.6.9/thosttraderapi_se.dll differ diff --git a/CTPInvoke/CTPInvoke.vcxproj b/CTPInvoke/CTPInvoke.vcxproj new file mode 100644 index 0000000..2d2bcfd --- /dev/null +++ b/CTPInvoke/CTPInvoke.vcxproj @@ -0,0 +1,169 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {89c59f81-c545-413c-aa8b-337aabf0bd45} + CTPInvoke + 10.0 + + + + DynamicLibrary + true + v143 + Unicode + + + DynamicLibrary + false + v143 + true + Unicode + + + DynamicLibrary + true + v143 + Unicode + + + DynamicLibrary + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + $(SolutionDir)Publish\Win64.NET7\$(Configuration)\ + + + $(SolutionDir)Publish\Win64.NET7\$(Configuration)\ + + + + Level3 + true + WIN32;_DEBUG;CTPINVOKE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + Use + pch.h + + + Windows + true + false + + + + + Level3 + true + true + true + WIN32;NDEBUG;CTPINVOKE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + Use + pch.h + + + Windows + true + true + true + false + + + + + Level3 + true + _DEBUG;CTPINVOKE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + NotUsing + pch.h + + + Windows + true + false + + + + + Level3 + true + true + true + NDEBUG;CTPINVOKE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + NotUsing + pch.h + + + Windows + true + true + true + false + + + + + + + + + + + + Create + Create + Create + Create + + + + + + + + + + \ No newline at end of file diff --git a/CTPInvoke/dllmain.cpp b/CTPInvoke/dllmain.cpp new file mode 100644 index 0000000..daed8c8 --- /dev/null +++ b/CTPInvoke/dllmain.cpp @@ -0,0 +1,19 @@ +// dllmain.cpp : 定义 DLL 应用程序的入口点。 +#include "pch.h" + +BOOL APIENTRY DllMain( HMODULE hModule, + DWORD ul_reason_for_call, + LPVOID lpReserved + ) +{ + switch (ul_reason_for_call) + { + case DLL_PROCESS_ATTACH: + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + diff --git a/CTPInvoke/framework.h b/CTPInvoke/framework.h new file mode 100644 index 0000000..80cbbc9 --- /dev/null +++ b/CTPInvoke/framework.h @@ -0,0 +1,5 @@ +#pragma once + +#define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的内容 +// Windows 头文件 +#include diff --git a/CTPInvoke/pch.cpp b/CTPInvoke/pch.cpp new file mode 100644 index 0000000..b6fb8f4 --- /dev/null +++ b/CTPInvoke/pch.cpp @@ -0,0 +1,5 @@ +// pch.cpp: 与预编译标头对应的源文件 + +#include "pch.h" + +// 当使用预编译的头时,需要使用此源文件,编译才能成功。 diff --git a/CTPInvoke/pch.h b/CTPInvoke/pch.h new file mode 100644 index 0000000..9660927 --- /dev/null +++ b/CTPInvoke/pch.h @@ -0,0 +1,13 @@ +// pch.h: 这是预编译标头文件。 +// 下方列出的文件仅编译一次,提高了将来生成的生成性能。 +// 这还将影响 IntelliSense 性能,包括代码完成和许多代码浏览功能。 +// 但是,如果此处列出的文件中的任何一个在生成之间有更新,它们全部都将被重新编译。 +// 请勿在此处添加要频繁更新的文件,这将使得性能优势无效。 + +#ifndef PCH_H +#define PCH_H + +// 添加要在此处预编译的标头 +#include "framework.h" + +#endif //PCH_H diff --git a/CTPSharp.sln b/CTPSharp.sln new file mode 100644 index 0000000..a56dfe1 --- /dev/null +++ b/CTPSharp.sln @@ -0,0 +1,65 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33205.214 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CTPInvoke", "CTPInvoke\CTPInvoke.vcxproj", "{89C59F81-C545-413C-AA8B-337AABF0BD45}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CTPSharp", "CTPSharp\CTPSharp.csproj", "{3DDFE734-E2A4-4A58-8842-00326A1452EC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Generator", "Generator\Generator.csproj", "{C8B66D92-82D8-4D56-923A-83ED51491328}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {89C59F81-C545-413C-AA8B-337AABF0BD45}.Debug|Any CPU.ActiveCfg = Debug|x64 + {89C59F81-C545-413C-AA8B-337AABF0BD45}.Debug|Any CPU.Build.0 = Debug|x64 + {89C59F81-C545-413C-AA8B-337AABF0BD45}.Debug|x64.ActiveCfg = Debug|x64 + {89C59F81-C545-413C-AA8B-337AABF0BD45}.Debug|x64.Build.0 = Debug|x64 + {89C59F81-C545-413C-AA8B-337AABF0BD45}.Debug|x86.ActiveCfg = Debug|Win32 + {89C59F81-C545-413C-AA8B-337AABF0BD45}.Debug|x86.Build.0 = Debug|Win32 + {89C59F81-C545-413C-AA8B-337AABF0BD45}.Release|Any CPU.ActiveCfg = Release|x64 + {89C59F81-C545-413C-AA8B-337AABF0BD45}.Release|Any CPU.Build.0 = Release|x64 + {89C59F81-C545-413C-AA8B-337AABF0BD45}.Release|x64.ActiveCfg = Release|x64 + {89C59F81-C545-413C-AA8B-337AABF0BD45}.Release|x64.Build.0 = Release|x64 + {89C59F81-C545-413C-AA8B-337AABF0BD45}.Release|x86.ActiveCfg = Release|Win32 + {89C59F81-C545-413C-AA8B-337AABF0BD45}.Release|x86.Build.0 = Release|Win32 + {3DDFE734-E2A4-4A58-8842-00326A1452EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3DDFE734-E2A4-4A58-8842-00326A1452EC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3DDFE734-E2A4-4A58-8842-00326A1452EC}.Debug|x64.ActiveCfg = Debug|Any CPU + {3DDFE734-E2A4-4A58-8842-00326A1452EC}.Debug|x64.Build.0 = Debug|Any CPU + {3DDFE734-E2A4-4A58-8842-00326A1452EC}.Debug|x86.ActiveCfg = Debug|Any CPU + {3DDFE734-E2A4-4A58-8842-00326A1452EC}.Debug|x86.Build.0 = Debug|Any CPU + {3DDFE734-E2A4-4A58-8842-00326A1452EC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3DDFE734-E2A4-4A58-8842-00326A1452EC}.Release|Any CPU.Build.0 = Release|Any CPU + {3DDFE734-E2A4-4A58-8842-00326A1452EC}.Release|x64.ActiveCfg = Release|Any CPU + {3DDFE734-E2A4-4A58-8842-00326A1452EC}.Release|x64.Build.0 = Release|Any CPU + {3DDFE734-E2A4-4A58-8842-00326A1452EC}.Release|x86.ActiveCfg = Release|Any CPU + {3DDFE734-E2A4-4A58-8842-00326A1452EC}.Release|x86.Build.0 = Release|Any CPU + {C8B66D92-82D8-4D56-923A-83ED51491328}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C8B66D92-82D8-4D56-923A-83ED51491328}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C8B66D92-82D8-4D56-923A-83ED51491328}.Debug|x64.ActiveCfg = Debug|Any CPU + {C8B66D92-82D8-4D56-923A-83ED51491328}.Debug|x64.Build.0 = Debug|Any CPU + {C8B66D92-82D8-4D56-923A-83ED51491328}.Debug|x86.ActiveCfg = Debug|Any CPU + {C8B66D92-82D8-4D56-923A-83ED51491328}.Debug|x86.Build.0 = Debug|Any CPU + {C8B66D92-82D8-4D56-923A-83ED51491328}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C8B66D92-82D8-4D56-923A-83ED51491328}.Release|Any CPU.Build.0 = Release|Any CPU + {C8B66D92-82D8-4D56-923A-83ED51491328}.Release|x64.ActiveCfg = Release|Any CPU + {C8B66D92-82D8-4D56-923A-83ED51491328}.Release|x64.Build.0 = Release|Any CPU + {C8B66D92-82D8-4D56-923A-83ED51491328}.Release|x86.ActiveCfg = Release|Any CPU + {C8B66D92-82D8-4D56-923A-83ED51491328}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D20102B8-1865-4512-9D3B-7EAA07683FE2} + EndGlobalSection +EndGlobal diff --git a/CTPSharp/CTPSharp.csproj b/CTPSharp/CTPSharp.csproj new file mode 100644 index 0000000..30b5206 --- /dev/null +++ b/CTPSharp/CTPSharp.csproj @@ -0,0 +1,36 @@ + + + + net7.0 + enable + enable + XP.CTPSharp + True + bin + + + + + + + + + + + + + + + + True + True + True + True + + + + + + + + diff --git a/CTPSharp/ErrorReturn.cs b/CTPSharp/ErrorReturn.cs new file mode 100644 index 0000000..e97957b --- /dev/null +++ b/CTPSharp/ErrorReturn.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace XP.CTPSharp; + +public class ErrorReturn +{ + public T Field { get; } + public CThostFtdcRspInfoField RspInfo { get; } + + internal ErrorReturn(T field, CThostFtdcRspInfoField rspInfo) + { + Field = field; + RspInfo = rspInfo; + } +} diff --git a/CTPSharp/GBKConvert.cs b/CTPSharp/GBKConvert.cs new file mode 100644 index 0000000..29dd443 --- /dev/null +++ b/CTPSharp/GBKConvert.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace XP.CTPSharp; + +internal class GBKConvert +{ + private readonly Encoding _GBKEncoding = System.Text.CodePagesEncodingProvider.Instance.GetEncoding("GBK")!; + public static GBKConvert Instance { get; } = new GBKConvert(); + + public string GetString(byte[] bytes) + { + return _GBKEncoding.GetString(bytes).Trim('\0'); + } + + public unsafe string GetString(IntPtr ptr) + { + if (ptr == IntPtr.Zero) return ""; + int nbBytes = 0; + for (byte* p = (byte*)ptr; *p != 0; p += 1, nbBytes += 1) ; + return _GBKEncoding.GetString((byte*)ptr, nbBytes); + } + + public void GetBytes(string str, byte[] bytes) + { + _GBKEncoding.GetBytes(str, bytes); + } + + public byte[] GetBytes(string str) + { + return _GBKEncoding.GetBytes(str); + } +} diff --git a/CTPSharp/MdAPI.cs b/CTPSharp/MdAPI.cs new file mode 100644 index 0000000..bc8d4dd --- /dev/null +++ b/CTPSharp/MdAPI.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Runtime.InteropServices; +using System.Text; +using System.Threading.Tasks; + +namespace XP.CTPSharp; + +public sealed class MdAPI: IDisposable +{ + private readonly CThostFtdcMdApi _api; + private MdSPI _spi = new(); + private readonly RequestId _requestId = new(201); + + public event Action? FrontConnected; + public event Action? FrontDisconnected; + + /// + /// 行情接收事件 + /// + public event Action? DepthMarketDataArrived; + + public MdAPI(string flowPath) + { + _spi.FrontConnected += () => FrontConnected?.Invoke(); + _spi.FrontDisconnected += (e) => FrontDisconnected?.Invoke(e); + _spi.DepthMarketDataArrived += (e) => DepthMarketDataArrived?.Invoke(e); + + _api = new(flowPath); + _api.RegisterSpi(_spi.Handle); + } + + public void Dispose() + { + _api.RegisterSpi(0); + _api.Dispose(); + } + + public string GetVersion() => _api.GetApiVersion(); + + public void RegisterFront(string pszFrontAddress) + { + _api.RegisterFront(pszFrontAddress); + } + + public void Init() + { + _api.Init(); + } + + public void RegisterNameServer(string pszNsAddress) + { + _api.RegisterNameServer(pszNsAddress); + } + + public void RegisterFensUserInfo(ref CThostFtdcFensUserInfoField pFensUserInfo) + { + _api.RegisterFensUserInfo(ref pFensUserInfo); + } + + public async Task> + SubscribeMarketDataAsync(string[] instrumentsIds) + { + _spi.SubscribeReq = new PendingRequest(_requestId.Next()); + + using var strArray = new StringArray(instrumentsIds); + while (_api.SubscribeMarketData(strArray.Handle, strArray.Count) != 0) + { + await Task.Delay(1000); + } + + return await _spi.SubscribeReq.Task.ConfigureAwait(false); + } + + public async Task> + UnSubscribeMarketDataAsync(string[] instrumentsIds) + { + _spi.UnsubscribeReq = new PendingRequest(_requestId.Next()); + using var strArray = new StringArray(instrumentsIds); + while (_api.UnSubscribeMarketData(strArray.Handle, strArray.Count) != 0) + { + await Task.Delay(1000); + } + + return await _spi.UnsubscribeReq.Task.ConfigureAwait(false); + } + + public async Task> + ReqUserLoginAsync(CThostFtdcReqUserLoginField pReqUserLoginField) + { + _spi.LoginReq = new PendingRequest(_requestId.Next()); + while (_api.ReqUserLogin(ref pReqUserLoginField, _spi.LoginReq.RequestId) != 0) + { + await Task.Delay(1000); + } + + return await _spi.LoginReq.Task.ConfigureAwait(false); + } +} diff --git a/CTPSharp/MdSPI.cs b/CTPSharp/MdSPI.cs new file mode 100644 index 0000000..ad75510 --- /dev/null +++ b/CTPSharp/MdSPI.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace XP.CTPSharp; + +internal sealed class MdSPI : CThostFtdcMdSpi +{ + public PendingRequest? LoginReq; + public PendingRequest? SubscribeReq; + public PendingRequest? UnsubscribeReq; + + public event Action? FrontConnected; + public event Action? FrontDisconnected; + public event Action? DepthMarketDataArrived; + + public MdSPI() + { + } + + public sealed override void OnFrontConnected() + { + FrontConnected?.Invoke(); + } + + public sealed override void OnFrontDisconnected(int nReason) + { + LoginReq = null; + SubscribeReq = null; + UnsubscribeReq = null; + FrontDisconnected?.Invoke(nReason); + } + + public sealed override void OnRspSubMarketData( + ref CThostFtdcSpecificInstrumentField pSpecificInstrument, + ref CThostFtdcRspInfoField pRspInfo, + int nRequestID, bool bIsLast) + { + Debug.Assert(bIsLast); // 一次请求应该只有一个callback + // MD API 的callback并不带回发送时的 request id,所以总是当作最后一个请求的应答 + SubscribeReq?.SetResponseComplete(pSpecificInstrument, pRspInfo); + SubscribeReq = null; + } + + public sealed override void OnRspUnSubMarketData( + ref CThostFtdcSpecificInstrumentField pSpecificInstrument, + ref CThostFtdcRspInfoField pRspInfo, + int nRequestID, bool bIsLast) + { + Debug.Assert(bIsLast); // 一次请求应该只有一个callback + UnsubscribeReq?.SetResponseComplete(pSpecificInstrument, pRspInfo); + UnsubscribeReq = null; + } + + public sealed override void OnRtnDepthMarketData(ref CThostFtdcDepthMarketDataField pDepthMarketData) + { + DepthMarketDataArrived?.Invoke(pDepthMarketData); + } + + public sealed override void OnRspUserLogin( + ref CThostFtdcRspUserLoginField pRspUserLogin, + ref CThostFtdcRspInfoField pRspInfo, + int nRequestID, bool bIsLast) + { + Debug.Assert(bIsLast); // 一次请求应该只有一个callback + LoginReq?.SetResponseComplete(pRspUserLogin, pRspInfo); + LoginReq = null; + } +} diff --git a/CTPSharp/PendingRequest.cs b/CTPSharp/PendingRequest.cs new file mode 100644 index 0000000..0f36b2f --- /dev/null +++ b/CTPSharp/PendingRequest.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace XP.CTPSharp; + +public sealed class CTPResponse : Tuple where TResp : new() +{ + public CTPResponse(TResp? item1, CThostFtdcRspInfoField item2) : base(item1, item2) + { + } + + public TResp? Response => Item1; + public CThostFtdcRspInfoField InfoField=> Item2; + public bool NoError => Item2.NoError; +} + +internal interface ICancelable +{ + void SetCanceled(); +} +internal class PendingRequest: ICancelable where TResp : new() +{ + public int RequestId { get; } + internal TResp? Response { get; private set; } + + private TaskCompletionSource> _taskCompletionSource = new(); + public Task> Task => _taskCompletionSource.Task; + + public PendingRequest(int requestId) + { + Response = new(); + RequestId = requestId; + } + + public void SetResponseComplete(TResp resp, CThostFtdcRspInfoField rspInfoField) + { + if (rspInfoField.NoError) + { + Response = resp; + _taskCompletionSource.SetResult(new(Response, rspInfoField)); + } + else + { + _taskCompletionSource.SetResult(new(default, rspInfoField)); + } + } + + public void SetResponseComplete(CThostFtdcRspInfoField rspInfoField) + { + if (rspInfoField.NoError) + { + _taskCompletionSource.SetResult(new(Response, rspInfoField)); + Response = default; + } + else + { + _taskCompletionSource.SetResult(new(default, rspInfoField)); + } + } + + public void SetCanceled() + { + _taskCompletionSource.SetCanceled(); + } +} diff --git a/CTPSharp/RequestId.cs b/CTPSharp/RequestId.cs new file mode 100644 index 0000000..6b80607 --- /dev/null +++ b/CTPSharp/RequestId.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace XP.CTPSharp; + +internal class RequestId +{ + int _value; + public RequestId(int value) + { + _value = value; + } + + public int Next() + { + return Interlocked.Add(ref _value, 1); + } +} diff --git a/CTPSharp/StringArray.cs b/CTPSharp/StringArray.cs new file mode 100644 index 0000000..db30fad --- /dev/null +++ b/CTPSharp/StringArray.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.InteropServices; +using System.Text; +using System.Threading.Tasks; + +namespace XP.CTPSharp; + +internal class StringArray : IDisposable +{ + internal int Count => _strPtrs.Length; + private IntPtr _ppStr; + private readonly IntPtr[] _strPtrs; + public IntPtr Handle => _ppStr; + public StringArray(string[] strings) + { + _strPtrs = new IntPtr[strings.Length]; + var ptrSize = Marshal.SizeOf(typeof(IntPtr)); + _ppStr = Marshal.AllocHGlobal(ptrSize * Count); + var ptr = _ppStr; + for (int i = 0; i < Count; i++, ptr += ptrSize) + { + var gbkBytes = GBKConvert.Instance.GetBytes(strings[i]); + _strPtrs[i] = Marshal.AllocHGlobal(gbkBytes.Length); + Marshal.Copy(gbkBytes, 0, _strPtrs[i], gbkBytes.Length); + Marshal.WriteIntPtr(ptr, _strPtrs[i]); + } + } + + public void Dispose() + { + if (_ppStr == 0) return; + + Marshal.FreeHGlobal( _ppStr ); + _ppStr = 0; + + for (var i=0; i< _strPtrs.Length; ++i) + { + Marshal.FreeHGlobal(_strPtrs[i]); + } + } +} diff --git a/CTPSharp/TdAPI.cs b/CTPSharp/TdAPI.cs new file mode 100644 index 0000000..c57eaf5 --- /dev/null +++ b/CTPSharp/TdAPI.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.Metrics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace XP.CTPSharp; + +public sealed partial class TdAPI: IDisposable +{ + private readonly CThostFtdcTraderApi _api; + private readonly TdSPI _spi = new(); + private readonly RequestId _requestId = new(101); + + public TdAPI(string flowPath) + { + SubscribeSPI(); + _api = new(flowPath); + _api.RegisterSpi(_spi.Handle); + } + + public void Dispose() + { + _api.RegisterSpi(0); + _api.Dispose(); + } + + public void RegisterFront(string pszFrontAddress) + { + _api.RegisterFront(pszFrontAddress); + } + + public void Init() + { + _api.Init(); + } + + public void RegisterNameServer(string pszNsAddress) + { + _api.RegisterNameServer(pszNsAddress); + } + + public void RegisterFensUserInfo(ref CThostFtdcFensUserInfoField pFensUserInfo) + { + var p = pFensUserInfo; + _api.RegisterFensUserInfo(ref p); + } + + public void SubscribePrivateTopic(THOST_TE_RESUME_TYPE nResumeType) + { + _api.SubscribePrivateTopic(nResumeType); + } + + public void SubscribePublicTopic(THOST_TE_RESUME_TYPE nResumeType) + { + _api.SubscribePublicTopic(nResumeType); + } +} diff --git a/CTPSharp/TdSPI.cs b/CTPSharp/TdSPI.cs new file mode 100644 index 0000000..f1a628b --- /dev/null +++ b/CTPSharp/TdSPI.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace XP.CTPSharp; + +internal partial class TdSPI: CThostFtdcTraderSpi +{ + private readonly ConcurrentDictionary _pendingRequests = new(); + internal void CachePendingRequest(PendingRequest pending) where T : new() + { + _pendingRequests[pending.RequestId] = pending; + } + + private void CompleteListPending( + TResponse resp, + CThostFtdcRspInfoField pRspInfo, + int nRequestID, + bool bIsLast) where TResponse : new() + { + var exist = bIsLast ? _pendingRequests.TryRemove(nRequestID, out var req) + : _pendingRequests.TryGetValue(nRequestID, out req); + Debug.Assert(exist); + if (exist && req is PendingRequest> pending) + { + if (pRspInfo.NoError) + { + pending.Response?.Add(resp); + } + if (bIsLast) + { + // 不要在PInvoke的回调里设置Complete + Task.Run(() => { pending.SetResponseComplete(pRspInfo); }); + } + } + } +} diff --git a/Generator/Generator.csproj b/Generator/Generator.csproj new file mode 100644 index 0000000..f02677b --- /dev/null +++ b/Generator/Generator.csproj @@ -0,0 +1,10 @@ + + + + Exe + net7.0 + enable + enable + + + diff --git a/Generator/Program.cs b/Generator/Program.cs new file mode 100644 index 0000000..c9b8598 --- /dev/null +++ b/Generator/Program.cs @@ -0,0 +1,1319 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Text.RegularExpressions; +using System.Xml.Linq; + +internal partial class Program +{ + internal static Dictionary CharArrayTypes = new(); + internal static Dictionary AliasTypes = new(); + internal static SortedSet Enums = new(); + internal static SortedSet Structs = new(); + private static void Main(string[] args) + { + var dir = typeof(Program).Assembly.Location!; + dir = Path.GetDirectoryName(dir)!; + var apiFolder = FindAPIFolder(dir); + if (apiFolder == null) + { + Console.WriteLine("未能找到CTPAPI目录"); + return; + } + Console.WriteLine($"找到CTPAPI目录:{apiFolder}"); + var dataTypeFile = Path.Combine(apiFolder, "ThostFtdcUserApiDataType.h"); + if (!File.Exists(dataTypeFile)) + { + Console.WriteLine("未能找到 ThostFtdcUserApiDataType.h"); + return; + } + var structFile = Path.Combine(apiFolder, "ThostFtdcUserApiStruct.h"); + if (!File.Exists(structFile)) + { + Console.WriteLine("未能找到 ThostFtdcUserApiStruct.h"); + return; + } + var mdFile = Path.Combine(apiFolder, "ThostFtdcMdApi.h"); + if (!File.Exists(mdFile)) + { + Console.WriteLine("未能找到 ThostFtdcMdApi.h"); + return; + } + var tdFile = Path.Combine(apiFolder, "ThostFtdcTraderApi.h"); + if (!File.Exists(tdFile)) + { + Console.WriteLine("未能找到 ThostFtdcTraderApi.h"); + return; + } + var outDir = Path.Combine(apiFolder, "generated"); + if(!Directory.Exists(outDir)) + { + Directory.CreateDirectory(outDir); + } + // 拷贝输入的.h 文件到输出目录 + foreach(var f in Directory.EnumerateFiles(apiFolder, "*.h")) + { + var fileName = Path.Combine(outDir, Path.GetFileName(f)); + if (!File.Exists(fileName)) + { + File.Copy(f, fileName); + } + } + + GenerateDataType(input: dataTypeFile, outDir: outDir); + GenerateStructs(input: structFile, outDir: outDir); + GenerateTradeApi( + input: tdFile, + outCpp: "CTPTd.cpp", + outDir: outDir); + GenerateTradeApi( + input: mdFile, + outCpp: "CTPMd.cpp", + outDir: outDir); + } + + private static void GenerateStructs(string input, string outDir) + { + using var reader = new StreamReader(input); + var content = reader.ReadToEnd(); + var lines = content.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries); + + var writer = new StreamWriter(Path.Combine(outDir, "ThostFtdcUserApiStruct.cs")); + writer.WriteLine("//由 generator生成的文件,不要手工修改"); + writer.WriteLine(); + writer.WriteLine("using System.Runtime.InteropServices;"); + writer.WriteLine("namespace XP.CTPSharp;"); + + var blockBegin = 0; + var blockEnd = 0; + + for (var i = 0; i < lines.Length; i++) + { + var line = lines[i]; + var match = StuctDefRegex().Match(line); + if (match.Success) + { + blockBegin = i; + continue; + } + + if(blockEnd < blockBegin && lines[i]=="};") + { + blockEnd = i; + var block = new List(); + for(var n=blockBegin -1; n < blockEnd; ++n) + { + block.Add(lines[n].Trim(' ', '\t')); + } + blockBegin = blockEnd; + HandleStructBlock(block, writer); + } + } + + writer.Flush(); + } + + private static void HandleStructBlock(List block, StreamWriter writer) + { + var match = StuctDefRegex().Match(block[1]); + var name = match.Groups[1].Value; + var comment = block[0].Substring(3); + writer.WriteLine("/// "); + writer.WriteLine($"/// {comment}"); + writer.WriteLine("/// "); + writer.WriteLine("[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]"); + writer.WriteLine($"public struct {name}"); + writer.WriteLine("{"); + writer.WriteLine($" public {name}()" + " {}"); + if ("CThostFtdcRspInfoField" == name) + { + writer.WriteLine(" public bool NoError => ErrorID == 0;"); + } + for (var i = 4; i < block.Count; ++i) + { + match = StuctFieldDefRegex().Match(block[i]); + if (match.Success) + { + var fieldType = match.Groups[1].Value; + var fieldName = match.Groups[2].Value; + comment = block[i - 1].Substring(3); + + if (CharArrayTypes.TryGetValue(fieldType, out var attr)) + { + var mm = MarshalBytesRegex().Match(attr); + var size = mm.Groups[1].Value; + writer.WriteLine($" {attr}"); + writer.WriteLine($" public readonly byte[] _{fieldName} = new byte[{size}];"); + writer.WriteLine(" /// "); + writer.WriteLine($" /// {comment}"); + writer.WriteLine(" /// "); + writer.WriteLine($" public string {fieldName}"); + writer.WriteLine(" {"); + writer.WriteLine($" get{{ return GBKConvert.Instance.GetString(_{fieldName}); }}"); + writer.WriteLine($" set{{ GBKConvert.Instance.GetBytes(value, _{fieldName}); }}"); + writer.WriteLine(" }"); + } + else if (AliasTypes.TryGetValue(fieldType, out var alias)) + { + writer.WriteLine(" /// "); + writer.WriteLine($" /// {comment}"); + writer.WriteLine(" /// "); + writer.WriteLine($" public {alias} {fieldName};"); + } + else + { + Debug.Assert(Enums.Contains(fieldType)); + writer.WriteLine($" public {fieldType} {fieldName};"); + } + } + } + writer.WriteLine("}"); + Structs.Add(name); + } + + private static void GenerateDataType(string input, string outDir) + { + using var reader = new StreamReader(input); + var content = reader.ReadToEnd(); + var lines = content.Split(new char[] {'\r', '\n'}, StringSplitOptions.RemoveEmptyEntries); + + var writer = new StreamWriter(Path.Combine(outDir, "ThostFtdcUserApiDataType.cs")); + writer.WriteLine("//由 generator生成的文件,不要手工修改"); + writer.WriteLine(); + writer.WriteLine("namespace XP.CTPSharp;"); + + int lineNum = 0; + + // 跳过文件头 + for (var i=0; i(); + for (var i= blockBegin; i<= blockEnd; ++i) + { + block.Add(lines[i]); + } + blockBegin = blockEnd; + HandleDataTypeBlock(block, writer); + } + } + else if (line.StartsWith("///")) + { + blockBegin = lineNum; + continue; + } + } + + writer.Flush(); + + AliasTypes["double"] = "double"; + AliasTypes["int"] = "int"; + AliasTypes["short"] = "int"; + AliasTypes["long"] = "int"; + AliasTypes["long long"] = "long"; + } + + private static void HandleDataTypeBlock(List block, StreamWriter writer) + { + if (block[0].StartsWith("enum")) + { + writer.WriteLine($"public {block[0]}"); + writer.WriteLine("{"); + for (var i = 1; i < block.Count; ++i) + { + var line = block[i]; + if (line != "{" && line != "};") + { + writer.WriteLine(block[i]); + } + } + writer.WriteLine("}"); + writer.WriteLine(); + } + else if (block.Find(x => x.StartsWith("#define")) != null) + { + var last = block.Last(); + var match = EnumCharTypedefRegex().Match(last); + Debug.Assert(match.Success); + var name = match.Groups[1].Value; + Enums.Add(name); + writer.WriteLine("/// "); + var comment = block[1].Substring(block[1].IndexOf("是一个") + 3); + writer.WriteLine($"/// {comment}"); + writer.WriteLine("/// "); + writer.WriteLine($"public enum {name}: byte"); + writer.WriteLine("{"); + for (var i = 1; i"); + writer.WriteLine($" /// {comment}"); + writer.WriteLine( " /// "); + writer.WriteLine($" {caseName} = (byte){caseValue},"); + } + } + writer.WriteLine("}"); + } + else + { + var match = EnumDoubleTypedefRegex().Match(block.Last()); + if (match.Success) + { + var def = match.Groups[1].Value; + AliasTypes[def] = "double"; + return; + } + match = EnumIntTypedefRegex().Match(block.Last()); + if (match.Success) + { + var def = match.Groups[1].Value; + AliasTypes[def] = "int"; + return; + } + match = EnumShortTypedefRegex().Match(block.Last()); + if (match.Success) + { + var def = match.Groups[1].Value; + AliasTypes[def] = "short"; + return; + } + match = EnumCharTypedefRegex().Match(block.Last()); + if (match.Success) + { + var def = match.Groups[1].Value; + AliasTypes[def] = "byte"; + return; + } + { + match = CharArrayTypedefRegex().Match(block.Last()); + Debug.Assert(match.Success); + var def = match.Groups[1].Value; + var num = match.Groups[2].Value; + CharArrayTypes[def] = $"[MarshalAs(UnmanagedType.ByValArray, SizeConst={num})]"; + } + } + } + + private static void GenerateTradeApi( + string input, + string outCpp, + string outDir) + { + using var reader = new StreamReader(input); + var content = reader.ReadToEnd(); + var lines = content.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries); + + + var writer = new StreamWriter(Path.Combine(outDir, outCpp)); + writer.WriteLine("//由 generator生成的文件,不要手工修改"); + writer.WriteLine(); + writer.WriteLine($"#include \"{Path.GetFileName(input)}\""); + writer.WriteLine(); + writer.WriteLine(StdCallDef); + writer.WriteLine(); + writer.WriteLine(ExportDef); + writer.WriteLine(); + + var classBegin = 0; + var classEnd = 0; + var blockSpi = new List(); + var blockApi = new List(); + for (var i=0; i HandleSpi(List block, StreamWriter writer, string outDir) + { + var match = ClassDefRegex().Match(block[0]); + var className = match.Groups[1].Value; + var methods = ParseMethods(block); + + // 创建一个新的 struct,其中放置 c 形式 callback + var structName = $"CTPSharp_{className}"; + writer.WriteLine($"struct {structName}"); + writer.WriteLine("{"); + foreach (var m in methods) + { + writer.WriteLine($" {FuncPtrDeclare(m)}"); + } + writer.WriteLine("};"); + + // 创建一个派生类来调用 + var extClass = $"{className}_Ex"; + writer.WriteLine($"class {extClass}: public {className}"); + writer.WriteLine("{"); + writer.WriteLine($" {structName} _callbacks;"); + writer.WriteLine("public:"); + writer.WriteLine($" {extClass}(const {structName}* callbacks)" + "{ _callbacks = *callbacks; }"); + foreach (var m in methods) + { + writer.WriteLine(FuncCallback(m)); + } + writer.WriteLine("};"); + + // 创建 C 形式构建和删除函数 + writer.WriteLine("extern \"C\""); + writer.WriteLine($"CTPSHARP_EXPORT void* CTPSHARP_STDCALL {className}_New(const {structName}* callbacks)"); + writer.WriteLine("{"); + writer.WriteLine($" return new {extClass}(callbacks);"); + writer.WriteLine("}"); + writer.WriteLine("extern \"C\""); + writer.WriteLine($"CTPSHARP_EXPORT void CTPSHARP_STDCALL {className}_Delete(void* spi)"); + writer.WriteLine("{"); + writer.WriteLine($" delete ({extClass}*)spi;"); + writer.WriteLine("}"); + + GenerateManagedSpi(outDir, className, methods, structName); + + return methods; + } + + private static void GenerateManagedSpi(string outDir, string className, + List methods, string structName) + { + // cs文件 + var pinvokeFile = Path.Combine(outDir, $"PInvoke{className}.cs"); + using var writer = new StreamWriter(pinvokeFile); + writer.WriteLine("using System.Runtime.InteropServices;"); + writer.WriteLine("namespace XP.CTPSharp;"); + writer.WriteLine(""); + // 创建 callback cs结构 + writer.WriteLine("[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]"); + writer.WriteLine($"internal struct {structName}"); + writer.WriteLine("{"); + foreach (var m in methods) + { + writer.WriteLine(ManagedFuncDeclare(m)); + } + writer.WriteLine("}"); + // 创建 PInvoke方法 + writer.WriteLine("internal partial class CTPSharpPInvoke"); + writer.WriteLine("{"); + writer.WriteLine($" [DllImport(\"CTPInvoke\", EntryPoint=\"{className}_New\", CharSet=CharSet.Ansi)]"); + writer.WriteLine($" public extern static IntPtr {className}_New(ref {structName} callback);"); + writer.WriteLine(""); + writer.WriteLine($" [DllImport(\"CTPInvoke\", EntryPoint=\"{className}_Delete\", CharSet=CharSet.Ansi)]"); + writer.WriteLine($" public extern static void {className}_Delete(IntPtr spi);"); + writer.WriteLine("}"); + // 创建 SPI class + writer.WriteLine($"public class {className}: IDisposable"); + writer.WriteLine("{"); + writer.WriteLine($" {structName} _spi = new();"); + writer.WriteLine(" IntPtr _handle;"); + writer.WriteLine(" internal IntPtr Handle => _handle;"); + writer.WriteLine($" public {className}()"); + writer.WriteLine(" {"); + foreach (var m in methods) + { + writer.WriteLine($" _spi.{m.Name} = this.{m.Name};"); + } + writer.WriteLine($" _handle = CTPSharpPInvoke.{className}_New(ref _spi);"); + writer.WriteLine(" }"); + foreach (var m in methods) + { + writer.WriteLine(ManagedFuncEmpty(m)); + } + writer.WriteLine(" private void Close()"); + writer.WriteLine(" {"); + writer.WriteLine($" CTPSharpPInvoke.{className}_Delete(_handle);"); + writer.WriteLine(" _handle = 0;"); + writer.WriteLine(" }"); + writer.WriteLine(DisposingTemplate); + writer.WriteLine("}"); + writer.Flush(); + + GenerateAsyncSPI(outDir, className, methods); + } + + const string DisposingTemplate = """ + private bool disposedValue = false; + protected virtual void Dispose(bool disposing) + { + if (!disposedValue) + { + if (disposing) + { + Close(); + } + disposedValue = true; + } + } + + public void Dispose() + { + Dispose(disposing: true); + GC.SuppressFinalize(this); + } + + """; + + private static void GenerateAsyncSPI(string outDir, string className, + List methods) + { + if (className == "CThostFtdcMdSpi") return; //只生成TdSPI, MdSPI手写即可 + // 分类函数,区分主动上报和请求应答 + var listEvents = new List(); + var listResp = new List(); + foreach(var m in methods) + { + if(m.Name.StartsWith("OnRsp")) + listResp.Add(m); + else + listEvents.Add(m); + } + // 创建 cs文件 + var fileName = Path.Combine(outDir, $"{className}_gen.cs"); + using var writer = new StreamWriter(fileName); + writer.WriteLine("using System.Diagnostics;"); + writer.WriteLine("namespace XP.CTPSharp;"); + writer.WriteLine($"internal partial class TdSPI"); + writer.WriteLine("{"); + foreach(var m in listEvents) + { + writer.WriteLine(EventDeclare(m, isPublic: false)); + } + foreach (var m in listEvents) + { + writer.WriteLine($" public sealed override void {m.Name}({ManagedParamDeclare(m)})"); + writer.WriteLine(" {"); + if (m.Params.Count == 0) + { + writer.WriteLine($" {m.Name[2..]}?.Invoke();"); + } + else if (m.Params.Count == 1) + { + writer.WriteLine($" {m.Name[2..]}?.Invoke({m.Params[0].Name});"); + } + else + { + var p = m.Params[0]; + var eventParm = $"ErrorReturn<{p.CType.ManagedDeclare(asParam: false)}>"; + writer.WriteLine($" {m.Name[2..]}?.Invoke(new {eventParm}({p.Name}, {m.Params[1].Name}));"); + } + writer.WriteLine(" }"); + } + + foreach(var m in listResp) + { + Debug.Assert(m.Params.Count == 4 || m.Name == "OnRspError"); + if (m.Name == "OnRspError") continue; // 错误应答不知如何处理,忽略掉 + writer.WriteLine($" public sealed override void {m.Name}({ManagedParamDeclare(m)})"); + writer.WriteLine(" {"); + writer.WriteLine($" CompleteListPending({m.Params[0].Name},{m.Params[1].Name},{m.Params[2].Name},{m.Params[3].Name});"); + writer.WriteLine(" }"); + } + + writer.WriteLine("}"); + writer.Flush(); + } + + private static string EventDeclare(MethodInfo m, bool isPublic) + { + Debug.Assert(m.Name.StartsWith("On")); + var access = isPublic ? "public" : "internal"; + if (m.Params.Count == 0) + { + return $" {access} event Action? {m.Name[2..]};"; + } + else if(m.Params.Count == 1) + { + var p = m.Params[0]; + return $" {access} event Action<{p.CType.ManagedDeclare(asParam: false)}>? {m.Name[2..]};"; + } + else + { + Debug.Assert(m.Params.Count == 2 && m.Params[1].CType.Name == "CThostFtdcRspInfoField"); + var p = m.Params[0]; + var eventParm = $"ErrorReturn<{p.CType.ManagedDeclare(asParam: false)}>"; + return $" {access} event Action<{eventParm}>? {m.Name[2..]};"; + } + } + + private static string ManagedFuncDeclare(MethodInfo m) + { + var builder = new StringBuilder(); + builder.AppendLine($" [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true)]"); + builder.AppendLine($" internal delegate {m.Return.CType.ManagedDeclare(asParam:false)} Del{m.Name}({ManagedParamDeclare(m)});"); + builder.AppendLine($" internal Del{m.Name} {m.Name};"); + return builder.ToString(); + } + + private static string ManagedFuncEmpty(MethodInfo m) + { + var builder = new StringBuilder(); + if (!string.IsNullOrEmpty(m.Comment)) + { + builder.AppendLine(" /// "); + builder.AppendLine($" /// {m.Comment}"); + builder.AppendLine(" /// "); + foreach (var p in m.Params) + { + if (!string.IsNullOrEmpty(p.Comment)) + { + builder.AppendLine($" /// {p.Comment}"); + } + } + } + builder.AppendLine($" public virtual {m.Return.CType.ManagedDeclare(asParam: false)} {m.Name}({ManagedParamDeclare(m)})" + "{}"); + return builder.ToString(); + } + + private static string ManagedParamDeclare(MethodInfo m) + { + var builder = new StringBuilder(); + foreach (var p in m.Params) + { + builder.Append(p.ManagedDeclare); + } + var parm = builder.ToString().Trim(','); + return parm; + } + + private static string ManagedParamDeclareNoAttr(MethodInfo m) + { + var builder = new StringBuilder(); + foreach (var p in m.Params) + { + builder.Append(p.ManagedDeclare); + } + var parm = builder.ToString().Trim(','); + return parm; + } + + private static string FuncCallback(MethodInfo m) + { + Debug.Assert(m.IsVirtual); + var builder = new StringBuilder(); + builder.AppendLine($" virtual {m.Return.CDeclare} {m.Name}({ParamDeclare(m)})"); + builder.AppendLine( " {"); + var pRspInfo = m.Params.Find(x => x.CType.Name == "CThostFtdcRspInfoField"); + + if (m.Params.Count >= 1) + { + for (var i = 0; i < m.Params.Count; ++i) + { + var parm = m.Params[i]; + if (Structs.Contains(parm.CType.Name) && (parm.CType.Pointer == "*")) + { + builder.AppendLine($" //{parm.Name} 回调 C# 参数 不能为 NULL"); + builder.AppendLine($" {parm.CType.Name} zero{i} = " + "{0};"); + builder.AppendLine($" if (!{parm.Name}) {parm.Name} = &zero{i};"); + } + } + } + builder.AppendLine($" _callbacks.{m.Name}({ParamCall(m)});"); + builder.AppendLine( " }"); + return builder.ToString(); + } + + private static string FuncPtrDeclare(MethodInfo m) + { + string parm = ParamDeclare(m); + return $"{m.Return.CDeclare} (CTPSHARP_STDCALL *{m.Name})({parm});"; + } + + private static string ParamCall(MethodInfo m) + { + var builder = new StringBuilder(); + foreach (var p in m.Params) + { + builder.Append($"{p.Name},"); + } + var parm = builder.ToString().Trim(','); + return parm; + } + + private static string ParamCallManaged(MethodInfo m) + { + var builder = new StringBuilder(); + foreach (var p in m.Params) + { + builder.Append(p.ManagedFill); + } + var parm = builder.ToString().Trim(','); + return parm; + } + + private static string ParamDeclare(MethodInfo m) + { + var builder = new StringBuilder(); + foreach (var p in m.Params) + { + builder.Append($"{p.CDeclare},"); + } + var parm = builder.ToString().Trim(','); + return parm; + } + + private static List ParseMethods(List block) + { + List methods = new(); + for (var i = 2; i < block.Count; ++i) + { + var line = block[i].Trim('\t', ' '); + if (line.Length == 0 || line == "public:" || line == "protected:") continue; + if (line.StartsWith("virtual") || line.StartsWith("static")) + { + var a = line.IndexOf('('); + var b = line.IndexOf(")"); + var declare = line[..a].Trim(); + var isConst = declare.Contains("const"); + if (isConst) declare = declare.Replace("const", ""); + var match = VirtualFunctionDefRegex().Match(declare); + if (!match.Success) match = StaticFunctionDefRegex().Match(declare); + var ret = match.Groups[1].Value; + var retStar = match.Groups[2].Value; + var name = match.Groups[3].Value; + var pars = line.Substring(a + 1, b - a - 1); + + var cType = new CType { IsConst=isConst, Name=ret, Pointer = retStar }; + var method = new MethodInfo(name, new ReturnInfo { CType = cType }) + { + IsVirtual = line.Contains("virtual"), + IsStatic = line.Contains("static"), + }; + methods.Add(method); + if (!string.IsNullOrEmpty(pars)) + { + method.Params.AddRange(ParseParams(pars)); + } + var commentBegin = i; + var commentEnd = i; + for(var j=i-1; j>=0; --j) + { + if (block[j].Contains("///")) + { + commentBegin = j; + } + else + { + break; + } + } + var comments = new List(); + for(var j= commentBegin; j< commentEnd; ++j) + { + comments.Add(block[j].Trim(' ', '\t')); + } + if(comments.Count >0) + { + ParseComments(comments, method); + } + } + else + { + Debug.Assert(line.StartsWith("//") || line=="};" || line.StartsWith("~")); + } + } + + return methods; + } + + private static void ParseComments(List comments, MethodInfo method) + { + method.Comment = comments[0].Replace("///", ""); + foreach(var c in comments) + { + if (c.Contains("@param")) + { + var match = ParamCommentRegex().Match(c); + Debug.Assert(match.Success); + var paramName = match.Groups[1].Value; + var param = method.Params.Find(x => x.Name == paramName); + if(param != null) + { + var content = c.Substring(match.Groups[0].Value.Length).Trim(':', ' ', ':'); + param.Comment= content; + } + } + } + } + + private static List ParseParams(string pars) + { + var result = new List(); + var items= pars.Split(',', StringSplitOptions.RemoveEmptyEntries); + foreach(var item in items) + { + var v = item.Trim(); + var splitted = v.Split('=', StringSplitOptions.RemoveEmptyEntries); + v = splitted[0].Trim(); + var isConst = v.Contains("const"); + if (isConst) v = v.Replace("const", ""); + var match = ParamDefRegex().Match(v); + Debug.Assert(match.Success); + var cType = new CType + { + IsConst = isConst, + Name = match.Groups[1].Value, + Pointer= match.Groups[2].Value, + }; + Debug.Assert(match.Groups.Count == 5); + if (match.Groups[4].Value == "[]") + { + cType.Pointer += "*"; + } + var param = new ParamInfo + { + CType= cType, + Name = match.Groups[3].Value + }; + if (splitted.Length > 1) + { + param.DefaultValue= splitted[1].Trim(); + } + result.Add(param); + } + return result; + } + + private static void HandleApi(List block, StreamWriter writer, string outDir, List spiMethods) + { + var match = ExportClassDefRegex().Match(block[0]); + var className = match.Groups[1].Value; + var methods = ParseMethods(block); + + // 创建 PInvoke C 形式导出函数 + ExportApi(writer, className, methods); + GenerateManagedApi(className, methods, outDir, spiMethods); + } + + private static void GenerateManagedApi(string className, + List methods, + string outDir, List spiMethods) + { + // 创建PInvoke cs文件 + var pinvokeFile = Path.Combine(outDir, $"PInvoke{className}.cs"); + using var writer = new StreamWriter(pinvokeFile); + writer.WriteLine("using System.Runtime.InteropServices;"); + writer.WriteLine("namespace XP.CTPSharp;"); + writer.WriteLine(""); + // 创建 PInvoke方法 + writer.WriteLine("internal partial class CTPSharpPInvoke"); + writer.WriteLine("{"); + foreach(var m in methods) + { + var exportFuncName = $"{className}_{m.Name}"; + if (m.Name.StartsWith("Create") && m.Name.EndsWith("Api")) + { + exportFuncName = $"{className}_Create"; + } + writer.WriteLine($" [DllImport(\"CTPInvoke\", EntryPoint=\"{exportFuncName}\", CharSet=CharSet.Ansi)]"); + writer.WriteLine($"{ManagedDeclare(m, className, exportFuncName)}"); + } + writer.WriteLine("}"); + + // 创建 API class + writer.WriteLine($"public sealed class {className}"); + writer.WriteLine("{"); + writer.WriteLine(" IntPtr _handle;"); + writer.WriteLine($" public {className}(string flowPath)"); + writer.WriteLine(" {"); + writer.WriteLine($" _handle = CTPSharpPInvoke.{className}_Create(flowPath);"); + writer.WriteLine(" }"); + + foreach(var m in methods) + { + writer.WriteLine($"{ManagedFuncCall(m, className)}"); + } + + writer.WriteLine(" public void Dispose()"); + writer.WriteLine(" {"); + writer.WriteLine(" if (_handle == 0) return;"); + writer.WriteLine($" CTPSharpPInvoke.{className}_Release(_handle);"); + writer.WriteLine($" //CTPSharpPInvoke.{className}_Join(_handle);"); + writer.WriteLine(" _handle = 0;"); + writer.WriteLine(" }"); + writer.WriteLine("}"); + writer.Flush(); + + GenerateManagedAsyncApi(className, methods, outDir, spiMethods); + } + + private static void GenerateManagedAsyncApi( + string className, List methods, string outDir, + List spiMethods) + { + if (className != "CThostFtdcTraderApi") return; + // 分类函数,区分主动上报和请求应答 + var listEvents = new List(); + var listResp = new List(); + foreach (var m in spiMethods) + { + if (m.Name.StartsWith("OnRsp")) + listResp.Add(m); + else + listEvents.Add(m); + } + + var fileName = Path.Combine(outDir, $"{className}_gen.cs"); + var reqMethods = methods.Where(x => x.Name.StartsWith("Req")).ToList(); + using var writer = new StreamWriter(fileName); + writer.WriteLine("using System.Diagnostics;"); + writer.WriteLine("namespace XP.CTPSharp;"); + writer.WriteLine(""); + writer.WriteLine("public partial class TdAPI"); + writer.WriteLine("{"); + foreach (var m in listEvents) + { + if (!string.IsNullOrEmpty(m.Comment)) + { + writer.WriteLine(" /// "); + writer.WriteLine($" /// {m.Comment}"); + writer.WriteLine(" /// "); + } + writer.WriteLine(EventDeclare(m, isPublic: true)); + } + writer.WriteLine(""); + writer.WriteLine(" private void SubscribeSPI()"); + writer.WriteLine(" {"); + foreach(var m in listEvents) + { + var eventName = m.Name[2..]; + if (m.Params.Count == 0) + { + writer.WriteLine($" _spi.{eventName} += () => {eventName}?.Invoke();"); + } + else if (m.Params.Count == 1) + { + writer.WriteLine($" _spi.{eventName} += (_1) => {eventName}?.Invoke(_1);"); + } + else if (m.Params.Count == 2) + { + writer.WriteLine($" _spi.{eventName} += (_1) => {eventName}?.Invoke(_1);"); + } + else + { + Debug.Assert(false); + } + } + writer.WriteLine(" }"); + writer.WriteLine(""); + foreach (var m in reqMethods) + { + var respFile = FindRspParamType(m, listResp); + writer.WriteLine(""); + if (!string.IsNullOrEmpty(m.Comment)) + { + writer.WriteLine(" /// "); + writer.WriteLine($" /// {m.Comment}"); + writer.WriteLine(" /// "); + var p = m.Params[0]; + if (!string.IsNullOrEmpty(p.Comment)) + { + writer.WriteLine($" /// {p.Comment}"); + } + } + writer.WriteLine($" public async Task>>"); + writer.WriteLine($" {m.Name}Async({m.Params[0].CType.Name} {m.Params[0].Name})"); + writer.WriteLine(" {"); + writer.WriteLine($" var pending = new PendingRequest> (_requestId.Next());"); + writer.WriteLine(" _spi.CachePendingRequest(pending);"); + writer.WriteLine($" while (_api.{m.Name}(ref {m.Params[0].Name}, pending.RequestId) != 0) await Task.Delay(1000);"); + writer.WriteLine(" return await pending.Task.ConfigureAwait(false);"); + writer.WriteLine(" }"); + } + writer.WriteLine("}"); + } + + private static string FindRspParamType(MethodInfo apiMethod, List spiMthods) + { + var name = apiMethod.Name.Replace("Req", ""); + if (name.Contains("UserLogin")) return "CThostFtdcRspUserLoginField"; + var m = spiMthods.First(x => x.Name.EndsWith(name)); + return m.Params[0].CType.ManagedDeclare(asParam: false); + } + + private static string ManagedFuncCall(MethodInfo m, string className) + { + if (m.Name.StartsWith("Create") && m.Name.EndsWith("Api")) return ""; + + var builder = new StringBuilder(); + if (!string.IsNullOrEmpty(m.Comment)) + { + builder.AppendLine(" /// "); + builder.AppendLine($" /// {m.Comment}"); + builder.AppendLine(" /// "); + foreach (var p in m.Params) + { + if (!string.IsNullOrEmpty(p.Comment)) + { + builder.AppendLine($" /// {p.Comment}"); + } + } + } + builder.AppendLine($" public {m.Return.ManagedDeclare} {m.Name}({ManagedParamDeclareNoAttr(m)})"); + builder.AppendLine(" {"); + + var pinvokeFunc = $"CTPSharpPInvoke.{className}_{m.Name}"; + if (m.Return.IsVoid) + { + if (m.IsStatic) + { + builder.AppendLine($" {pinvokeFunc}({ParamCallManaged(m)});"); + } + else + { + var fillParam = m.Params.Count == 0 ? "" : $", {ParamCallManaged(m)}"; + builder.AppendLine($" {pinvokeFunc}(_handle{fillParam});"); + } + } + else + { + if (m.IsStatic) + { + var call = $"{pinvokeFunc}({ParamCallManaged(m)})"; + if (m.Return.IsString) + builder.AppendLine($" return GBKConvert.Instance.GetString({call});"); + else + builder.AppendLine($" return {call};"); + } + else + { + var fillParam = m.Params.Count == 0 ? "" : $", {ParamCallManaged(m)}"; + var call = $"{pinvokeFunc}(_handle{fillParam})"; + if (m.Return.IsString) + builder.AppendLine($" return GBKConvert.Instance.GetString({call});"); + else + builder.AppendLine($" return {call};"); + } + } + builder.AppendLine(" }"); + return builder.ToString(); + } + + internal static string ManagedDeclare(MethodInfo m, string className, string exportFuncName) + { + var builder = new StringBuilder(); + if (m.IsStatic) + { + builder.AppendLine($" public extern static {m.Return.CType.ManagedDeclare(asParam: false)} {exportFuncName}({ManagedParamDeclare(m)});"); + } + else + { + if (m.Params.Count == 0) + builder.AppendLine($" public extern static {m.Return.CType.ManagedDeclare(asParam: false)} {exportFuncName}(IntPtr handle);"); + else + builder.AppendLine($" public extern static {m.Return.CType.ManagedDeclare(asParam: false)} {exportFuncName}(IntPtr handle, {ManagedParamDeclare(m)});"); + } + return builder.ToString(); + } + + + private static void ExportApi(StreamWriter writer, string className, List methods) + { + foreach (var m in methods) + { + var exportFuncName = $"{className}_{m.Name}"; + if (m.Name.StartsWith("Create") && m.Name.EndsWith("Api")) + { + exportFuncName = $"{className}_Create"; + } + if (m.IsStatic) + { + writer.WriteLine("extern \"C\""); + writer.WriteLine($"CTPSHARP_EXPORT {m.Return.CDeclare} CTPSHARP_STDCALL {exportFuncName}({ParamDeclare(m)})"); + writer.WriteLine("{"); + if (m.Return.IsVoid) + { + writer.WriteLine($" {className}::{m.Name}({ParamCall(m)});"); + } + else + { + writer.WriteLine($" return {className}::{m.Name}({ParamCall(m)});"); + } + writer.WriteLine("}"); + } + else + { + if (m.Params.Count == 0) + { + writer.WriteLine("extern \"C\""); + writer.WriteLine($"CTPSHARP_EXPORT {m.Return.CDeclare} CTPSHARP_STDCALL {exportFuncName}({className}* api)"); + } + else + { + writer.WriteLine("extern \"C\""); + writer.WriteLine($"CTPSHARP_EXPORT {m.Return.CDeclare} CTPSHARP_STDCALL {exportFuncName}({className} * api,{ParamDeclare(m)})"); + } + writer.WriteLine("{"); + if (m.Return.IsVoid) + { + writer.WriteLine($" api->{m.Name}({ParamCall(m)});"); + } + else + { + writer.WriteLine($" return api->{m.Name}({ParamCall(m)});"); + } + writer.WriteLine("}"); + } + } + } + + private static string? FindAPIFolder(string path) + { + foreach (var dir in Directory.EnumerateDirectories(path)) + { + var dirName = Path.GetFileName(dir.Trim(Path.DirectorySeparatorChar)); + if (dirName.ToUpper().StartsWith("CTPAPI")) + { + var file = Path.Combine(path, dirName, "ThostFtdcTraderApi.h"); + if (File.Exists(file)) + return dir; + } + } + + var parent = Path.GetDirectoryName(path); + if (parent == null || parent.Length <= 1) return null; + return FindAPIFolder(parent); + } + + [GeneratedRegex(@"typedef char (\w+)\[(\d+)\];")] + private static partial Regex CharArrayTypedefRegex(); + + [GeneratedRegex(@"typedef char (\w+);")] + private static partial Regex EnumCharTypedefRegex(); + + [GeneratedRegex(@"typedef int (\w+);")] + private static partial Regex EnumIntTypedefRegex(); + + [GeneratedRegex(@"typedef double (\w+);")] + private static partial Regex EnumDoubleTypedefRegex(); + + [GeneratedRegex(@"typedef short (\w+);")] + private static partial Regex EnumShortTypedefRegex(); + + [GeneratedRegex(@"#define ([\w|_]+) ('[\w|\d]')")] + private static partial Regex EnumCaseTypedefRegex(); + + [GeneratedRegex(@"^struct ([\w|_]+)$")] + private static partial Regex StuctDefRegex(); + + [GeneratedRegex(@"([\w|_]+)\s+([\w|_]+);")] + private static partial Regex StuctFieldDefRegex(); + + [GeneratedRegex(@"^class ([\w|_]+)$")] + private static partial Regex ClassDefRegex(); + + [GeneratedRegex(@"^class \w+_API_EXPORT ([\w|_]+)$")] + private static partial Regex ExportClassDefRegex(); + + [GeneratedRegex(@"virtual\s+([\w|_]+)\s*([\*]*)\s*([\w|_]+)")] + private static partial Regex VirtualFunctionDefRegex(); + + [GeneratedRegex(@"static\s+([\w|_]+)\s*([\*]*)\s*([\w|_]+)")] + private static partial Regex StaticFunctionDefRegex(); + + [GeneratedRegex(@"([\w|_]+)\s*([\*]*)\s*([\w|_]+)([\[\]]*)")] + private static partial Regex ParamDefRegex(); + + [GeneratedRegex(@"///@param\s+([\w\d_]+)")] + private static partial Regex ParamCommentRegex(); + + [GeneratedRegex(@"SizeConst=(\d+)")] + private static partial Regex MarshalBytesRegex(); + + const string ExportDef = """ + #ifndef CTPSHARP_EXPORT + # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) + # if defined(STATIC_LINKED) + # define CTPSHARP_EXPORT + # else + # define CTPSHARP_EXPORT __declspec(dllexport) + # endif + # else + # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) + # define CTPSHARP_EXPORT __attribute__ ((visibility("default"))) + # else + # define CTPSHARP_EXPORT + # endif + # endif + #endif + """; + + const string StdCallDef = """ + #ifndef CTPSHARP_STDCALL + # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) + # define CTPSHARP_STDCALL __stdcall + # else + # define CTPSHARP_STDCALL + # endif + #endif + """; +} + +class MethodInfo +{ + public string Name; + public string Comment = string.Empty; + public ReturnInfo Return; + public bool IsStatic = false; + public bool IsVirtual = true; + public List Params = new(); + + public MethodInfo(string name, ReturnInfo @return) + { + Name = name; + Return = @return; + } +} + +class ReturnInfo +{ + public CType CType = new(); + public string Comment = string.Empty; + + public string CDeclare => CType.CDeclare; + public string ManagedDeclare => IsString ? "string" : CType.ManagedDeclare(asParam: false); + public bool IsVoid => CType.IsVoid; + public bool IsString => CType.CDeclare == "const char*"; +} + +class ParamInfo +{ + public CType CType; + public string Name = string.Empty; + public string Comment = string.Empty; + public string DefaultValue = string.Empty; + + public string CDeclare => $"{CType.CDeclare} {Name}"; + + public string ManagedFill + { + get + { + if (Program.CharArrayTypes.TryGetValue(CType.Name, out var attr)) + { + return $"{Name},"; + } + if (CType.Name == "char" && CType.Pointer == "*") + { + return $"{Name},"; + } + if (CType.Pointer == "*" && CType.ManagedDeclare(asParam:true) != "IntPtr") + { + return $"ref {Name},"; + } + + return $"{Name},"; + } + } + + public string CFill => $"{Name},"; + + public string ManagedDeclare + { + get + { + if (string.IsNullOrEmpty(DefaultValue)) + { + return $"{CType.ManagedDeclare(asParam:true)} {Name},"; + } + return $"{CType.ManagedDeclare(asParam: true)} {Name}={DefaultValue},"; + } + } + public bool IsVoid => CType.IsVoid; +} + +struct CType +{ + public bool IsConst; + public string Name; + public string Pointer; + + public bool IsVoid => Name == "void"; + + public string CDeclare + { + get + { + var ss = IsConst ? "const " : ""; + + return $"{ss}{Name}{Pointer}"; + } + } + + public string ManagedDeclare(bool asParam) + { + if (Name == "void") return "void"; + if (Pointer == "**") return "IntPtr"; + if (Name == "char" && Pointer == "*") + { + return asParam ? "[MarshalAs(UnmanagedType.LPStr)] string" : "IntPtr"; + } + if (Program.AliasTypes.TryGetValue(Name, out var alias)) + { + return alias; + } + if (Program.CharArrayTypes.TryGetValue(Name, out var attr)) + { + return $"{attr}string"; + } + if (Pointer == "*") + { + if (Program.Structs.Contains(Name)) return asParam ? $"ref {Name}" : Name; + return "IntPtr"; + } + return Name; + } +} \ No newline at end of file diff --git a/Publish/Win64.NET7/Debug/CTPInvoke.dll b/Publish/Win64.NET7/Debug/CTPInvoke.dll new file mode 100644 index 0000000..51bad1b Binary files /dev/null and b/Publish/Win64.NET7/Debug/CTPInvoke.dll differ diff --git a/Publish/Win64.NET7/Debug/CTPSharp.dll b/Publish/Win64.NET7/Debug/CTPSharp.dll new file mode 100644 index 0000000..323d451 Binary files /dev/null and b/Publish/Win64.NET7/Debug/CTPSharp.dll differ diff --git a/Publish/Win64.NET7/Debug/thostmduserapi_se.dll b/Publish/Win64.NET7/Debug/thostmduserapi_se.dll new file mode 100644 index 0000000..6ebc1be Binary files /dev/null and b/Publish/Win64.NET7/Debug/thostmduserapi_se.dll differ diff --git a/Publish/Win64.NET7/Debug/thosttraderapi_se.dll b/Publish/Win64.NET7/Debug/thosttraderapi_se.dll new file mode 100644 index 0000000..c6154fe Binary files /dev/null and b/Publish/Win64.NET7/Debug/thosttraderapi_se.dll differ diff --git a/Publish/Win64.NET7/Release/CTPInvoke.dll b/Publish/Win64.NET7/Release/CTPInvoke.dll new file mode 100644 index 0000000..8a656d5 Binary files /dev/null and b/Publish/Win64.NET7/Release/CTPInvoke.dll differ diff --git a/Publish/Win64.NET7/Release/CTPSharp.dll b/Publish/Win64.NET7/Release/CTPSharp.dll new file mode 100644 index 0000000..3dbf456 Binary files /dev/null and b/Publish/Win64.NET7/Release/CTPSharp.dll differ diff --git a/Publish/Win64.NET7/Release/thostmduserapi_se.dll b/Publish/Win64.NET7/Release/thostmduserapi_se.dll new file mode 100644 index 0000000..6ebc1be Binary files /dev/null and b/Publish/Win64.NET7/Release/thostmduserapi_se.dll differ diff --git a/Publish/Win64.NET7/Release/thosttraderapi_se.dll b/Publish/Win64.NET7/Release/thosttraderapi_se.dll new file mode 100644 index 0000000..c6154fe Binary files /dev/null and b/Publish/Win64.NET7/Release/thosttraderapi_se.dll differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..e078ede --- /dev/null +++ b/README.md @@ -0,0 +1,120 @@ +# CTPSharp +期货CTP接口API的C#绑定,基于代码生成的Window X64版本。 +当前CTP版本为6.6.9 + +相较于其他一些封装库,本项目有以下优势: +* 完全的原始SDK命名兼容 +* 增加了对原始callback形式的API的C#封装,可使用 Task和 event +* 字符串使用GBK编码与SDK沟通,没有乱码 + +## 项目结构: + +### CTPAPI6.6.9 目录 +此目录为原始 X64 C++ API,含动态库 .dll 和 连接库 .lib + + +### Generator 目录 +此项目为代码生成工具,用于将【CTPAPI6.6.9】目录下的 .h文件分析后转换成CTPInvoke所需的CPP代码以及CTPSharp项目所需的C#代码。 + +得益于CTP SDK头文件的良好格式化,此工具不做任何词法语法分析,仅做字符串解析。 + +此工具是一个命令行工具,需要一个参数指明【CTPAPI6.6.9】目录的某个父目录路径。 + +输出文件存放在 【CTPAPI6.6.9/generated】目录下 + +后续CTP SDK 版本更新,可直接放在类似【CTPAPIX.X.X】的目录下,重新生成 + +### CTPInvoke 目录 +此目录为 C# 代码需要调用的 PInvoke库, 其输出文件名需要是 CTPInvoke.dll(Linux下则需要命名为.so) +此项目的源代码为 generated 目录下的生成的 .cpp文件. 链接库需要加入 CTPAPI6.6.9 中的两个 .lib。 + +### CTPSharp +此目录为可被 .NET 程序引用的动态库项目。其源码是 generated 目录下的全部 .cs文件 +此项目为纯 .NET 项目,生成一个 CTPSharp.dll + +## 客户.NET代码引用此绑定库的方法 +1. 拷贝CTPInvoke.dll、CTPSharp.dll和CTPAPI6.6.9 目录下的两个原始 _se.dll +2. 客户.NET 项目添加对 CTPSharp.dll的引用 +3. 可完全参照原始 C++ API来使用CTPSharp.dll,所有类、方法的名称都和 C++ 版本保持一致 +4. 也可选择使用封装的两个类:XP.CTPSharp.TdAPI和XP.CTPSharp.MdAPI +5. 注意使用 IDisposable 来管理对象声明周期 + +## Linux版本 +目前不支持,但实际操作是完全类似. +1. 将生成的 generated 目录下的那个 .h 和 .cxx文件编译成 CTPInvoke.so +2. CTPSharp.dll本身可以跨平台使用 +3. 原始 CTP API 动态库使用官方的 Linux 版本的 .so 文件 + +## 预制版本 +如果不想编译,可以直接使用publish目录下的预制版本. +当前CTPInvoke及两个原生dll为 X64架构,CTPSharp.dll目标平台为 .NET 7 + +## 使用代码样例 +``` +class MDClient: IDisposable +{ + private MdAPI _api; + private Config _config; + public MDClient(string flowPath, Config config) + { + _config = config; + _api = new(flowPath); + _api.FrontConnected += OnFrontConnected; + _api.FrontDisconnected += OnFrontDisconnected; + _api.DepthMarketDataArrived += OnDepthMarketData; + _api.RegisterFront(_config.DataServer); + // 连接行情服务器; + _api.Init(); + } + + public void Dispose() + { + _api.Dispose(); + } + + private void OnFrontConnected() + { + LogDebug("服务器连接成功"); + ReqLoginAsync(); + } + + private async void ReqLoginAsync() + { + var req = new CThostFtdcReqUserLoginField + { + UserID = _config.User, + Password = _config.Password, + BrokerID = _config.Broker + }; + var resp = await _api.ReqUserLoginAsync(req); + if (resp.NoError) + { + LogWarning("登录成功"); + } + else + { + LogWarning($"登录失败,{resp.InfoField.ErrorMsg}, code={resp.InfoField.ErrorID}"); + } + } + + private void OnFrontDisconnected(int nReason) + { + LogDebug($"连接断开,代码{nReason}"); + } + + private void LogDebug(string msg) {} + private void LogWarning(string msg) {} +} + +class Config +{ + public string User { get; } + public string Password { get; } + public string Broker { get; } + public string DataServer { get; } + public string TradeServer { get; } + public string AuthCode { get; } + public string AppId { get; } + public string ProductInfo { get; } +} +``` \ No newline at end of file