77范文网 - 专业文章范例文档资料分享平台

ctp开发手册2009(5)

来源:网络收集 时间:2019-03-23 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

TThostFtdcPositionDateType PositionDate; ///position of last trading day

TThostFtdcVolumeType YdPosition; OpenVolume; ///close volume

TThostFtdcVolumeType CloseVolume; ///open amount

TThostFtdcMoneyType OpenAmount; ///close amount

TThostFtdcMoneyType CloseAmount; ///position cost

TThostFtdcMoneyType PositionCost; ///previous margin

TThostFtdcMoneyType PreMargin; ///used margin

TThostFtdcMoneyType UseMargin; ///frozen margin

TThostFtdcMoneyType FrozenMargin; ///frozen cash

TThostFtdcMoneyType FrozenCash; ///frozen commission

TThostFtdcMoneyType FrozenCommission; ///cash in

TThostFtdcMoneyType CashIn; ///commission

TThostFtdcMoneyType Commission; ///close profit

TThostFtdcMoneyType CloseProfit; ///position profit

TThostFtdcMoneyType PositionProfit; ///previous settlement price

TThostFtdcPriceType PreSettlementPrice; ///settlement price

TThostFtdcPriceType SettlementPrice; ///trading day

TThostFtdcDateType TradingDay; ///settlement ID

TThostFtdcSettlementIDType SettlementID; };

5.2.17 OnRspQryTradingAccount

CTP服务器利用此callback函数反馈客户端应用程序“ReqQryTradingAccount”的请求。

定义:void OnRspQryTradingAccount(

CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);

参数:

pTradingAccount : Pointer of the structure for the response of ReqQryTradingAccount. The following is definition of the structure, struct CThostFtdcTradingAccountField {

///broker id

TThostFtdcBrokerIDType BrokerID; ///account id

TThostFtdcAccountIDType AccountID; ///previous mortgage

TThostFtdcMoneyType PreMortgage; ///previous credit

TThostFtdcMoneyType PreCredit; ///previous deposit

TThostFtdcMoneyType PreDeposit; ///previous balance

TThostFtdcMoneyType PreBalance; ///premargin

TThostFtdcMoneyType PreMargin; ///interest base

TThostFtdcMoneyType InterestBase; ///interest

TThostFtdcMoneyType Interest; ///deposit

TThostFtdcMoneyType Deposit; ///withdraw

TThostFtdcMoneyType Withdraw; ///frozen margin

TThostFtdcMoneyType FrozenMargin; ///frozen cash

TThostFtdcMoneyType FrozenCash; ///frozen commission

TThostFtdcMoneyType FrozenCommission; ///current margin

TThostFtdcMoneyType CurrMargin; ///cash in

TThostFtdcMoneyType CashIn; ///commission

TThostFtdcMoneyType Commission; ///close profit

TThostFtdcMoneyType CloseProfit; ///position profit

TThostFtdcMoneyType PositionProfit; ///balance

TThostFtdcMoneyType Balance; ///available

TThostFtdcMoneyType Available; ///withdraw quota

TThostFtdcMoneyType WithdrawQuota; ///reserve

TThostFtdcMoneyType Reserve; ///trading day

TThostFtdcDateType TradingDay; ///settlement ID

TThostFtdcSettlementIDType SettlementID; ///credit

TThostFtdcMoneyType Credit; ///Mortgage

TThostFtdcMoneyType Mortgage; ///excahnge margin

TThostFtdcMoneyType ExchangeMargin; };

5.2.18 OnRspQryTradingCode

CTP服务器利用此callback函数反馈客户端应用程序“ReqQryTradingCode”的请求。

定义:void OnRspQryTradingCode(

CThostFtdcTradingCodeField *pTradingCode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) ;

参数:

pTradingCode:Pointer of the structure for the response of ReqQryTradingCode. The following is definition of the structure, struct CThostFtdcTradingCodeField {

///investor ID

TThostFtdcInvestorIDType InvestorID; ///broker id

TThostFtdcBrokerIDType BrokerID; ///exchange ID

TThostFtdcExchangeIDType ExchangeID; ///trading code

TThostFtdcClientIDTypeClientID;

///is active

TThostFtdcBoolType IsActive; };

5.2.19 OnRspQryExchange

CTP服务器利用此callback函数反馈客户端应用程序“ReqQryExchange”的请求。

定义:void OnRspQryExchange(

CThostFtdcExchangeField *pExchange, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) ;

参数:

pExchange:Pointer of the structure for the response of ReqQryExchange. The following is definition of the structure, struct CThostFtdcExchangeField {

///exchange ID

TThostFtdcExchangeIDType ExchangeID; ///exchange name

TThostFtdcExchangeNameType ExchangeName; ///exchange property

TThostFtdcExchangePropertyTypeExchangeProperty; };

5.2.20 OnRspQryInstrument

CTP服务器利用此callback函数反馈客户端应用程序“ReqQryInstrument”的请求。

定义:void OnRspQryInstrument(

CThostFtdcInstrumentField *pInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) ;

参数:

pInstrument:Pointer of the structure for the response of ReqQryInstrument. The following is definition of the structure, struct CThostFtdcInstrumentField {

///instrument ID

TThostFtdcInstrumentIDType InstrumentID; ///exchange ID

TThostFtdcExchangeIDType ExchangeID; ///instrument name

TThostFtdcInstrumentNameType InstrumentName; ///exchange instrument ID

TThostFtdcExchangeInstIDType ExchangeInstID; ///product ID DeliveryMonth;

///max volume for market order

TThostFtdcVolumeType MaxMarketOrderVolume; ///min volume for market order

TThostFtdcVolumeType MinMarketOrderVolume; ///max volume for limit order

TThostFtdcVolumeType MaxLimitOrderVolume; ///min volume for limit order

TThostFtdcVolumeType MinLimitOrderVolume; ///volume multiple of instrument

TThostFtdcVolumeMultipleType VolumeMultiple; ///price tick

TThostFtdcPriceType PriceTick; ///create date

TThostFtdcDateType CreateDate; ///open date

TThostFtdcDateType OpenDate; ///expire date

TThostFtdcDateType ExpireDate; ///start delivery date

TThostFtdcDateType StartDelivDate; ///end delivery date

TThostFtdcDateType EndDelivDate; ///instrument life phase

TThostFtdcInstLifePhaseTypeInstLifePhase; ///is trading

TThostFtdcBoolType IsTrading; ///position type

TThostFtdcPositionTypeType PositionType; ///position date type

TThostFtdcPositionDateTypeType PositionDateType; ///long margin ratio

TThostFtdcRatioType LongMarginRatio; ///short margin ratio

TThostFtdcRatioType ShortMarginRatio; };

5.2.21 OnRspQryDepthMarketData

CTP服务器利用此callback函数反馈客户端应用程序“ReqQryDepthMarketData”的请求。

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库ctp开发手册2009(5)在线全文阅读。

ctp开发手册2009(5).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/543224.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: