APIYNFLAG_YES = "Y"
APIYNFLAG_NO = "N"
APILOGLEVEL_ERROR = "1"
APILOGLEVEL_NORMAL = "2"
APILOGLEVEL_DEBUG = "3"
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_SPREAD_C_COMMODITY = "K"
TAPI_COMMODITY_TYPE_EFP = "A"
TAPI_COMMODITY_TYPE_TAS = "B"
TAPI_CALLPUT_FLAG_CALL = "C"
TAPI_CALLPUT_FLAG_PUT = "P"
TAPI_CALLPUT_FLAG_NONE = "N"
TAPI_ACCOUNT_TYPE_PERSON = "P"
TAPI_ACCOUNT_TYPE_ORGANIZATION = "O"
TAPI_ACCOUNT_TYPE_AGENT = "A"
TAPI_ACCOUNT_TYPE_MARGIN = "M"
TAPI_ACCOUNT_TYPE_INTERNAL = "I"
TAPI_ACCOUNT_TYPE_HOUSE = "H"
TAPI_ACCOUNT_TYPE_STOCK = "S"
TAPI_ACCOUNT_TYPE_MARTKET = "R"
TAPI_ACCOUNT_TYPE_GIVEUP = "G"
TAPI_ACCOUNT_TYPE_ERRACCOUNT = "E"
TAPI_RIGHT_ORDER_DEL = 30001
TAPI_RIGHT_ORDER_CHECK = 30002
TAPI_RIGHT_ORDER_MODIFY = 30003
TAPI_RIGHT_ORDER_TRANFER = 30004
TAPI_RIGHT_ORDER_INPUT = 30005
TAPI_RIGHT_ONLY_QRY = 31000
TAPI_RIGHT_ONLY_OPEN = 31001
TAPI_RIGHT_SHFE_QUOTE = 31002
TAPI_RIGHT_ONLY_COVER = 31003
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_STATE_FROZEN = "F"
TAPI_ACCOUNT_FAMILYTYPE_NOMAL = "N"
TAPI_ACCOUNT_FAMILYTYPE_CHILD = "C"
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_SWAP = "9"
TAPI_ORDER_TYPE_COMB = "A"
TAPI_ORDER_TYPE_UNCOMB = "B"
TAPI_ORDER_TYPE_PROFIT_MARKET = "C"
TAPI_ORDER_TYPE_PROFIT_LIMIT = "D"
TAPI_ORDER_TYPE_HEDGE = "E"
TAPI_ORDER_TYPE_OPTION_AUTO_CLOSE = "F"
TAPI_ORDER_TYPE_FUTURE_AUTO_CLOSE = "G"
TAPI_ORDER_TYPE_MARKET_POSITION_KEEP = "H"
TAPI_ORDER_TYPE_OPTION_AUTOEXEC_ABAND = "I"
TAPI_ORDER_TYPE_OTC = "K"
TAPI_ORDER_TYPE_ICEBERG = "Z"
TAPI_ORDER_TYPE_GHOST = "Y"
TAPI_ORDER_TYPE_HKEX_AUCTION = "X"
TAPI_ORDER_TYPE_LOCK = "W"
TAPI_ORDER_TYPE_UNLOCK = "V"
TAPI_ORDER_TYPE_ENHANCE = "U"
TAPI_ORDER_TYPE_SPECIAL = "T"
TAPI_ORDER_TYPE_LIMIT_AUCTION = "S"
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_SOURCE_ESUNNY_API = "A"
TAPI_ORDER_SOURCE_ESV8CLIENT = "B"
TAPI_ORDER_SOURCE_EPOLESTAR = "F"
TAPI_ORDER_SOURCE_ESTAR = "D"
TAPI_ORDER_SOURCE_DCEAFTEREX = "E"
TAPI_ORDER_SOURCE_COMPLIANCE = "C"
TAPI_ORDER_SOURCE_OPTIONHEDGE = "I"
TAPI_ORDER_SOURCE_FUTUREHEDGE = "J"
TAPI_ORDER_SOURCE_OPTIONEXCE = "K"
TAPI_ORDER_SOURCE_ESUNNY_API_UDP = "G"
TAPI_ORDER_SOURCE_ESV85CLIENT = "L"
TAPI_ORDER_SOURCE_ESV95CLIENT = "M"
TAPI_ORDER_SOURCE_EPOLECLOUD = "N"
TAPI_ORDER_SOURCE_ESQUANT = "O"
TAPI_ORDER_SOURCE_BLOOMBERG = "Z"
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_SIDE_ALL = "A"
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_HEDGEFLAG_M = "M"
TAPI_HEDGEFLAG_I = "I"
TAPI_HEDGEFLAG_C = "C"
TAPI_HEDGEFLAG_R = "R"
TAPI_HEDGEFLAG_S = "S"
TAPI_HEDGEFLAG_F = "F"
TAPI_HEDGEFLAG_Z = "Z"
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_LEFTCANCELED = "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_ORDER_STATE_SYSTEMDELETED = "H"
TAPI_ORDER_STATE_CHECKING = "I"
TAPI_ORDER_STATE_CLOSECANCELED = "J"
TAPI_CALCULATE_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_CALCULATE_MODE_ABSOLUTE = "7"
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_MATCH_SOURCE_ESV8CLIENT = "B"
TAPI_MATCH_SOURCE_EPOLESTAR = "F"
TAPI_MATCH_SOURCE_ESTAR = "D"
TAPI_MATCH_SOURCE_DCEAFTEREX = "E"
TAPI_MATCH_SOURCE_COMPLIANCE = "C"
TAPI_MATCH_SOURCE_OPTIONHEDGE = "I"
TAPI_MATCH_SOURCE_FUTUREHEDGE = "J"
TAPI_MATCH_SOURCE_OPTIONEXCE = "K"
TAPI_MATCH_SOURCE_BLOOMBERG = "Z"
TAPI_MATCH_SOURCE_GIVEUP = "Y"
TAPI_MATCH_SOURCE_EXERCISE = "X"
TAPI_MATCH_SOURCE_TAKEUP = "W"
TAPI_MATCH_SOURCE_INPUT_DELETE = "#"
TAPI_MATCH_SOURCE_ERRORADJUST = "V"
TAPI_MATCH_SOURCE_BROKER_ETRADER = "U"
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"
TAPI_LWFlag_L = "L"
TAPI_LWFlag_W = "W"
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_DELIVERY_MODE_TAS = "T"
TAPI_DELIVERY_MODE_OPTIONHEDGE = "I"
TAPI_DELIVERY_MODE_FUTUREHEDGE = "J"
TAPI_CONTRACT_TYPE_TRADEQUOTE = "1"
TAPI_CONTRACT_TYPE_QUOTE = "2"
TAPI_ISADD_ONE_YES = "Y"
TAPI_ISADD_ONE_NO = "N"
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_MARKET_LEVEL_0 = 0
TAPI_MARKET_LEVEL_1 = 1
TAPI_MARKET_LEVEL_5 = 5
TAPI_MARKET_LEVEL_10 = 10
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_SYSTEM_TYPE_ESUNNY = 1
TAPI_SYSTEM_TYPE_IESUNNY = 2
TAPI_SYSTEM_TYPE_CELLPHONE = 3
TAPI_SYSTEM_TYPE_ETF = 4
TAPI_SYSTEM_TYPE_STOCK = 5
TAPI_LOGINTYPE_NORMAL = 1
TAPI_LOGINTYPE_GMSSL = 2
TAPI_LOGINTYPE_OPENSSL = 3
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_Msg_QRYTYPE_ALL = "A"
TAPI_Msg_QRYTYPE_VALID = "Y"
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_CASHINOUT_MODE_AUTOADJUST = "7"
TAPI_CASHINOUT_MODE_STOCKADJSUT = "8"
TAPI_BILL_DATE = "D"
TAPI_BILL_MONTH = "M"
TAPI_BILL_FILE_TXT = "T"
TAPI_BILL_FILE_PDF = "F"
TAPI_AUTHTYPE_DIRECT = "1"
TAPI_AUTHTYPE_RELAY = "2"
TAPI_SENDTYPE_SMS = "S"
TAPI_SENDTYPE_MAIL = "M"
TAPI_SENDTYPE_WEIXIN = "W"
TAPI_ILOGINTYPE_NORMAL = "N"
TAPI_ILOGINTYPE_TEMPORARY = "T"
TAPI_LOGINTYPE_RESETPASSWORD = "R"
TAPI_LOGINTYPE_UNFREEZE = "U"
TAPI_DEVICETYPE_ANDROID = "0"
TAPI_DEVICETYPE_IOS = "1"
TAPI_STRATEGY_COMBINE = "1"
TAPI_STRATEGY_SPLIT = "2"
TAPI_SPOT_LOCK = "3"
TAPI_SPOT_UNLOCK = "4"
TAPI_OPTION_EXERCISE = "5"
TAPI_OPTION_EXERCISE_COMBINE = "6"
TAPI_STRATEGY_C_BULL = "CNSJC"
TAPI_STRATEGY_P_BEAR = "PXSJC"
TAPI_STRATEGY_P_BULL = "PNSJC"
TAPI_STRATEGY_C_BEAR = "CXSJC"
TAPI_STRATEGY_S_STRADDLE = "KS"
TAPI_STRATEGY_S_STRANGLE = "KKS"
TAPI_STRATEGY_ZBD = "ZBD"
TAPI_STRATEGY_ZXJ = "ZXJ"
TAPI_SettleFlag_AutoSettle = "0"
TAPI_SettleFlagh_Manual = "2"
TAPI_ForceModifyPassword_Yes = "Y"
TAPI_ForceModifyPassword_No = "N"
TAPI_ForceModifyPassword_Reset = "R"
TAPI_ForceModifyPassword_SELFUNFREEZE = "U"
TAPI_CERTIFICATE_TYPE_ONE = "1"
TAPI_CERTIFICATE_TYPE_SIX = "6"
TAPI_CERTIFICATE_TYPE_NINE = "9"
TAPI_CERTIFICATE_TYPE_B = "B"
TAPI_CERTIFICATE_TYPE_R = "R"
TAPI_PASSWORD_TYPE_TRADE = "T"
TAPI_PASSWORD_TYPE_RESET = "R"
TAPI_PASSWORD_TYPE_UNFREEZE = "U"
TAPI_OPERATINGSYS_WINDOWS = "1"
TAPI_OPERATINGSYS_LINUX = "2"
TAPI_PERATINGSYS_MAC_IOS = "3"
TAPI_OPERATINGSYS_PHONE_IOS = "4"
TAPI_OPERATINGSYS_ANDROID = "5"
