2015-12-17 02:15:12 +00:00
|
|
|
|
|
|
|
|
|
#if !defined(KINSTARAPI_THOST_FTDCSTRUCT_H)
|
|
|
|
|
#define KINSTARAPI_THOST_FTDCSTRUCT_H
|
|
|
|
|
|
|
|
|
|
#if _MSC_VER > 1000
|
|
|
|
|
#pragma once
|
|
|
|
|
#endif // _MSC_VER > 1000
|
|
|
|
|
|
|
|
|
|
#include "KSUserApiDataTypeEx.h"
|
|
|
|
|
|
|
|
|
|
//namespace KingstarAPI
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///<2F>û<EFBFBD><C3BB><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>
|
|
|
|
|
struct CThostFtdcReqUserLoginField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcTraderIDType accountID; //<2F><>¼<EFBFBD>ʺ<EFBFBD>
|
|
|
|
|
TThostFtdcLoginType loginType ; //<2F><>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcMemberIDType memberID; //<2F><>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcPasswordType password; //<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcDateType tradeDate; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
///<2F>û<EFBFBD><C3BB><EFBFBD>¼Ӧ<C2BC><D3A6>
|
|
|
|
|
struct CThostFtdcRspUserLoginField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcDateType tradeDate; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcOrderRefType localOrderNo; //<2F><><EFBFBD>ر<F3B1BEB5><D8B1><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcLoginBatchType loginbatch; //<2F><>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcClientIDType tradeCode; //<2F><><EFBFBD>ױ<EFBFBD><D7B1><EFBFBD>
|
|
|
|
|
TThostFtdcClientIDType clientID; //<2F>ͻ<EFBFBD><CDBB><EFBFBD>
|
|
|
|
|
TThostFtdcSeatIDType SeatNo ; //ϯλ<CFAF><CEBB>
|
|
|
|
|
TThostFtdcCSRCInvestorNameType clientName; //<2F>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>
|
2015-12-17 02:15:12 +00:00
|
|
|
|
TThostFtdcIPAddressType lastLoginIp; //<2F>ϴε<CFB4>¼IP<49><50>ַ
|
|
|
|
|
TThostFtdcDateType lastLoginDate; //<2F>ϴε<CFB4>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcTimeType lastLoginTime; //<2F>ϴε<CFB4>¼ʱ<C2BC><CAB1>
|
|
|
|
|
};
|
|
|
|
|
///<2F>û<EFBFBD><C3BB>dz<EFBFBD><C7B3><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
struct CThostFtdcUserLogoutField
|
|
|
|
|
{
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcTraderIDType traderID; //<2F>ͻ<EFBFBD><CDBB><EFBFBD>
|
2015-12-17 02:15:12 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///<2F><>Լ
|
|
|
|
|
struct CThostFtdcInstrumentField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcExchangeIDType exchangeID; //1 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcInstrumentIDType instID; //2 <09><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcRateType lowerLimit; //3 <09><>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcMarketIDType marketID; //4 <09>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType maxHand; //5 <09><><EFBFBD><EFBFBD><EFBFBD>걨<EFBFBD><EAB1A8><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType minHand; //6 <09><>С<EFBFBD>걨<EFBFBD><EAB1A8><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcInstrumentNameType name; //7 <09><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcOpenFlagType openFlag; //8 <09><>Ծ<EFBFBD><D4BE>־ 1<><31>Ծ2<D4BE><32><EFBFBD><EFBFBD>Ծ3ֻƽ 4ֻ<34><D6BB>
|
|
|
|
|
TThostFtdcPriceType tick; //9 <09><>С<EFBFBD>䶯<EFBFBD><E4B6AF>λ
|
|
|
|
|
TThostFtdcInstStateFlagType tradeState; //10 <09><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD>״̬
|
|
|
|
|
TThostFtdInstUnitType unit; //11 <09><><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcRateType upperLimit; //12 <09><>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcVarietyIDType varietyID; //13 <09><><EFBFBD><EFBFBD>Ʒ<EFBFBD>ִ<EFBFBD><D6B4><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVarietyType varietyType; //14 Ʒ<><C6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcMarketType marketType; //<2F>г<EFBFBD><D0B3><EFBFBD>־<EFBFBD><D6BE><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӡ<EFBFBD><D3A1><EFBFBD>
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//<2F><>ѯ<EFBFBD>ʽ<EFBFBD><CABD>˻<EFBFBD>
|
|
|
|
|
struct CThostFtdcQryTradingAccountField
|
|
|
|
|
{
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcMSGType remian; //<2F><><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD>
|
2015-12-17 02:15:12 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
///<2F>ʽ<EFBFBD><CABD>˻<EFBFBD>
|
|
|
|
|
struct CThostFtdcTradingAccountField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcMoneyType availCap; //2 <09><><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMoneyType available; //3 <09><><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMoneyType posiMargin; //4 <09>ֱֲ<D6B2>֤<EFBFBD><D6A4> <09><>
|
|
|
|
|
TThostFtdcMoneyType buyPosiMargin; //5 <09><><EFBFBD>ֱֲ<D6B2>֤<EFBFBD><D6A4> <09><>
|
|
|
|
|
TThostFtdcMoneyType sellPosiMargin; //6 <09><><EFBFBD>ֱֲ<D6B2>֤<EFBFBD><D6A4> <09><>
|
|
|
|
|
TThostFtdcMoneyType storageMargin; //8 <09>ִ<EFBFBD><D6B4><EFBFBD>֤<EFBFBD><D6A4> <09><>
|
|
|
|
|
TThostFtdcMoneyType totalFee;; //9 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMoneyType totalFrozen; //10 <09>ܶ<EFBFBD><DCB6><EFBFBD><EFBFBD>ʽ<EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMoneyType orderFrozen; //11 ί<>ж<EFBFBD><D0B6><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMoneyType spotSellFrozen; //12 <09>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMoneyType todayIn; //13 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMoneyType todayOut; //14 <09><><EFBFBD>ճ<EFBFBD><D5B3><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMoneyType lastFrozen; //17 <09><><EFBFBD>ն<EFBFBD><D5B6><EFBFBD><EFBFBD>ʽ<EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMoneyType totalFrozenFee; //18 <09>ܶ<EFBFBD><DCB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMoneyType pickUpMargin; // 19 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><D6A4> <09><>
|
|
|
|
|
TThostFtdcMoneyType middleMargin; //20 <09><><EFBFBD><EFBFBD><EFBFBD>ֱ<EFBFBD>֤<EFBFBD><D6A4> <09><>
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
///Ͷ<><CDB6><EFBFBD>ֲ߳<DFB3>
|
|
|
|
|
struct CThostFtdcInvestorPositionField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcInstrumentIDType instID; //4 <09><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType longPosi; //5 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֲ<EFBFBD><D6B2><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcPriceType longPosiAvgPrice; //6 <09><><EFBFBD>־<EFBFBD><D6BE><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType shortPosi; //7 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֲ<EFBFBD><D6B2><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcPriceType shortPosiAvgPrice;//8 <09><><EFBFBD>־<EFBFBD><D6BE><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcPriceType longOpenAvgPrice; //9 <09><EFBFBD><F2BFAABE><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcPriceType shortOpenAvgPrice;//10 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType longPosiFrozen; //11 <09><><EFBFBD>ֲֶ<D6B2><D6B6><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType shortPosiFrozen; //12 <09><><EFBFBD>ֲֶ<D6B2><D6B6><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType longPosiVol; //13 <09><><EFBFBD>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType shortPosiVol; //14 <09><><EFBFBD>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType todayLong; //15 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType todayShort; //16 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType todayOffsetShort; //17 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ <09><>
|
|
|
|
|
TThostFtdcVolumeType todayOffsetLong; //18 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ <09><>
|
|
|
|
|
TThostFtdcVolumeType lastLong; //19 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֲ<EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType lastShort; //20 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֲ<EFBFBD> <09><>
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///<2F><>Ӧ<EFBFBD><D3A6>Ϣ
|
|
|
|
|
struct CThostFtdcRspInfoField
|
|
|
|
|
{
|
|
|
|
|
///<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcErrorIDType ErrorID;
|
|
|
|
|
///<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
TThostFtdcErrorMsgType ErrorMsg;
|
|
|
|
|
};
|
|
|
|
|
///<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
struct CThostFtdcDepthMarketDataField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcInstrumentIDType InstID ; /**<<3C><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcInstrumentNameType Name ; /**<<3C><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcMarketNameType MarketName ; /**<<3C>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType PreSettle ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType PreClose ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Open ; /**<<3C><><EFBFBD>̼<EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType High ; /**<<3C><><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Low ; /**<<3C><><EFBFBD>ͼ<EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Last ; /**<<3C><><EFBFBD>¼<EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Close ; /**<<3C><><EFBFBD>̼<EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Bid1 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ */
|
|
|
|
|
TThostFtdcVolumeType BidLot1 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ */
|
|
|
|
|
TThostFtdcPriceType Ask1 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ */
|
|
|
|
|
TThostFtdcVolumeType AskLot1 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ */
|
|
|
|
|
TThostFtdcPriceType Bid2 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>۶<EFBFBD> */
|
|
|
|
|
TThostFtdcVolumeType BidLot2 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Ask2 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>۶<EFBFBD> */
|
|
|
|
|
TThostFtdcVolumeType AskLot2 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Bid3 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcVolumeType BidLot3 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Ask3 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcVolumeType AskLot3 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcPriceType Bid4 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcVolumeType BidLot4 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Ask4 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcVolumeType AskLot4 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Bid5 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcVolumeType BidLot5 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Ask5 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcVolumeType AskLot5 ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
2015-12-17 02:15:12 +00:00
|
|
|
|
TThostFtdcVolumeType Volume ; /**<<3C>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD>˫<EFBFBD>ߣ<EFBFBD> */
|
|
|
|
|
TThostFtdcVolumeType OpenInt ; /**<<3C>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD>˫<EFBFBD>ߣ<EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType UpDown ; /**<<3C>ǵ<EFBFBD> */
|
|
|
|
|
TThostFtdcMoneyType Turnover ; /**<<3C>ɽ<EFBFBD><C9BD><EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Settle ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcPriceType Average ; /**<<3C><><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcDateType QuoteDate ; /**<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
TThostFtdcTimeType QuoteTime ; /**<<3C><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1> */
|
|
|
|
|
TThostFtdcWeightType weight; //<2F>ɽ<EFBFBD><C9BD><EFBFBD>˫<EFBFBD>ߣ<EFBFBD><DFA3><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcPriceType highLimit; //<2F><>ͣ<EFBFBD><CDA3>
|
|
|
|
|
TThostFtdcPriceType lowLimit; //<2F><>ͣ<EFBFBD><CDA3>
|
|
|
|
|
TThostFtdcRateType UpDownRate; //<2F>ǵ<EFBFBD><C7B5><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///<2F><><EFBFBD>뱨<EFBFBD><EBB1A8>
|
|
|
|
|
struct CThostFtdcInputOrderField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcSeatIDType seatID; //2 ϯλ<CFAF><CEBB> <09><>
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcClientIDType tradeCode; //3 <09><><EFBFBD>ױ<EFBFBD><D7B1><EFBFBD> <09><>
|
2015-12-17 02:15:12 +00:00
|
|
|
|
TThostFtdcInstrumentIDType instID; //5 Ʒ<>ִ<EFBFBD><D6B4><EFBFBD> <09><>
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcBsFlagType buyOrSell; //6 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
2015-12-17 02:15:12 +00:00
|
|
|
|
TThostFtdcOffsetFlagType offsetFlag; //7 <09><>ƽ<EFBFBD><C6BD>־ <09><>
|
|
|
|
|
TThostFtdcVolumeType amount; //8 ί<><CEAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcByteType middleFlag; //9 <09><><EFBFBD><EFBFBD><EFBFBD>ֱ<EFBFBD>־ <09><> <09><><EFBFBD><EFBFBD>Ϊ0
|
2015-12-17 02:15:12 +00:00
|
|
|
|
TThostFtdcByteType priceFlag; //11 <09><><EFBFBD><EFBFBD>ί<EFBFBD>м۸<D0BC><DBB8><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcPriceType price; //12 Ԥί<D4A4>м۸<D0BC> <09><>
|
|
|
|
|
TThostFtdcPriceType trigPrice; //13 Ԥί<D4A4>д<EFBFBD><D0B4><EFBFBD><EFBFBD>۸<EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMarketIDType marketID; //14 <09>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD> <09><>
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcOrderRefType LocalOrderNo; // <09><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcTradeWayType tradeWay; //19 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
2015-12-17 02:15:12 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
///<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
struct CThostFtdcOrderField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcOrderNoType orderNo; //1 ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcOrderRefType localOrderNo;; //2 <09><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMarketIDType marketID; //4 <09>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcInstrumentIDType instID; //5 <09><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcBsFlagType buyOrSell; //7 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcOffsetFlagType offsetFlag; //8 <09><>ƽ<EFBFBD><C6BD>־ <09><>
|
|
|
|
|
TThostFtdcVolumeType amount; //9 ί<><CEAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType weight; //10 ί<><CEAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><> <09><><EFBFBD><EFBFBD>Ϊ0
|
|
|
|
|
TThostFtdcPriceType price; //11 ί<>м۸<D0BC> <09><>
|
|
|
|
|
TThostFtdcVolumeType matchQty; //12 <09>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType matchWeight; //13 <09>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcOrderStatusType status; //14 ί<><CEAF>״̬ <09><>
|
|
|
|
|
TThostFtdcTimeType entrustTime; //15 ί<><CEAF>ʱ<EFBFBD><CAB1> <09><>
|
|
|
|
|
TThostFtdcByteType forceoffset_flag; //16 ǿƽ<C7BF><C6BD>־ <09><>
|
|
|
|
|
TThostFtdcVolumeType cancelQty; //17 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcTimeType cancelTime; //18<31><38><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
|
|
|
|
|
TThostFtdcTradeWayType tradeWay; //19 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
};
|
|
|
|
|
|
2015-12-23 06:15:41 +00:00
|
|
|
|
///<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ر<EFBFBD>
|
|
|
|
|
struct CThostFtdcOrderRtnField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcOrderNoType orderNo; //1 ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcOrderRefType localOrderNo;; //2 <09><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcOrderStatusType status; //14 ί<><CEAF>״̬ <09><>
|
|
|
|
|
TThostFtdcVolumeType cancelQty; //17 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
};
|
|
|
|
|
|
2015-12-17 02:15:12 +00:00
|
|
|
|
|
|
|
|
|
///<2F><><EFBFBD>뱨<EFBFBD><EBB1A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(cancel order)
|
|
|
|
|
struct CThostFtdcInputOrderActionField
|
|
|
|
|
{
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcOrderRefType localOrderNo; //1 <09><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMarketIDType marketID; //2 <09>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcOrderStatusType status; //14 ί<><CEAF>״̬
|
2015-12-17 02:15:12 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
///<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
struct CThostFtdcOrderActionField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcOrderRefType localOrderNo; //1 <09><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcByteType orderFlag; //2 ί<>б<EFBFBD>־ <09><>
|
|
|
|
|
TThostFtdcMarketIDType marketID; //3 <09>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcTraderIDType traderID; //6 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա <09><>
|
|
|
|
|
TThostFtdcTradeWayType tradeWay; //7 ί<><CEAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><> д<><D0B4>"5"
|
|
|
|
|
};
|
|
|
|
|
///<2F>ɽ<EFBFBD>
|
|
|
|
|
struct CThostFtdcTradeField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcOrderNoType orderNo; //1 ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMatchNoType matchNo; //2 <09>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcInstrumentIDType instID; //3 <09><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcBsFlagType buyOrSell; //5 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcOffsetFlagType offSetFlag; //6 <09><>ƽ<EFBFBD><C6BD>־ <09><>
|
|
|
|
|
TThostFtdcPriceType price; //7 <09>ɽ<EFBFBD><C9BD>۸<EFBFBD> <09><>
|
|
|
|
|
TThostFtdcVolumeType volume; //8 <09>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMoneyType amount; //9 <09>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType weight; //10 <09>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcByteType order_flag; //11 ί<><CEAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcDateType matchDate; //12 <09>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcTimeType matchTime; //13 <09>ɽ<EFBFBD>ʱ<EFBFBD><CAB1> <09><>
|
|
|
|
|
TThostFtdcOrderRefType localOrderNo; //14 <09><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMarketIDType marketID; //15 <09>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcMoneyType trade_fee; //16 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcByteType forceoffset_flag; //17 ǿƽ<C7BF><C6BD>־ <09><>
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcVolumeType forcebatchnum ; //18 ǿƽ<C7BF><C6BD><EFBFBD>κ<EFBFBD> <09><>
|
|
|
|
|
TThostFtdcTradeWayType tradeWay; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־
|
2015-12-17 02:15:12 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
///<2F><>ѯ<EFBFBD><D1AF>Լ
|
|
|
|
|
struct CThostFtdcQryInstrumentField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcContractIDType ContractID; /*<2A><>Լ<EFBFBD><D4BC>*/
|
|
|
|
|
TThostFtdcProductIDType ProductID; /*<2A><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>*/
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///<2F><>ѯ<EFBFBD>ɽ<EFBFBD>
|
|
|
|
|
struct CThostFtdcQryTradeField
|
|
|
|
|
{
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcMatchNoType matchNo; //<2F>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD>
|
2015-12-17 02:15:12 +00:00
|
|
|
|
TThostFtdcInstrumentIDType instID; //<2F><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcMarketIDType marketID; //<2F>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD>
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcOrderRefType localOrderNo; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2015-12-17 02:15:12 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///<2F><>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>
|
|
|
|
|
struct CThostFtdcQryOrderField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcInstrumentIDType instID; //<2F><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcMarketIDType marketID; //<2F>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD>
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcOrderRefType localOrderNo; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2015-12-17 02:15:12 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///<2F><>ѯͶ<D1AF><CDB6><EFBFBD>ֲ߳<DFB3>
|
|
|
|
|
struct CThostFtdcQryInvestorPositionField
|
|
|
|
|
{
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcMarketIDType marketID; //<2F>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcInstrumentIDType instID; //<2F><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD>
|
2015-12-17 02:15:12 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///<2F><>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>
|
|
|
|
|
struct CThostFtdcQryStorageField
|
|
|
|
|
{
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcVarietyIDType varietyID; //<2F><><EFBFBD><EFBFBD>Ʒ<EFBFBD>ִ<EFBFBD><D6B4><EFBFBD>
|
2015-12-17 02:15:12 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>
|
|
|
|
|
struct CThostFtdcStorageField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcVarietyIDType varietyID; //3 <09><><EFBFBD><EFBFBD>Ʒ<EFBFBD>ִ<EFBFBD><D6B4><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcAbbrType varietyName; //4 <09><><EFBFBD><EFBFBD>Ʒ<EFBFBD>ּ<EFBFBD><D6BC><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType totalStorage; //6 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType availableStorage; //7 <09><><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType frozenStorage; //8 <09>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType pendStorage; //9 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType todayBuy; //10 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType todaySell; //11 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType todayDeposit; //12 <09><><EFBFBD>մ<EFBFBD><D5B4><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType todayRealDeposit; //13 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType todayBorrow; //14 <09><><EFBFBD>ս<EFBFBD><D5BD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType todayLend; //15 <09><><EFBFBD>ս<EFBFBD><D5BD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType impawnStorage; //16 <09><>Ѻ<EFBFBD><D1BA><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType lawFrozen; //17 <09><><EFBFBD>ɶ<EFBFBD><C9B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType bankFrozen; //18 <09><><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
|
|
|
|
TThostFtdcByteType customType; //19 <09>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD> <09><>
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcWeightType storageCost; //20 <09><><EFBFBD><EFBFBD><EFBFBD>ɱ<EFBFBD> <09><>
|
|
|
|
|
TThostFtdcWeightType impawnFrozen; //22 <09><>Ѻ<EFBFBD><D1BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <09><>
|
2015-12-17 02:15:12 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//<2F>г<EFBFBD>״̬
|
|
|
|
|
struct CThostFtdcMarketStatusField
|
|
|
|
|
{
|
|
|
|
|
TThostFtdcMktStatusType MktStatus; /*<2A>г<EFBFBD>״̬*/
|
2015-12-23 06:15:41 +00:00
|
|
|
|
TThostFtdcMarketIDType marketID; /*<2A>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD>*/
|
2015-12-17 02:15:12 +00:00
|
|
|
|
};
|
|
|
|
|
///ָ<><D6B8><EFBFBD>ĺ<EFBFBD>Լ
|
|
|
|
|
struct CThostFtdcSpecificInstrumentField
|
|
|
|
|
{
|
|
|
|
|
///<2F><>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD>
|
|
|
|
|
TThostFtdcInstrumentIDType InstrumentID;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//} // end of namespace KingstarAPI
|
|
|
|
|
|
|
|
|
|
#endif
|