# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Thoth.Trade.EnumType.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()




DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aThoth.Trade.EnumType.proto\x12\x0bThoth.Trade*\xeb\t\n\x0b\x45TradeMsgID\x12\x19\n\x15KTradeReqType_Unknown\x10\x00\x12\x1c\n\x18KTradeReqType_PlaceOrder\x10\x01\x12\x1d\n\x19KTradeReqType_CancelOrder\x10\x02\x12!\n\x1dKTradeRspType_OrdStatusReport\x10\x03\x12\x1c\n\x18KTradeReqType_ExecReport\x10\x04\x12$\n KTradeReqType_RejectCancelReport\x10\x05\x12\x1f\n\x1bKTradeReqType_AccDepositReq\x10\x15\x12\x1f\n\x1bKTradeReqType_AccDepositAck\x10\x16\x12\"\n\x1eKTradeReqType_TradingAccQryReq\x10\x17\x12\"\n\x1eKTradeReqType_TradingAccQryAck\x10\x18\x12\x13\n\x0fKQueryOrdersReq\x10\x19\x12\x13\n\x0fKQueryOrdersAck\x10\x1a\x12\x13\n\x0fKQueryTradesReq\x10\x1d\x12\x13\n\x0fKQueryTradesAck\x10\x1e\x12\x16\n\x12KQueryPositionsReq\x10\x1f\x12\x16\n\x12KQueryPositionsAck\x10 \x12\x1a\n\x16KQueryHistoryOrdersReq\x10!\x12\x1a\n\x16KQueryHistoryOrdersAck\x10\"\x12\x1a\n\x16KQueryHistoryTradesReq\x10#\x12\x1a\n\x16KQueryHistoryTradesAck\x10$\x12\x1e\n\x1aKTradeReqType_QryHisAccReq\x10%\x12\x1e\n\x1aKTradeReqType_QryHisAccAck\x10&\x12\"\n\x1eKTradeReqType_QryHisDepositReq\x10\'\x12\"\n\x1eKTradeReqType_QryHisDepositAck\x10(\x12&\n\"KTradeReqType_QrySecurityStaticReq\x10)\x12&\n\"KTradeReqType_QrySecurityStaticAck\x10*\x12\x19\n\x15KQueryHisPositionsReq\x10+\x12\x19\n\x15KQueryHisPositionsAck\x10,\x12\x1f\n\x1bKVexchangeMsgID_RegisterReq\x10P\x12\x1f\n\x1bKVexchangeMsgID_RegisterAck\x10Q\x12!\n\x1dKVexchangeMsgID_UnRegisterReq\x10R\x12!\n\x1dKVexchangeMsgID_UnRegisterAck\x10S\x12\x1c\n\x18KVexchangeMsgID_LoginReq\x10T\x12\x1c\n\x18KVexchangeMsgID_LoginAck\x10U\x12\x1d\n\x19KVexchangeMsgID_LogoutReq\x10V\x12\"\n\x1eKVexchangeMsgID_UserInfoQryReq\x10W\x12\"\n\x1eKVexchangeMsgID_UserInfoQryAck\x10X\x12 \n\x1cKVexchangeMsgID_HeartBeatReq\x10\x64\x12 \n\x1cKVexchangeMsgID_HeartBeatAck\x10\x65\x12\"\n\x1eKVexchangeMsgID_SessionControl\x10\x66*\x86\x01\n\x0e\x45SessionStatus\x12\x1a\n\x16KSessionStatus_UnKnown\x10\x00\x12\x1c\n\x18KSessionStatus_Connected\x10\x01\x12\x19\n\x15KSessionStatus_Closed\x10\x02\x12\x1f\n\x1bKSessionStatus_Disconnected\x10\x03*\x81\x01\n\x0c\x45RegisterRet\x12\x18\n\x14KRegisterRet_Unknown\x10\x00\x12\x18\n\x14KRegisterRet_Success\x10\x01\x12\x1b\n\x17KRegisterRet_ReRegister\x10\x02\x12 \n\x1cKRegisterRet_InvalidStrategy\x10\x03*n\n\nEAccStatus\x12\x16\n\x12KAccStatus_Unknown\x10\x00\x12\x15\n\x11KAccStatus_Normal\x10\x01\x12\x19\n\x15KAccStatus_WrittenOff\x10\x02\x12\x16\n\x12KAccStatus_Disable\x10\x03*\xd0\x01\n\x0f\x45\x44\x65positRetCode\x12\x1a\n\x16KDepositReCode_Unknown\x10\x00\x12\x1a\n\x16KDepositReCode_NoError\x10\x01\x12\x1f\n\x1bKDepositReCode_NoEnoughCash\x10\x02\x12!\n\x1dKDepositReCode_CapitalOverrun\x10\x03\x12!\n\x1dKDepositReCode_IllegalAccount\x10\x04\x12\x1e\n\x1aKDepositReCode_IllegalPara\x10\x05*\x80\x01\n\rELoginRetCode\x12\x18\n\x14KLoginReCode_Unknown\x10\x00\x12\x1a\n\x16KLoginReCode_LoginSucc\x10\x01\x12\x1b\n\x17KLoginReCode_UnknownAcc\x10\x02\x12\x1c\n\x18KLoginReCode_AccUnNormal\x10\x03*D\n\rEBusinessType\x12\x19\n\x15KBusinessType_Unknown\x10\x00\x12\x18\n\x14KBusinessType_NORMAL\x10\x01*\xdd\x01\n\nEOrderSide\x12\x1b\n\x17KOrderDirection_Unknown\x10\x00\x12\x17\n\x13KOrderDirection_Buy\x10\x31\x12\x18\n\x14KOrderDirection_Sell\x10\x32\x12\x18\n\x14KOrderDirection_Call\x10\x44\x12\x1c\n\x18KOrderDirection_Callable\x10\x45\x12\"\n\x1eKOrderDirection_FinancingToBuy\x10\x46\x12#\n\x1fKOrderDirection_FinancingToSell\x10G*\xc7\x01\n\x0f\x45PositionEffect\x12\x1b\n\x17KPositionEffect_Unknown\x10\x00\x12\x18\n\x14KPositionEffect_Open\x10\x30\x12\x19\n\x15KPositionEffect_Close\x10\x31\x12\x1e\n\x1aKPositionEffect_ForceClose\x10\x32\x12\x1e\n\x1aKPositionEffect_CloseToday\x10\x33\x12\"\n\x1eKPositionEffect_CloseYesterday\x10\x34*\xd3\x02\n\nEOrderType\x12\x16\n\x12KOrderType_Unknown\x10\x00\x12\x15\n\x11KOrderType_Market\x10\x01\x12\x14\n\x10KOrderType_Limit\x10\x02\x12\x13\n\x0fKOrderType_Stop\x10\x04\x12!\n\x1dKOrderType_Best_5_Then_Cancel\x10\x07\x12 \n\x1cKOrderType_Best_5_Then_Limit\x10\x08\x12$\n KOrderType_Immediately_Or_Cancel\x10\t\x12\x1c\n\x18KOrderType_All_Or_Cancel\x10\n\x12 \n\x1cKOrderType_Market_Then_Limit\x10K\x12\x1c\n\x18KOrderType_Best_Of_Party\x10U\x12\"\n\x1eKOrderType_Best_Of_Conterparty\x10V*\xbc\x03\n\x0c\x45OrderStatus\x12\x18\n\x14KOrderStatus_Unknown\x10\x00\x12\x14\n\x10KOrderStatus_New\x10\x01\x12 \n\x1cKOrderStatus_PartiallyFilled\x10\x02\x12\x17\n\x13KOrderStatus_Filled\x10\x03\x12\x1b\n\x17KOrderStatus_DoneForDay\x10\x04\x12\x19\n\x15KOrderStatus_Canceled\x10\x05\x12\x1e\n\x1aKOrderStatus_PendingCancel\x10\x06\x12\x18\n\x14KOrderStatus_Stopped\x10\x07\x12\x19\n\x15KOrderStatus_Rejected\x10\x08\x12\x1a\n\x16KOrderStatus_Suspended\x10\t\x12\x1b\n\x17KOrderStatus_PendingNew\x10\x41\x12\x1b\n\x17KOrderStatus_Calculated\x10\x42\x12\x18\n\x14KOrderStatus_Expired\x10\x43\x12#\n\x1fKOrderStatus_AcceptedForBidding\x10\x44\x12\x1f\n\x1bKOrderStatus_PendingReplace\x10\x45*\xcc\x03\n\tEExecType\x12\x15\n\x11KExecType_Unknown\x10\x00\x12\x11\n\rKExecType_New\x10\x01\x12\x18\n\x14KExecType_DoneForDay\x10\x03\x12\x16\n\x12KExecType_Canceled\x10\x04\x12\x16\n\x12KExecType_Replaced\x10\x05\x12\x1b\n\x17KExecType_PendingCancel\x10\x06\x12\x15\n\x11KExecType_Stopped\x10\x07\x12\x16\n\x12KExecType_Rejected\x10\x08\x12\x17\n\x13KExecType_Suspended\x10\t\x12\x18\n\x14KExecType_PendingNew\x10\x41\x12\x18\n\x14KExecType_Calculated\x10\x42\x12\x15\n\x11KExecType_Expired\x10\x43\x12\x16\n\x12KExecType_Restated\x10\x44\x12\x1c\n\x18KExecType_PendingReplace\x10\x45\x12\x13\n\x0fKExecType_Trade\x10\x46\x12\x1a\n\x16KExecType_TradeCorrect\x10G\x12\x19\n\x15KExecType_TradeCancel\x10H\x12\x19\n\x15KExecType_OrderStatus\x10I*\xd5\x01\n\x10\x45\x43xRejReasonType\x12\"\n\x1eKCxRejReasonType_TooLateCancel\x10\x00\x12 \n\x1cKCxRejReasonType_UnknowOrder\x10\x01\x12\x1b\n\x17KCxRejReasonType_Broker\x10\x02\x12\"\n\x1eKCxRejReasonType_PendingCancel\x10\x03\x12\x1e\n\x1aKCxRejReasonType_Duplicate\x10\x06\x12\x1a\n\x16KCxRejReasonType_Other\x10\x63*\x87\x06\n\x12\x45OrderRejectReason\x12\x1e\n\x1aKOrderRejectReason_NoError\x10\x00\x12\x1f\n\x1bKOrdRejReason_UnknownSymbol\x10\x01\x12 \n\x1cKOrdRejReason_ExchangeClosed\x10\x02\x12!\n\x1dKOrdRejReason_OrdExceedsLimit\x10\x03\x12\x1e\n\x1aKOrdRejReason_TooLateEnter\x10\x04\x12\x1b\n\x17KOrdRejReason_UnknowOrd\x10\x05\x12\x1e\n\x1aKOrdRejReason_DuplicateOrd\x10\x06\x12\x1a\n\x16KOrdRejReason_StaleOrd\x10\x08\x12\x1c\n\x18KOrdRejReason_InvalidAcc\x10\n\x12%\n!KOrdRejReason_UnsupportedOrdChara\x10\x0b\x12\x1e\n\x1aKOrdRejReason_IncorrectQty\x10\r\x12\x1c\n\x18KOrdRejReason_UnknownAcc\x10\x0f\x12#\n\x1fKOrdRejReason_NotEnoughPosition\x10\x10\x12\'\n#KOrdRejReason_QtyNonMultipleBuyUnit\x10g\x12#\n\x1fKOrdRejReason_SecuritiesTrading\x10\x66\x12&\n\"KOrdRejReason_PriceNonMultipleTick\x10j\x12*\n&KOrdRejReason_IllegalEntrustedBusiness\x10l\x12\x1d\n\x19KOrdRejReason_LackDeposit\x10u\x12\x1c\n\x18KOrdRejReason_PriceError\x10}\x12*\n%KOrdRejReason_InvalidBusinessCategory\x10\x94\x01\x12!\n\x1cKOrdRejReason_NonTradingTime\x10\xcc\x01\x12\x1c\n\x17KOrdRejReason_PriceZero\x10\xdb\x01\x62\x06proto3')

_ETRADEMSGID = DESCRIPTOR.enum_types_by_name['ETradeMsgID']
ETradeMsgID = enum_type_wrapper.EnumTypeWrapper(_ETRADEMSGID)
_ESESSIONSTATUS = DESCRIPTOR.enum_types_by_name['ESessionStatus']
ESessionStatus = enum_type_wrapper.EnumTypeWrapper(_ESESSIONSTATUS)
_EREGISTERRET = DESCRIPTOR.enum_types_by_name['ERegisterRet']
ERegisterRet = enum_type_wrapper.EnumTypeWrapper(_EREGISTERRET)
_EACCSTATUS = DESCRIPTOR.enum_types_by_name['EAccStatus']
EAccStatus = enum_type_wrapper.EnumTypeWrapper(_EACCSTATUS)
_EDEPOSITRETCODE = DESCRIPTOR.enum_types_by_name['EDepositRetCode']
EDepositRetCode = enum_type_wrapper.EnumTypeWrapper(_EDEPOSITRETCODE)
_ELOGINRETCODE = DESCRIPTOR.enum_types_by_name['ELoginRetCode']
ELoginRetCode = enum_type_wrapper.EnumTypeWrapper(_ELOGINRETCODE)
_EBUSINESSTYPE = DESCRIPTOR.enum_types_by_name['EBusinessType']
EBusinessType = enum_type_wrapper.EnumTypeWrapper(_EBUSINESSTYPE)
_EORDERSIDE = DESCRIPTOR.enum_types_by_name['EOrderSide']
EOrderSide = enum_type_wrapper.EnumTypeWrapper(_EORDERSIDE)
_EPOSITIONEFFECT = DESCRIPTOR.enum_types_by_name['EPositionEffect']
EPositionEffect = enum_type_wrapper.EnumTypeWrapper(_EPOSITIONEFFECT)
_EORDERTYPE = DESCRIPTOR.enum_types_by_name['EOrderType']
EOrderType = enum_type_wrapper.EnumTypeWrapper(_EORDERTYPE)
_EORDERSTATUS = DESCRIPTOR.enum_types_by_name['EOrderStatus']
EOrderStatus = enum_type_wrapper.EnumTypeWrapper(_EORDERSTATUS)
_EEXECTYPE = DESCRIPTOR.enum_types_by_name['EExecType']
EExecType = enum_type_wrapper.EnumTypeWrapper(_EEXECTYPE)
_ECXREJREASONTYPE = DESCRIPTOR.enum_types_by_name['ECxRejReasonType']
ECxRejReasonType = enum_type_wrapper.EnumTypeWrapper(_ECXREJREASONTYPE)
_EORDERREJECTREASON = DESCRIPTOR.enum_types_by_name['EOrderRejectReason']
EOrderRejectReason = enum_type_wrapper.EnumTypeWrapper(_EORDERREJECTREASON)
KTradeReqType_Unknown = 0
KTradeReqType_PlaceOrder = 1
KTradeReqType_CancelOrder = 2
KTradeRspType_OrdStatusReport = 3
KTradeReqType_ExecReport = 4
KTradeReqType_RejectCancelReport = 5
KTradeReqType_AccDepositReq = 21
KTradeReqType_AccDepositAck = 22
KTradeReqType_TradingAccQryReq = 23
KTradeReqType_TradingAccQryAck = 24
KQueryOrdersReq = 25
KQueryOrdersAck = 26
KQueryTradesReq = 29
KQueryTradesAck = 30
KQueryPositionsReq = 31
KQueryPositionsAck = 32
KQueryHistoryOrdersReq = 33
KQueryHistoryOrdersAck = 34
KQueryHistoryTradesReq = 35
KQueryHistoryTradesAck = 36
KTradeReqType_QryHisAccReq = 37
KTradeReqType_QryHisAccAck = 38
KTradeReqType_QryHisDepositReq = 39
KTradeReqType_QryHisDepositAck = 40
KTradeReqType_QrySecurityStaticReq = 41
KTradeReqType_QrySecurityStaticAck = 42
KQueryHisPositionsReq = 43
KQueryHisPositionsAck = 44
KVexchangeMsgID_RegisterReq = 80
KVexchangeMsgID_RegisterAck = 81
KVexchangeMsgID_UnRegisterReq = 82
KVexchangeMsgID_UnRegisterAck = 83
KVexchangeMsgID_LoginReq = 84
KVexchangeMsgID_LoginAck = 85
KVexchangeMsgID_LogoutReq = 86
KVexchangeMsgID_UserInfoQryReq = 87
KVexchangeMsgID_UserInfoQryAck = 88
KVexchangeMsgID_HeartBeatReq = 100
KVexchangeMsgID_HeartBeatAck = 101
KVexchangeMsgID_SessionControl = 102
KSessionStatus_UnKnown = 0
KSessionStatus_Connected = 1
KSessionStatus_Closed = 2
KSessionStatus_Disconnected = 3
KRegisterRet_Unknown = 0
KRegisterRet_Success = 1
KRegisterRet_ReRegister = 2
KRegisterRet_InvalidStrategy = 3
KAccStatus_Unknown = 0
KAccStatus_Normal = 1
KAccStatus_WrittenOff = 2
KAccStatus_Disable = 3
KDepositReCode_Unknown = 0
KDepositReCode_NoError = 1
KDepositReCode_NoEnoughCash = 2
KDepositReCode_CapitalOverrun = 3
KDepositReCode_IllegalAccount = 4
KDepositReCode_IllegalPara = 5
KLoginReCode_Unknown = 0
KLoginReCode_LoginSucc = 1
KLoginReCode_UnknownAcc = 2
KLoginReCode_AccUnNormal = 3
KBusinessType_Unknown = 0
KBusinessType_NORMAL = 1
KOrderDirection_Unknown = 0
KOrderDirection_Buy = 49
KOrderDirection_Sell = 50
KOrderDirection_Call = 68
KOrderDirection_Callable = 69
KOrderDirection_FinancingToBuy = 70
KOrderDirection_FinancingToSell = 71
KPositionEffect_Unknown = 0
KPositionEffect_Open = 48
KPositionEffect_Close = 49
KPositionEffect_ForceClose = 50
KPositionEffect_CloseToday = 51
KPositionEffect_CloseYesterday = 52
KOrderType_Unknown = 0
KOrderType_Market = 1
KOrderType_Limit = 2
KOrderType_Stop = 4
KOrderType_Best_5_Then_Cancel = 7
KOrderType_Best_5_Then_Limit = 8
KOrderType_Immediately_Or_Cancel = 9
KOrderType_All_Or_Cancel = 10
KOrderType_Market_Then_Limit = 75
KOrderType_Best_Of_Party = 85
KOrderType_Best_Of_Conterparty = 86
KOrderStatus_Unknown = 0
KOrderStatus_New = 1
KOrderStatus_PartiallyFilled = 2
KOrderStatus_Filled = 3
KOrderStatus_DoneForDay = 4
KOrderStatus_Canceled = 5
KOrderStatus_PendingCancel = 6
KOrderStatus_Stopped = 7
KOrderStatus_Rejected = 8
KOrderStatus_Suspended = 9
KOrderStatus_PendingNew = 65
KOrderStatus_Calculated = 66
KOrderStatus_Expired = 67
KOrderStatus_AcceptedForBidding = 68
KOrderStatus_PendingReplace = 69
KExecType_Unknown = 0
KExecType_New = 1
KExecType_DoneForDay = 3
KExecType_Canceled = 4
KExecType_Replaced = 5
KExecType_PendingCancel = 6
KExecType_Stopped = 7
KExecType_Rejected = 8
KExecType_Suspended = 9
KExecType_PendingNew = 65
KExecType_Calculated = 66
KExecType_Expired = 67
KExecType_Restated = 68
KExecType_PendingReplace = 69
KExecType_Trade = 70
KExecType_TradeCorrect = 71
KExecType_TradeCancel = 72
KExecType_OrderStatus = 73
KCxRejReasonType_TooLateCancel = 0
KCxRejReasonType_UnknowOrder = 1
KCxRejReasonType_Broker = 2
KCxRejReasonType_PendingCancel = 3
KCxRejReasonType_Duplicate = 6
KCxRejReasonType_Other = 99
KOrderRejectReason_NoError = 0
KOrdRejReason_UnknownSymbol = 1
KOrdRejReason_ExchangeClosed = 2
KOrdRejReason_OrdExceedsLimit = 3
KOrdRejReason_TooLateEnter = 4
KOrdRejReason_UnknowOrd = 5
KOrdRejReason_DuplicateOrd = 6
KOrdRejReason_StaleOrd = 8
KOrdRejReason_InvalidAcc = 10
KOrdRejReason_UnsupportedOrdChara = 11
KOrdRejReason_IncorrectQty = 13
KOrdRejReason_UnknownAcc = 15
KOrdRejReason_NotEnoughPosition = 16
KOrdRejReason_QtyNonMultipleBuyUnit = 103
KOrdRejReason_SecuritiesTrading = 102
KOrdRejReason_PriceNonMultipleTick = 106
KOrdRejReason_IllegalEntrustedBusiness = 108
KOrdRejReason_LackDeposit = 117
KOrdRejReason_PriceError = 125
KOrdRejReason_InvalidBusinessCategory = 148
KOrdRejReason_NonTradingTime = 204
KOrdRejReason_PriceZero = 219


if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  _ETRADEMSGID._serialized_start=44
  _ETRADEMSGID._serialized_end=1303
  _ESESSIONSTATUS._serialized_start=1306
  _ESESSIONSTATUS._serialized_end=1440
  _EREGISTERRET._serialized_start=1443
  _EREGISTERRET._serialized_end=1572
  _EACCSTATUS._serialized_start=1574
  _EACCSTATUS._serialized_end=1684
  _EDEPOSITRETCODE._serialized_start=1687
  _EDEPOSITRETCODE._serialized_end=1895
  _ELOGINRETCODE._serialized_start=1898
  _ELOGINRETCODE._serialized_end=2026
  _EBUSINESSTYPE._serialized_start=2028
  _EBUSINESSTYPE._serialized_end=2096
  _EORDERSIDE._serialized_start=2099
  _EORDERSIDE._serialized_end=2320
  _EPOSITIONEFFECT._serialized_start=2323
  _EPOSITIONEFFECT._serialized_end=2522
  _EORDERTYPE._serialized_start=2525
  _EORDERTYPE._serialized_end=2864
  _EORDERSTATUS._serialized_start=2867
  _EORDERSTATUS._serialized_end=3311
  _EEXECTYPE._serialized_start=3314
  _EEXECTYPE._serialized_end=3774
  _ECXREJREASONTYPE._serialized_start=3777
  _ECXREJREASONTYPE._serialized_end=3990
  _EORDERREJECTREASON._serialized_start=3993
  _EORDERREJECTREASON._serialized_end=4768
# @@protoc_insertion_point(module_scope)
