/* AUTO-GENERATED by scripts/codegen/generate.mjs. Do not edit. */
/** TThostFtdcExchangePropertyType */
export var ExchangeProperty;
(function (ExchangeProperty) {
    ExchangeProperty["Normal"] = "0";
    ExchangeProperty["GenOrderByTrade"] = "1";
})(ExchangeProperty || (ExchangeProperty = {}));
/** TThostFtdcIdCardTypeType */
export var IdCardType;
(function (IdCardType) {
    IdCardType["EID"] = "0";
    IdCardType["IDCard"] = "1";
    IdCardType["OfficerIDCard"] = "2";
    IdCardType["PoliceIDCard"] = "3";
    IdCardType["SoldierIDCard"] = "4";
    IdCardType["HouseholdRegister"] = "5";
    IdCardType["Passport"] = "6";
    IdCardType["TaiwanCompatriotIDCard"] = "7";
    IdCardType["HomeComingCard"] = "8";
    IdCardType["LicenseNo"] = "9";
    IdCardType["TaxNo"] = "A";
    IdCardType["HMMainlandTravelPermit"] = "B";
    IdCardType["TwMainlandTravelPermit"] = "C";
    IdCardType["DrivingLicense"] = "D";
    IdCardType["SocialID"] = "F";
    IdCardType["LocalID"] = "G";
    IdCardType["BusinessRegistration"] = "H";
    IdCardType["HKMCIDCard"] = "I";
    IdCardType["AccountsPermits"] = "J";
    IdCardType["FrgPrmtRdCard"] = "K";
    IdCardType["CptMngPrdLetter"] = "L";
    IdCardType["HKMCTwResidencePermit"] = "M";
    IdCardType["UniformSocialCreditCode"] = "N";
    IdCardType["CorporationCertNo"] = "O";
    IdCardType["OtherCard"] = "x";
})(IdCardType || (IdCardType = {}));
/** TThostFtdcInvestorRangeType */
export var InvestorRange;
(function (InvestorRange) {
    InvestorRange["All"] = "1";
    InvestorRange["Group"] = "2";
    InvestorRange["Single"] = "3";
})(InvestorRange || (InvestorRange = {}));
/** TThostFtdcDepartmentRangeType */
export var DepartmentRange;
(function (DepartmentRange) {
    DepartmentRange["All"] = "1";
    DepartmentRange["Group"] = "2";
    DepartmentRange["Single"] = "3";
})(DepartmentRange || (DepartmentRange = {}));
/** TThostFtdcDataSyncStatusType */
export var DataSyncStatus;
(function (DataSyncStatus) {
    DataSyncStatus["Asynchronous"] = "1";
    DataSyncStatus["Synchronizing"] = "2";
    DataSyncStatus["Synchronized"] = "3";
})(DataSyncStatus || (DataSyncStatus = {}));
/** TThostFtdcBrokerDataSyncStatusType */
export var BrokerDataSyncStatus;
(function (BrokerDataSyncStatus) {
    BrokerDataSyncStatus["Synchronized"] = "1";
    BrokerDataSyncStatus["Synchronizing"] = "2";
})(BrokerDataSyncStatus || (BrokerDataSyncStatus = {}));
/** TThostFtdcExchangeConnectStatusType */
export var ExchangeConnectStatus;
(function (ExchangeConnectStatus) {
    ExchangeConnectStatus["NoConnection"] = "1";
    ExchangeConnectStatus["QryInstrumentSent"] = "2";
    ExchangeConnectStatus["GotInformation"] = "9";
})(ExchangeConnectStatus || (ExchangeConnectStatus = {}));
/** TThostFtdcTraderConnectStatusType */
export var TraderConnectStatus;
(function (TraderConnectStatus) {
    TraderConnectStatus["NotConnected"] = "1";
    TraderConnectStatus["Connected"] = "2";
    TraderConnectStatus["QryInstrumentSent"] = "3";
    TraderConnectStatus["SubPrivateFlow"] = "4";
})(TraderConnectStatus || (TraderConnectStatus = {}));
/** TThostFtdcFunctionCodeType */
export var FunctionCode;
(function (FunctionCode) {
    FunctionCode["DataAsync"] = "1";
    FunctionCode["ForceUserLogout"] = "2";
    FunctionCode["UserPasswordUpdate"] = "3";
    FunctionCode["BrokerPasswordUpdate"] = "4";
    FunctionCode["InvestorPasswordUpdate"] = "5";
    FunctionCode["OrderInsert"] = "6";
    FunctionCode["OrderAction"] = "7";
    FunctionCode["SyncSystemData"] = "8";
    FunctionCode["SyncBrokerData"] = "9";
    FunctionCode["BachSyncBrokerData"] = "A";
    FunctionCode["SuperQuery"] = "B";
    FunctionCode["ParkedOrderInsert"] = "C";
    FunctionCode["ParkedOrderAction"] = "D";
    FunctionCode["SyncOTP"] = "E";
    FunctionCode["DeleteOrder"] = "F";
    FunctionCode["ExitEmergency"] = "G";
})(FunctionCode || (FunctionCode = {}));
/** TThostFtdcBrokerFunctionCodeType */
export var BrokerFunctionCode;
(function (BrokerFunctionCode) {
    BrokerFunctionCode["ForceUserLogout"] = "1";
    BrokerFunctionCode["UserPasswordUpdate"] = "2";
    BrokerFunctionCode["SyncBrokerData"] = "3";
    BrokerFunctionCode["BachSyncBrokerData"] = "4";
    BrokerFunctionCode["OrderInsert"] = "5";
    BrokerFunctionCode["OrderAction"] = "6";
    BrokerFunctionCode["AllQuery"] = "7";
    BrokerFunctionCode["log"] = "a";
    BrokerFunctionCode["BaseQry"] = "b";
    BrokerFunctionCode["TradeQry"] = "c";
    BrokerFunctionCode["Trade"] = "d";
    BrokerFunctionCode["Virement"] = "e";
    BrokerFunctionCode["Risk"] = "f";
    BrokerFunctionCode["Session"] = "g";
    BrokerFunctionCode["RiskNoticeCtl"] = "h";
    BrokerFunctionCode["RiskNotice"] = "i";
    BrokerFunctionCode["BrokerDeposit"] = "j";
    BrokerFunctionCode["QueryFund"] = "k";
    BrokerFunctionCode["QueryOrder"] = "l";
    BrokerFunctionCode["QueryTrade"] = "m";
    BrokerFunctionCode["QueryPosition"] = "n";
    BrokerFunctionCode["QueryMarketData"] = "o";
    BrokerFunctionCode["QueryUserEvent"] = "p";
    BrokerFunctionCode["QueryRiskNotify"] = "q";
    BrokerFunctionCode["QueryFundChange"] = "r";
    BrokerFunctionCode["QueryInvestor"] = "s";
    BrokerFunctionCode["QueryTradingCode"] = "t";
    BrokerFunctionCode["ForceClose"] = "u";
    BrokerFunctionCode["PressTest"] = "v";
    BrokerFunctionCode["RemainCalc"] = "w";
    BrokerFunctionCode["NetPositionInd"] = "x";
    BrokerFunctionCode["RiskPredict"] = "y";
    BrokerFunctionCode["DataExport"] = "z";
    BrokerFunctionCode["RiskTargetSetup"] = "A";
    BrokerFunctionCode["MarketDataWarn"] = "B";
    BrokerFunctionCode["QryBizNotice"] = "C";
    BrokerFunctionCode["CfgBizNotice"] = "D";
    BrokerFunctionCode["SyncOTP"] = "E";
    BrokerFunctionCode["SendBizNotice"] = "F";
    BrokerFunctionCode["CfgRiskLevelStd"] = "G";
    BrokerFunctionCode["TbCommand"] = "H";
    BrokerFunctionCode["DeleteOrder"] = "J";
    BrokerFunctionCode["ParkedOrderInsert"] = "K";
    BrokerFunctionCode["ParkedOrderAction"] = "L";
    BrokerFunctionCode["ExecOrderNoCheck"] = "M";
    BrokerFunctionCode["Designate"] = "N";
    BrokerFunctionCode["StockDisposal"] = "O";
    BrokerFunctionCode["BrokerDepositWarn"] = "Q";
    BrokerFunctionCode["CoverWarn"] = "S";
    BrokerFunctionCode["PreExecOrder"] = "T";
    BrokerFunctionCode["ExecOrderRisk"] = "P";
    BrokerFunctionCode["PosiLimitWarn"] = "U";
    BrokerFunctionCode["QryPosiLimit"] = "V";
    BrokerFunctionCode["FBSign"] = "W";
    BrokerFunctionCode["FBAccount"] = "X";
    BrokerFunctionCode["RcvSMSCode"] = "Y";
})(BrokerFunctionCode || (BrokerFunctionCode = {}));
/** TThostFtdcOrderActionStatusType */
export var OrderActionStatus;
(function (OrderActionStatus) {
    OrderActionStatus["Submitted"] = "a";
    OrderActionStatus["Accepted"] = "b";
    OrderActionStatus["Rejected"] = "c";
})(OrderActionStatus || (OrderActionStatus = {}));
/** TThostFtdcOrderStatusType */
export var OrderStatus;
(function (OrderStatus) {
    OrderStatus["AllTraded"] = "0";
    OrderStatus["PartTradedQueueing"] = "1";
    OrderStatus["PartTradedNotQueueing"] = "2";
    OrderStatus["NoTradeQueueing"] = "3";
    OrderStatus["NoTradeNotQueueing"] = "4";
    OrderStatus["Canceled"] = "5";
    OrderStatus["Unknown"] = "a";
    OrderStatus["NotTouched"] = "b";
    OrderStatus["Touched"] = "c";
})(OrderStatus || (OrderStatus = {}));
/** TThostFtdcOrderSubmitStatusType */
export var OrderSubmitStatus;
(function (OrderSubmitStatus) {
    OrderSubmitStatus["InsertSubmitted"] = "0";
    OrderSubmitStatus["CancelSubmitted"] = "1";
    OrderSubmitStatus["ModifySubmitted"] = "2";
    OrderSubmitStatus["Accepted"] = "3";
    OrderSubmitStatus["InsertRejected"] = "4";
    OrderSubmitStatus["CancelRejected"] = "5";
    OrderSubmitStatus["ModifyRejected"] = "6";
})(OrderSubmitStatus || (OrderSubmitStatus = {}));
/** TThostFtdcPositionDateType */
export var PositionDate;
(function (PositionDate) {
    PositionDate["Today"] = "1";
    PositionDate["History"] = "2";
})(PositionDate || (PositionDate = {}));
/** TThostFtdcPositionDateTypeType */
export var PositionDateType;
(function (PositionDateType) {
    PositionDateType["UseHistory"] = "1";
    PositionDateType["NoUseHistory"] = "2";
})(PositionDateType || (PositionDateType = {}));
/** TThostFtdcTradingRoleType */
export var TradingRole;
(function (TradingRole) {
    TradingRole["Broker"] = "1";
    TradingRole["Host"] = "2";
    TradingRole["Maker"] = "3";
})(TradingRole || (TradingRole = {}));
/** TThostFtdcProductClassType */
export var ProductClass;
(function (ProductClass) {
    ProductClass["Futures"] = "1";
    ProductClass["Options"] = "2";
    ProductClass["Combination"] = "3";
    ProductClass["Spot"] = "4";
    ProductClass["EFP"] = "5";
    ProductClass["SpotOption"] = "6";
    ProductClass["TAS"] = "7";
    ProductClass["MI"] = "I";
})(ProductClass || (ProductClass = {}));
/** TThostFtdcAPIProductClassType */
export var APIProductClass;
(function (APIProductClass) {
    APIProductClass["FutureSingle"] = "1";
    APIProductClass["OptionSingle"] = "2";
    APIProductClass["Futures"] = "3";
    APIProductClass["Options"] = "4";
    APIProductClass["TradingComb"] = "5";
    APIProductClass["UnTradingComb"] = "6";
    APIProductClass["AllTrading"] = "7";
    APIProductClass["All"] = "8";
})(APIProductClass || (APIProductClass = {}));
/** TThostFtdcInstLifePhaseType */
export var InstLifePhase;
(function (InstLifePhase) {
    InstLifePhase["NotStart"] = "0";
    InstLifePhase["Started"] = "1";
    InstLifePhase["Pause"] = "2";
    InstLifePhase["Expired"] = "3";
})(InstLifePhase || (InstLifePhase = {}));
/** TThostFtdcDirectionType */
export var Direction;
(function (Direction) {
    Direction["Buy"] = "0";
    Direction["Sell"] = "1";
})(Direction || (Direction = {}));
/** TThostFtdcPositionTypeType */
export var PositionType;
(function (PositionType) {
    PositionType["Net"] = "1";
    PositionType["Gross"] = "2";
})(PositionType || (PositionType = {}));
/** TThostFtdcPosiDirectionType */
export var PosiDirection;
(function (PosiDirection) {
    PosiDirection["Net"] = "1";
    PosiDirection["Long"] = "2";
    PosiDirection["Short"] = "3";
})(PosiDirection || (PosiDirection = {}));
/** TThostFtdcSysSettlementStatusType */
export var SysSettlementStatus;
(function (SysSettlementStatus) {
    SysSettlementStatus["NonActive"] = "1";
    SysSettlementStatus["Startup"] = "2";
    SysSettlementStatus["Operating"] = "3";
    SysSettlementStatus["Settlement"] = "4";
    SysSettlementStatus["SettlementFinished"] = "5";
})(SysSettlementStatus || (SysSettlementStatus = {}));
/** TThostFtdcRatioAttrType */
export var RatioAttr;
(function (RatioAttr) {
    RatioAttr["Trade"] = "0";
    RatioAttr["Settlement"] = "1";
})(RatioAttr || (RatioAttr = {}));
/** TThostFtdcHedgeFlagType */
export var HedgeFlag;
(function (HedgeFlag) {
    HedgeFlag["Speculation"] = "1";
    HedgeFlag["Arbitrage"] = "2";
    HedgeFlag["Hedge"] = "3";
    HedgeFlag["MarketMaker"] = "5";
    HedgeFlag["SpecHedge"] = "6";
    HedgeFlag["HedgeSpec"] = "7";
})(HedgeFlag || (HedgeFlag = {}));
/** TThostFtdcBillHedgeFlagType */
export var BillHedgeFlag;
(function (BillHedgeFlag) {
    BillHedgeFlag["Speculation"] = "1";
    BillHedgeFlag["Arbitrage"] = "2";
    BillHedgeFlag["Hedge"] = "3";
})(BillHedgeFlag || (BillHedgeFlag = {}));
/** TThostFtdcClientIDTypeType */
export var ClientIDType;
(function (ClientIDType) {
    ClientIDType["Speculation"] = "1";
    ClientIDType["Arbitrage"] = "2";
    ClientIDType["Hedge"] = "3";
    ClientIDType["MarketMaker"] = "5";
})(ClientIDType || (ClientIDType = {}));
/** TThostFtdcOrderPriceTypeType */
export var OrderPriceType;
(function (OrderPriceType) {
    OrderPriceType["AnyPrice"] = "1";
    OrderPriceType["LimitPrice"] = "2";
    OrderPriceType["BestPrice"] = "3";
    OrderPriceType["LastPrice"] = "4";
    OrderPriceType["LastPricePlusOneTicks"] = "5";
    OrderPriceType["LastPricePlusTwoTicks"] = "6";
    OrderPriceType["LastPricePlusThreeTicks"] = "7";
    OrderPriceType["AskPrice1"] = "8";
    OrderPriceType["AskPrice1PlusOneTicks"] = "9";
    OrderPriceType["AskPrice1PlusTwoTicks"] = "A";
    OrderPriceType["AskPrice1PlusThreeTicks"] = "B";
    OrderPriceType["BidPrice1"] = "C";
    OrderPriceType["BidPrice1PlusOneTicks"] = "D";
    OrderPriceType["BidPrice1PlusTwoTicks"] = "E";
    OrderPriceType["BidPrice1PlusThreeTicks"] = "F";
    OrderPriceType["FiveLevelPrice"] = "G";
})(OrderPriceType || (OrderPriceType = {}));
/** TThostFtdcOffsetFlagType */
export var OffsetFlag;
(function (OffsetFlag) {
    OffsetFlag["Open"] = "0";
    OffsetFlag["Close"] = "1";
    OffsetFlag["ForceClose"] = "2";
    OffsetFlag["CloseToday"] = "3";
    OffsetFlag["CloseYesterday"] = "4";
    OffsetFlag["ForceOff"] = "5";
    OffsetFlag["LocalForceClose"] = "6";
})(OffsetFlag || (OffsetFlag = {}));
/** TThostFtdcForceCloseReasonType */
export var ForceCloseReason;
(function (ForceCloseReason) {
    ForceCloseReason["NotForceClose"] = "0";
    ForceCloseReason["LackDeposit"] = "1";
    ForceCloseReason["ClientOverPositionLimit"] = "2";
    ForceCloseReason["MemberOverPositionLimit"] = "3";
    ForceCloseReason["NotMultiple"] = "4";
    ForceCloseReason["Violation"] = "5";
    ForceCloseReason["Other"] = "6";
    ForceCloseReason["PersonDeliv"] = "7";
    ForceCloseReason["Notverifycapital"] = "8";
    ForceCloseReason["LocalLackDeposit"] = "9";
    ForceCloseReason["LocalViolationNocheck"] = "a";
    ForceCloseReason["LocalViolation"] = "b";
})(ForceCloseReason || (ForceCloseReason = {}));
/** TThostFtdcOrderTypeType */
export var OrderType;
(function (OrderType) {
    OrderType["Normal"] = "0";
    OrderType["DeriveFromQuote"] = "1";
    OrderType["DeriveFromCombination"] = "2";
    OrderType["Combination"] = "3";
    OrderType["ConditionalOrder"] = "4";
    OrderType["Swap"] = "5";
    OrderType["DeriveFromBlockTrade"] = "6";
    OrderType["DeriveFromEFPTrade"] = "7";
})(OrderType || (OrderType = {}));
/** TThostFtdcTimeConditionType */
export var TimeCondition;
(function (TimeCondition) {
    TimeCondition["IOC"] = "1";
    TimeCondition["GFS"] = "2";
    TimeCondition["GFD"] = "3";
    TimeCondition["GTD"] = "4";
    TimeCondition["GTC"] = "5";
    TimeCondition["GFA"] = "6";
})(TimeCondition || (TimeCondition = {}));
/** TThostFtdcVolumeConditionType */
export var VolumeCondition;
(function (VolumeCondition) {
    VolumeCondition["AV"] = "1";
    VolumeCondition["MV"] = "2";
    VolumeCondition["CV"] = "3";
})(VolumeCondition || (VolumeCondition = {}));
/** TThostFtdcContingentConditionType */
export var ContingentCondition;
(function (ContingentCondition) {
    ContingentCondition["Immediately"] = "1";
    ContingentCondition["Touch"] = "2";
    ContingentCondition["TouchProfit"] = "3";
    ContingentCondition["ParkedOrder"] = "4";
    ContingentCondition["LastPriceGreaterThanStopPrice"] = "5";
    ContingentCondition["LastPriceGreaterEqualStopPrice"] = "6";
    ContingentCondition["LastPriceLesserThanStopPrice"] = "7";
    ContingentCondition["LastPriceLesserEqualStopPrice"] = "8";
    ContingentCondition["AskPriceGreaterThanStopPrice"] = "9";
    ContingentCondition["AskPriceGreaterEqualStopPrice"] = "A";
    ContingentCondition["AskPriceLesserThanStopPrice"] = "B";
    ContingentCondition["AskPriceLesserEqualStopPrice"] = "C";
    ContingentCondition["BidPriceGreaterThanStopPrice"] = "D";
    ContingentCondition["BidPriceGreaterEqualStopPrice"] = "E";
    ContingentCondition["BidPriceLesserThanStopPrice"] = "F";
    ContingentCondition["BidPriceLesserEqualStopPrice"] = "H";
})(ContingentCondition || (ContingentCondition = {}));
/** TThostFtdcActionFlagType */
export var ActionFlag;
(function (ActionFlag) {
    ActionFlag["Delete"] = "0";
    ActionFlag["Modify"] = "3";
})(ActionFlag || (ActionFlag = {}));
/** TThostFtdcTradingRightType */
export var TradingRight;
(function (TradingRight) {
    TradingRight["Allow"] = "0";
    TradingRight["CloseOnly"] = "1";
    TradingRight["Forbidden"] = "2";
})(TradingRight || (TradingRight = {}));
/** TThostFtdcOrderSourceType */
export var OrderSource;
(function (OrderSource) {
    OrderSource["Participant"] = "0";
    OrderSource["Administrator"] = "1";
})(OrderSource || (OrderSource = {}));
/** TThostFtdcTradeTypeType */
export var TradeType;
(function (TradeType) {
    TradeType["SplitCombination"] = "#";
    TradeType["Common"] = "0";
    TradeType["OptionsExecution"] = "1";
    TradeType["OTC"] = "2";
    TradeType["EFPDerived"] = "3";
    TradeType["CombinationDerived"] = "4";
    TradeType["BlockTrade"] = "5";
})(TradeType || (TradeType = {}));
/** TThostFtdcSpecPosiTypeType */
export var SpecPosiType;
(function (SpecPosiType) {
    SpecPosiType["Common"] = "#";
    SpecPosiType["Tas"] = "0";
})(SpecPosiType || (SpecPosiType = {}));
/** TThostFtdcPriceSourceType */
export var PriceSource;
(function (PriceSource) {
    PriceSource["LastPrice"] = "0";
    PriceSource["Buy"] = "1";
    PriceSource["Sell"] = "2";
    PriceSource["OTC"] = "3";
})(PriceSource || (PriceSource = {}));
/** TThostFtdcInstrumentStatusType */
export var InstrumentStatusType;
(function (InstrumentStatusType) {
    InstrumentStatusType["BeforeTrading"] = "0";
    InstrumentStatusType["NoTrading"] = "1";
    InstrumentStatusType["Continous"] = "2";
    InstrumentStatusType["AuctionOrdering"] = "3";
    InstrumentStatusType["AuctionBalance"] = "4";
    InstrumentStatusType["AuctionMatch"] = "5";
    InstrumentStatusType["Closed"] = "6";
    InstrumentStatusType["TransactionProcessing"] = "7";
})(InstrumentStatusType || (InstrumentStatusType = {}));
/** TThostFtdcInstStatusEnterReasonType */
export var InstStatusEnterReason;
(function (InstStatusEnterReason) {
    InstStatusEnterReason["Automatic"] = "1";
    InstStatusEnterReason["Manual"] = "2";
    InstStatusEnterReason["Fuse"] = "3";
})(InstStatusEnterReason || (InstStatusEnterReason = {}));
/** TThostFtdcBatchStatusType */
export var BatchStatus;
(function (BatchStatus) {
    BatchStatus["NoUpload"] = "1";
    BatchStatus["Uploaded"] = "2";
    BatchStatus["Failed"] = "3";
})(BatchStatus || (BatchStatus = {}));
/** TThostFtdcReturnStyleType */
export var ReturnStyle;
(function (ReturnStyle) {
    ReturnStyle["All"] = "1";
    ReturnStyle["ByProduct"] = "2";
})(ReturnStyle || (ReturnStyle = {}));
/** TThostFtdcReturnPatternType */
export var ReturnPattern;
(function (ReturnPattern) {
    ReturnPattern["ByVolume"] = "1";
    ReturnPattern["ByFeeOnHand"] = "2";
})(ReturnPattern || (ReturnPattern = {}));
/** TThostFtdcReturnLevelType */
export var ReturnLevel;
(function (ReturnLevel) {
    ReturnLevel["Level1"] = "1";
    ReturnLevel["Level2"] = "2";
    ReturnLevel["Level3"] = "3";
    ReturnLevel["Level4"] = "4";
    ReturnLevel["Level5"] = "5";
    ReturnLevel["Level6"] = "6";
    ReturnLevel["Level7"] = "7";
    ReturnLevel["Level8"] = "8";
    ReturnLevel["Level9"] = "9";
})(ReturnLevel || (ReturnLevel = {}));
/** TThostFtdcReturnStandardType */
export var ReturnStandard;
(function (ReturnStandard) {
    ReturnStandard["ByPeriod"] = "1";
    ReturnStandard["ByStandard"] = "2";
})(ReturnStandard || (ReturnStandard = {}));
/** TThostFtdcMortgageTypeType */
export var MortgageType;
(function (MortgageType) {
    MortgageType["Out"] = "0";
    MortgageType["In"] = "1";
})(MortgageType || (MortgageType = {}));
/** TThostFtdcInvestorSettlementParamIDType */
export var InvestorSettlementParamID;
(function (InvestorSettlementParamID) {
    InvestorSettlementParamID["MortgageRatio"] = "4";
    InvestorSettlementParamID["MarginWay"] = "5";
    InvestorSettlementParamID["BillDeposit"] = "9";
})(InvestorSettlementParamID || (InvestorSettlementParamID = {}));
/** TThostFtdcExchangeSettlementParamIDType */
export var ExchangeSettlementParamID;
(function (ExchangeSettlementParamID) {
    ExchangeSettlementParamID["MortgageRatio"] = "1";
    ExchangeSettlementParamID["OtherFundItem"] = "2";
    ExchangeSettlementParamID["OtherFundImport"] = "3";
    ExchangeSettlementParamID["CFFEXMinPrepa"] = "6";
    ExchangeSettlementParamID["CZCESettlementType"] = "7";
    ExchangeSettlementParamID["ExchDelivFeeMode"] = "9";
    ExchangeSettlementParamID["DelivFeeMode"] = "0";
    ExchangeSettlementParamID["CZCEComMarginType"] = "A";
    ExchangeSettlementParamID["DceComMarginType"] = "B";
    ExchangeSettlementParamID["OptOutDisCountRate"] = "a";
    ExchangeSettlementParamID["OptMiniGuarantee"] = "b";
})(ExchangeSettlementParamID || (ExchangeSettlementParamID = {}));
/** TThostFtdcSystemParamIDType */
export var SystemParamID;
(function (SystemParamID) {
    SystemParamID["InvestorIDMinLength"] = "1";
    SystemParamID["AccountIDMinLength"] = "2";
    SystemParamID["UserRightLogon"] = "3";
    SystemParamID["SettlementBillTrade"] = "4";
    SystemParamID["TradingCode"] = "5";
    SystemParamID["CheckFund"] = "6";
    SystemParamID["CommModelRight"] = "7";
    SystemParamID["MarginModelRight"] = "9";
    SystemParamID["IsStandardActive"] = "8";
    SystemParamID["UploadSettlementFile"] = "U";
    SystemParamID["DownloadCSRCFile"] = "D";
    SystemParamID["SettlementBillFile"] = "S";
    SystemParamID["CSRCOthersFile"] = "C";
    SystemParamID["InvestorPhoto"] = "P";
    SystemParamID["CSRCData"] = "R";
    SystemParamID["InvestorPwdModel"] = "I";
    SystemParamID["CFFEXInvestorSettleFile"] = "F";
    SystemParamID["InvestorIDType"] = "a";
    SystemParamID["FreezeMaxReMain"] = "r";
    SystemParamID["IsSync"] = "A";
    SystemParamID["RelieveOpenLimit"] = "O";
    SystemParamID["IsStandardFreeze"] = "X";
    SystemParamID["CZCENormalProductHedge"] = "B";
})(SystemParamID || (SystemParamID = {}));
/** TThostFtdcTradeParamIDType */
export var TradeParamID;
(function (TradeParamID) {
    TradeParamID["EncryptionStandard"] = "E";
    TradeParamID["RiskMode"] = "R";
    TradeParamID["RiskModeGlobal"] = "G";
    TradeParamID["modeEncode"] = "P";
    TradeParamID["tickMode"] = "T";
    TradeParamID["SingleUserSessionMaxNum"] = "S";
    TradeParamID["LoginFailMaxNum"] = "L";
    TradeParamID["IsAuthForce"] = "A";
    TradeParamID["IsPosiFreeze"] = "F";
    TradeParamID["IsPosiLimit"] = "M";
    TradeParamID["ForQuoteTimeInterval"] = "Q";
    TradeParamID["IsFuturePosiLimit"] = "B";
    TradeParamID["IsFutureOrderFreq"] = "C";
    TradeParamID["IsExecOrderProfit"] = "H";
    TradeParamID["IsCheckBankAcc"] = "I";
    TradeParamID["PasswordDeadLine"] = "J";
    TradeParamID["IsStrongPassword"] = "K";
    TradeParamID["BalanceMorgage"] = "a";
    TradeParamID["MinPwdLen"] = "O";
    TradeParamID["LoginFailMaxNumForIP"] = "U";
    TradeParamID["PasswordPeriod"] = "V";
    TradeParamID["PwdHistoryCmp"] = "X";
    TradeParamID["TranferChkProperty"] = "i";
    TradeParamID["TradeChkPhase"] = "j";
    TradeParamID["TradeChkPriceVol"] = "k";
    TradeParamID["NewBESMarginAlgo"] = "l";
    TradeParamID["IsDceFutCloseFrozen"] = "m";
    TradeParamID["UseSMSVerify"] = "n";
})(TradeParamID || (TradeParamID = {}));
/** TThostFtdcFileIDType */
export var FileID;
(function (FileID) {
    FileID["SettlementFund"] = "F";
    FileID["Trade"] = "T";
    FileID["InvestorPosition"] = "P";
    FileID["SubEntryFund"] = "O";
    FileID["CZCECombinationPos"] = "C";
    FileID["CSRCData"] = "R";
    FileID["CZCEClose"] = "L";
    FileID["CZCENoClose"] = "N";
    FileID["PositionDtl"] = "D";
    FileID["OptionStrike"] = "S";
    FileID["SettlementPriceComparison"] = "M";
    FileID["NonTradePosChange"] = "B";
})(FileID || (FileID = {}));
/** TThostFtdcFileTypeType */
export var FileType;
(function (FileType) {
    FileType["Settlement"] = "0";
    FileType["Check"] = "1";
})(FileType || (FileType = {}));
/** TThostFtdcFileFormatType */
export var FileFormat;
(function (FileFormat) {
    FileFormat["Txt"] = "0";
    FileFormat["Zip"] = "1";
    FileFormat["DBF"] = "2";
})(FileFormat || (FileFormat = {}));
/** TThostFtdcFileUploadStatusType */
export var FileUploadStatus;
(function (FileUploadStatus) {
    FileUploadStatus["SucceedUpload"] = "1";
    FileUploadStatus["FailedUpload"] = "2";
    FileUploadStatus["SucceedLoad"] = "3";
    FileUploadStatus["PartSucceedLoad"] = "4";
    FileUploadStatus["FailedLoad"] = "5";
})(FileUploadStatus || (FileUploadStatus = {}));
/** TThostFtdcTransferDirectionType */
export var TransferDirection;
(function (TransferDirection) {
    TransferDirection["Out"] = "0";
    TransferDirection["In"] = "1";
})(TransferDirection || (TransferDirection = {}));
/** TThostFtdcSpecialCreateRuleType */
export var SpecialCreateRule;
(function (SpecialCreateRule) {
    SpecialCreateRule["NoSpecialRule"] = "0";
    SpecialCreateRule["NoSpringFestival"] = "1";
})(SpecialCreateRule || (SpecialCreateRule = {}));
/** TThostFtdcBasisPriceTypeType */
export var BasisPriceType;
(function (BasisPriceType) {
    BasisPriceType["LastSettlement"] = "1";
    BasisPriceType["LaseClose"] = "2";
})(BasisPriceType || (BasisPriceType = {}));
/** TThostFtdcProductLifePhaseType */
export var ProductLifePhase;
(function (ProductLifePhase) {
    ProductLifePhase["Active"] = "1";
    ProductLifePhase["NonActive"] = "2";
    ProductLifePhase["Canceled"] = "3";
})(ProductLifePhase || (ProductLifePhase = {}));
/** TThostFtdcDeliveryModeType */
export var DeliveryMode;
(function (DeliveryMode) {
    DeliveryMode["CashDeliv"] = "1";
    DeliveryMode["CommodityDeliv"] = "2";
})(DeliveryMode || (DeliveryMode = {}));
/** TThostFtdcFundIOTypeType */
export var FundIOType;
(function (FundIOType) {
    FundIOType["FundIO"] = "1";
    FundIOType["Transfer"] = "2";
    FundIOType["SwapCurrency"] = "3";
})(FundIOType || (FundIOType = {}));
/** TThostFtdcFundTypeType */
export var FundType;
(function (FundType) {
    FundType["Deposite"] = "1";
    FundType["ItemFund"] = "2";
    FundType["Company"] = "3";
    FundType["InnerTransfer"] = "4";
})(FundType || (FundType = {}));
/** TThostFtdcFundDirectionType */
export var FundDirection;
(function (FundDirection) {
    FundDirection["In"] = "1";
    FundDirection["Out"] = "2";
})(FundDirection || (FundDirection = {}));
/** TThostFtdcFundStatusType */
export var FundStatus;
(function (FundStatus) {
    FundStatus["Record"] = "1";
    FundStatus["Check"] = "2";
    FundStatus["Charge"] = "3";
})(FundStatus || (FundStatus = {}));
/** TThostFtdcPublishStatusType */
export var PublishStatus;
(function (PublishStatus) {
    PublishStatus["None"] = "1";
    PublishStatus["Publishing"] = "2";
    PublishStatus["Published"] = "3";
})(PublishStatus || (PublishStatus = {}));
/** TThostFtdcSystemStatusType */
export var SystemStatus;
(function (SystemStatus) {
    SystemStatus["NonActive"] = "1";
    SystemStatus["Startup"] = "2";
    SystemStatus["Initialize"] = "3";
    SystemStatus["Initialized"] = "4";
    SystemStatus["Close"] = "5";
    SystemStatus["Closed"] = "6";
    SystemStatus["Settlement"] = "7";
})(SystemStatus || (SystemStatus = {}));
/** TThostFtdcSettlementStatusType */
export var SettlementStatus;
(function (SettlementStatus) {
    SettlementStatus["Initialize"] = "0";
    SettlementStatus["Settlementing"] = "1";
    SettlementStatus["Settlemented"] = "2";
    SettlementStatus["Finished"] = "3";
})(SettlementStatus || (SettlementStatus = {}));
/** TThostFtdcInvestorTypeType */
export var InvestorType;
(function (InvestorType) {
    InvestorType["Person"] = "0";
    InvestorType["Company"] = "1";
    InvestorType["Fund"] = "2";
    InvestorType["SpecialOrgan"] = "3";
    InvestorType["Asset"] = "4";
})(InvestorType || (InvestorType = {}));
/** TThostFtdcBrokerTypeType */
export var BrokerType;
(function (BrokerType) {
    BrokerType["Trade"] = "0";
    BrokerType["TradeSettle"] = "1";
})(BrokerType || (BrokerType = {}));
/** TThostFtdcRiskLevelType */
export var RiskLevel;
(function (RiskLevel) {
    RiskLevel["Low"] = "1";
    RiskLevel["Normal"] = "2";
    RiskLevel["Focus"] = "3";
    RiskLevel["Risk"] = "4";
})(RiskLevel || (RiskLevel = {}));
/** TThostFtdcFeeAcceptStyleType */
export var FeeAcceptStyle;
(function (FeeAcceptStyle) {
    FeeAcceptStyle["ByTrade"] = "1";
    FeeAcceptStyle["ByDeliv"] = "2";
    FeeAcceptStyle["None"] = "3";
    FeeAcceptStyle["FixFee"] = "4";
})(FeeAcceptStyle || (FeeAcceptStyle = {}));
/** TThostFtdcPasswordTypeType */
export var PasswordType;
(function (PasswordType) {
    PasswordType["Trade"] = "1";
    PasswordType["Account"] = "2";
})(PasswordType || (PasswordType = {}));
/** TThostFtdcAlgorithmType */
export var Algorithm;
(function (Algorithm) {
    Algorithm["All"] = "1";
    Algorithm["OnlyLost"] = "2";
    Algorithm["OnlyGain"] = "3";
    Algorithm["None"] = "4";
})(Algorithm || (Algorithm = {}));
/** TThostFtdcIncludeCloseProfitType */
export var IncludeCloseProfit;
(function (IncludeCloseProfit) {
    IncludeCloseProfit["Include"] = "0";
    IncludeCloseProfit["NotInclude"] = "2";
})(IncludeCloseProfit || (IncludeCloseProfit = {}));
/** TThostFtdcAllWithoutTradeType */
export var AllWithoutTrade;
(function (AllWithoutTrade) {
    AllWithoutTrade["Enable"] = "0";
    AllWithoutTrade["Disable"] = "2";
    AllWithoutTrade["NoHoldEnable"] = "3";
})(AllWithoutTrade || (AllWithoutTrade = {}));
/** TThostFtdcFuturePwdFlagType */
export var FuturePwdFlag;
(function (FuturePwdFlag) {
    FuturePwdFlag["UnCheck"] = "0";
    FuturePwdFlag["Check"] = "1";
})(FuturePwdFlag || (FuturePwdFlag = {}));
/** TThostFtdcTransferTypeType */
export var TransferType;
(function (TransferType) {
    TransferType["BankToFuture"] = "0";
    TransferType["FutureToBank"] = "1";
})(TransferType || (TransferType = {}));
/** TThostFtdcTransferValidFlagType */
export var TransferValidFlag;
(function (TransferValidFlag) {
    TransferValidFlag["Invalid"] = "0";
    TransferValidFlag["Valid"] = "1";
    TransferValidFlag["Reverse"] = "2";
})(TransferValidFlag || (TransferValidFlag = {}));
/** TThostFtdcReasonType */
export var Reason;
(function (Reason) {
    Reason["CD"] = "0";
    Reason["ZT"] = "1";
    Reason["QT"] = "2";
})(Reason || (Reason = {}));
/** TThostFtdcSexType */
export var Sex;
(function (Sex) {
    Sex["None"] = "0";
    Sex["Man"] = "1";
    Sex["Woman"] = "2";
})(Sex || (Sex = {}));
/** TThostFtdcUserTypeType */
export var UserType;
(function (UserType) {
    UserType["Investor"] = "0";
    UserType["Operator"] = "1";
    UserType["SuperUser"] = "2";
})(UserType || (UserType = {}));
/** TThostFtdcRateTypeType */
export var RateType;
(function (RateType) {
    RateType["MarginRate"] = "2";
})(RateType || (RateType = {}));
/** TThostFtdcNoteTypeType */
export var NoteType;
(function (NoteType) {
    NoteType["TradeSettleBill"] = "1";
    NoteType["TradeSettleMonth"] = "2";
    NoteType["CallMarginNotes"] = "3";
    NoteType["ForceCloseNotes"] = "4";
    NoteType["TradeNotes"] = "5";
    NoteType["DelivNotes"] = "6";
})(NoteType || (NoteType = {}));
/** TThostFtdcSettlementStyleType */
export var SettlementStyle;
(function (SettlementStyle) {
    SettlementStyle["Day"] = "1";
    SettlementStyle["Volume"] = "2";
})(SettlementStyle || (SettlementStyle = {}));
/** TThostFtdcSettlementBillTypeType */
export var SettlementBillType;
(function (SettlementBillType) {
    SettlementBillType["Day"] = "0";
    SettlementBillType["Month"] = "1";
})(SettlementBillType || (SettlementBillType = {}));
/** TThostFtdcUserRightTypeType */
export var UserRightType;
(function (UserRightType) {
    UserRightType["Logon"] = "1";
    UserRightType["Transfer"] = "2";
    UserRightType["EMail"] = "3";
    UserRightType["Fax"] = "4";
    UserRightType["ConditionOrder"] = "5";
})(UserRightType || (UserRightType = {}));
/** TThostFtdcMarginPriceTypeType */
export var MarginPriceType;
(function (MarginPriceType) {
    MarginPriceType["PreSettlementPrice"] = "1";
    MarginPriceType["SettlementPrice"] = "2";
    MarginPriceType["AveragePrice"] = "3";
    MarginPriceType["OpenPrice"] = "4";
})(MarginPriceType || (MarginPriceType = {}));
/** TThostFtdcBillGenStatusType */
export var BillGenStatus;
(function (BillGenStatus) {
    BillGenStatus["None"] = "0";
    BillGenStatus["NoGenerated"] = "1";
    BillGenStatus["Generated"] = "2";
})(BillGenStatus || (BillGenStatus = {}));
/** TThostFtdcAlgoTypeType */
export var AlgoType;
(function (AlgoType) {
    AlgoType["HandlePositionAlgo"] = "1";
    AlgoType["FindMarginRateAlgo"] = "2";
})(AlgoType || (AlgoType = {}));
/** TThostFtdcHandlePositionAlgoIDType */
export var HandlePositionAlgoID;
(function (HandlePositionAlgoID) {
    HandlePositionAlgoID["Base"] = "1";
    HandlePositionAlgoID["DCE"] = "2";
    HandlePositionAlgoID["CZCE"] = "3";
})(HandlePositionAlgoID || (HandlePositionAlgoID = {}));
/** TThostFtdcFindMarginRateAlgoIDType */
export var FindMarginRateAlgoID;
(function (FindMarginRateAlgoID) {
    FindMarginRateAlgoID["Base"] = "1";
    FindMarginRateAlgoID["DCE"] = "2";
    FindMarginRateAlgoID["CZCE"] = "3";
})(FindMarginRateAlgoID || (FindMarginRateAlgoID = {}));
/** TThostFtdcHandleTradingAccountAlgoIDType */
export var HandleTradingAccountAlgoID;
(function (HandleTradingAccountAlgoID) {
    HandleTradingAccountAlgoID["Base"] = "1";
    HandleTradingAccountAlgoID["DCE"] = "2";
    HandleTradingAccountAlgoID["CZCE"] = "3";
})(HandleTradingAccountAlgoID || (HandleTradingAccountAlgoID = {}));
/** TThostFtdcPersonTypeType */
export var PersonType;
(function (PersonType) {
    PersonType["Order"] = "1";
    PersonType["Open"] = "2";
    PersonType["Fund"] = "3";
    PersonType["Settlement"] = "4";
    PersonType["Company"] = "5";
    PersonType["Corporation"] = "6";
    PersonType["LinkMan"] = "7";
    PersonType["Ledger"] = "8";
    PersonType["Trustee"] = "9";
    PersonType["TrusteeCorporation"] = "A";
    PersonType["TrusteeOpen"] = "B";
    PersonType["TrusteeContact"] = "C";
    PersonType["ForeignerRefer"] = "D";
    PersonType["CorporationRefer"] = "E";
})(PersonType || (PersonType = {}));
/** TThostFtdcQueryInvestorRangeType */
export var QueryInvestorRange;
(function (QueryInvestorRange) {
    QueryInvestorRange["All"] = "1";
    QueryInvestorRange["Group"] = "2";
    QueryInvestorRange["Single"] = "3";
})(QueryInvestorRange || (QueryInvestorRange = {}));
/** TThostFtdcInvestorRiskStatusType */
export var InvestorRiskStatus;
(function (InvestorRiskStatus) {
    InvestorRiskStatus["Normal"] = "1";
    InvestorRiskStatus["Warn"] = "2";
    InvestorRiskStatus["Call"] = "3";
    InvestorRiskStatus["Force"] = "4";
    InvestorRiskStatus["Exception"] = "5";
})(InvestorRiskStatus || (InvestorRiskStatus = {}));
/** TThostFtdcUserEventTypeType */
export var UserEventType;
(function (UserEventType) {
    UserEventType["Login"] = "1";
    UserEventType["Logout"] = "2";
    UserEventType["Trading"] = "3";
    UserEventType["TradingError"] = "4";
    UserEventType["UpdatePassword"] = "5";
    UserEventType["Authenticate"] = "6";
    UserEventType["SubmitSysInfo"] = "7";
    UserEventType["Transfer"] = "8";
    UserEventType["Other"] = "9";
    UserEventType["UpdateTradingAccountPassword"] = "a";
})(UserEventType || (UserEventType = {}));
/** TThostFtdcCloseStyleType */
export var CloseStyle;
(function (CloseStyle) {
    CloseStyle["Close"] = "0";
    CloseStyle["CloseToday"] = "1";
})(CloseStyle || (CloseStyle = {}));
/** TThostFtdcStatModeType */
export var StatMode;
(function (StatMode) {
    StatMode["Non"] = "0";
    StatMode["Instrument"] = "1";
    StatMode["Product"] = "2";
    StatMode["Investor"] = "3";
})(StatMode || (StatMode = {}));
/** TThostFtdcParkedOrderStatusType */
export var ParkedOrderStatus;
(function (ParkedOrderStatus) {
    ParkedOrderStatus["NotSend"] = "1";
    ParkedOrderStatus["Send"] = "2";
    ParkedOrderStatus["Deleted"] = "3";
})(ParkedOrderStatus || (ParkedOrderStatus = {}));
/** TThostFtdcVirDealStatusType */
export var VirDealStatus;
(function (VirDealStatus) {
    VirDealStatus["Dealing"] = "1";
    VirDealStatus["DeaclSucceed"] = "2";
})(VirDealStatus || (VirDealStatus = {}));
/** TThostFtdcOrgSystemIDType */
export var OrgSystemID;
(function (OrgSystemID) {
    OrgSystemID["Standard"] = "0";
    OrgSystemID["ESunny"] = "1";
    OrgSystemID["KingStarV6"] = "2";
})(OrgSystemID || (OrgSystemID = {}));
/** TThostFtdcVirTradeStatusType */
export var VirTradeStatus;
(function (VirTradeStatus) {
    VirTradeStatus["NaturalDeal"] = "0";
    VirTradeStatus["SucceedEnd"] = "1";
    VirTradeStatus["FailedEND"] = "2";
    VirTradeStatus["Exception"] = "3";
    VirTradeStatus["ManualDeal"] = "4";
    VirTradeStatus["MesException"] = "5";
    VirTradeStatus["SysException"] = "6";
})(VirTradeStatus || (VirTradeStatus = {}));
/** TThostFtdcVirBankAccTypeType */
export var VirBankAccType;
(function (VirBankAccType) {
    VirBankAccType["BankBook"] = "1";
    VirBankAccType["BankCard"] = "2";
    VirBankAccType["CreditCard"] = "3";
})(VirBankAccType || (VirBankAccType = {}));
/** TThostFtdcVirementStatusType */
export var VirementStatus;
(function (VirementStatus) {
    VirementStatus["Natural"] = "0";
    VirementStatus["Canceled"] = "9";
})(VirementStatus || (VirementStatus = {}));
/** TThostFtdcVirementAvailAbilityType */
export var VirementAvailAbility;
(function (VirementAvailAbility) {
    VirementAvailAbility["NoAvailAbility"] = "0";
    VirementAvailAbility["AvailAbility"] = "1";
    VirementAvailAbility["Repeal"] = "2";
})(VirementAvailAbility || (VirementAvailAbility = {}));
/** TThostFtdcVirementTradeCodeType */
export var VirementTradeCode;
(function (VirementTradeCode) {
    VirementTradeCode["BankBankToFuture"] = "102001";
    VirementTradeCode["BankFutureToBank"] = "102002";
    VirementTradeCode["FutureBankToFuture"] = "202001";
    VirementTradeCode["FutureFutureToBank"] = "202002";
})(VirementTradeCode || (VirementTradeCode = {}));
/** TThostFtdcAMLGenStatusType */
export var AMLGenStatus;
(function (AMLGenStatus) {
    AMLGenStatus["Program"] = "0";
    AMLGenStatus["HandWork"] = "1";
})(AMLGenStatus || (AMLGenStatus = {}));
/** TThostFtdcCFMMCKeyKindType */
export var CFMMCKeyKind;
(function (CFMMCKeyKind) {
    CFMMCKeyKind["REQUEST"] = "R";
    CFMMCKeyKind["AUTO"] = "A";
    CFMMCKeyKind["MANUAL"] = "M";
})(CFMMCKeyKind || (CFMMCKeyKind = {}));
/** TThostFtdcCertificationTypeType */
export var CertificationType;
(function (CertificationType) {
    CertificationType["IDCard"] = "0";
    CertificationType["Passport"] = "1";
    CertificationType["OfficerIDCard"] = "2";
    CertificationType["SoldierIDCard"] = "3";
    CertificationType["HomeComingCard"] = "4";
    CertificationType["HouseholdRegister"] = "5";
    CertificationType["LicenseNo"] = "6";
    CertificationType["InstitutionCodeCard"] = "7";
    CertificationType["TempLicenseNo"] = "8";
    CertificationType["NoEnterpriseLicenseNo"] = "9";
    CertificationType["OtherCard"] = "x";
    CertificationType["SuperDepAgree"] = "a";
})(CertificationType || (CertificationType = {}));
/** TThostFtdcFileBusinessCodeType */
export var FileBusinessCode;
(function (FileBusinessCode) {
    FileBusinessCode["Others"] = "0";
    FileBusinessCode["TransferDetails"] = "1";
    FileBusinessCode["CustAccStatus"] = "2";
    FileBusinessCode["AccountTradeDetails"] = "3";
    FileBusinessCode["FutureAccountChangeInfoDetails"] = "4";
    FileBusinessCode["CustMoneyDetail"] = "5";
    FileBusinessCode["CustCancelAccountInfo"] = "6";
    FileBusinessCode["CustMoneyResult"] = "7";
    FileBusinessCode["OthersExceptionResult"] = "8";
    FileBusinessCode["CustInterestNetMoneyDetails"] = "9";
    FileBusinessCode["CustMoneySendAndReceiveDetails"] = "a";
    FileBusinessCode["CorporationMoneyTotal"] = "b";
    FileBusinessCode["MainbodyMoneyTotal"] = "c";
    FileBusinessCode["MainPartMonitorData"] = "d";
    FileBusinessCode["PreparationMoney"] = "e";
    FileBusinessCode["BankMoneyMonitorData"] = "f";
})(FileBusinessCode || (FileBusinessCode = {}));
/** TThostFtdcCashExchangeCodeType */
export var CashExchangeCode;
(function (CashExchangeCode) {
    CashExchangeCode["Exchange"] = "1";
    CashExchangeCode["Cash"] = "2";
})(CashExchangeCode || (CashExchangeCode = {}));
/** TThostFtdcYesNoIndicatorType */
export var YesNoIndicator;
(function (YesNoIndicator) {
    YesNoIndicator["Yes"] = "0";
    YesNoIndicator["No"] = "1";
})(YesNoIndicator || (YesNoIndicator = {}));
/** TThostFtdcBanlanceTypeType */
export var BanlanceType;
(function (BanlanceType) {
    BanlanceType["CurrentMoney"] = "0";
    BanlanceType["UsableMoney"] = "1";
    BanlanceType["FetchableMoney"] = "2";
    BanlanceType["FreezeMoney"] = "3";
})(BanlanceType || (BanlanceType = {}));
/** TThostFtdcGenderType */
export var Gender;
(function (Gender) {
    Gender["Unknown"] = "0";
    Gender["Male"] = "1";
    Gender["Female"] = "2";
})(Gender || (Gender = {}));
/** TThostFtdcFeePayFlagType */
export var FeePayFlag;
(function (FeePayFlag) {
    FeePayFlag["BEN"] = "0";
    FeePayFlag["OUR"] = "1";
    FeePayFlag["SHA"] = "2";
})(FeePayFlag || (FeePayFlag = {}));
/** TThostFtdcPassWordKeyTypeType */
export var PassWordKeyType;
(function (PassWordKeyType) {
    PassWordKeyType["ExchangeKey"] = "0";
    PassWordKeyType["PassWordKey"] = "1";
    PassWordKeyType["MACKey"] = "2";
    PassWordKeyType["MessageKey"] = "3";
})(PassWordKeyType || (PassWordKeyType = {}));
/** TThostFtdcFBTPassWordTypeType */
export var FBTPassWordType;
(function (FBTPassWordType) {
    FBTPassWordType["Query"] = "0";
    FBTPassWordType["Fetch"] = "1";
    FBTPassWordType["Transfer"] = "2";
    FBTPassWordType["Trade"] = "3";
})(FBTPassWordType || (FBTPassWordType = {}));
/** TThostFtdcFBTEncryModeType */
export var FBTEncryMode;
(function (FBTEncryMode) {
    FBTEncryMode["NoEncry"] = "0";
    FBTEncryMode["DES"] = "1";
    FBTEncryMode["_3DES"] = "2";
})(FBTEncryMode || (FBTEncryMode = {}));
/** TThostFtdcBankRepealFlagType */
export var BankRepealFlag;
(function (BankRepealFlag) {
    BankRepealFlag["BankNotNeedRepeal"] = "0";
    BankRepealFlag["BankWaitingRepeal"] = "1";
    BankRepealFlag["BankBeenRepealed"] = "2";
})(BankRepealFlag || (BankRepealFlag = {}));
/** TThostFtdcBrokerRepealFlagType */
export var BrokerRepealFlag;
(function (BrokerRepealFlag) {
    BrokerRepealFlag["BrokerNotNeedRepeal"] = "0";
    BrokerRepealFlag["BrokerWaitingRepeal"] = "1";
    BrokerRepealFlag["BrokerBeenRepealed"] = "2";
})(BrokerRepealFlag || (BrokerRepealFlag = {}));
/** TThostFtdcInstitutionTypeType */
export var InstitutionType;
(function (InstitutionType) {
    InstitutionType["Bank"] = "0";
    InstitutionType["Future"] = "1";
    InstitutionType["Store"] = "2";
})(InstitutionType || (InstitutionType = {}));
/** TThostFtdcLastFragmentType */
export var LastFragment;
(function (LastFragment) {
    LastFragment["Yes"] = "0";
    LastFragment["No"] = "1";
})(LastFragment || (LastFragment = {}));
/** TThostFtdcBankAccStatusType */
export var BankAccStatus;
(function (BankAccStatus) {
    BankAccStatus["Normal"] = "0";
    BankAccStatus["Freeze"] = "1";
    BankAccStatus["ReportLoss"] = "2";
})(BankAccStatus || (BankAccStatus = {}));
/** TThostFtdcMoneyAccountStatusType */
export var MoneyAccountStatus;
(function (MoneyAccountStatus) {
    MoneyAccountStatus["Normal"] = "0";
    MoneyAccountStatus["Cancel"] = "1";
})(MoneyAccountStatus || (MoneyAccountStatus = {}));
/** TThostFtdcManageStatusType */
export var ManageStatus;
(function (ManageStatus) {
    ManageStatus["Point"] = "0";
    ManageStatus["PrePoint"] = "1";
    ManageStatus["CancelPoint"] = "2";
})(ManageStatus || (ManageStatus = {}));
/** TThostFtdcSystemTypeType */
export var SystemType;
(function (SystemType) {
    SystemType["FutureBankTransfer"] = "0";
    SystemType["StockBankTransfer"] = "1";
    SystemType["TheThirdPartStore"] = "2";
})(SystemType || (SystemType = {}));
/** TThostFtdcTxnEndFlagType */
export var TxnEndFlag;
(function (TxnEndFlag) {
    TxnEndFlag["NormalProcessing"] = "0";
    TxnEndFlag["Success"] = "1";
    TxnEndFlag["Failed"] = "2";
    TxnEndFlag["Abnormal"] = "3";
    TxnEndFlag["ManualProcessedForException"] = "4";
    TxnEndFlag["CommuFailedNeedManualProcess"] = "5";
    TxnEndFlag["SysErrorNeedManualProcess"] = "6";
})(TxnEndFlag || (TxnEndFlag = {}));
/** TThostFtdcProcessStatusType */
export var ProcessStatus;
(function (ProcessStatus) {
    ProcessStatus["NotProcess"] = "0";
    ProcessStatus["StartProcess"] = "1";
    ProcessStatus["Finished"] = "2";
})(ProcessStatus || (ProcessStatus = {}));
/** TThostFtdcCustTypeType */
export var CustType;
(function (CustType) {
    CustType["Person"] = "0";
    CustType["Institution"] = "1";
})(CustType || (CustType = {}));
/** TThostFtdcFBTTransferDirectionType */
export var FBTTransferDirection;
(function (FBTTransferDirection) {
    FBTTransferDirection["FromBankToFuture"] = "1";
    FBTTransferDirection["FromFutureToBank"] = "2";
})(FBTTransferDirection || (FBTTransferDirection = {}));
/** TThostFtdcOpenOrDestroyType */
export var OpenOrDestroy;
(function (OpenOrDestroy) {
    OpenOrDestroy["Open"] = "1";
    OpenOrDestroy["Destroy"] = "0";
})(OpenOrDestroy || (OpenOrDestroy = {}));
/** TThostFtdcAvailabilityFlagType */
export var AvailabilityFlag;
(function (AvailabilityFlag) {
    AvailabilityFlag["Invalid"] = "0";
    AvailabilityFlag["Valid"] = "1";
    AvailabilityFlag["Repeal"] = "2";
})(AvailabilityFlag || (AvailabilityFlag = {}));
/** TThostFtdcOrganTypeType */
export var OrganType;
(function (OrganType) {
    OrganType["Bank"] = "1";
    OrganType["Future"] = "2";
    OrganType["PlateForm"] = "9";
})(OrganType || (OrganType = {}));
/** TThostFtdcOrganLevelType */
export var OrganLevel;
(function (OrganLevel) {
    OrganLevel["HeadQuarters"] = "1";
    OrganLevel["Branch"] = "2";
})(OrganLevel || (OrganLevel = {}));
/** TThostFtdcProtocalIDType */
export var ProtocalID;
(function (ProtocalID) {
    ProtocalID["FutureProtocal"] = "0";
    ProtocalID["ICBCProtocal"] = "1";
    ProtocalID["ABCProtocal"] = "2";
    ProtocalID["CBCProtocal"] = "3";
    ProtocalID["CCBProtocal"] = "4";
    ProtocalID["BOCOMProtocal"] = "5";
    ProtocalID["FBTPlateFormProtocal"] = "X";
})(ProtocalID || (ProtocalID = {}));
/** TThostFtdcConnectModeType */
export var ConnectMode;
(function (ConnectMode) {
    ConnectMode["ShortConnect"] = "0";
    ConnectMode["LongConnect"] = "1";
})(ConnectMode || (ConnectMode = {}));
/** TThostFtdcSyncModeType */
export var SyncMode;
(function (SyncMode) {
    SyncMode["ASync"] = "0";
    SyncMode["Sync"] = "1";
})(SyncMode || (SyncMode = {}));
/** TThostFtdcBankAccTypeType */
export var BankAccType;
(function (BankAccType) {
    BankAccType["BankBook"] = "1";
    BankAccType["SavingCard"] = "2";
    BankAccType["CreditCard"] = "3";
})(BankAccType || (BankAccType = {}));
/** TThostFtdcFutureAccTypeType */
export var FutureAccType;
(function (FutureAccType) {
    FutureAccType["BankBook"] = "1";
    FutureAccType["SavingCard"] = "2";
    FutureAccType["CreditCard"] = "3";
})(FutureAccType || (FutureAccType = {}));
/** TThostFtdcOrganStatusType */
export var OrganStatus;
(function (OrganStatus) {
    OrganStatus["Ready"] = "0";
    OrganStatus["CheckIn"] = "1";
    OrganStatus["CheckOut"] = "2";
    OrganStatus["CheckFileArrived"] = "3";
    OrganStatus["CheckDetail"] = "4";
    OrganStatus["DayEndClean"] = "5";
    OrganStatus["Invalid"] = "9";
})(OrganStatus || (OrganStatus = {}));
/** TThostFtdcCCBFeeModeType */
export var CCBFeeMode;
(function (CCBFeeMode) {
    CCBFeeMode["ByAmount"] = "1";
    CCBFeeMode["ByMonth"] = "2";
})(CCBFeeMode || (CCBFeeMode = {}));
/** TThostFtdcCommApiTypeType */
export var CommApiType;
(function (CommApiType) {
    CommApiType["Client"] = "1";
    CommApiType["Server"] = "2";
    CommApiType["UserApi"] = "3";
})(CommApiType || (CommApiType = {}));
/** TThostFtdcLinkStatusType */
export var LinkStatus;
(function (LinkStatus) {
    LinkStatus["Connected"] = "1";
    LinkStatus["Disconnected"] = "2";
})(LinkStatus || (LinkStatus = {}));
/** TThostFtdcPwdFlagType */
export var PwdFlag;
(function (PwdFlag) {
    PwdFlag["NoCheck"] = "0";
    PwdFlag["BlankCheck"] = "1";
    PwdFlag["EncryptCheck"] = "2";
})(PwdFlag || (PwdFlag = {}));
/** TThostFtdcSecuAccTypeType */
export var SecuAccType;
(function (SecuAccType) {
    SecuAccType["AccountID"] = "1";
    SecuAccType["CardID"] = "2";
    SecuAccType["SHStockholderID"] = "3";
    SecuAccType["SZStockholderID"] = "4";
})(SecuAccType || (SecuAccType = {}));
/** TThostFtdcTransferStatusType */
export var TransferStatus;
(function (TransferStatus) {
    TransferStatus["Normal"] = "0";
    TransferStatus["Repealed"] = "1";
})(TransferStatus || (TransferStatus = {}));
/** TThostFtdcSponsorTypeType */
export var SponsorType;
(function (SponsorType) {
    SponsorType["Broker"] = "0";
    SponsorType["Bank"] = "1";
})(SponsorType || (SponsorType = {}));
/** TThostFtdcReqRspTypeType */
export var ReqRspType;
(function (ReqRspType) {
    ReqRspType["Request"] = "0";
    ReqRspType["Response"] = "1";
})(ReqRspType || (ReqRspType = {}));
/** TThostFtdcFBTUserEventTypeType */
export var FBTUserEventType;
(function (FBTUserEventType) {
    FBTUserEventType["SignIn"] = "0";
    FBTUserEventType["FromBankToFuture"] = "1";
    FBTUserEventType["FromFutureToBank"] = "2";
    FBTUserEventType["OpenAccount"] = "3";
    FBTUserEventType["CancelAccount"] = "4";
    FBTUserEventType["ChangeAccount"] = "5";
    FBTUserEventType["RepealFromBankToFuture"] = "6";
    FBTUserEventType["RepealFromFutureToBank"] = "7";
    FBTUserEventType["QueryBankAccount"] = "8";
    FBTUserEventType["QueryFutureAccount"] = "9";
    FBTUserEventType["SignOut"] = "A";
    FBTUserEventType["SyncKey"] = "B";
    FBTUserEventType["ReserveOpenAccount"] = "C";
    FBTUserEventType["CancelReserveOpenAccount"] = "D";
    FBTUserEventType["ReserveOpenAccountConfirm"] = "E";
    FBTUserEventType["Other"] = "Z";
})(FBTUserEventType || (FBTUserEventType = {}));
/** TThostFtdcDBOperationType */
export var DBOperation;
(function (DBOperation) {
    DBOperation["Insert"] = "0";
    DBOperation["Update"] = "1";
    DBOperation["Delete"] = "2";
})(DBOperation || (DBOperation = {}));
/** TThostFtdcSyncFlagType */
export var SyncFlag;
(function (SyncFlag) {
    SyncFlag["Yes"] = "0";
    SyncFlag["No"] = "1";
})(SyncFlag || (SyncFlag = {}));
/** TThostFtdcSyncTypeType */
export var SyncType;
(function (SyncType) {
    SyncType["OneOffSync"] = "0";
    SyncType["TimerSync"] = "1";
    SyncType["TimerFullSync"] = "2";
})(SyncType || (SyncType = {}));
/** TThostFtdcExDirectionType */
export var ExDirection;
(function (ExDirection) {
    ExDirection["Settlement"] = "0";
    ExDirection["Sale"] = "1";
})(ExDirection || (ExDirection = {}));
/** TThostFtdcFBEResultFlagType */
export var FBEResultFlag;
(function (FBEResultFlag) {
    FBEResultFlag["Success"] = "0";
    FBEResultFlag["InsufficientBalance"] = "1";
    FBEResultFlag["UnknownTrading"] = "8";
    FBEResultFlag["Fail"] = "x";
})(FBEResultFlag || (FBEResultFlag = {}));
/** TThostFtdcFBEExchStatusType */
export var FBEExchStatus;
(function (FBEExchStatus) {
    FBEExchStatus["Normal"] = "0";
    FBEExchStatus["ReExchange"] = "1";
})(FBEExchStatus || (FBEExchStatus = {}));
/** TThostFtdcFBEFileFlagType */
export var FBEFileFlag;
(function (FBEFileFlag) {
    FBEFileFlag["DataPackage"] = "0";
    FBEFileFlag["File"] = "1";
})(FBEFileFlag || (FBEFileFlag = {}));
/** TThostFtdcFBEAlreadyTradeType */
export var FBEAlreadyTrade;
(function (FBEAlreadyTrade) {
    FBEAlreadyTrade["NotTrade"] = "0";
    FBEAlreadyTrade["Trade"] = "1";
})(FBEAlreadyTrade || (FBEAlreadyTrade = {}));
/** TThostFtdcFBEUserEventTypeType */
export var FBEUserEventType;
(function (FBEUserEventType) {
    FBEUserEventType["SignIn"] = "0";
    FBEUserEventType["Exchange"] = "1";
    FBEUserEventType["ReExchange"] = "2";
    FBEUserEventType["QueryBankAccount"] = "3";
    FBEUserEventType["QueryExchDetial"] = "4";
    FBEUserEventType["QueryExchSummary"] = "5";
    FBEUserEventType["QueryExchRate"] = "6";
    FBEUserEventType["CheckBankAccount"] = "7";
    FBEUserEventType["SignOut"] = "8";
    FBEUserEventType["Other"] = "Z";
})(FBEUserEventType || (FBEUserEventType = {}));
/** TThostFtdcFBEReqFlagType */
export var FBEReqFlag;
(function (FBEReqFlag) {
    FBEReqFlag["UnProcessed"] = "0";
    FBEReqFlag["WaitSend"] = "1";
    FBEReqFlag["SendSuccess"] = "2";
    FBEReqFlag["SendFailed"] = "3";
    FBEReqFlag["WaitReSend"] = "4";
})(FBEReqFlag || (FBEReqFlag = {}));
/** TThostFtdcNotifyClassType */
export var NotifyClass;
(function (NotifyClass) {
    NotifyClass["NOERROR"] = "0";
    NotifyClass["Warn"] = "1";
    NotifyClass["Call"] = "2";
    NotifyClass["Force"] = "3";
    NotifyClass["CHUANCANG"] = "4";
    NotifyClass["Exception"] = "5";
})(NotifyClass || (NotifyClass = {}));
/** TThostFtdcForceCloseTypeType */
export var ForceCloseType;
(function (ForceCloseType) {
    ForceCloseType["Manual"] = "0";
    ForceCloseType["Single"] = "1";
    ForceCloseType["Group"] = "2";
})(ForceCloseType || (ForceCloseType = {}));
/** TThostFtdcRiskNotifyMethodType */
export var RiskNotifyMethod;
(function (RiskNotifyMethod) {
    RiskNotifyMethod["System"] = "0";
    RiskNotifyMethod["SMS"] = "1";
    RiskNotifyMethod["EMail"] = "2";
    RiskNotifyMethod["Manual"] = "3";
})(RiskNotifyMethod || (RiskNotifyMethod = {}));
/** TThostFtdcRiskNotifyStatusType */
export var RiskNotifyStatus;
(function (RiskNotifyStatus) {
    RiskNotifyStatus["NotGen"] = "0";
    RiskNotifyStatus["Generated"] = "1";
    RiskNotifyStatus["SendError"] = "2";
    RiskNotifyStatus["SendOk"] = "3";
    RiskNotifyStatus["Received"] = "4";
    RiskNotifyStatus["Confirmed"] = "5";
})(RiskNotifyStatus || (RiskNotifyStatus = {}));
/** TThostFtdcRiskUserEventType */
export var RiskUserEvent;
(function (RiskUserEvent) {
    RiskUserEvent["ExportData"] = "0";
})(RiskUserEvent || (RiskUserEvent = {}));
/** TThostFtdcConditionalOrderSortTypeType */
export var ConditionalOrderSortType;
(function (ConditionalOrderSortType) {
    ConditionalOrderSortType["LastPriceAsc"] = "0";
    ConditionalOrderSortType["LastPriceDesc"] = "1";
    ConditionalOrderSortType["AskPriceAsc"] = "2";
    ConditionalOrderSortType["AskPriceDesc"] = "3";
    ConditionalOrderSortType["BidPriceAsc"] = "4";
    ConditionalOrderSortType["BidPriceDesc"] = "5";
})(ConditionalOrderSortType || (ConditionalOrderSortType = {}));
/** TThostFtdcSendTypeType */
export var SendType;
(function (SendType) {
    SendType["NoSend"] = "0";
    SendType["Sended"] = "1";
    SendType["Generated"] = "2";
    SendType["SendFail"] = "3";
    SendType["Success"] = "4";
    SendType["Fail"] = "5";
    SendType["Cancel"] = "6";
})(SendType || (SendType = {}));
/** TThostFtdcClientIDStatusType */
export var ClientIDStatus;
(function (ClientIDStatus) {
    ClientIDStatus["NoApply"] = "1";
    ClientIDStatus["Submited"] = "2";
    ClientIDStatus["Sended"] = "3";
    ClientIDStatus["Success"] = "4";
    ClientIDStatus["Refuse"] = "5";
    ClientIDStatus["Cancel"] = "6";
})(ClientIDStatus || (ClientIDStatus = {}));
/** TThostFtdcQuestionTypeType */
export var QuestionType;
(function (QuestionType) {
    QuestionType["Radio"] = "1";
    QuestionType["Option"] = "2";
    QuestionType["Blank"] = "3";
})(QuestionType || (QuestionType = {}));
/** TThostFtdcBusinessTypeType */
export var BusinessType;
(function (BusinessType) {
    BusinessType["Request"] = "1";
    BusinessType["Response"] = "2";
    BusinessType["Notice"] = "3";
})(BusinessType || (BusinessType = {}));
/** TThostFtdcCfmmcReturnCodeType */
export var CfmmcReturnCode;
(function (CfmmcReturnCode) {
    CfmmcReturnCode["Success"] = "0";
    CfmmcReturnCode["Working"] = "1";
    CfmmcReturnCode["InfoFail"] = "2";
    CfmmcReturnCode["IDCardFail"] = "3";
    CfmmcReturnCode["OtherFail"] = "4";
})(CfmmcReturnCode || (CfmmcReturnCode = {}));
/** TThostFtdcClientTypeType */
export var ClientType;
(function (ClientType) {
    ClientType["All"] = "0";
    ClientType["Person"] = "1";
    ClientType["Company"] = "2";
    ClientType["Other"] = "3";
    ClientType["SpecialOrgan"] = "4";
    ClientType["Asset"] = "5";
})(ClientType || (ClientType = {}));
/** TThostFtdcExchangeIDTypeType */
export var ExchangeIDType;
(function (ExchangeIDType) {
    ExchangeIDType["SHFE"] = "S";
    ExchangeIDType["CZCE"] = "Z";
    ExchangeIDType["DCE"] = "D";
    ExchangeIDType["CFFEX"] = "J";
    ExchangeIDType["INE"] = "N";
})(ExchangeIDType || (ExchangeIDType = {}));
/** TThostFtdcExClientIDTypeType */
export var ExClientIDType;
(function (ExClientIDType) {
    ExClientIDType["Hedge"] = "1";
    ExClientIDType["Arbitrage"] = "2";
    ExClientIDType["Speculation"] = "3";
})(ExClientIDType || (ExClientIDType = {}));
/** TThostFtdcUpdateFlagType */
export var UpdateFlag;
(function (UpdateFlag) {
    UpdateFlag["NoUpdate"] = "0";
    UpdateFlag["Success"] = "1";
    UpdateFlag["Fail"] = "2";
    UpdateFlag["TCSuccess"] = "3";
    UpdateFlag["TCFail"] = "4";
    UpdateFlag["Cancel"] = "5";
})(UpdateFlag || (UpdateFlag = {}));
/** TThostFtdcApplyOperateIDType */
export var ApplyOperateID;
(function (ApplyOperateID) {
    ApplyOperateID["OpenInvestor"] = "1";
    ApplyOperateID["ModifyIDCard"] = "2";
    ApplyOperateID["ModifyNoIDCard"] = "3";
    ApplyOperateID["ApplyTradingCode"] = "4";
    ApplyOperateID["CancelTradingCode"] = "5";
    ApplyOperateID["CancelInvestor"] = "6";
    ApplyOperateID["FreezeAccount"] = "8";
    ApplyOperateID["ActiveFreezeAccount"] = "9";
})(ApplyOperateID || (ApplyOperateID = {}));
/** TThostFtdcApplyStatusIDType */
export var ApplyStatusID;
(function (ApplyStatusID) {
    ApplyStatusID["NoComplete"] = "1";
    ApplyStatusID["Submited"] = "2";
    ApplyStatusID["Checked"] = "3";
    ApplyStatusID["Refused"] = "4";
    ApplyStatusID["Deleted"] = "5";
})(ApplyStatusID || (ApplyStatusID = {}));
/** TThostFtdcSendMethodType */
export var SendMethod;
(function (SendMethod) {
    SendMethod["ByAPI"] = "1";
    SendMethod["ByFile"] = "2";
})(SendMethod || (SendMethod = {}));
/** TThostFtdcEventModeType */
export var EventMode;
(function (EventMode) {
    EventMode["ADD"] = "1";
    EventMode["UPDATE"] = "2";
    EventMode["DELETE"] = "3";
    EventMode["CHECK"] = "4";
    EventMode["COPY"] = "5";
    EventMode["CANCEL"] = "6";
    EventMode["Reverse"] = "7";
})(EventMode || (EventMode = {}));
/** TThostFtdcUOAAutoSendType */
export var UOAAutoSend;
(function (UOAAutoSend) {
    UOAAutoSend["ASR"] = "1";
    UOAAutoSend["ASNR"] = "2";
    UOAAutoSend["NSAR"] = "3";
    UOAAutoSend["NSR"] = "4";
})(UOAAutoSend || (UOAAutoSend = {}));
/** TThostFtdcFlowIDType */
export var FlowID;
(function (FlowID) {
    FlowID["InvestorGroupFlow"] = "1";
    FlowID["InvestorRate"] = "2";
    FlowID["InvestorCommRateModel"] = "3";
})(FlowID || (FlowID = {}));
/** TThostFtdcCheckLevelType */
export var CheckLevel;
(function (CheckLevel) {
    CheckLevel["Zero"] = "0";
    CheckLevel["One"] = "1";
    CheckLevel["Two"] = "2";
})(CheckLevel || (CheckLevel = {}));
/** TThostFtdcCheckStatusType */
export var CheckStatus;
(function (CheckStatus) {
    CheckStatus["Init"] = "0";
    CheckStatus["Checking"] = "1";
    CheckStatus["Checked"] = "2";
    CheckStatus["Refuse"] = "3";
    CheckStatus["Cancel"] = "4";
})(CheckStatus || (CheckStatus = {}));
/** TThostFtdcUsedStatusType */
export var UsedStatus;
(function (UsedStatus) {
    UsedStatus["Unused"] = "0";
    UsedStatus["Used"] = "1";
    UsedStatus["Fail"] = "2";
})(UsedStatus || (UsedStatus = {}));
/** TThostFtdcBankAcountOriginType */
export var BankAcountOrigin;
(function (BankAcountOrigin) {
    BankAcountOrigin["ByAccProperty"] = "0";
    BankAcountOrigin["ByFBTransfer"] = "1";
})(BankAcountOrigin || (BankAcountOrigin = {}));
/** TThostFtdcMonthBillTradeSumType */
export var MonthBillTradeSum;
(function (MonthBillTradeSum) {
    MonthBillTradeSum["ByInstrument"] = "0";
    MonthBillTradeSum["ByDayInsPrc"] = "1";
    MonthBillTradeSum["ByDayIns"] = "2";
})(MonthBillTradeSum || (MonthBillTradeSum = {}));
/** TThostFtdcFBTTradeCodeEnumType */
export var FBTTradeCodeEnum;
(function (FBTTradeCodeEnum) {
    FBTTradeCodeEnum["BankLaunchBankToBroker"] = "102001";
    FBTTradeCodeEnum["BrokerLaunchBankToBroker"] = "202001";
    FBTTradeCodeEnum["BankLaunchBrokerToBank"] = "102002";
    FBTTradeCodeEnum["BrokerLaunchBrokerToBank"] = "202002";
})(FBTTradeCodeEnum || (FBTTradeCodeEnum = {}));
/** TThostFtdcOTPTypeType */
export var OTPType;
(function (OTPType) {
    OTPType["NONE"] = "0";
    OTPType["TOTP"] = "1";
})(OTPType || (OTPType = {}));
/** TThostFtdcOTPStatusType */
export var OTPStatus;
(function (OTPStatus) {
    OTPStatus["Unused"] = "0";
    OTPStatus["Used"] = "1";
    OTPStatus["Disuse"] = "2";
})(OTPStatus || (OTPStatus = {}));
/** TThostFtdcBrokerUserTypeType */
export var BrokerUserType;
(function (BrokerUserType) {
    BrokerUserType["Investor"] = "1";
    BrokerUserType["BrokerUser"] = "2";
})(BrokerUserType || (BrokerUserType = {}));
/** TThostFtdcFutureTypeType */
export var FutureType;
(function (FutureType) {
    FutureType["Commodity"] = "1";
    FutureType["Financial"] = "2";
})(FutureType || (FutureType = {}));
/** TThostFtdcFundEventTypeType */
export var FundEventType;
(function (FundEventType) {
    FundEventType["Restriction"] = "0";
    FundEventType["TodayRestriction"] = "1";
    FundEventType["Transfer"] = "2";
    FundEventType["Credit"] = "3";
    FundEventType["InvestorWithdrawAlm"] = "4";
    FundEventType["BankRestriction"] = "5";
    FundEventType["Accountregister"] = "6";
    FundEventType["ExchangeFundIO"] = "7";
    FundEventType["InvestorFundIO"] = "8";
})(FundEventType || (FundEventType = {}));
/** TThostFtdcAccountSourceTypeType */
export var AccountSourceType;
(function (AccountSourceType) {
    AccountSourceType["FBTransfer"] = "0";
    AccountSourceType["ManualEntry"] = "1";
})(AccountSourceType || (AccountSourceType = {}));
/** TThostFtdcCodeSourceTypeType */
export var CodeSourceType;
(function (CodeSourceType) {
    CodeSourceType["UnifyAccount"] = "0";
    CodeSourceType["ManualEntry"] = "1";
})(CodeSourceType || (CodeSourceType = {}));
/** TThostFtdcUserRangeType */
export var UserRange;
(function (UserRange) {
    UserRange["All"] = "0";
    UserRange["Single"] = "1";
})(UserRange || (UserRange = {}));
/** TThostFtdcByGroupType */
export var ByGroup;
(function (ByGroup) {
    ByGroup["Investor"] = "2";
    ByGroup["Group"] = "1";
})(ByGroup || (ByGroup = {}));
/** TThostFtdcTradeSumStatModeType */
export var TradeSumStatMode;
(function (TradeSumStatMode) {
    TradeSumStatMode["Instrument"] = "1";
    TradeSumStatMode["Product"] = "2";
    TradeSumStatMode["Exchange"] = "3";
})(TradeSumStatMode || (TradeSumStatMode = {}));
/** TThostFtdcExprSetModeType */
export var ExprSetMode;
(function (ExprSetMode) {
    ExprSetMode["Relative"] = "1";
    ExprSetMode["Typical"] = "2";
})(ExprSetMode || (ExprSetMode = {}));
/** TThostFtdcRateInvestorRangeType */
export var RateInvestorRange;
(function (RateInvestorRange) {
    RateInvestorRange["All"] = "1";
    RateInvestorRange["Model"] = "2";
    RateInvestorRange["Single"] = "3";
})(RateInvestorRange || (RateInvestorRange = {}));
/** TThostFtdcSyncDataStatusType */
export var SyncDataStatus;
(function (SyncDataStatus) {
    SyncDataStatus["Initialize"] = "0";
    SyncDataStatus["Settlementing"] = "1";
    SyncDataStatus["Settlemented"] = "2";
})(SyncDataStatus || (SyncDataStatus = {}));
/** TThostFtdcTradeSourceType */
export var TradeSource;
(function (TradeSource) {
    TradeSource["NORMAL"] = "0";
    TradeSource["QUERY"] = "1";
})(TradeSource || (TradeSource = {}));
/** TThostFtdcFlexStatModeType */
export var FlexStatMode;
(function (FlexStatMode) {
    FlexStatMode["Product"] = "1";
    FlexStatMode["Exchange"] = "2";
    FlexStatMode["All"] = "3";
})(FlexStatMode || (FlexStatMode = {}));
/** TThostFtdcByInvestorRangeType */
export var ByInvestorRange;
(function (ByInvestorRange) {
    ByInvestorRange["Property"] = "1";
    ByInvestorRange["All"] = "2";
})(ByInvestorRange || (ByInvestorRange = {}));
/** TThostFtdcPropertyInvestorRangeType */
export var PropertyInvestorRange;
(function (PropertyInvestorRange) {
    PropertyInvestorRange["All"] = "1";
    PropertyInvestorRange["Property"] = "2";
    PropertyInvestorRange["Single"] = "3";
})(PropertyInvestorRange || (PropertyInvestorRange = {}));
/** TThostFtdcFileStatusType */
export var FileStatus;
(function (FileStatus) {
    FileStatus["NoCreate"] = "0";
    FileStatus["Created"] = "1";
    FileStatus["Failed"] = "2";
})(FileStatus || (FileStatus = {}));
/** TThostFtdcFileGenStyleType */
export var FileGenStyle;
(function (FileGenStyle) {
    FileGenStyle["FileTransmit"] = "0";
    FileGenStyle["FileGen"] = "1";
})(FileGenStyle || (FileGenStyle = {}));
/** TThostFtdcSysOperModeType */
export var SysOperMode;
(function (SysOperMode) {
    SysOperMode["Add"] = "1";
    SysOperMode["Update"] = "2";
    SysOperMode["Delete"] = "3";
    SysOperMode["Copy"] = "4";
    SysOperMode["AcTive"] = "5";
    SysOperMode["CanCel"] = "6";
    SysOperMode["ReSet"] = "7";
})(SysOperMode || (SysOperMode = {}));
/** TThostFtdcSysOperTypeType */
export var SysOperType;
(function (SysOperType) {
    SysOperType["UpdatePassword"] = "0";
    SysOperType["UserDepartment"] = "1";
    SysOperType["RoleManager"] = "2";
    SysOperType["RoleFunction"] = "3";
    SysOperType["BaseParam"] = "4";
    SysOperType["SetUserID"] = "5";
    SysOperType["SetUserRole"] = "6";
    SysOperType["UserIpRestriction"] = "7";
    SysOperType["DepartmentManager"] = "8";
    SysOperType["DepartmentCopy"] = "9";
    SysOperType["Tradingcode"] = "A";
    SysOperType["InvestorStatus"] = "B";
    SysOperType["InvestorAuthority"] = "C";
    SysOperType["PropertySet"] = "D";
    SysOperType["ReSetInvestorPasswd"] = "E";
    SysOperType["InvestorPersonalityInfo"] = "F";
})(SysOperType || (SysOperType = {}));
/** TThostFtdcCSRCDataQueyTypeType */
export var CSRCDataQueyType;
(function (CSRCDataQueyType) {
    CSRCDataQueyType["Current"] = "0";
    CSRCDataQueyType["History"] = "1";
})(CSRCDataQueyType || (CSRCDataQueyType = {}));
/** TThostFtdcFreezeStatusType */
export var FreezeStatus;
(function (FreezeStatus) {
    FreezeStatus["Normal"] = "1";
    FreezeStatus["Freeze"] = "0";
})(FreezeStatus || (FreezeStatus = {}));
/** TThostFtdcStandardStatusType */
export var StandardStatus;
(function (StandardStatus) {
    StandardStatus["Standard"] = "0";
    StandardStatus["NonStandard"] = "1";
})(StandardStatus || (StandardStatus = {}));
/** TThostFtdcRightParamTypeType */
export var RightParamType;
(function (RightParamType) {
    RightParamType["Freeze"] = "1";
    RightParamType["FreezeActive"] = "2";
    RightParamType["OpenLimit"] = "3";
    RightParamType["RelieveOpenLimit"] = "4";
})(RightParamType || (RightParamType = {}));
/** TThostFtdcDataStatusType */
export var DataStatus;
(function (DataStatus) {
    DataStatus["Normal"] = "0";
    DataStatus["Deleted"] = "1";
})(DataStatus || (DataStatus = {}));
/** TThostFtdcAMLCheckStatusType */
export var AMLCheckStatus;
(function (AMLCheckStatus) {
    AMLCheckStatus["Init"] = "0";
    AMLCheckStatus["Checking"] = "1";
    AMLCheckStatus["Checked"] = "2";
    AMLCheckStatus["RefuseReport"] = "3";
})(AMLCheckStatus || (AMLCheckStatus = {}));
/** TThostFtdcAmlDateTypeType */
export var AmlDateType;
(function (AmlDateType) {
    AmlDateType["DrawDay"] = "0";
    AmlDateType["TouchDay"] = "1";
})(AmlDateType || (AmlDateType = {}));
/** TThostFtdcAmlCheckLevelType */
export var AmlCheckLevel;
(function (AmlCheckLevel) {
    AmlCheckLevel["CheckLevel0"] = "0";
    AmlCheckLevel["CheckLevel1"] = "1";
    AmlCheckLevel["CheckLevel2"] = "2";
    AmlCheckLevel["CheckLevel3"] = "3";
})(AmlCheckLevel || (AmlCheckLevel = {}));
/** TThostFtdcExportFileTypeType */
export var ExportFileType;
(function (ExportFileType) {
    ExportFileType["CSV"] = "0";
    ExportFileType["EXCEL"] = "1";
    ExportFileType["DBF"] = "2";
})(ExportFileType || (ExportFileType = {}));
/** TThostFtdcSettleManagerTypeType */
export var SettleManagerType;
(function (SettleManagerType) {
    SettleManagerType["Before"] = "1";
    SettleManagerType["Settlement"] = "2";
    SettleManagerType["After"] = "3";
    SettleManagerType["Settlemented"] = "4";
})(SettleManagerType || (SettleManagerType = {}));
/** TThostFtdcSettleManagerLevelType */
export var SettleManagerLevel;
(function (SettleManagerLevel) {
    SettleManagerLevel["Must"] = "1";
    SettleManagerLevel["Alarm"] = "2";
    SettleManagerLevel["Prompt"] = "3";
    SettleManagerLevel["Ignore"] = "4";
})(SettleManagerLevel || (SettleManagerLevel = {}));
/** TThostFtdcSettleManagerGroupType */
export var SettleManagerGroup;
(function (SettleManagerGroup) {
    SettleManagerGroup["Exhcange"] = "1";
    SettleManagerGroup["ASP"] = "2";
    SettleManagerGroup["CSRC"] = "3";
})(SettleManagerGroup || (SettleManagerGroup = {}));
/** TThostFtdcLimitUseTypeType */
export var LimitUseType;
(function (LimitUseType) {
    LimitUseType["Repeatable"] = "1";
    LimitUseType["Unrepeatable"] = "2";
})(LimitUseType || (LimitUseType = {}));
/** TThostFtdcDataResourceType */
export var DataResource;
(function (DataResource) {
    DataResource["Settle"] = "1";
    DataResource["Exchange"] = "2";
    DataResource["CSRC"] = "3";
})(DataResource || (DataResource = {}));
/** TThostFtdcMarginTypeType */
export var MarginType;
(function (MarginType) {
    MarginType["ExchMarginRate"] = "0";
    MarginType["InstrMarginRate"] = "1";
    MarginType["InstrMarginRateTrade"] = "2";
})(MarginType || (MarginType = {}));
/** TThostFtdcActiveTypeType */
export var ActiveType;
(function (ActiveType) {
    ActiveType["Intraday"] = "1";
    ActiveType["Long"] = "2";
})(ActiveType || (ActiveType = {}));
/** TThostFtdcMarginRateTypeType */
export var MarginRateType;
(function (MarginRateType) {
    MarginRateType["Exchange"] = "1";
    MarginRateType["Investor"] = "2";
    MarginRateType["InvestorTrade"] = "3";
})(MarginRateType || (MarginRateType = {}));
/** TThostFtdcBackUpStatusType */
export var BackUpStatus;
(function (BackUpStatus) {
    BackUpStatus["UnBak"] = "0";
    BackUpStatus["BakUp"] = "1";
    BackUpStatus["BakUped"] = "2";
    BackUpStatus["BakFail"] = "3";
})(BackUpStatus || (BackUpStatus = {}));
/** TThostFtdcInitSettlementType */
export var InitSettlement;
(function (InitSettlement) {
    InitSettlement["UnInitialize"] = "0";
    InitSettlement["Initialize"] = "1";
    InitSettlement["Initialized"] = "2";
})(InitSettlement || (InitSettlement = {}));
/** TThostFtdcReportStatusType */
export var ReportStatus;
(function (ReportStatus) {
    ReportStatus["NoCreate"] = "0";
    ReportStatus["Create"] = "1";
    ReportStatus["Created"] = "2";
    ReportStatus["CreateFail"] = "3";
})(ReportStatus || (ReportStatus = {}));
/** TThostFtdcSaveStatusType */
export var SaveStatus;
(function (SaveStatus) {
    SaveStatus["UnSaveData"] = "0";
    SaveStatus["SaveDatad"] = "1";
})(SaveStatus || (SaveStatus = {}));
/** TThostFtdcSettArchiveStatusType */
export var SettArchiveStatus;
(function (SettArchiveStatus) {
    SettArchiveStatus["UnArchived"] = "0";
    SettArchiveStatus["Archiving"] = "1";
    SettArchiveStatus["Archived"] = "2";
    SettArchiveStatus["ArchiveFail"] = "3";
})(SettArchiveStatus || (SettArchiveStatus = {}));
/** TThostFtdcCTPTypeType */
export var CTPType;
(function (CTPType) {
    CTPType["Unkown"] = "0";
    CTPType["MainCenter"] = "1";
    CTPType["BackUp"] = "2";
})(CTPType || (CTPType = {}));
/** TThostFtdcCloseDealTypeType */
export var CloseDealType;
(function (CloseDealType) {
    CloseDealType["Normal"] = "0";
    CloseDealType["SpecFirst"] = "1";
})(CloseDealType || (CloseDealType = {}));
/** TThostFtdcMortgageFundUseRangeType */
export var MortgageFundUseRange;
(function (MortgageFundUseRange) {
    MortgageFundUseRange["None"] = "0";
    MortgageFundUseRange["Margin"] = "1";
    MortgageFundUseRange["All"] = "2";
    MortgageFundUseRange["CNY3"] = "3";
})(MortgageFundUseRange || (MortgageFundUseRange = {}));
/** TThostFtdcSpecProductTypeType */
export var SpecProductType;
(function (SpecProductType) {
    SpecProductType["CzceHedge"] = "1";
    SpecProductType["IneForeignCurrency"] = "2";
    SpecProductType["DceOpenClose"] = "3";
})(SpecProductType || (SpecProductType = {}));
/** TThostFtdcFundMortgageTypeType */
export var FundMortgageType;
(function (FundMortgageType) {
    FundMortgageType["Mortgage"] = "1";
    FundMortgageType["Redemption"] = "2";
})(FundMortgageType || (FundMortgageType = {}));
/** TThostFtdcAccountSettlementParamIDType */
export var AccountSettlementParamID;
(function (AccountSettlementParamID) {
    AccountSettlementParamID["BaseMargin"] = "1";
    AccountSettlementParamID["LowestInterest"] = "2";
})(AccountSettlementParamID || (AccountSettlementParamID = {}));
/** TThostFtdcFundMortDirectionType */
export var FundMortDirection;
(function (FundMortDirection) {
    FundMortDirection["In"] = "1";
    FundMortDirection["Out"] = "2";
})(FundMortDirection || (FundMortDirection = {}));
/** TThostFtdcBusinessClassType */
export var BusinessClass;
(function (BusinessClass) {
    BusinessClass["Profit"] = "0";
    BusinessClass["Loss"] = "1";
    BusinessClass["Other"] = "Z";
})(BusinessClass || (BusinessClass = {}));
/** TThostFtdcSwapSourceTypeType */
export var SwapSourceType;
(function (SwapSourceType) {
    SwapSourceType["Manual"] = "0";
    SwapSourceType["Automatic"] = "1";
})(SwapSourceType || (SwapSourceType = {}));
/** TThostFtdcCurrExDirectionType */
export var CurrExDirection;
(function (CurrExDirection) {
    CurrExDirection["Settlement"] = "0";
    CurrExDirection["Sale"] = "1";
})(CurrExDirection || (CurrExDirection = {}));
/** TThostFtdcCurrencySwapStatusType */
export var CurrencySwapStatus;
(function (CurrencySwapStatus) {
    CurrencySwapStatus["Entry"] = "1";
    CurrencySwapStatus["Approve"] = "2";
    CurrencySwapStatus["Refuse"] = "3";
    CurrencySwapStatus["Revoke"] = "4";
    CurrencySwapStatus["Send"] = "5";
    CurrencySwapStatus["Success"] = "6";
    CurrencySwapStatus["Failure"] = "7";
})(CurrencySwapStatus || (CurrencySwapStatus = {}));
/** TThostFtdcReqFlagType */
export var ReqFlag;
(function (ReqFlag) {
    ReqFlag["NoSend"] = "0";
    ReqFlag["SendSuccess"] = "1";
    ReqFlag["SendFailed"] = "2";
    ReqFlag["WaitReSend"] = "3";
})(ReqFlag || (ReqFlag = {}));
/** TThostFtdcResFlagType */
export var ResFlag;
(function (ResFlag) {
    ResFlag["Success"] = "0";
    ResFlag["InsuffiCient"] = "1";
    ResFlag["UnKnown"] = "8";
})(ResFlag || (ResFlag = {}));
/** TThostFtdcExStatusType */
export var ExStatus;
(function (ExStatus) {
    ExStatus["Before"] = "0";
    ExStatus["After"] = "1";
})(ExStatus || (ExStatus = {}));
/** TThostFtdcClientRegionType */
export var ClientRegion;
(function (ClientRegion) {
    ClientRegion["Domestic"] = "1";
    ClientRegion["GMT"] = "2";
    ClientRegion["Foreign"] = "3";
})(ClientRegion || (ClientRegion = {}));
/** TThostFtdcHasBoardType */
export var HasBoard;
(function (HasBoard) {
    HasBoard["No"] = "0";
    HasBoard["Yes"] = "1";
})(HasBoard || (HasBoard = {}));
/** TThostFtdcStartModeType */
export var StartMode;
(function (StartMode) {
    StartMode["Normal"] = "1";
    StartMode["Emerge"] = "2";
    StartMode["Restore"] = "3";
})(StartMode || (StartMode = {}));
/** TThostFtdcTemplateTypeType */
export var TemplateType;
(function (TemplateType) {
    TemplateType["Full"] = "1";
    TemplateType["Increment"] = "2";
    TemplateType["BackUp"] = "3";
})(TemplateType || (TemplateType = {}));
/** TThostFtdcLoginModeType */
export var LoginMode;
(function (LoginMode) {
    LoginMode["Trade"] = "0";
    LoginMode["Transfer"] = "1";
})(LoginMode || (LoginMode = {}));
/** TThostFtdcPromptTypeType */
export var PromptType;
(function (PromptType) {
    PromptType["Instrument"] = "1";
    PromptType["Margin"] = "2";
})(PromptType || (PromptType = {}));
/** TThostFtdcHasTrusteeType */
export var HasTrustee;
(function (HasTrustee) {
    HasTrustee["Yes"] = "1";
    HasTrustee["No"] = "0";
})(HasTrustee || (HasTrustee = {}));
/** TThostFtdcAmTypeType */
export var AmType;
(function (AmType) {
    AmType["Bank"] = "1";
    AmType["Securities"] = "2";
    AmType["Fund"] = "3";
    AmType["Insurance"] = "4";
    AmType["Trust"] = "5";
    AmType["Other"] = "9";
})(AmType || (AmType = {}));
/** TThostFtdcCSRCFundIOTypeType */
export var CSRCFundIOType;
(function (CSRCFundIOType) {
    CSRCFundIOType["FundIO"] = "0";
    CSRCFundIOType["SwapCurrency"] = "1";
})(CSRCFundIOType || (CSRCFundIOType = {}));
/** TThostFtdcCusAccountTypeType */
export var CusAccountType;
(function (CusAccountType) {
    CusAccountType["Futures"] = "1";
    CusAccountType["AssetmgrFuture"] = "2";
    CusAccountType["AssetmgrTrustee"] = "3";
    CusAccountType["AssetmgrTransfer"] = "4";
})(CusAccountType || (CusAccountType = {}));
/** TThostFtdcLanguageTypeType */
export var LanguageType;
(function (LanguageType) {
    LanguageType["Chinese"] = "1";
    LanguageType["English"] = "2";
})(LanguageType || (LanguageType = {}));
/** TThostFtdcAssetmgrClientTypeType */
export var AssetmgrClientType;
(function (AssetmgrClientType) {
    AssetmgrClientType["Person"] = "1";
    AssetmgrClientType["Organ"] = "2";
    AssetmgrClientType["SpecialOrgan"] = "4";
})(AssetmgrClientType || (AssetmgrClientType = {}));
/** TThostFtdcAssetmgrTypeType */
export var AssetmgrType;
(function (AssetmgrType) {
    AssetmgrType["Futures"] = "3";
    AssetmgrType["SpecialOrgan"] = "4";
})(AssetmgrType || (AssetmgrType = {}));
/** TThostFtdcCheckInstrTypeType */
export var CheckInstrType;
(function (CheckInstrType) {
    CheckInstrType["HasExch"] = "0";
    CheckInstrType["HasATP"] = "1";
    CheckInstrType["HasDiff"] = "2";
})(CheckInstrType || (CheckInstrType = {}));
/** TThostFtdcDeliveryTypeType */
export var DeliveryType;
(function (DeliveryType) {
    DeliveryType["HandDeliv"] = "1";
    DeliveryType["PersonDeliv"] = "2";
})(DeliveryType || (DeliveryType = {}));
/** TThostFtdcMaxMarginSideAlgorithmType */
export var MaxMarginSideAlgorithm;
(function (MaxMarginSideAlgorithm) {
    MaxMarginSideAlgorithm["NO"] = "0";
    MaxMarginSideAlgorithm["YES"] = "1";
})(MaxMarginSideAlgorithm || (MaxMarginSideAlgorithm = {}));
/** TThostFtdcDAClientTypeType */
export var DAClientType;
(function (DAClientType) {
    DAClientType["Person"] = "0";
    DAClientType["Company"] = "1";
    DAClientType["Other"] = "2";
})(DAClientType || (DAClientType = {}));
/** TThostFtdcUOAAssetmgrTypeType */
export var UOAAssetmgrType;
(function (UOAAssetmgrType) {
    UOAAssetmgrType["Futures"] = "1";
    UOAAssetmgrType["SpecialOrgan"] = "2";
})(UOAAssetmgrType || (UOAAssetmgrType = {}));
/** TThostFtdcDirectionEnType */
export var DirectionEn;
(function (DirectionEn) {
    DirectionEn["Buy"] = "0";
    DirectionEn["Sell"] = "1";
})(DirectionEn || (DirectionEn = {}));
/** TThostFtdcOffsetFlagEnType */
export var OffsetFlagEn;
(function (OffsetFlagEn) {
    OffsetFlagEn["Open"] = "0";
    OffsetFlagEn["Close"] = "1";
    OffsetFlagEn["ForceClose"] = "2";
    OffsetFlagEn["CloseToday"] = "3";
    OffsetFlagEn["CloseYesterday"] = "4";
    OffsetFlagEn["ForceOff"] = "5";
    OffsetFlagEn["LocalForceClose"] = "6";
})(OffsetFlagEn || (OffsetFlagEn = {}));
/** TThostFtdcHedgeFlagEnType */
export var HedgeFlagEn;
(function (HedgeFlagEn) {
    HedgeFlagEn["Speculation"] = "1";
    HedgeFlagEn["Arbitrage"] = "2";
    HedgeFlagEn["Hedge"] = "3";
})(HedgeFlagEn || (HedgeFlagEn = {}));
/** TThostFtdcFundIOTypeEnType */
export var FundIOTypeEn;
(function (FundIOTypeEn) {
    FundIOTypeEn["FundIO"] = "1";
    FundIOTypeEn["Transfer"] = "2";
    FundIOTypeEn["SwapCurrency"] = "3";
})(FundIOTypeEn || (FundIOTypeEn = {}));
/** TThostFtdcFundTypeEnType */
export var FundTypeEn;
(function (FundTypeEn) {
    FundTypeEn["Deposite"] = "1";
    FundTypeEn["ItemFund"] = "2";
    FundTypeEn["Company"] = "3";
    FundTypeEn["InnerTransfer"] = "4";
})(FundTypeEn || (FundTypeEn = {}));
/** TThostFtdcFundDirectionEnType */
export var FundDirectionEn;
(function (FundDirectionEn) {
    FundDirectionEn["In"] = "1";
    FundDirectionEn["Out"] = "2";
})(FundDirectionEn || (FundDirectionEn = {}));
/** TThostFtdcFundMortDirectionEnType */
export var FundMortDirectionEn;
(function (FundMortDirectionEn) {
    FundMortDirectionEn["In"] = "1";
    FundMortDirectionEn["Out"] = "2";
})(FundMortDirectionEn || (FundMortDirectionEn = {}));
/** TThostFtdcOptionsTypeType */
export var OptionsType;
(function (OptionsType) {
    OptionsType["CallOptions"] = "1";
    OptionsType["PutOptions"] = "2";
})(OptionsType || (OptionsType = {}));
/** TThostFtdcStrikeModeType */
export var StrikeMode;
(function (StrikeMode) {
    StrikeMode["Continental"] = "0";
    StrikeMode["American"] = "1";
    StrikeMode["Bermuda"] = "2";
})(StrikeMode || (StrikeMode = {}));
/** TThostFtdcStrikeTypeType */
export var StrikeType;
(function (StrikeType) {
    StrikeType["Hedge"] = "0";
    StrikeType["Match"] = "1";
})(StrikeType || (StrikeType = {}));
/** TThostFtdcApplyTypeType */
export var ApplyType;
(function (ApplyType) {
    ApplyType["NotStrikeNum"] = "4";
})(ApplyType || (ApplyType = {}));
/** TThostFtdcGiveUpDataSourceType */
export var GiveUpDataSource;
(function (GiveUpDataSource) {
    GiveUpDataSource["Gen"] = "0";
    GiveUpDataSource["Hand"] = "1";
})(GiveUpDataSource || (GiveUpDataSource = {}));
/** TThostFtdcExecResultType */
export var ExecResult;
(function (ExecResult) {
    ExecResult["NoExec"] = "n";
    ExecResult["Canceled"] = "c";
    ExecResult["OK"] = "0";
    ExecResult["NoPosition"] = "1";
    ExecResult["NoDeposit"] = "2";
    ExecResult["NoParticipant"] = "3";
    ExecResult["NoClient"] = "4";
    ExecResult["NoInstrument"] = "6";
    ExecResult["NoRight"] = "7";
    ExecResult["InvalidVolume"] = "8";
    ExecResult["NoEnoughHistoryTrade"] = "9";
    ExecResult["Unknown"] = "a";
})(ExecResult || (ExecResult = {}));
/** TThostFtdcCombinationTypeType */
export var CombinationType;
(function (CombinationType) {
    CombinationType["Future"] = "0";
    CombinationType["BUL"] = "1";
    CombinationType["BER"] = "2";
    CombinationType["STD"] = "3";
    CombinationType["STG"] = "4";
    CombinationType["PRT"] = "5";
    CombinationType["CAS"] = "6";
    CombinationType["OPL"] = "7";
    CombinationType["BFO"] = "8";
    CombinationType["BLS"] = "9";
    CombinationType["BES"] = "a";
})(CombinationType || (CombinationType = {}));
/** TThostFtdcDceCombinationTypeType */
export var DceCombinationType;
(function (DceCombinationType) {
    DceCombinationType["SPL"] = "0";
    DceCombinationType["OPL"] = "1";
    DceCombinationType["SP"] = "2";
    DceCombinationType["SPC"] = "3";
    DceCombinationType["BLS"] = "4";
    DceCombinationType["BES"] = "5";
    DceCombinationType["CAS"] = "6";
    DceCombinationType["STD"] = "7";
    DceCombinationType["STG"] = "8";
    DceCombinationType["BFO"] = "9";
    DceCombinationType["SFO"] = "a";
})(DceCombinationType || (DceCombinationType = {}));
/** TThostFtdcOptionRoyaltyPriceTypeType */
export var OptionRoyaltyPriceType;
(function (OptionRoyaltyPriceType) {
    OptionRoyaltyPriceType["PreSettlementPrice"] = "1";
    OptionRoyaltyPriceType["OpenPrice"] = "4";
    OptionRoyaltyPriceType["MaxPreSettlementPrice"] = "5";
})(OptionRoyaltyPriceType || (OptionRoyaltyPriceType = {}));
/** TThostFtdcBalanceAlgorithmType */
export var BalanceAlgorithm;
(function (BalanceAlgorithm) {
    BalanceAlgorithm["Default"] = "1";
    BalanceAlgorithm["IncludeOptValLost"] = "2";
})(BalanceAlgorithm || (BalanceAlgorithm = {}));
/** TThostFtdcActionTypeType */
export var ActionType;
(function (ActionType) {
    ActionType["Exec"] = "1";
    ActionType["Abandon"] = "2";
})(ActionType || (ActionType = {}));
/** TThostFtdcForQuoteStatusType */
export var ForQuoteStatus;
(function (ForQuoteStatus) {
    ForQuoteStatus["Submitted"] = "a";
    ForQuoteStatus["Accepted"] = "b";
    ForQuoteStatus["Rejected"] = "c";
})(ForQuoteStatus || (ForQuoteStatus = {}));
/** TThostFtdcValueMethodType */
export var ValueMethod;
(function (ValueMethod) {
    ValueMethod["Absolute"] = "0";
    ValueMethod["Ratio"] = "1";
})(ValueMethod || (ValueMethod = {}));
/** TThostFtdcExecOrderPositionFlagType */
export var ExecOrderPositionFlag;
(function (ExecOrderPositionFlag) {
    ExecOrderPositionFlag["Reserve"] = "0";
    ExecOrderPositionFlag["UnReserve"] = "1";
})(ExecOrderPositionFlag || (ExecOrderPositionFlag = {}));
/** TThostFtdcExecOrderCloseFlagType */
export var ExecOrderCloseFlag;
(function (ExecOrderCloseFlag) {
    ExecOrderCloseFlag["AutoClose"] = "0";
    ExecOrderCloseFlag["NotToClose"] = "1";
})(ExecOrderCloseFlag || (ExecOrderCloseFlag = {}));
/** TThostFtdcProductTypeType */
export var ProductType;
(function (ProductType) {
    ProductType["Futures"] = "1";
    ProductType["Options"] = "2";
})(ProductType || (ProductType = {}));
/** TThostFtdcCZCEUploadFileNameType */
export var CZCEUploadFileName;
(function (CZCEUploadFileName) {
    CZCEUploadFileName["CUFN_O"] = "O";
    CZCEUploadFileName["CUFN_T"] = "T";
    CZCEUploadFileName["CUFN_P"] = "P";
    CZCEUploadFileName["CUFN_N"] = "N";
    CZCEUploadFileName["CUFN_L"] = "L";
    CZCEUploadFileName["CUFN_F"] = "F";
    CZCEUploadFileName["CUFN_C"] = "C";
    CZCEUploadFileName["CUFN_M"] = "M";
})(CZCEUploadFileName || (CZCEUploadFileName = {}));
/** TThostFtdcDCEUploadFileNameType */
export var DCEUploadFileName;
(function (DCEUploadFileName) {
    DCEUploadFileName["DUFN_O"] = "O";
    DCEUploadFileName["DUFN_T"] = "T";
    DCEUploadFileName["DUFN_P"] = "P";
    DCEUploadFileName["DUFN_F"] = "F";
    DCEUploadFileName["DUFN_C"] = "C";
    DCEUploadFileName["DUFN_D"] = "D";
    DCEUploadFileName["DUFN_M"] = "M";
    DCEUploadFileName["DUFN_S"] = "S";
})(DCEUploadFileName || (DCEUploadFileName = {}));
/** TThostFtdcSHFEUploadFileNameType */
export var SHFEUploadFileName;
(function (SHFEUploadFileName) {
    SHFEUploadFileName["SUFN_O"] = "O";
    SHFEUploadFileName["SUFN_T"] = "T";
    SHFEUploadFileName["SUFN_P"] = "P";
    SHFEUploadFileName["SUFN_F"] = "F";
})(SHFEUploadFileName || (SHFEUploadFileName = {}));
/** TThostFtdcCFFEXUploadFileNameType */
export var CFFEXUploadFileName;
(function (CFFEXUploadFileName) {
    CFFEXUploadFileName["SUFN_T"] = "T";
    CFFEXUploadFileName["SUFN_P"] = "P";
    CFFEXUploadFileName["SUFN_F"] = "F";
    CFFEXUploadFileName["SUFN_S"] = "S";
})(CFFEXUploadFileName || (CFFEXUploadFileName = {}));
/** TThostFtdcCombDirectionType */
export var CombDirection;
(function (CombDirection) {
    CombDirection["Comb"] = "0";
    CombDirection["UnComb"] = "1";
    CombDirection["DelComb"] = "2";
})(CombDirection || (CombDirection = {}));
/** TThostFtdcStrikeOffsetTypeType */
export var StrikeOffsetType;
(function (StrikeOffsetType) {
    StrikeOffsetType["RealValue"] = "1";
    StrikeOffsetType["ProfitValue"] = "2";
    StrikeOffsetType["RealRatio"] = "3";
    StrikeOffsetType["ProfitRatio"] = "4";
})(StrikeOffsetType || (StrikeOffsetType = {}));
/** TThostFtdcReserveOpenAccStasType */
export var ReserveOpenAccStas;
(function (ReserveOpenAccStas) {
    ReserveOpenAccStas["Processing"] = "0";
    ReserveOpenAccStas["Cancelled"] = "1";
    ReserveOpenAccStas["Opened"] = "2";
    ReserveOpenAccStas["Invalid"] = "3";
})(ReserveOpenAccStas || (ReserveOpenAccStas = {}));
/** TThostFtdcWeakPasswordSourceType */
export var WeakPasswordSource;
(function (WeakPasswordSource) {
    WeakPasswordSource["Lib"] = "1";
    WeakPasswordSource["Manual"] = "2";
})(WeakPasswordSource || (WeakPasswordSource = {}));
/** TThostFtdcOptSelfCloseFlagType */
export var OptSelfCloseFlag;
(function (OptSelfCloseFlag) {
    OptSelfCloseFlag["CloseSelfOptionPosition"] = "1";
    OptSelfCloseFlag["ReserveOptionPosition"] = "2";
    OptSelfCloseFlag["SellCloseSelfFuturePosition"] = "3";
    OptSelfCloseFlag["ReserveFuturePosition"] = "4";
})(OptSelfCloseFlag || (OptSelfCloseFlag = {}));
/** TThostFtdcBizTypeType */
export var BizType;
(function (BizType) {
    BizType["Future"] = "1";
    BizType["Stock"] = "2";
})(BizType || (BizType = {}));
/** TThostFtdcAppTypeType */
export var AppType;
(function (AppType) {
    AppType["TYPE_Investor"] = "1";
    AppType["TYPE_InvestorRelay"] = "2";
    AppType["TYPE_OperatorRelay"] = "3";
    AppType["TYPE_UnKnown"] = "4";
})(AppType || (AppType = {}));
/** TThostFtdcResponseValueType */
export var ResponseValue;
(function (ResponseValue) {
    ResponseValue["Right"] = "0";
    ResponseValue["Refuse"] = "1";
})(ResponseValue || (ResponseValue = {}));
/** TThostFtdcOTCTradeTypeType */
export var OTCTradeType;
(function (OTCTradeType) {
    OTCTradeType["TRDT_Block"] = "0";
    OTCTradeType["TRDT_EFP"] = "1";
})(OTCTradeType || (OTCTradeType = {}));
/** TThostFtdcMatchTypeType */
export var MatchType;
(function (MatchType) {
    MatchType["MT_DV01"] = "1";
    MatchType["MT_ParValue"] = "2";
})(MatchType || (MatchType = {}));
/** TThostFtdcAuthTypeType */
export var AuthType;
(function (AuthType) {
    AuthType["WHITE"] = "0";
    AuthType["BLACK"] = "1";
})(AuthType || (AuthType = {}));
/** TThostFtdcClassTypeType */
export var ClassType;
(function (ClassType) {
    ClassType["ALL"] = "0";
    ClassType["FUTURE"] = "1";
    ClassType["OPTION"] = "2";
    ClassType["COMB"] = "3";
})(ClassType || (ClassType = {}));
/** TThostFtdcTradingTypeType */
export var TradingType;
(function (TradingType) {
    TradingType["ALL"] = "0";
    TradingType["TRADE"] = "1";
    TradingType["UNTRADE"] = "2";
})(TradingType || (TradingType = {}));
/** TThostFtdcProductStatusType */
export var ProductStatus;
(function (ProductStatus) {
    ProductStatus["tradeable"] = "1";
    ProductStatus["untradeable"] = "2";
})(ProductStatus || (ProductStatus = {}));
/** TThostFtdcSyncDeltaStatusType */
export var SyncDeltaStatus;
(function (SyncDeltaStatus) {
    SyncDeltaStatus["Readable"] = "1";
    SyncDeltaStatus["Reading"] = "2";
    SyncDeltaStatus["Readend"] = "3";
    SyncDeltaStatus["OptErr"] = "e";
})(SyncDeltaStatus || (SyncDeltaStatus = {}));
/** TThostFtdcActionDirectionType */
export var ActionDirection;
(function (ActionDirection) {
    ActionDirection["Add"] = "1";
    ActionDirection["Del"] = "2";
    ActionDirection["Upd"] = "3";
})(ActionDirection || (ActionDirection = {}));
/** TThostFtdcOrderCancelAlgType */
export var OrderCancelAlg;
(function (OrderCancelAlg) {
    OrderCancelAlg["Balance"] = "1";
    OrderCancelAlg["OrigFirst"] = "2";
})(OrderCancelAlg || (OrderCancelAlg = {}));
/** TThostFtdcOpenLimitControlLevelType */
export var OpenLimitControlLevel;
(function (OpenLimitControlLevel) {
    OpenLimitControlLevel["None"] = "0";
    OpenLimitControlLevel["Product"] = "1";
    OpenLimitControlLevel["Inst"] = "2";
})(OpenLimitControlLevel || (OpenLimitControlLevel = {}));
/** TThostFtdcOrderFreqControlLevelType */
export var OrderFreqControlLevel;
(function (OrderFreqControlLevel) {
    OrderFreqControlLevel["None"] = "0";
    OrderFreqControlLevel["Product"] = "1";
    OrderFreqControlLevel["Inst"] = "2";
})(OrderFreqControlLevel || (OrderFreqControlLevel = {}));
/** TThostFtdcEnumBoolType */
export var EnumBool;
(function (EnumBool) {
    EnumBool["False"] = "0";
    EnumBool["True"] = "1";
})(EnumBool || (EnumBool = {}));
/** TThostFtdcTimeRangeType */
export var TimeRange;
(function (TimeRange) {
    TimeRange["USUAL"] = "1";
    TimeRange["FNSP"] = "2";
    TimeRange["BNSP"] = "3";
    TimeRange["SPOT"] = "4";
})(TimeRange || (TimeRange = {}));
/** TThostFtdcPortfolioType */
export var Portfolio;
(function (Portfolio) {
    Portfolio["None"] = "0";
    Portfolio["SPBM"] = "1";
    Portfolio["RULE"] = "2";
    Portfolio["SPMM"] = "3";
    Portfolio["RCAMS"] = "4";
})(Portfolio || (Portfolio = {}));
/** TThostFtdcWithDrawParamIDType */
export var WithDrawParamID;
(function (WithDrawParamID) {
    WithDrawParamID["CashIn"] = "C";
})(WithDrawParamID || (WithDrawParamID = {}));
/** TThostFtdcInvstTradingRightType */
export var InvstTradingRight;
(function (InvstTradingRight) {
    InvstTradingRight["CloseOnly"] = "1";
    InvstTradingRight["Forbidden"] = "2";
})(InvstTradingRight || (InvstTradingRight = {}));
/** TThostFtdcInstMarginCalIDType */
export var InstMarginCalID;
(function (InstMarginCalID) {
    InstMarginCalID["BothSide"] = "1";
    InstMarginCalID["MMSA"] = "2";
    InstMarginCalID["SPMM"] = "3";
})(InstMarginCalID || (InstMarginCalID = {}));
/** TThostFtdcRCAMSCombinationTypeType */
export var RCAMSCombinationType;
(function (RCAMSCombinationType) {
    RCAMSCombinationType["BUC"] = "0";
    RCAMSCombinationType["BEC"] = "1";
    RCAMSCombinationType["BEP"] = "2";
    RCAMSCombinationType["BUP"] = "3";
    RCAMSCombinationType["CAS"] = "4";
})(RCAMSCombinationType || (RCAMSCombinationType = {}));
/** TThostFtdcPortfTypeType */
export var PortfType;
(function (PortfType) {
    PortfType["None"] = "0";
    PortfType["SPBM_AddOnHedge"] = "1";
})(PortfType || (PortfType = {}));
/** TThostFtdcInstrumentClassType */
export var InstrumentClass;
(function (InstrumentClass) {
    InstrumentClass["Usual"] = "1";
    InstrumentClass["Delivery"] = "2";
    InstrumentClass["NonComb"] = "3";
})(InstrumentClass || (InstrumentClass = {}));
/** TThostFtdcProdChangeFlagType */
export var ProdChangeFlag;
(function (ProdChangeFlag) {
    ProdChangeFlag["None"] = "0";
    ProdChangeFlag["OnlyFrozen"] = "1";
    ProdChangeFlag["PositionChange"] = "2";
})(ProdChangeFlag || (ProdChangeFlag = {}));
/** TThostFtdcPwdRcdSrcType */
export var PwdRcdSrc;
(function (PwdRcdSrc) {
    PwdRcdSrc["Init"] = "0";
    PwdRcdSrc["Sync"] = "1";
    PwdRcdSrc["UserUpd"] = "2";
    PwdRcdSrc["SuperUserUpd"] = "3";
    PwdRcdSrc["SecUpd"] = "4";
})(PwdRcdSrc || (PwdRcdSrc = {}));
/** TThostFtdcAddrSrvModeType */
export var AddrSrvMode;
(function (AddrSrvMode) {
    AddrSrvMode["Trade"] = "0";
    AddrSrvMode["MarketData"] = "1";
    AddrSrvMode["Other"] = "2";
})(AddrSrvMode || (AddrSrvMode = {}));
/** TThostFtdcAddrVerType */
export var AddrVer;
(function (AddrVer) {
    AddrVer["V4"] = "0";
    AddrVer["V6"] = "1";
})(AddrVer || (AddrVer = {}));
/** TThostFtdcTGSessionQryStatusType */
export var TGSessionQryStatusType;
(function (TGSessionQryStatusType) {
    TGSessionQryStatusType["QryIdle"] = "1";
    TGSessionQryStatusType["QryBusy"] = "2";
})(TGSessionQryStatusType || (TGSessionQryStatusType = {}));
/** TThostFtdcOffsetTypeType */
export var OffsetType;
(function (OffsetType) {
    OffsetType["OPT_OFFSET"] = "0";
    OffsetType["FUT_OFFSET"] = "1";
    OffsetType["EXEC_OFFSET"] = "2";
    OffsetType["PERFORM_OFFSET"] = "3";
})(OffsetType || (OffsetType = {}));
/** TThostFtdcApplySrcType */
export var ApplySrc;
(function (ApplySrc) {
    ApplySrc["Trade"] = "0";
    ApplySrc["Member"] = "1";
})(ApplySrc || (ApplySrc = {}));
/** TThostFtdcApplyStatusType */
export var ApplyStatus;
(function (ApplyStatus) {
    ApplyStatus["Unknown"] = "a";
    ApplyStatus["Canceled"] = "0";
    ApplyStatus["Suspended"] = "1";
    ApplyStatus["Accepted"] = "3";
})(ApplyStatus || (ApplyStatus = {}));
/** TThostFtdcCmbTypeType */
export var CmbType;
(function (CmbType) {
    CmbType["SPZ"] = "0";
    CmbType["SPD"] = "1";
    CmbType["IPS"] = "2";
    CmbType["BUL"] = "3";
    CmbType["BER"] = "4";
    CmbType["BLT"] = "5";
    CmbType["BRT"] = "6";
    CmbType["STD"] = "7";
    CmbType["STG"] = "8";
    CmbType["PRT"] = "9";
})(CmbType || (CmbType = {}));
//# sourceMappingURL=enums.gen.js.map