EXCHANGE_TYPE_SHFE = 'S'
EXCHANGE_TYPE_CZCE = 'Z'
EXCHANGE_TYPE_DCE = 'D'
EXCHANGE_TYPE_CFFEX = 'J'
EXCHANGE_TYPE_SHETC = 'N'
EXCHANGE_TYPE_SSEOPT = 'H'
EXCHANGE_TYPE_SSE = '1'
EXCHANGE_TYPE_SZSE = '2'
UFT_FTDC_DM_None = '0'
UFT_FTDC_DM_CashDeliv = '1'
UFT_FTDC_DM_CommodityDeliv = '2'
UFT_FTDC_ER_Broker = '1'
UFT_FTDC_ER_Host = '2'
UFT_FTDC_UT_Trader = '1'
UFT_FTDC_UT_TradeManager = '2'
UFT_FTDC_UT_MDUser = '3'
UFT_FTDC_UT_SingleTrader = '4'
UFT_FTDC_UT_MDProxyUser = '5'
UFT_FTDC_PC_Futures = '1'
UFT_FTDC_PC_Options = '2'
UFT_FTDC_PC_Combination = '3'
UFT_FTDC_PC_Spot = '4'
UFT_FTDC_PC_EFP = '5'
UFT_FTDC_OT_NotOptions = '0'
UFT_FTDC_OT_CallOptions = '1'
UFT_FTDC_OT_PutOptions = '2'
UFT_FTDC_IS_BeforeTrading = '0'
UFT_FTDC_IS_NoTrading = '1'
UFT_FTDC_IS_Continous = '2'
UFT_FTDC_IS_AuctionOrdering = '3'
UFT_FTDC_IS_AuctionBalance = '4'
UFT_FTDC_IS_AuctionMatch = '5'
UFT_FTDC_IS_Closed = '6'
UFT_FTDC_IS_TransactionProcessing = '7'
UFT_ES_INITING = '0'
UFT_ES_INITED = '1'
UFT_ES_LOADED = '2'
UFT_ES_OPEN = '3'
UFT_ES_PAUSE = '4'
UFT_ES_CLOSE = '5'
UFT_ES_CLOSEDEALING = '6'
UFT_ES_CLOSEDEALED = '7'
UFT_ES_CLEARING = '8'
UFT_ES_CLEARED = '9'
UFT_FTDC_D_Buy = '0'
UFT_FTDC_D_Sell = '1'
UFT_FTDC_PT_Net = '1'
UFT_FTDC_PT_Gross = '2'
UFT_FTDC_PD_Net = '1'
UFT_FTDC_PD_Long = '2'
UFT_FTDC_PD_Short = '3'
UFT_FTDC_EDS_Asynchronous = '1'
UFT_FTDC_EDS_Synchronizing = '2'
UFT_FTDC_EDS_Synchronized = '3'
UFT_FTDC_SGDS_Asynchronous = '1'
UFT_FTDC_SGDS_Synchronizing = '2'
UFT_FTDC_SGDS_Synchronized = '3'
UFT_FTDC_HF_Speculation = '1'
UFT_FTDC_HF_Arbitrage = '2'
UFT_FTDC_HF_Hedge = '3'
UFT_FTDC_HF_MarketMaker = '4'
UFT_FTDC_CT_Person = '0'
UFT_FTDC_CT_Company = '1'
UFT_FTDC_CT_Fund = '2'
UFT_FTDC_IER_Automatic = '1'
UFT_FTDC_IER_Manual = '2'
UFT_FTDC_IER_Fuse = '3'
UFT_FTDC_IER_FuseManual = '4'
UFT_FTDC_SECU_BUY = '1'
UFT_FTDC_SECU_SELL = '2'
UFT_FTDC_OPT_K = '0'
UFT_FTDC_OPT_P = '1'
UFT_FTDC_SECU_0 = '0'
UFT_FTDC_SECU_1 = '1'
UFT_FTDC_SECU_2 = '2'
UFT_FTDC_SECU_3 = '3'
UFT_FTDC_SECU_4 = '4'
UFT_FTDC_SECU_5 = '5'
UFT_FTDC_OPT_AnyPrice = '1'
UFT_FTDC_OPT_LimitPrice = '2'
UFT_FTDC_OPT_BestPrice = '3'
UFT_FTDC_OPT_FiveLevelPrice = '4'
UFT_FTDC_OPT_Market2Limit = '5'
UFT_SSEOPT_MARKETPRICE = '1'
UFT_SSEOPT_LIMITPRICE = '2'
UFT_SSEOPT_MARKET2LIMIT = 'K'
UFT_FTDC_OF_Open = '0'
UFT_FTDC_OF_Close = '1'
UFT_FTDC_OF_ForceClose = '2'
UFT_FTDC_OF_CloseToday = '3'
UFT_FTDC_OF_CloseYesterday = '4'
UFT_UFTDC_OF_ForceMinus = '5'
UFT_FTDC_FCC_NotForceClose = '0'
UFT_FTDC_FCC_LackDeposit = '1'
UFT_FTDC_FCC_ClientOverPositionLimit = '2'
UFT_FTDC_FCC_MemberOverPositionLimit = '3'
UFT_FTDC_FCC_NotMultiple = '4'
UFT_FTDC_FCC_Violation = '5'
UFT_FTDC_FCC_Other = '6'
UFT_FTDC_FCC_PersonDeliv = '7'
UFT_FTDC_FCC_HedgeOverPositionLimit = '8'
UFT_FTDC_OST_AllTraded = '0'
UFT_FTDC_OST_PartTradedQueueing = '1'
UFT_FTDC_OST_PartTradedNotQueueing = '2'
UFT_FTDC_OST_NoTradeQueueing = '3'
UFT_FTDC_OST_NoTradeNotQueueing = '4'
UFT_FTDC_OST_Canceled = '5'
UFT_FTDC_OST_Invalid = 'f'
UFT_FTDC_OST_PartTraded_Canceled = 'g'
UFT_FTDC_OST_Not_Send = 'n'
UFT_FTDC_OST_Received = 'r'
UFT_FTDC_ORDT_Normal = '0'
UFT_FTDC_ORDT_DeriveFromQuote = '1'
UFT_FTDC_ORDT_DeriveFromCombination = '2'
UFT_FTDC_OOS_Inputed = '0'
UFT_FTDC_OOS_Confirmed = '1'
UFT_FTDC_OOS_Canceled = '2'
UFT_FTDC_OOS_Refused = '3'
UFT_FTDC_TC_IOC = '1'
UFT_FTDC_TC_GFS = '2'
UFT_FTDC_TC_GFD = '3'
UFT_FTDC_TC_GTD = '4'
UFT_FTDC_TC_GTC = '5'
UFT_FTDC_TC_GFA = '6'
UFT_SSEOPT_OPT_GFD = '0'
UFT_SSEOPT_OPT_IOC = '3'
UFT_SSEOPT_OPT_FOK = '4'
UFT_FTDC_VC_AV = '1'
UFT_FTDC_VC_MV = '2'
UFT_FTDC_VC_CV = '3'
UFT_FTDC_CC_Immediately = '1'
UFT_FTDC_CC_Touch = '2'
UFT_FTDC_AF_Delete = '0'
UFT_FTDC_AF_Suspend = '1'
UFT_FTDC_AF_Active = '2'
UFT_FTDC_AF_Modify = '3'
UFT_FTDC_OSRC_Participant = '0'
UFT_FTDC_OSRC_Administrator = '1'
UFT_FTDC_TRDT_Common = '0'
UFT_FTDC_TRDT_OptionsExecution = '1'
UFT_FTDC_TRDT_OTC = '2'
UFT_FTDC_TRDT_EFPDerived = '3'
UFT_FTDC_TRDT_CombinationDerived = '4'
UFT_FTDC_PSRC_LastPrice = '0'
UFT_FTDC_PSRC_Buy = '1'
UFT_FTDC_PSRC_Sell = '2'
UFT_FTDC_ACCS_Enable = '0'
UFT_FTDC_ACCS_Disable = '1'
UFT_FTDC_MT_Trading = '0'
UFT_FTDC_MT_Settlement = '1'
UFT_FTDC_MT_Compositive = '2'
UFT_FTDC_OER_NoExec = 'n'
UFT_FTDC_OER_Canceled = 'c'
UFT_FTDC_OER_OK = '0'
UFT_FTDC_OER_NoPosition = '1'
UFT_FTDC_OER_NoDeposit = '2'
UFT_FTDC_OER_NoParticipant = '3'
UFT_FTDC_OER_NoClient = '4'
UFT_FTDC_OER_NoInstrument = '6'
UFT_FTDC_OER_NoRight = '7'
UFT_FTDC_OER_InvalidVolume = '8'
UFT_FTDC_OER_NoEnoughHistoryTrade = '9'
UFT_FTDC_AOC_InvalidPositionForceClose = '1'
UFT_FTDC_AOC_InitCreditLimit = '2'
UFT_FTDC_AOC_AlterCreditLimit = '3'
UFT_FTDC_AOC_CancelCreditLimit = '4'
UFT_FTDC_SESSION_Trade = 'T'
UFT_FTDC_SESSION_Md = 'M'
UFT_FTDC_SESSIONSTATUS_Connected = '0'
UFT_FTDC_SESSIONSTATUS_DisConnected = '1'
UFT_FTDC_EOPF_Reserve = '0'
UFT_FTDC_EOPF_UnReserve = '1'
UFT_FTDC_EOCF_AutoClose = '0'
UFT_FTDC_EOCF_NotToClose = '1'
UFT_ERROR_ID_NET_CONNECTION_FAIL = -1
UFT_ERROR_ID_UNPROCESSREQ_EXCEEDLIMITED = -2
UFT_ERROR_ID_REQNUM_EXCEEDLIMITED = -3
UFT_ERROR_ID_CODE_NOT_EXIST = -4
UFT_ERROR_ID_PRICE_ERROR = -5
UFT_ERROR_ID_MARGIN_NOTENOUGH = -6
UFT_ERROR_ID_POSITIONTODAY_NOTENOUGH = -7
UFT_ERROR_ID_POSITIONY_NOTENOUGH = -8
UFT_ERROR_ID_ENTRUST_NOT_EXIST = -9
UFT_ERROR_ID_ENTRUST_CANNOT_CANCEL = -10
UFT_ERR_UNKNOWN_REQ = -100
UFT_ERR_FUND_ACCOUNT = -101
UFT_ERR_PASSWORD = -102
UFT_ERR_ALREADY_LOGGED_ON = -103
UFT_ERR_PWSSWD_FILE_DESTROY = -104
UFT_ERR_PERMISSION_DENIED = -105
UFT_ERR_USER_UNEXIST = -106
UFT_ERR_GET_ENTRUST_ITEM = -107
UFT_ERR_USER_STATUS = -108
UFT_ERR_NEW_PASSWD_INVALID = -109
UFT_ERR_USER_UNEXIST = -106
UFT_ERR_INVALID_MSG = -111
UFT_ERR_ENTRUST_CEILING = -112
UFT_ERR_SESSION_ID = -113
UFT_ERR_HEDGE_FLAG = -114
UFT_ERR_HEDGE_FUTUACCOUNT = -115
UFT_ERR_ORDER_LIMIT = -116
UFT_API_INIT_ERR_OK = 0
UFT_API_INIT_ERR_CONNFAILED = -1
UFT_API_INIT_ERR_ACCOUNT_FMT = -2
UFT_API_INIT_ERR_MODE = -3
UFT_API_INIT_ERR_SERVER = -4
UFT_API_INIT_ERR_LOGIN_FAILED = -5
UFT_API_INIT_ERR_CHARLENGTH_FAILED = -6
UFT_API_ORDER_ERR_CONN = -1
UFT_API_ORDER_ERR_PARAM_OFFSETFLAG = -2
UFT_API_ORDER_ERR_PARAM_SHFLAG = -3
UFT_API_ORDER_ERR_PARAM_DIR = -4
UFT_API_ORDER_ERR_PARAM_ORDERTYPE = -5
UFT_API_ORDER_ERR_PARAM_DIRECTION = -6


EXCHANGE_CFFEX = 0
EXCHANGE_SHFE = 1
EXCHANGE_DCE = 2
EXCHANGE_SSEOPT = 3
EXCHANGE_CZCE = 4
EXCHANGE_SZSE = 5
EXCHANGE_SSE = 6
EXCHANGE_UNKNOWN = 7
