APIYNFLAG_YES = "Y"
APIYNFLAG_NO = "N"
APILOGLEVEL_NONE = "N"
APILOGLEVEL_ERROR = "E"
APILOGLEVEL_WARNING = "W"
APILOGLEVEL_DEBUG = "D"
TAPI_COMMODITY_TYPE_NONE = "N"
TAPI_COMMODITY_TYPE_SPOT = "P"
TAPI_COMMODITY_TYPE_FUTURES = "F"
TAPI_COMMODITY_TYPE_OPTION = "O"
TAPI_COMMODITY_TYPE_SPREAD_MONTH = "S"
TAPI_COMMODITY_TYPE_SPREAD_COMMODITY = "M"
TAPI_COMMODITY_TYPE_BUL = "U"
TAPI_COMMODITY_TYPE_BER = "E"
TAPI_COMMODITY_TYPE_STD = "D"
TAPI_COMMODITY_TYPE_STG = "G"
TAPI_COMMODITY_TYPE_PRT = "R"
TAPI_COMMODITY_TYPE_BLT = "L"
TAPI_COMMODITY_TYPE_BRT = "Q"
TAPI_COMMODITY_TYPE_DIRECTFOREX = "X"
TAPI_COMMODITY_TYPE_INDIRECTFOREX = "I"
TAPI_COMMODITY_TYPE_CROSSFOREX = "C"
TAPI_COMMODITY_TYPE_INDEX = "Z"
TAPI_COMMODITY_TYPE_STOCK = "T"
TAPI_COMMODITY_TYPE_SPOT_TRADINGDEFER = "Y"
TAPI_COMMODITY_TYPE_FUTURE_LOCK = "J"
TAPI_COMMODITY_TYPE_EFP = "A"
TAPI_CALLPUT_FLAG_CALL = "C"
TAPI_CALLPUT_FLAG_PUT = "P"
TAPI_CALLPUT_FLAG_NONE = "N"
APIYNFLAG_YES = "Y"
APIYNFLAG_NO = "N"
APIPASSWORD_TRADE = "T"
APIPASSWORD_PHONE = "P"
APILOGLEVEL_NONE = "N"
APILOGLEVEL_ERROR = "E"
APILOGLEVEL_WARNING = "W"
APILOGLEVEL_DEBUG = "D"
TAPI_OPTION_TYPE_AMERICAN = "A"
TAPI_OPTION_TYPE_AMERICAN2 = "B"
TAPI_OPTION_TYPE_EUROPEAN = "E"
TAPI_OPTION_TYPE_EUROPEAN2 = "F"
TAPI_COMMODITY_TYPE_NONE = "N"
TAPI_COMMODITY_TYPE_SPOT = "P"
TAPI_COMMODITY_TYPE_FUTURES = "F"
TAPI_COMMODITY_TYPE_OPTION = "O"
TAPI_COMMODITY_TYPE_SPREAD_MONTH = "S"
TAPI_COMMODITY_TYPE_SPREAD_COMMODITY = "M"
TAPI_COMMODITY_TYPE_BUL = "U"
TAPI_COMMODITY_TYPE_BER = "E"
TAPI_COMMODITY_TYPE_STD = "D"
TAPI_COMMODITY_TYPE_STG = "G"
TAPI_COMMODITY_TYPE_PRT = "R"
TAPI_COMMODITY_TYPE_DIRECTFOREX = "X"
TAPI_COMMODITY_TYPE_INDIRECTFOREX = "I"
TAPI_COMMODITY_TYPE_CROSSFOREX = "C"
TAPI_COMMODITY_TYPE_INDEX = "Z"
TAPI_COMMODITY_TYPE_STOCK = "T"
TAPI_CALLPUT_FLAG_CALL = "C"
TAPI_CALLPUT_FLAG_PUT = "P"
TAPI_CALLPUT_FLAG_NONE = "N"
TAPIERROR_SUCCEED = 0
TAPIERROR_ConnectFail = -1
TAPIERROR_LinkAuthFail = -2
TAPIERROR_HostUnavailable = -3
TAPIERROR_SendDataError = -4
TAPIERROR_TestIDError = -5
TAPIERROR_NotReadyTestNetwork = -6
TAPIERROR_CurTestNotOver = -7
TAPIERROR_NOFrontAvailable = -8
TAPIERROR_DataPathAvaiable = -9
TAPIERROR_RepeatLogin = -10
TAPIERROR_InnerError = -11
TAPIERROR_LastReqNotFinish = -12
TAPIERROR_InputValueError = -13
TAPIERROR_AuthCode_Invalid = -14
TAPIERROR_AuthCode_Expired = -15
TAPIERROR_AuthCode_TypeNotMatch = -16
TAPIERROR_API_NotReady = -17
TAPIERROR_UDP_LISTEN_FAILED = -18
TAPIERROR_UDP_LISTENING = -19
TAPIERROR_NotImplemented = -20
TAPIERROR_CallOneTimeOnly = -21
TAPIERROR_Frequently = -22
TAPIERROR_INPUTERROR_NULL = -10000
TAPIERROR_INPUTERROR_TAPIYNFLAG = -10001
TAPIERROR_INPUTERROR_TAPILOGLEVEL = -10002
TAPIERROR_INPUTERROR_TAPICommodityType = -10003
TAPIERROR_INPUTERROR_TAPICallOrPutFlagType = -10004
TAPIERROR_INPUTERROR_TAPIAccountType = -12001
TAPIERROR_INPUTERROR_TAPIAccountState = -12003
TAPIERROR_INPUTERROR_TAPIAccountFamilyType = -12004
TAPIERROR_INPUTERROR_TAPIOrderTypeType = -12005
TAPIERROR_INPUTERROR_TAPIOrderSourceType = -12006
TAPIERROR_INPUTERROR_TAPITimeInForceType = -12007
TAPIERROR_INPUTERROR_TAPISideType = -12008
TAPIERROR_INPUTERROR_TAPIPositionEffectType = -12009
TAPIERROR_INPUTERROR_TAPIHedgeFlagType = -12010
TAPIERROR_INPUTERROR_TAPIOrderStateType = -12011
TAPIERROR_INPUTERROR_TAPICalculateModeType = -12012
TAPIERROR_INPUTERROR_TAPIMatchSourceType = -12013
TAPIERROR_INPUTERROR_TAPIOpenCloseModeType = -12014
TAPIERROR_INPUTERROR_TAPIFutureAlgType = -12015
TAPIERROR_INPUTERROR_TAPIOptionAlgType = -12016
TAPIERROR_INPUTERROR_TAPIBankAccountLWFlagType = -12017
TAPIERROR_INPUTERROR_TAPIMarginCalculateModeType = -12021
TAPIERROR_INPUTERROR_TAPIOptionMarginCalculateModeType = -12022
TAPIERROR_INPUTERROR_TAPICmbDirectType = -12023
TAPIERROR_INPUTERROR_TAPIDeliveryModeType = -12024
TAPIERROR_INPUTERROR_TAPIContractTypeType = -12025
TAPIERROR_INPUTERROR_TAPITacticsTypeType = -12035
TAPIERROR_INPUTERROR_TAPIORDERACT = -12036
TAPIERROR_INPUTERROR_TAPITriggerConditionType = -12041
TAPIERROR_INPUTERROR_TAPITriggerPriceTypeType = -12042
TAPIERROR_INPUTERROR_TAPITradingStateType = -12043
TAPIERROR_INPUTERROR_TAPIMarketLevelType = -12044
TAPIERROR_INPUTERROR_TAPIOrderQryTypeType = -12045
TAPIERROR_DISCONNECT_CLOSE_INIT = 1
TAPIERROR_DISCONNECT_CLOSE_PASS = 2
TAPIERROR_DISCONNECT_READ_ERROR = 3
TAPIERROR_DISCONNECT_WRITE_ERROR = 4
TAPIERROR_DISCONNECT_BUF_FULL = 5
TAPIERROR_DISCONNECT_IOCP_ERROR = 6
TAPIERROR_DISCONNECT_PARSE_ERROR = 7
TAPIERROR_DISCONNECT_CONNECT_TIMEOUT = 8
TAPIERROR_DISCONNECT_INIT_ERROR = 9
TAPIERROR_DISCONNECT_HAS_CONNECTED = 10
TAPIERROR_DISCONNECT_HAS_EXIT = 11
TAPIERROR_DISCONNECT_TRY_LATER = 12
TAPIERROR_DISCONNECT_HEARTBEAT_FAILED = 13
TAPIERROR_LOGIN = 10001
TAPIERROR_LOGIN_USER = 10002
TAPIERROR_LOGIN_DDA = 10003
TAPIERROR_LOGIN_LICENSE = 10004
TAPIERROR_LOGIN_MODULE = 10005
TAPIERROR_LOGIN_FORCE = 10006
TAPIERROR_LOGIN_STATE = 10007
TAPIERROR_LOGIN_PASS = 10008
TAPIERROR_LOGIN_RIGHT = 10009
TAPIERROR_LOGIN_COUNT = 10010
TAPIERROR_LOGIN_NOTIN_SERVERFLAGUSRES = 10011
TAPIERROR_LOGIN_USER_EXPIRED = 10012
TAPIERROR_LOGIN_NO_ACCOUNT = 10013
TAPIERROR_LOGIN_NO_JGT = 10014
TAPIERROR_LOGIN_ERROR_TIMES = 10015
TAPIERROR_LOGIN_ERROR_AUTHTYPE = 10016
TAPIERROR_LOGIN_ERROR_AUTHEXPIRED = 10017
TAPIERROR_LOGIN_ERROR_PASSWDEXPIRED = 10018
TAPIERROR_USERINFO_QRY = 10101
TAPIERROR_USERALLRIGHT_QRY = 11001
TAPIERROR_USERALLACCOUNT_QRY = 11501
TAPIERROR_USERPASSWORD_MOD = 11701
TAPIERROR_USERPASSWORD_MOD_SOURCE = 11702
TAPIERROR_USERPASSWORD_MOD_SAME = 11703
TAPIERROR_USERPASSWORD_MOD_COMPLEXITY = 11704
TAPIERROR_ACCOUNTINFO_QRY = 20201
TAPIERROR_TRADENO_QRY = 20701
TAPIERROR_CONTRACTINFO_QRY = 22801
TAPIERROR_SPECIALOPTIONFUTURE_QRY = 22901
TAPIERROR_COMMODITYORDERTYPE_QRY = 25501
TAPIERROR_ORDERTIMEINFORCE_QRY = 25601
TAPIERROR_USER_ORDER_FREQUENCE_QRY = 28901
TAPIERROR_ORDERINSERT_ACCOUNT = 60001
TAPIERROR_ORDERINSERT_ACCOUNT_STATE = 60002
TAPIERROR_ORDERINSERT_SIDE_TRADE = 60003
TAPIERROR_ORDERINSERT_OPTIONS_TRADE = 60004
TAPIERROR_ORDERINSERT_COMMODITY_TRADE = 60005
TAPIERROR_ORDERINSERT_OPEN_RIGHT = 60006
TAPIERROR_ORDERINSERT_RISK_CHECK = 60007
TAPIERROR_ORDERINSERT_CONTRACT = 60011
TAPIERROR_ORDERINSERT_TRADEROUTE = 60021
TAPIERROR_ORDERINSERT_POSITIONMAX = 60022
TAPIERROR_ORDER_NOTRADE = 60023
TAPIERROR_ORDER_CLOSE = 60024
TAPIERROR_ORDERINSERT_NOTENOUGHFUND = 60031
TAPIERROR_ORDERINSERT_ORDERTYPE = 60032
TAPIERROR_ORDERINSERT_TIMEINFORCE = 60033
TAPIERROR_ORDERINSERT_NO_TACTICS = 60034
TAPIERROR_ORDERINSERT_POSITION_CANNOT_CLOSE = 60035
TAPIERROR_ORDERINSERT_AUTOCHECK_FAIL = 60036
TAPIERROR_ORDERINSERT_LME_NOTREADY = 60037
TAPIERROR_ORDERINSERT_CLOSEMODE = 60038
TAPIERROR_ORDERINSERT_PARENTNOTENOUGHFUND = 60039
TAPIERROR_SWAP_CONTRACT = 60040
TAPIERROR_USERNO_NOTHAS_ACCOUNT = 60051
TAPIERROR_UPPERCHANNEL_BROKEN = 60052
TAPIERROR_UPPERCHANNEL_NOT_EXIST = 60053
TAPIERROR_ORDERDELETE_NOT_SYSNO = 60061
TAPIERROR_ORDERDELETE_NOT_STATE = 60062
TAPIERROR_ORDERACTIVE_NOT_STATE = 60063
TAPIERROR_ORDERCHECK_NOT_STATE = 60071
TAPIERROR_ORDERCHECK_FAIL = 60072
TAPIERROR_ORDERMODIFY_NOT_STATE = 60081
TAPIERROR_ORDERMODIFY_BACK_INPUT = 60082
TAPIERROR_ORDERINSERT_FEE = 60091
TAPIERROR_ORDERINSERT_MARGIN = 60092
TAPIERROR_ORDER_NO_PERMIT = 60100
TAPIERROR_RSPQUOTE_NO_PERMIT = 60101
TAPIERROR_RSPQUOTE_CHILD_NO_PERMIT = 60102
TAPIERROR_TRADENO_NOT_FIND = 60103
TAPIERROR_ORDER_NO_CLOSE = 60104
TAPIERROR_QRY_QUOTE_NO_PERMIT = 60105
TAPIERROR_EXPIREDATE_NO_PERMIT = 60106
TAPIERROR_CMB_NO_PERMIT = 60107
TAPIERROR_ORDERSERVER_NO_PERMIT = 60108
TAPIERROR_POSITION_CANNOT_EXEC_OR_ABANDON = 60109
TAPIERROR_ORDERCHECK_NO_PERMIT = 60110
TAPIERROR_ORDERMAXOPENVOL_NO_PERMIT = 60111
TAPIERROR_ORDER_QTY_NO_PERMIT = 60115
TAPIERROR_ORDER_APPLY_NO_PERMIT = 60117
TAPIERROR_ORDER_FREQ_OVERRUN = 60118
TAPIERROR_COMB_NO_SIDEORHEDGE = 60119
TAPIERROR_ORDER_FREQUENCY = 61001
TAPIERROR_ORDER_QUERYING = 61002
TAPIERROR_SUBSCRIBEQUOTE_MAX = 72001
TAPIERROR_SUBSCRIBEQUOTE_EXCHANGE_MAX = 72002
TAPIERROR_SUBSCRIBEQUOTE_NO_RIGHT = 72101
TAPIERROR_SUBSCRIBEQUOTE_NO_EXCHANGE_RIGHT = 72102
TAPIERROR_SUBSCRIBEQUOTE_COMMODITY_NOT_EXIST = 72103
TAPIERROR_SUBSCRIBEQUOTE_CONTRACT_MAY_NOT_EXIST = 72104
TAPIERROR_QUOTEFRONT_UNKNOWN_PROTOCOL = 83001
TAPIERROR_LOGIN = 10001
TAPIERROR_LOGIN_USER = 10002
TAPIERROR_LOGIN_DDA = 10003
TAPIERROR_LOGIN_LICENSE = 10004
TAPIERROR_LOGIN_MODULE = 10005
TAPIERROR_LOGIN_FORCE = 10006
TAPIERROR_LOGIN_STATE = 10007
TAPIERROR_LOGIN_PASS = 10008
TAPIERROR_LOGIN_RIGHT = 10009
TAPIERROR_LOGIN_COUNT = 10010
TAPIERROR_LOGIN_NOTIN_SERVERFLAGUSRES = 10011
TAPIERROR_LOGIN_FREEZE = 10012
TAPIERROR_LOGIN_TOFREEZE = 10013
TAPIERROR_LOGIN_ACCOUNTSTATE = 10014
TAPIERROR_LOGIN_SECCERTIFI = 10015
TAPIERROR_LOGIN_NOSECONDSET = 10016
TAPIERROR_LOGIN_NOTURSTHOST = 10017
TAPITAPIERROR_SECONDCERTIFICATION_FAIL = 14001
TAPITAPIERROR_SECONDCERTIFICATION_TIMEOVER = 14002
TAPIERROR_CONN_DATABASE = 11000
TAPIERROR_OPER_DATABASE = 11001
TAPIERROR_NEED_ONETOONE = 11002
TAPIERROR_EXIST_RELATEINFO = 11003
TAPIERROR_EXIST_RELATEINFOOFGROUP = 11004
TAPIERROR_USERPASSWORD_MOD_SOURCE = 12001
TAPIERROR_USERPASSWORD_MOD_SAME = 12002
TAPIERROR_USERPASSWORD_MOD_COMPLEXITY = 12003
TAPIERROR_CURRENCY_ONLY_ONEBASE = 13001
TAPIERROR_CURRENCY_ONLY_USDHKD = 13002
TAPIERROR_ORDERINSERT_ACCOUNT = 60001
TAPIERROR_ORDERINSERT_ACCOUNT_STATE = 60002
TAPIERROR_ORDERINSERT_TRADECENT_ERROR = 60003
TAPIERROR_ORDERINSERT_CONTRACT = 60011
TAPIERROR_ORDERINSERT_LME_NOTREADY = 60012
TAPIERROR_ORDERINSERT_ERROR_ORDER_TYPE = 60013
TAPIERROR_ORDERINSERT_READY_TYPE_ERROR = 60014
TAPIERROR_ORDERINSERT_ORDER_TYPE_ERROR = 60015
TAPIERROR_ORDER_NOTRADE_ACCOUNT = 60021
TAPIERROR_ORDER_NOTRADE_COM_GROUP = 60022
TAPIERROR_ORDER_NOTRADE_ACC_CONTRACT = 60023
TAPIERROR_ORDER_NOTRADE_SYSTEM = 60024
TAPIERROR_ORDER_CLOSE_ACCOUNT = 60025
TAPIERROR_ORDER_CLOSE_ACC_CONTRACT = 60026
TAPIERROR_ORDER_CLOSE_SYSTEM = 60027
TAPIERROR_ORDER_CLOSE_DAYS = 60028
TAPIERROR_ORDER_NOTRADE_RISK = 60029
TAPIERROR_ORDER_CLOSE_RISK = 60030
TAPIERROR_ORDERINSERT_POSITIONMAX = 60031
TAPIERROR_ORDERINSERT_ONCEMAX = 60032
TAPIERROR_ORDERINSERT_TRADEROUTE = 60033
TAPIERROR_ORDER_IN_MOD_PRICE_ERROR = 60034
TAPIERROR_ORDER_IN_GIVEUP_POS_MAX = 60035
TAPIERROR_UPPERCHANNEL_NOT_LOGIN = 60041
TAPIERROR_UPPERCHANNEL_NOT_FOUND = 60042
TAPIERROR_ORDERINSERT_NOTENOUGHFUND = 60051
TAPIERROR_ORDERINSERT_FEE = 60052
TAPIERROR_ORDERINSERT_MARGIN = 60053
TAPIERROR_ORDERINSERT_BASENOFUND = 60054
TAPIERROR_ORDERINSERT_MARGINAMOUNT = 60055
TAPIERROR_ORDERINSERT_OPENRATIO = 60056
TAPIERROR_ORDERINSERT_GROUP_OPENRATIO = 60057
TAPIERROR_ORDERINSERT_RISKARRAY = 60058
TAPIERROR_ORDERDELETE_NOT_SYSNO = 60061
TAPIERROR_ORDERDELETE_NOT_STATE = 60062
TAPIERROR_ORDERDELETE_NO_INPUT = 60063
TAPIERROR_ORDERMODIFY_NOT_STATE = 60071
TAPIERROR_ORDERMODIFY_BACK_INPUT = 60072
TAPIERROR_ORDERMODIFY_RISK_ORDER = 60073
TAPIERROR_ORDERMODIFY_ERROR_QTY = 60074
TAPIERROR_ORDERMODIFY_ERROR_READY = 60075
TAPIERROR_ORDERINPUT_CANNOTMOVE = 60081
TAPIERROR_ORDERINPUT_REPEAT = 60091
TAPIERROR_CONTRACT_QUOTE = 60101
TAPIERROR_UPPER_ONCEMAX = 60111
TAPIERROR_UPPER_POSITIONMAX = 60112
TAPIERROR_ORDERINSERT_CLOSEMODE = 60121
TAPIERROR_CLOSE_ORDER = 60122
TAPIERROR_CLOSE_MATCH = 60123
TAPIERROR_MOD_DEL_NO_ORDER = 60131
TAPIERROR_MOD_DEL_GATEWAY_DISCON = 60132
TAPIERROR_MATCHINPUT_REPEAT = 60141
TAPIERROR_MATCHINPUT_NO_ORDER = 60142
TAPIERROR_MATCHINPUT_NO_CONTRACT = 60143
TAPIERROR_MATCHINPUT_PARM_ERROR = 60144
TAPIERROR_MATCHINPUT_OSTATE_ERROR = 60145
TAPIERROR_MATCHREMOVE_NO_MATCH = 60151
TAPIERROR_MATCHREMOVE_STATE_ERROR = 60152
TAPIERROR_ORDERINPUT_STATE_ERROR = 60161
TAPIERROR_ORDERINPUT_MOD_ERROR = 60162
TAPIERROR_ORDERREMOVE_ERROR = 60163
TAPIERROR_ORDERINPUT_MOD_STATE_ERROR = 60164
TAPIERROR_ORDEREXCHANGE_STATE_ERROR = 60165
TAPIERROR_ORDERREMOVE_NOT_ERROR = 60166
TAPIERROR_ORDERMARKET_DELETE_NOTFOUND = 60171
TAPIERROR_ORDERMARKET_DEL_ACCOUNT_NE = 60172
TAPIERROR_ORDERMARKET_DEL_COMMODITY_NE = 60173
TAPIERROR_ORDERMARKET_DEL_CONTRACT_NE = 60174
TAPIERROR_ORDERMARKET_DEL_SIDE_EQ = 60175
TAPIERROR_ORDERMARKET_DEL_SIDE_ERROR = 60176
TAPIERROR_ORDERMARKET_OTHER_SIDE_ERROR = 60177
TAPIERROR_ORDERACTIVATE_NOTFOUND_ERROR = 60181
TAPIERROR_ORDERACTIVATE_STATE_ERROR = 60182
TAPIERROR_GW_NOT_READY = 80001
TAPIERROR_GW_INVALID_COMMODITY = 80002
TAPIERROR_GW_INVALID_CONTRACT = 80003
TAPIERROR_GW_INVALID_FIELD = 80004
TAPIERROR_GW_INVALID_PRICE = 80005
TAPIERROR_GW_INVALID_VOLUME = 80006
TAPIERROR_GW_INVALID_TYPE = 80007
TAPIERROR_GW_INVALID_MODE = 80008
TAPIERROR_GW_ORDER_NOT_EXIST = 80009
TAPIERROR_GW_SEND_FAIL = 80010
TAPIERROR_GW_REJ_BYUPPER = 80011
TAPIERROR_TRADEFRONT_MODULETYPEERR = 90001
TAPIERROR_TRADEFRONT_TOOMANYDATA = 90002
TAPIERROR_TRADEFRONT_NODATA = 90003
TAPIERROT_TRADEFRONT_NOUSER = 90004
TAPIERROR_TRADEFRONT_DISCONNECT_TRADE = 90011
TAPIERROR_TRADEFRONT_DISCONNECT_MANAGE = 90012
TAPIERROR_TRADEFRONT_ACCOUNT = 90021
TAPIERROR_TRADEFRONT_ORDER = 90022
TAPIERROR_TRADEFRONT_FREQUENCY = 90023
TAPIERROR_TRADEFRONT_RUFUSE = 90024
TAPIERROR_TRADEFRONT_SELFMATCH = 90025
TAPIERROR_SUCCEED = 0
TAPIERROR_ConnectFail = -1
TAPIERROR_LinkAuthFail = -2
TAPIERROR_HostUnavailable = -3
TAPIERROR_SendDataError = -4
TAPIERROR_TestIDError = -5
TAPIERROR_NotReadyTestNetwork = -6
TAPIERROR_CurTestNotOver = -7
TAPIERROR_NOFrontAvailable = -8
TAPIERROR_DataPathAvaiable = -9
TAPIERROR_RepeatLogin = -10
TAPIERROR_InnerError = -11
TAPIERROR_LastReqNotFinish = -12
TAPIERROR_InputValueError = -13
TAPIERROR_AuthCode_Invalid = -14
TAPIERROR_AuthCode_Expired = -15
TAPIERROR_AuthCode_TypeNotMatch = -16
TAPIERROR_API_NotReady = -17
TAPIERROR_UDP_LISTEN_FAILED = -18
TAPIERROR_UDP_LISTENING = -19
TAPIERROR_NotImplemented = -20
TAPIERROR_CallOneTimeOnly = -21
TAPIERROR_ORDER_FREQUENCY = -22
TAPIERROR_RENTQRY_TOOFAST = -23
TAPIERROR_CALL_NOCONDITION = -24
TAPIERROR_ORDER_NOTFOUND = -25
TAPIERROR_LOGPATH_EMPTY = -26
TAPIERROR_LOGPATH_FAILOPEN = -27
TAPIERROR_RIGHT_TRADER = -28
TAPIERROR_RIGHT_ORDERINPUT = -29
TAPIERROR_RIGHT_LOCALOPERATION = -30
TAPIERROR_RIGHT_ORDERTRANSFER = -31
TAPIERROR_FILLINPUT_SYSTEMNO = -32
TAPIERROR_FILLREMOVE_MATCHNO = -33
TAPIERROR_FILLREQMOVE_NOFUND = -34
TAPIERROR_LOCALMODIFY_ACCOUNT = -35
TAPIERROR_LOCALTRANSFER_ACCOUNT = -36
TAPIERROR_INPUTERROR_PHONE = -37
TAPIERROR_ERROR_CONTACT = -38
TAPIERROR_ERROR_REJESTVERTIFICATE = -39
TAPIERROR_RIGHT_SETPASSWORD = -40
TAPIERROR_RISK_OPERERROR = -41
TAPIERROR_ORDER_MODACCOUNT = -42
TAPIERROR_INPUTERROR_NULL = -10000
TAPIERROR_INPUTERROR_TAPIYNFLAG = -10001
TAPIERROR_INPUTERROR_TAPILOGLEVEL = -10002
TAPIERROR_INPUTERROR_TAPICommodityType = -10003
TAPIERROR_INPUTERROR_TAPICallOrPutFlagType = -10004
TAPIERROR_INPUTERROR_TAPIBucketDateFlag = -11001
TAPIERROR_INPUTERROR_TAPIHisQuoteType = -11002
TAPIERROR_INPUTERROR_TAPIAccountType = -12001
TAPIERROR_INPUTERROR_TAPIUserTypeType = -12002
TAPIERROR_INPUTERROR_TAPIAccountState = -12003
TAPIERROR_INPUTERROR_TAPIAccountFamilyType = -12004
TAPIERROR_INPUTERROR_TAPIOrderTypeType = -12005
TAPIERROR_INPUTERROR_TAPIOrderSourceType = -12006
TAPIERROR_INPUTERROR_TAPITimeInForceType = -12007
TAPIERROR_INPUTERROR_TAPISideType = -12008
TAPIERROR_INPUTERROR_TAPIPositionEffectType = -12009
TAPIERROR_INPUTERROR_TAPIHedgeFlagType = -12010
TAPIERROR_INPUTERROR_TAPIOrderStateType = -12011
TAPIERROR_INPUTERROR_TAPICalculateModeType = -12012
TAPIERROR_INPUTERROR_TAPIMatchSourceType = -12013
TAPIERROR_INPUTERROR_TAPIOpenCloseModeType = -12014
TAPIERROR_INPUTERROR_TAPIFutureAlgType = -12015
TAPIERROR_INPUTERROR_TAPIOptionAlgType = -12016
TAPIERROR_INPUTERROR_TAPIBankAccountLWFlagType = -12017
TAPIERROR_INPUTERROR_TAPIBankAccountStateType = -12018
TAPIERROR_INPUTERROR_TAPIBankAccountSwapStateType = -12019
TAPIERROR_INPUTERROR_TAPIBankAccountTransferStateType = -12020
TAPIERROR_INPUTERROR_TAPIMarginCalculateModeType = -12021
TAPIERROR_INPUTERROR_TAPIOptionMarginCalculateModeType = -12022
TAPIERROR_INPUTERROR_TAPICmbDirectType = -12023
TAPIERROR_INPUTERROR_TAPIDeliveryModeType = -12024
TAPIERROR_INPUTERROR_TAPIContractTypeType = -12025
TAPIERROR_INPUTERROR_TAPIPartyTypeType = -12026
TAPIERROR_INPUTERROR_TAPIPartyCertificateTypeType = -12027
TAPIERROR_INPUTERROR_TAPIMsgReceiverType = -12028
TAPIERROR_INPUTERROR_TAPIMsgTypeType = -12029
TAPIERROR_INPUTERROR_TAPIMsgLevelType = -12030
TAPIERROR_INPUTERROR_TAPITransferDirectType = -12031
TAPIERROR_INPUTERROR_TAPITransferStateType = -12032
TAPIERROR_INPUTERROR_TAPITransferTypeType = -12033
TAPIERROR_INPUTERROR_TAPITransferDeviceIDType = -12034
TAPIERROR_INPUTERROR_TAPITacticsTypeType = -12035
TAPIERROR_INPUTERROR_TAPIORDERACT = -12036
TAPIERROR_INPUTERROR_TAPIBillTypeType = -12037
TAPIERROR_INPUTERROR_TAPIBillFileTypeType = -12038
TAPIERROR_INPUTERROR_TAPIOFFFlagType = -12039
TAPIERROR_INPUTERROR_TAPICashAdjustTypeType = -12040
TAPIERROR_INPUTERROR_TAPITriggerConditionType = -12041
TAPIERROR_INPUTERROR_TAPITriggerPriceTypeType = -12042
TAPIERROR_INPUTERROR_TAPITradingStateType = -12043
TAPIERROR_INPUTERROR_TAPIMarketLevelType = -12044
TAPIERROR_INPUTERROR_TAPIOrderQryTypeType = -12045
TAPIERROR_INPUTERROR_TAPIClientID = -12046
TAPIERROR_INPUTERROR_QryHisQuoteParam = -13001
TAPIERROR_INPUTERROR_TAPIIncludeNAN = -13002
TAPIERROR_INPUTERROR_TAPIPasswordType = -12048
TAPIERROR_DISCONNECT_CLOSE_INIT = 1
TAPIERROR_DISCONNECT_CLOSE_PASS = 2
TAPIERROR_DISCONNECT_READ_ERROR = 3
TAPIERROR_DISCONNECT_WRITE_ERROR = 4
TAPIERROR_DISCONNECT_BUF_FULL = 5
TAPIERROR_DISCONNECT_IOCP_ERROR = 6
TAPIERROR_DISCONNECT_PARSE_ERROR = 7
TAPIERROR_DISCONNECT_CONNECT_TIMEOUT = 8
TAPIERROR_DISCONNECT_INIT_ERROR = 9
TAPIERROR_DISCONNECT_HAS_CONNECTED = 10
TAPIERROR_DISCONNECT_HAS_EXIT = 11
TAPIERROR_DISCONNECT_TRY_LATER = 12
TAPI_ACCOUNT_TYPE_PERSON = "P"
TAPI_ACCOUNT_TYPE_ORGANIZATION = "O"
TAPI_ACCOUNT_TYPE_AGENT = "A"
TAPI_ACCOUNT_TYPE_MARGIN = "M"
TAPI_ACCOUNT_TYPE_HOUSE = "H"
TAPI_ACCOUNT_TYPE_STOCK = "S"
TAPI_RIGHT_ORDER_DEL = 30001
TAPI_RIGHT_ORDER_CHECK = 30002
TAPI_RIGHT_ONLY_QRY = 31000
TAPI_RIGHT_ONLY_OPEN = 31001
TAPI_USERTYPE_CLIENT = 10000
TAPI_USERTYPE_BROKER = 20000
TAPI_USERTYPE_TRADER = 30000
TAPI_USERTYPE_RISK = 40000
TAPI_USERTYPE_MANAGER = 50000
TAPI_USERTYPE_QUOTE = 60000
TAPI_ACCOUNT_STATE_NORMAL = "N"
TAPI_ACCOUNT_STATE_CANCEL = "C"
TAPI_ACCOUNT_STATE_SLEEP = "S"
TAPI_ACCOUNT_TRADING_RIGHT_NORMAL = "0"
TAPI_ACCOUNT_TRADING_RIGHT_NOTRADE = "1"
TAPI_ACCOUNT_TRADING_RIGHT_CLOSE = "2"
TAPI_ORDER_TYPE_MARKET = "1"
TAPI_ORDER_TYPE_LIMIT = "2"
TAPI_ORDER_TYPE_STOP_MARKET = "3"
TAPI_ORDER_TYPE_STOP_LIMIT = "4"
TAPI_ORDER_TYPE_OPT_EXEC = "5"
TAPI_ORDER_TYPE_OPT_ABANDON = "6"
TAPI_ORDER_TYPE_REQQUOT = "7"
TAPI_ORDER_TYPE_RSPQUOT = "8"
TAPI_ORDER_TYPE_ICEBERG = "9"
TAPI_ORDER_TYPE_GHOST = "A"
TAPI_ORDER_TYPE_HKEX_AUCTION = "B"
TAPI_ORDER_TYPE_SWAP = "C"
TAPI_ORDER_SOURCE_SELF_ETRADER = "1"
TAPI_ORDER_SOURCE_PROXY_ETRADER = "2"
TAPI_ORDER_SOURCE_JTRADER = "3"
TAPI_ORDER_SOURCE_MANUAL = "4"
TAPI_ORDER_SOURCE_CARRY = "5"
TAPI_ORDER_SOURCE_PROGRAM = "6"
TAPI_ORDER_SOURCE_DELIVERY = "7"
TAPI_ORDER_SOURCE_ABANDON = "8"
TAPI_ORDER_SOURCE_CHANNEL = "9"
TAPI_ORDER_TIMEINFORCE_GFD = "0"
TAPI_ORDER_TIMEINFORCE_GTC = "1"
TAPI_ORDER_TIMEINFORCE_GTD = "2"
TAPI_ORDER_TIMEINFORCE_FAK = "3"
TAPI_ORDER_TIMEINFORCE_FOK = "4"
TAPI_SIDE_NONE = "N"
TAPI_SIDE_BUY = "B"
TAPI_SIDE_SELL = "S"
TAPI_PositionEffect_NONE = "N"
TAPI_PositionEffect_OPEN = "O"
TAPI_PositionEffect_COVER = "C"
TAPI_PositionEffect_COVER_TODAY = "T"
TAPI_HEDGEFLAG_NONE = "N"
TAPI_HEDGEFLAG_T = "T"
TAPI_HEDGEFLAG_B = "B"
TAPI_HEDGEFLAG_L = "L"
TAPI_ORDER_STATE_SUBMIT = "0"
TAPI_ORDER_STATE_ACCEPT = "1"
TAPI_ORDER_STATE_TRIGGERING = "2"
TAPI_ORDER_STATE_EXCTRIGGERING = "3"
TAPI_ORDER_STATE_QUEUED = "4"
TAPI_ORDER_STATE_PARTFINISHED = "5"
TAPI_ORDER_STATE_FINISHED = "6"
TAPI_ORDER_STATE_CANCELING = "7"
TAPI_ORDER_STATE_MODIFYING = "8"
TAPI_ORDER_STATE_CANCELED = "9"
TAPI_ORDER_STATE_LEFTDELETED = "A"
TAPI_ORDER_STATE_FAIL = "B"
TAPI_ORDER_STATE_DELETED = "C"
TAPI_ORDER_STATE_SUPPENDED = "D"
TAPI_ORDER_STATE_DELETEDFOREXPIRE = "E"
TAPI_ORDER_STATE_EFFECT = "F"
TAPI_ORDER_STATE_APPLY = "G"
TAPI_CALULATE_MODE_COMBINE = "0"
TAPI_CALCULATE_MODE_PERCENTAGE = "1"
TAPI_CALCULATE_MODE_QUOTA = "2"
TAPI_CALCULATE_MODE_CHAPERCENTAGE = "3"
TAPI_CALCULATE_MODE_CHAQUOTA = "4"
TAPI_CALCULATE_MODE_DISCOUNT = "5"
TAPI_MATCH_SOURCE_ALL = "0"
TAPI_MATCH_SOURCE_SELF_ETRADER = "1"
TAPI_MATCH_SOURCE_PROXY_ETRADER = "2"
TAPI_MATCH_SOURCE_JTRADER = "3"
TAPI_MATCH_SOURCE_MANUAL = "4"
TAPI_MATCH_SOURCE_CARRY = "5"
TAPI_MATCH_SOURCE_PROGRAM = "6"
TAPI_MATCH_SOURCE_DELIVERY = "7"
TAPI_MATCH_SOURCE_ABANDON = "8"
TAPI_MATCH_SOURCE_CHANNEL = "9"
TAPI_MATCH_SOURCE_ESUNNY_API = "A"
TAPI_CLOSE_MODE_NONE = "N"
TAPI_CLOSE_MODE_UNFINISHED = "U"
TAPI_CLOSE_MODE_OPENCOVER = "C"
TAPI_CLOSE_MODE_CLOSETODAY = "T"
TAPI_FUTURES_ALG_ZHUBI = "1"
TAPI_FUTURES_ALG_DINGSHI = "2"
TAPI_OPTION_ALG_FUTURES = "1"
TAPI_OPTION_ALG_OPTION = "2"
SENDTYPE_SMS = "S"
SENDTYPE_MAIL = "M"
TAPI_LWFlag_L = "L"
TAPI_LWFlag_W = "W"
TAPI_CASHINOUT_MODE_FEEADJUST = "0"
TAPI_CASHINOUT_MODE_YKADJUST = "1"
TAPI_CASHINOUT_MODE_PLEDGE = "2"
TAPI_CASHINOUT_MODE_INTERESTREVENUE = "3"
TAPI_CASHINOUT_MODE_COLLECTIONCOST = "4"
TAPI_CASHINOUT_MODE_OTHER = "5"
TAPI_CASHINOUT_MODE_COMPANY = "6"
TAPI_DEPOSITCALCULATE_MODE_FEN = "1"
TAPI_DEPOSITCALCULATE_MODE_SUO = "2"
TAPI_CMB_DIRECT_FIRST = "1"
TAPI_CMB_DIRECT_SECOND = "2"
TAPI_DELIVERY_MODE_GOODS = "G"
TAPI_DELIVERY_MODE_CASH = "C"
TAPI_DELIVERY_MODE_EXECUTE = "E"
TAPI_DELIVERY_MODE_ABANDON = "A"
TAPI_DELIVERY_MODE_HKF = "H"
TAPI_CONTRACT_TYPE_TRADEQUOTE = "1"
TAPI_CONTRACT_TYPE_QUOTE = "2"
TAPI_TACTICS_TYPE_NONE = "N"
TAPI_TACTICS_TYPE_READY = "M"
TAPI_TACTICS_TYPE_ATUO = "A"
TAPI_TACTICS_TYPE_CONDITION = "C"
APIORDER_INSERT = "1"
APIORDER_MODIFY = "2"
APIORDER_DELETE = "3"
APIORDER_SUSPEND = "4"
APIORDER_ACTIVATE = "5"
APIORDER_SYSTEM_DELETE = "6"
TAPI_TRIGGER_CONDITION_NONE = "N"
TAPI_TRIGGER_CONDITION_GREAT = "G"
TAPI_TRIGGER_CONDITION_LITTLE = "L"
TAPI_TRIGGER_PRICE_NONE = "N"
TAPI_TRIGGER_PRICE_BUY = "B"
TAPI_TRIGGER_PRICE_SELL = "S"
TAPI_TRIGGER_PRICE_LAST = "L"
TAPI_TRADE_STATE_BID = "1"
TAPI_TRADE_STATE_MATCH = "2"
TAPI_TRADE_STATE_CONTINUOUS = "3"
TAPI_TRADE_STATE_PAUSED = "4"
TAPI_TRADE_STATE_CLOSE = "5"
TAPI_TRADE_STATE_DEALLAST = "6"
TAPI_TRADE_STATE_GWDISCONNECT = "0"
TAPI_TRADE_STATE_UNKNOWN = "N"
TAPI_TRADE_STATE_INITIALIZE = "I"
TAPI_TRADE_STATE_READY = "R"
TAPI_NOTICE_IGNORE_NONE = 0x00000000
TAPI_NOTICE_IGNORE_ALL = 0xFFFFFFFF
TAPI_NOTICE_IGNORE_FUND = 0x00000001
TAPI_NOTICE_IGNORE_ORDER = 0x00000002
TAPI_NOTICE_IGNORE_FILL = 0x00000004
TAPI_NOTICE_IGNORE_POSITION = 0x00000008
TAPI_NOTICE_IGNORE_CLOSE = 0x00000010
TAPI_NOTICE_IGNORE_POSITIONPROFIT = 0x00000020
TAPI_ORDER_QRY_TYPE_ALL = "A"
TAPI_ORDER_QRY_TYPE_UNENDED = "U"
TAPI_MSG_RECEIVER_ACCOUNTNO = "1"
TAPI_MSG_RECEIVER_ACCOUNTGROUPNO = "2"
TAPI_MSG_RECEIVER_ATTRIBUTE = "3"
TAPI_MSG_RECEIVER_USERNO = "4"
TAPI_MSG_LEVEL_NORMAL = "1"
TAPI_MSG_LEVEL_IMPORTANT = "2"
TAPI_MSG_LEVEL_IMERGENCY = "3"
TAPI_Msg_TYPE_MANAGER = "1"
TAPI_Msg_TYPE_RISKCONTROL = "2"
TAPI_BILL_DATE = "D"
TAPI_BILL_MONTH = "M"
TAPI_BILL_FILE_TXT = "T"
TAPI_BILL_FILE_PDF = "F"
SettleFlag_AutoSettle = "0"
SettleFlagh_Manual = "2"
