Skip to content

Commit

Permalink
更新 api 至 v6.7.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mayiweb committed Sep 18, 2024
1 parent 903ca3a commit 9ca891d
Show file tree
Hide file tree
Showing 13 changed files with 201 additions and 48 deletions.
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.* linguist-language=go
*.go linguist-language=go
*.* linguist-language=go
*.go linguist-language=go
*.swigcxx linguist-language=go
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,9 @@ class CThostFtdcTraderSpi

///投资者产品RULE保证金查询响应
virtual void OnRspQryInvestorProdRULEMargin(CThostFtdcInvestorProdRULEMarginField *pInvestorProdRULEMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

///投资者投资者新组保设置查询响应
virtual void OnRspQryInvestorPortfSetting(CThostFtdcInvestorPortfSettingField *pInvestorPortfSetting, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
};

class TRADER_API_EXPORT CThostFtdcTraderApi
Expand Down Expand Up @@ -529,6 +532,12 @@ class TRADER_API_EXPORT CThostFtdcTraderApi
///@remark 只有登录成功后,才能得到正确的交易日
virtual const char *GetTradingDay() = 0;

///获取已连接的前置的信息
/// @param pFrontInfo:输入输出参数,用于存储获取到的前置信息,不能为空
/// @remark 连接成功后,可获取正确的前置地址信息
/// @remark 登录成功后,可获取正确的前置流控信息
virtual void GetFrontInfo(CThostFtdcFrontInfoField* pFrontInfo) =0;

///注册前置机网络地址
///@param pszFrontAddress:前置机网络地址。
///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:17001”。
Expand Down Expand Up @@ -907,6 +916,9 @@ class TRADER_API_EXPORT CThostFtdcTraderApi

///投资者产品RULE保证金查询
virtual int ReqQryInvestorProdRULEMargin(CThostFtdcQryInvestorProdRULEMarginField *pQryInvestorProdRULEMargin, int nRequestID) = 0;

///投资者投资者新组保设置查询
virtual int ReqQryInvestorPortfSetting(CThostFtdcQryInvestorPortfSettingField *pQryInvestorPortfSetting, int nRequestID) = 0;
protected:
~CThostFtdcTraderApi(){};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
///@company 上海期货信息技术有限公司
///@file ThostFtdcUserApiDataType.h
///@brief 定义了客户端接口使用的业务数据类型
///@history
///@history
///20060106 赵鸿昊 创建该文件
/////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -429,6 +429,8 @@ typedef char TThostFtdcTraderConnectStatusType;
#define THOST_FTDC_FC_SyncOTP 'E'
///删除未知单
#define THOST_FTDC_FC_DeleteOrder 'F'
///退出紧急状态
#define THOST_FTDC_FC_ExitEmergency 'G'

typedef char TThostFtdcFunctionCodeType;

Expand Down Expand Up @@ -873,8 +875,14 @@ typedef char TThostFtdcOffsetFlagType;
#define THOST_FTDC_FCC_Other '6'
///自然人临近交割
#define THOST_FTDC_FCC_PersonDeliv '7'
///风控强平不验证资金
///本地强平资金不足忽略敞口
#define THOST_FTDC_FCC_Notverifycapital '8'
///本地强平资金不足
#define THOST_FTDC_FCC_LocalLackDeposit '9'
///本地强平违规持仓忽略敞口
#define THOST_FTDC_FCC_LocalViolationNocheck 'a'
///本地强平违规持仓
#define THOST_FTDC_FCC_LocalViolation 'b'

typedef char TThostFtdcForceCloseReasonType;

Expand Down Expand Up @@ -1061,6 +1069,8 @@ typedef char TThostFtdcPriceSourceType;
#define THOST_FTDC_IS_AuctionMatch '5'
///收盘
#define THOST_FTDC_IS_Closed '6'
///交易业务处理
#define THOST_FTDC_IS_TransactionProcessing '7'

typedef char TThostFtdcInstrumentStatusType;

Expand Down Expand Up @@ -1539,6 +1549,8 @@ typedef char TThostFtdcSystemParamIDType;
#define THOST_FTDC_TPID_LoginFailMaxNumForIP 'U'
///密码有效期
#define THOST_FTDC_TPID_PasswordPeriod 'V'
///历史密码重复限制次数
#define THOST_FTDC_TPID_PwdHistoryCmp 'X'

typedef char TThostFtdcTradeParamIDType;

Expand Down Expand Up @@ -2586,6 +2598,8 @@ typedef char TThostFtdcClearbarchIDType[6];
#define THOST_FTDC_UET_Transfer '8'
///其他
#define THOST_FTDC_UET_Other '9'
///修改资金密码
#define THOST_FTDC_UET_UpdateTradingAccountPassword 'a'

typedef char TThostFtdcUserEventTypeType;

Expand Down Expand Up @@ -6566,6 +6580,11 @@ typedef char TThostFtdcWeakPasswordSourceType;
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcRandomStringType[17];

/////////////////////////////////////////////////////////////////////////
///TFtdcOrderMemoType是一个报单回显字段类型
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcOrderMemoType[13];

/////////////////////////////////////////////////////////////////////////
///TFtdcOptSelfCloseFlagType是一个期权行权的头寸是否自对冲类型
/////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -7065,4 +7084,18 @@ typedef double TThostFtdcStdPositionType;

typedef char TThostFtdcProdChangeFlagType;

/////////////////////////////////////////////////////////////////////////
///TFtdcPwdRcdSrcType是一个历史密码来源类型
/////////////////////////////////////////////////////////////////////////
///来源于Sync初始化数据
#define THOST_FTDC_PRS_Init '0'
///来源于实时上场数据
#define THOST_FTDC_PRS_Sync '1'
///来源于用户修改
#define THOST_FTDC_PRS_UserUpd '2'
///来源于超户修改,很可能来自主席同步数据
#define THOST_FTDC_PRS_SuperUserUpd '3'

typedef char TThostFtdcPwdRcdSrcType;

#endif
Loading

0 comments on commit 9ca891d

Please sign in to comment.