@@ -2572,9 +2572,9 @@ typedef char TThostFtdcClearbarchIDType[6];
25722572#define THOST_FTDC_UET_Login '1'
25732573///登出
25742574#define THOST_FTDC_UET_Logout '2'
2575- ///交易成功
2575+ ///CTP校验通过
25762576#define THOST_FTDC_UET_Trading '3'
2577- ///交易失败
2577+ ///CTP校验失败
25782578#define THOST_FTDC_UET_TradingError '4'
25792579///修改密码
25802580#define THOST_FTDC_UET_UpdatePassword '5'
@@ -6906,6 +6906,12 @@ typedef int TThostFtdcSpreadIdType;
69066906#define THOST_FTDC_EPF_None '0'
69076907///SPBM算法
69086908#define THOST_FTDC_EPF_SPBM '1'
6909+ ///RULE算法
6910+ #define THOST_FTDC_EPF_RULE '2'
6911+ ///SPMM算法
6912+ #define THOST_FTDC_EPF_SPMM '3'
6913+ ///RCAMS算法
6914+ #define THOST_FTDC_EPF_RCAMS '4'
69096915
69106916typedef char TThostFtdcPortfolioType ;
69116917
@@ -6914,4 +6920,149 @@ typedef char TThostFtdcPortfolioType;
69146920/////////////////////////////////////////////////////////////////////////
69156921typedef int TThostFtdcPortfolioDefIDType ;
69166922
6923+ /////////////////////////////////////////////////////////////////////////
6924+ ///TFtdcWithDrawParamIDType是一个可提参数代码类型
6925+ /////////////////////////////////////////////////////////////////////////
6926+ ///权利金收支是否可提 1 代表可提 0 不可提
6927+ #define THOST_FTDC_WDPID_CashIn 'C'
6928+
6929+ typedef char TThostFtdcWithDrawParamIDType ;
6930+
6931+ /////////////////////////////////////////////////////////////////////////
6932+ ///TFtdcWithDrawParamValueType是一个可提控制参数内容类型
6933+ /////////////////////////////////////////////////////////////////////////
6934+ typedef char TThostFtdcWithDrawParamValueType [41 ];
6935+
6936+ /////////////////////////////////////////////////////////////////////////
6937+ ///TFtdcInvstTradingRightType是一个投资者交易权限类型
6938+ /////////////////////////////////////////////////////////////////////////
6939+ ///只能平仓
6940+ #define THOST_FTDC_ITR_CloseOnly '1'
6941+ ///不能交易
6942+ #define THOST_FTDC_ITR_Forbidden '2'
6943+
6944+ typedef char TThostFtdcInvstTradingRightType ;
6945+
6946+ /////////////////////////////////////////////////////////////////////////
6947+ ///TFtdcThostFunctionCodeType是一个Thost终端功能代码类型
6948+ /////////////////////////////////////////////////////////////////////////
6949+ typedef int TThostFtdcThostFunctionCodeType ;
6950+
6951+ /////////////////////////////////////////////////////////////////////////
6952+ ///TFtdcSPMMDiscountRatioType是一个SPMM折扣率类型
6953+ /////////////////////////////////////////////////////////////////////////
6954+ typedef double TThostFtdcSPMMDiscountRatioType ;
6955+
6956+ /////////////////////////////////////////////////////////////////////////
6957+ ///TFtdcSPMMModelDescType是一个SPMM模板描述类型
6958+ /////////////////////////////////////////////////////////////////////////
6959+ typedef char TThostFtdcSPMMModelDescType [129 ];
6960+
6961+ /////////////////////////////////////////////////////////////////////////
6962+ ///TFtdcSPMMModelIDType是一个SPMM模板ID类型
6963+ /////////////////////////////////////////////////////////////////////////
6964+ typedef char TThostFtdcSPMMModelIDType [33 ];
6965+
6966+ /////////////////////////////////////////////////////////////////////////
6967+ ///TFtdcSPMMProductIDType是一个SPMM商品群商品组ID类型
6968+ /////////////////////////////////////////////////////////////////////////
6969+ typedef char TThostFtdcSPMMProductIDType [41 ];
6970+
6971+ /////////////////////////////////////////////////////////////////////////
6972+ ///TFtdcInstMarginCalIDType是一个SPMM合约保证金算法类型
6973+ /////////////////////////////////////////////////////////////////////////
6974+ ///标准算法收取双边
6975+ #define THOST_FTDC_IMID_BothSide '1'
6976+ ///单向大边
6977+ #define THOST_FTDC_IMID_MMSA '2'
6978+ ///新组保SPMM
6979+ #define THOST_FTDC_IMID_SPMM '3'
6980+
6981+ typedef char TThostFtdcInstMarginCalIDType ;
6982+
6983+ /////////////////////////////////////////////////////////////////////////
6984+ ///TFtdcProductIDType是一个产品ID类型
6985+ /////////////////////////////////////////////////////////////////////////
6986+ typedef char TThostFtdcProductIDType [41 ];
6987+
6988+ /////////////////////////////////////////////////////////////////////////
6989+ ///TFtdcHedgeRateType是一个HedgeRate类型类型
6990+ /////////////////////////////////////////////////////////////////////////
6991+ typedef double TThostFtdcHedgeRateType ;
6992+
6993+ /////////////////////////////////////////////////////////////////////////
6994+ ///TFtdcRCAMSPriorityType是一个优先级类型
6995+ /////////////////////////////////////////////////////////////////////////
6996+ typedef int TThostFtdcRCAMSPriorityType ;
6997+
6998+ /////////////////////////////////////////////////////////////////////////
6999+ ///TFtdcAdjustValueType是一个空头期权风险调整标准类型类型
7000+ /////////////////////////////////////////////////////////////////////////
7001+ typedef double TThostFtdcAdjustValueType ;
7002+
7003+ /////////////////////////////////////////////////////////////////////////
7004+ ///TFtdcRCAMSCombinationTypeType是一个RCAMS组合类型类型
7005+ /////////////////////////////////////////////////////////////////////////
7006+ ///牛市看涨价差组合
7007+ #define THOST_FTDC_ERComb_BUC '0'
7008+ ///熊市看涨价差组合
7009+ #define THOST_FTDC_ERComb_BEC '1'
7010+ ///熊市看跌价差组合
7011+ #define THOST_FTDC_ERComb_BEP '2'
7012+ ///牛市看跌价差组合
7013+ #define THOST_FTDC_ERComb_BUP '3'
7014+ ///日历价差组合
7015+ #define THOST_FTDC_ERComb_CAS '4'
7016+
7017+ typedef char TThostFtdcRCAMSCombinationTypeType ;
7018+
7019+ /////////////////////////////////////////////////////////////////////////
7020+ ///TFtdcRuleIdType是一个策略id类型
7021+ /////////////////////////////////////////////////////////////////////////
7022+ typedef char TThostFtdcRuleIdType [51 ];
7023+
7024+ /////////////////////////////////////////////////////////////////////////
7025+ ///TFtdcPortfTypeType是一个新组保算法启用类型类型
7026+ /////////////////////////////////////////////////////////////////////////
7027+ ///使用初版交易所算法
7028+ #define THOST_FTDC_EET_None '0'
7029+ ///SPBM算法V1.1.0_附加保证金调整
7030+ #define THOST_FTDC_EET_SPBM_AddOnHedge '1'
7031+
7032+ typedef char TThostFtdcPortfTypeType ;
7033+
7034+ /////////////////////////////////////////////////////////////////////////
7035+ ///TFtdcInstrumentClassType是一个合约类型类型
7036+ /////////////////////////////////////////////////////////////////////////
7037+ ///一般月份合约
7038+ #define THOST_FTDC_EIC_Usual '1'
7039+ ///临近交割合约
7040+ #define THOST_FTDC_EIC_Delivery '2'
7041+ ///非组合合约
7042+ #define THOST_FTDC_EIC_NonComb '3'
7043+
7044+ typedef char TThostFtdcInstrumentClassType ;
7045+
7046+ /////////////////////////////////////////////////////////////////////////
7047+ ///TFtdcCommodityGroupIDType是一个商品群号类型
7048+ /////////////////////////////////////////////////////////////////////////
7049+ typedef int TThostFtdcCommodityGroupIDType ;
7050+
7051+ /////////////////////////////////////////////////////////////////////////
7052+ ///TFtdcStdPositionType是一个标准持仓类型类型
7053+ /////////////////////////////////////////////////////////////////////////
7054+ typedef double TThostFtdcStdPositionType ;
7055+
7056+ /////////////////////////////////////////////////////////////////////////
7057+ ///TFtdcProdChangeFlagType是一个品种记录改变状态类型
7058+ /////////////////////////////////////////////////////////////////////////
7059+ ///持仓量和冻结量均无变化
7060+ #define THOST_FTDC_PCF_None '0'
7061+ ///持仓量无变化,冻结量有变化
7062+ #define THOST_FTDC_PCF_OnlyFrozen '1'
7063+ ///持仓量有变化
7064+ #define THOST_FTDC_PCF_PositionChange '2'
7065+
7066+ typedef char TThostFtdcProdChangeFlagType ;
7067+
69177068#endif
0 commit comments