Skip to content

Commit

Permalink
Merge pull request #58 from nooperpudd/6.6.1
Browse files Browse the repository at this point in the history
6.6.1
  • Loading branch information
nooperpudd committed Jun 13, 2021
2 parents cc8018d + c3668c8 commit ec90942
Show file tree
Hide file tree
Showing 23 changed files with 2,301 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -5,8 +5,8 @@ dist: focal
jobs:
include:
# others still work and don't install python3.7
- python: 'pypy3.6-7.3.2'
- python: 'pypy3.7-7.3.2'
- python: 'pypy3.6'
- python: 'pypy3.7'
- python: 3.6
- python: 3.7
- python: 3.8
Expand Down
2 changes: 1 addition & 1 deletion ctp/header/ThostFtdcMdApi.h
@@ -1,4 +1,4 @@
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
///@system 新一代交易所系统
///@company 上海期货信息技术有限公司
///@file ThostFtdcMdApi.h
Expand Down
14 changes: 13 additions & 1 deletion ctp/header/ThostFtdcTraderApi.h
@@ -1,4 +1,4 @@
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
///@system 新一代交易所系统
///@company 上海期货信息技术有限公司
///@file ThostFtdcTraderApi.h
Expand Down Expand Up @@ -416,6 +416,12 @@ class CThostFtdcTraderSpi {

///请求组合优惠比例响应
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) {};
};

class TRADER_API_EXPORT CThostFtdcTraderApi {
Expand Down Expand Up @@ -744,6 +750,12 @@ class TRADER_API_EXPORT CThostFtdcTraderApi {
///请求组合优惠比例
virtual int ReqQryCombPromotionParam(CThostFtdcQryCombPromotionParamField *pQryCombPromotionParam, int nRequestID) = 0;

///投资者风险结算持仓查询
virtual int ReqQryRiskSettleInvstPosition(CThostFtdcQryRiskSettleInvstPositionField *pQryRiskSettleInvstPosition, int nRequestID) = 0;

///风险结算产品查询
virtual int ReqQryRiskSettleProductStatus(CThostFtdcQryRiskSettleProductStatusField *pQryRiskSettleProductStatus, int nRequestID) = 0;

protected:
~CThostFtdcTraderApi() {};
};
Expand Down
48 changes: 47 additions & 1 deletion ctp/header/ThostFtdcUserApiDataType.h
@@ -1,4 +1,4 @@
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
///@system 新一代交易所系统
///@company 上海期货信息技术有限公司
///@file ThostFtdcUserApiDataType.h
Expand Down Expand Up @@ -132,6 +132,11 @@ typedef char TThostFtdcMacAddressType[21];
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcSystemIDType[21];

/////////////////////////////////////////////////////////////////////////
///TFtdcClientLoginRemarkType是一个客户登录备注2类型
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcClientLoginRemarkType[151];

/////////////////////////////////////////////////////////////////////////
///TFtdcExchangePropertyType是一个交易所属性类型
/////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -6770,4 +6775,45 @@ typedef char TThostFtdcClassTypeType;

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;

/////////////////////////////////////////////////////////////////////////
///TFtdcSyncDescriptionType是一个追平描述类型
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcSyncDescriptionType[257];

#endif

0 comments on commit ec90942

Please sign in to comment.