# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Thoth.Trade.Message.proto
"""Generated protocol buffer code."""
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()


# from Thoth.Trade import EnumType_pb2 as Thoth_dot_Trade_dot_EnumType__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19Thoth.Trade.Message.proto\x12\x0bThoth.Trade\x1a\x1aThoth.Trade.EnumType.proto\"V\n\x0eSessionControl\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x33\n\x0esession_status\x18\x02 \x01(\x0e\x32\x1b.Thoth.Trade.ESessionStatus\"u\n\x10UserRegisterInfo\x12\x13\n\x0bstrategy_id\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x63\x63ount\x18\x03 \x01(\t\x12\x0e\n\x06passwd\x18\x04 \x01(\t\x12+\n\nacc_status\x18\x05 \x01(\x0e\x32\x17.Thoth.Trade.EAccStatus\"?\n\x0bRegisterReq\x12\x13\n\x0bstrategy_id\x18\x01 \x01(\t\x12\x1b\n\x13strategy_check_code\x18\x02 \x01(\t\"r\n\x0bRegisterAck\x12\x33\n\x0cregiste_info\x18\x01 \x01(\x0b\x32\x1d.Thoth.Trade.UserRegisterInfo\x12.\n\x0bregist_code\x18\x02 \x01(\x0e\x32\x19.Thoth.Trade.ERegisterRet\"A\n\rUnregisterReq\x12\x13\n\x0bstrategy_id\x18\x01 \x01(\t\x12\x1b\n\x13strategy_check_code\x18\x02 \x01(\t\"2\n\rUnregisterAck\x12\x10\n\x08ret_code\x18\x01 \x01(\r\x12\x0f\n\x07ret_msg\x18\x02 \x01(\t\"+\n\x08LoginReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06passwd\x18\x02 \x01(\t\"p\n\tLoginInfo\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x13\n\x0btrading_day\x18\x02 \x01(\t\x12\x15\n\rexchange_name\x18\x03 \x01(\t\x12\x15\n\rexchange_time\x18\x04 \x01(\t\x12\x0f\n\x07session\x18\x05 \x01(\x0c\"d\n\x08LoginAck\x12*\n\nlogin_info\x18\x01 \x01(\x0b\x32\x16.Thoth.Trade.LoginInfo\x12,\n\x08ret_code\x18\x02 \x01(\x0e\x32\x1a.Thoth.Trade.ELoginRetCode\"\x1c\n\tLogoutReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\"c\n\x0eUserInfoQryReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06passwd\x18\x02 \x01(\t\x12\x13\n\x0bstrategy_id\x18\x03 \x01(\t\x12\x1b\n\x13strategy_check_code\x18\x04 \x01(\t\"!\n\x0cHeartBeatReq\x12\x11\n\treal_time\x18\x01 \x01(\t\"\x0e\n\x0cHeartBeatAck\"E\n\x14QrySecurityStaticReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06market\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\"\x8d\x01\n\rAccDepositReq\x12\x13\n\x0bsender_user\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x63\x63ount\x18\x02 \x01(\t\x12\x12\n\nclient_ref\x18\x03 \x01(\t\x12\x0e\n\x06\x61mount\x18\x05 \x01(\x03\x12\x14\n\x0csending_time\x18\x06 \x01(\t\x12\x1c\n\x14\x61mount_decimal_place\x18\x64 \x01(\x05\"m\n\rAccDepositAck\x12*\n\nacc_margin\x18\x01 \x01(\x0b\x32\x16.Thoth.Trade.AccMargin\x12\x30\n\nerror_code\x18\x02 \x01(\x0e\x32\x1c.Thoth.Trade.EDepositRetCode\"#\n\x10TradingAccQryReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\"y\n\x0eQueryOrdersReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06market\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\x12\x12\n\nclient_ref\x18\x04 \x01(\t\x12\x10\n\x08order_id\x18\x05 \x01(\t\x12\x12\n\nunfinished\x18\x06 \x01(\x08\"l\n\x15QueryHistoryOrdersReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06market\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\x12\x12\n\nstart_time\x18\x04 \x01(\t\x12\x10\n\x08\x65nd_time\x18\x05 \x01(\t\"?\n\x0eQueryOrdersAck\x12-\n\rorder_reports\x18\x01 \x03(\x0b\x32\x16.Thoth.Trade.OrdReport\"c\n\x0eQueryTradesReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06market\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\x12\x10\n\x08order_id\x18\x04 \x01(\t\x12\x10\n\x08trade_id\x18\x05 \x01(\t\"l\n\x15QueryHistoryTradesReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06market\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\x12\x12\n\nstart_time\x18\x04 \x01(\t\x12\x10\n\x08\x65nd_time\x18\x05 \x01(\t\"A\n\x0eQueryTradesAck\x12/\n\rtrade_reports\x18\x01 \x03(\x0b\x32\x18.Thoth.Trade.TradeReport\"B\n\x11QueryPositionsReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06market\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\"A\n\x11QueryPositionsAck\x12,\n\tpositions\x18\x01 \x03(\x0b\x32\x19.Thoth.Trade.StokPosition\"k\n\x14QueryHisPositionsReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06market\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\x12\x12\n\nstart_time\x18\x04 \x01(\t\x12\x10\n\x08\x65nd_time\x18\x05 \x01(\t\"D\n\x14QueryHisPositionsAck\x12,\n\tpositions\x18\x01 \x03(\x0b\x32\x19.Thoth.Trade.StokPosition\"8\n\x0cQryHisAccReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x17\n\x0fsettlement_date\x18\x02 \x01(\t\";\n\x0cQryHisAccAck\x12+\n\x0b\x61\x63\x63_margins\x18\x01 \x03(\x0b\x32\x16.Thoth.Trade.AccMargin\"<\n\x10QryHisDepositReq\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x17\n\x0fsettlement_date\x18\x02 \x01(\t\"\x8f\x01\n\nHisDeposit\x12\x17\n\x0fsettlement_date\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x63\x63ount\x18\x02 \x01(\t\x12\x12\n\nclient_ref\x18\x03 \x01(\t\x12\x0f\n\x07\x64\x65posit\x18\x04 \x01(\x03\x12\x1c\n\x14\x61mount_decimal_place\x18\x05 \x01(\x05\x12\x14\n\x0c\x64\x65posit_time\x18\x06 \x01(\t\"A\n\x10QryHisDepositAck\x12-\n\x0chis_deposits\x18\x01 \x03(\x0b\x32\x17.Thoth.Trade.HisDeposit\"\xa3\x03\n\nPlaceOrder\x12\x12\n\nclient_ref\x18\x01 \x01(\t\x12\x13\n\x0bsender_user\x18\x02 \x01(\t\x12\x0f\n\x07\x61\x63\x63ount\x18\x03 \x01(\t\x12\x0e\n\x06market\x18\x04 \x01(\t\x12\x0c\n\x04\x63ode\x18\x05 \x01(\t\x12+\n\norder_type\x18\x06 \x01(\x0e\x32\x17.Thoth.Trade.EOrderType\x12\x31\n\rbusiness_type\x18\x07 \x01(\x0e\x32\x1a.Thoth.Trade.EBusinessType\x12+\n\norder_side\x18\x08 \x01(\x0e\x32\x17.Thoth.Trade.EOrderSide\x12,\n\x06\x65\x66\x66\x65\x63t\x18\t \x01(\x0e\x32\x1c.Thoth.Trade.EPositionEffect\x12\x13\n\x0border_price\x18\n \x01(\x03\x12\x11\n\torder_qty\x18\x0b \x01(\x05\x12\x10\n\x08order_id\x18\x0c \x01(\t\x12\x18\n\x10\x64iscretion_price\x18\r \x01(\x03\x12\x1b\n\x13price_decimal_place\x18\x64 \x01(\x05\x12\x11\n\tsend_time\x18\x65 \x01(\t\"\xb2\x02\n\x0cOrdStatusMsg\x12/\n\x0corder_status\x18\x01 \x01(\x0e\x32\x19.Thoth.Trade.EOrderStatus\x12\x12\n\ntraded_qty\x18\x02 \x01(\x05\x12\x15\n\rtraded_amount\x18\x03 \x01(\x03\x12\x11\n\ttotal_fee\x18\x04 \x01(\x03\x12\x15\n\rfrozen_margin\x18\x05 \x01(\x03\x12\x14\n\x0c\x66rozen_price\x18\x06 \x01(\x03\x12\x36\n\rreject_reason\x18\x08 \x01(\x0e\x32\x1f.Thoth.Trade.EOrderRejectReason\x12\x1c\n\x14reject_reason_detail\x18\t \x01(\x0c\x12\x1b\n\x13price_decimal_place\x18\x65 \x01(\x05\x12\x13\n\x0breport_time\x18\x66 \x01(\t\"p\n\x0b\x43\x61ncelOrder\x12\x12\n\nclient_ref\x18\x01 \x01(\t\x12\x13\n\x0bsender_user\x18\x02 \x01(\t\x12\x0f\n\x07\x61\x63\x63ount\x18\x03 \x01(\t\x12\x14\n\x0corg_order_id\x18\x04 \x01(\t\x12\x11\n\tsend_time\x18\x64 \x01(\t\"\xa6\x01\n\x11\x43\x61ncelOrderReject\x12\x12\n\nclient_ref\x18\x01 \x01(\t\x12\x14\n\x0corg_order_id\x18\x02 \x01(\t\x12\x34\n\rreject_reason\x18\x03 \x01(\x0e\x32\x1d.Thoth.Trade.ECxRejReasonType\x12\x1c\n\x14reject_reason_detail\x18\x04 \x01(\x0c\x12\x13\n\x0breport_time\x18\x64 \x01(\t\"\xdc\x01\n\x0cStokPosition\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x0e\n\x06market\x18\x03 \x01(\t\x12\x0c\n\x04\x63ode\x18\x04 \x01(\t\x12\x11\n\ttotal_qty\x18\x05 \x01(\x03\x12\x11\n\ttoday_qty\x18\x06 \x01(\x03\x12\x16\n\x0eopen_avg_price\x18\x07 \x01(\x03\x12\x19\n\x11surplus_close_qty\x18\x08 \x01(\x03\x12\x12\n\nfrozen_qty\x18\t \x01(\x03\x12\x1b\n\x13price_decimal_place\x18\x64 \x01(\x05\x12\x13\n\x0bupdate_time\x18\x65 \x01(\t\"\xc7\x02\n\tAccMargin\x12\x0f\n\x07\x61\x63\x63ount\x18\x01 \x01(\t\x12\x14\n\x0ctotal_amount\x18\x02 \x01(\x03\x12\x18\n\x10\x61vailable_amount\x18\x03 \x01(\x03\x12\x0f\n\x07\x64\x65posit\x18\x04 \x01(\x03\x12\x14\n\x0copen_balance\x18\x05 \x01(\x03\x12\x1b\n\x13trade_frozen_margin\x18\x06 \x01(\x03\x12\x1e\n\x16position_market_amount\x18\x07 \x01(\x03\x12\x18\n\x10total_buy_amount\x18\x08 \x01(\x03\x12\x15\n\rtotal_buy_fee\x18\t \x01(\x03\x12\x19\n\x11total_sell_amount\x18\n \x01(\x03\x12\x16\n\x0etotal_sell_fee\x18\x0b \x01(\x03\x12\x1c\n\x14\x61mount_decimal_place\x18\x64 \x01(\x05\x12\x13\n\x0bupdate_time\x18\x65 \x01(\t\"h\n\tOrdReport\x12,\n\x0bplace_order\x18\x01 \x01(\x0b\x32\x17.Thoth.Trade.PlaceOrder\x12-\n\nstatus_msg\x18\x02 \x01(\x0b\x32\x19.Thoth.Trade.OrdStatusMsg\"\xa1\x02\n\x0bTradeReport\x12\x10\n\x08order_id\x18\x01 \x01(\t\x12\x12\n\nclient_ref\x18\x02 \x01(\t\x12\x0f\n\x07\x61\x63\x63ount\x18\x04 \x01(\t\x12\x0e\n\x06market\x18\x05 \x01(\t\x12\x0c\n\x04\x63ode\x18\x06 \x01(\t\x12\x11\n\ttraded_id\x18\x07 \x01(\t\x12\x14\n\x0ctraded_index\x18\x08 \x01(\x05\x12)\n\texec_type\x18\t \x01(\x0e\x32\x16.Thoth.Trade.EExecType\x12\x12\n\ntraded_qty\x18\n \x01(\x05\x12\x14\n\x0ctraded_price\x18\x0b \x01(\x03\x12\x0b\n\x03\x66\x65\x65\x18\x0c \x01(\x03\x12\x1b\n\x13price_decimal_place\x18\x64 \x01(\x05\x12\x15\n\rtransact_time\x18\x65 \x01(\tb\x06proto3')



_SESSIONCONTROL = DESCRIPTOR.message_types_by_name['SessionControl']
_USERREGISTERINFO = DESCRIPTOR.message_types_by_name['UserRegisterInfo']
_REGISTERREQ = DESCRIPTOR.message_types_by_name['RegisterReq']
_REGISTERACK = DESCRIPTOR.message_types_by_name['RegisterAck']
_UNREGISTERREQ = DESCRIPTOR.message_types_by_name['UnregisterReq']
_UNREGISTERACK = DESCRIPTOR.message_types_by_name['UnregisterAck']
_LOGINREQ = DESCRIPTOR.message_types_by_name['LoginReq']
_LOGININFO = DESCRIPTOR.message_types_by_name['LoginInfo']
_LOGINACK = DESCRIPTOR.message_types_by_name['LoginAck']
_LOGOUTREQ = DESCRIPTOR.message_types_by_name['LogoutReq']
_USERINFOQRYREQ = DESCRIPTOR.message_types_by_name['UserInfoQryReq']
_HEARTBEATREQ = DESCRIPTOR.message_types_by_name['HeartBeatReq']
_HEARTBEATACK = DESCRIPTOR.message_types_by_name['HeartBeatAck']
_QRYSECURITYSTATICREQ = DESCRIPTOR.message_types_by_name['QrySecurityStaticReq']
_ACCDEPOSITREQ = DESCRIPTOR.message_types_by_name['AccDepositReq']
_ACCDEPOSITACK = DESCRIPTOR.message_types_by_name['AccDepositAck']
_TRADINGACCQRYREQ = DESCRIPTOR.message_types_by_name['TradingAccQryReq']
_QUERYORDERSREQ = DESCRIPTOR.message_types_by_name['QueryOrdersReq']
_QUERYHISTORYORDERSREQ = DESCRIPTOR.message_types_by_name['QueryHistoryOrdersReq']
_QUERYORDERSACK = DESCRIPTOR.message_types_by_name['QueryOrdersAck']
_QUERYTRADESREQ = DESCRIPTOR.message_types_by_name['QueryTradesReq']
_QUERYHISTORYTRADESREQ = DESCRIPTOR.message_types_by_name['QueryHistoryTradesReq']
_QUERYTRADESACK = DESCRIPTOR.message_types_by_name['QueryTradesAck']
_QUERYPOSITIONSREQ = DESCRIPTOR.message_types_by_name['QueryPositionsReq']
_QUERYPOSITIONSACK = DESCRIPTOR.message_types_by_name['QueryPositionsAck']
_QUERYHISPOSITIONSREQ = DESCRIPTOR.message_types_by_name['QueryHisPositionsReq']
_QUERYHISPOSITIONSACK = DESCRIPTOR.message_types_by_name['QueryHisPositionsAck']
_QRYHISACCREQ = DESCRIPTOR.message_types_by_name['QryHisAccReq']
_QRYHISACCACK = DESCRIPTOR.message_types_by_name['QryHisAccAck']
_QRYHISDEPOSITREQ = DESCRIPTOR.message_types_by_name['QryHisDepositReq']
_HISDEPOSIT = DESCRIPTOR.message_types_by_name['HisDeposit']
_QRYHISDEPOSITACK = DESCRIPTOR.message_types_by_name['QryHisDepositAck']
_PLACEORDER = DESCRIPTOR.message_types_by_name['PlaceOrder']
_ORDSTATUSMSG = DESCRIPTOR.message_types_by_name['OrdStatusMsg']
_CANCELORDER = DESCRIPTOR.message_types_by_name['CancelOrder']
_CANCELORDERREJECT = DESCRIPTOR.message_types_by_name['CancelOrderReject']
_STOKPOSITION = DESCRIPTOR.message_types_by_name['StokPosition']
_ACCMARGIN = DESCRIPTOR.message_types_by_name['AccMargin']
_ORDREPORT = DESCRIPTOR.message_types_by_name['OrdReport']
_TRADEREPORT = DESCRIPTOR.message_types_by_name['TradeReport']
SessionControl = _reflection.GeneratedProtocolMessageType('SessionControl', (_message.Message,), {
  'DESCRIPTOR' : _SESSIONCONTROL,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.SessionControl)
  })
_sym_db.RegisterMessage(SessionControl)

UserRegisterInfo = _reflection.GeneratedProtocolMessageType('UserRegisterInfo', (_message.Message,), {
  'DESCRIPTOR' : _USERREGISTERINFO,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.UserRegisterInfo)
  })
_sym_db.RegisterMessage(UserRegisterInfo)

RegisterReq = _reflection.GeneratedProtocolMessageType('RegisterReq', (_message.Message,), {
  'DESCRIPTOR' : _REGISTERREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.RegisterReq)
  })
_sym_db.RegisterMessage(RegisterReq)

RegisterAck = _reflection.GeneratedProtocolMessageType('RegisterAck', (_message.Message,), {
  'DESCRIPTOR' : _REGISTERACK,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.RegisterAck)
  })
_sym_db.RegisterMessage(RegisterAck)

UnregisterReq = _reflection.GeneratedProtocolMessageType('UnregisterReq', (_message.Message,), {
  'DESCRIPTOR' : _UNREGISTERREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.UnregisterReq)
  })
_sym_db.RegisterMessage(UnregisterReq)

UnregisterAck = _reflection.GeneratedProtocolMessageType('UnregisterAck', (_message.Message,), {
  'DESCRIPTOR' : _UNREGISTERACK,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.UnregisterAck)
  })
_sym_db.RegisterMessage(UnregisterAck)

LoginReq = _reflection.GeneratedProtocolMessageType('LoginReq', (_message.Message,), {
  'DESCRIPTOR' : _LOGINREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.LoginReq)
  })
_sym_db.RegisterMessage(LoginReq)

LoginInfo = _reflection.GeneratedProtocolMessageType('LoginInfo', (_message.Message,), {
  'DESCRIPTOR' : _LOGININFO,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.LoginInfo)
  })
_sym_db.RegisterMessage(LoginInfo)

LoginAck = _reflection.GeneratedProtocolMessageType('LoginAck', (_message.Message,), {
  'DESCRIPTOR' : _LOGINACK,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.LoginAck)
  })
_sym_db.RegisterMessage(LoginAck)

LogoutReq = _reflection.GeneratedProtocolMessageType('LogoutReq', (_message.Message,), {
  'DESCRIPTOR' : _LOGOUTREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.LogoutReq)
  })
_sym_db.RegisterMessage(LogoutReq)

UserInfoQryReq = _reflection.GeneratedProtocolMessageType('UserInfoQryReq', (_message.Message,), {
  'DESCRIPTOR' : _USERINFOQRYREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.UserInfoQryReq)
  })
_sym_db.RegisterMessage(UserInfoQryReq)

HeartBeatReq = _reflection.GeneratedProtocolMessageType('HeartBeatReq', (_message.Message,), {
  'DESCRIPTOR' : _HEARTBEATREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.HeartBeatReq)
  })
_sym_db.RegisterMessage(HeartBeatReq)

HeartBeatAck = _reflection.GeneratedProtocolMessageType('HeartBeatAck', (_message.Message,), {
  'DESCRIPTOR' : _HEARTBEATACK,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.HeartBeatAck)
  })
_sym_db.RegisterMessage(HeartBeatAck)

QrySecurityStaticReq = _reflection.GeneratedProtocolMessageType('QrySecurityStaticReq', (_message.Message,), {
  'DESCRIPTOR' : _QRYSECURITYSTATICREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QrySecurityStaticReq)
  })
_sym_db.RegisterMessage(QrySecurityStaticReq)

AccDepositReq = _reflection.GeneratedProtocolMessageType('AccDepositReq', (_message.Message,), {
  'DESCRIPTOR' : _ACCDEPOSITREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.AccDepositReq)
  })
_sym_db.RegisterMessage(AccDepositReq)

AccDepositAck = _reflection.GeneratedProtocolMessageType('AccDepositAck', (_message.Message,), {
  'DESCRIPTOR' : _ACCDEPOSITACK,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.AccDepositAck)
  })
_sym_db.RegisterMessage(AccDepositAck)

TradingAccQryReq = _reflection.GeneratedProtocolMessageType('TradingAccQryReq', (_message.Message,), {
  'DESCRIPTOR' : _TRADINGACCQRYREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.TradingAccQryReq)
  })
_sym_db.RegisterMessage(TradingAccQryReq)

QueryOrdersReq = _reflection.GeneratedProtocolMessageType('QueryOrdersReq', (_message.Message,), {
  'DESCRIPTOR' : _QUERYORDERSREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QueryOrdersReq)
  })
_sym_db.RegisterMessage(QueryOrdersReq)

QueryHistoryOrdersReq = _reflection.GeneratedProtocolMessageType('QueryHistoryOrdersReq', (_message.Message,), {
  'DESCRIPTOR' : _QUERYHISTORYORDERSREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QueryHistoryOrdersReq)
  })
_sym_db.RegisterMessage(QueryHistoryOrdersReq)

QueryOrdersAck = _reflection.GeneratedProtocolMessageType('QueryOrdersAck', (_message.Message,), {
  'DESCRIPTOR' : _QUERYORDERSACK,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QueryOrdersAck)
  })
_sym_db.RegisterMessage(QueryOrdersAck)

QueryTradesReq = _reflection.GeneratedProtocolMessageType('QueryTradesReq', (_message.Message,), {
  'DESCRIPTOR' : _QUERYTRADESREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QueryTradesReq)
  })
_sym_db.RegisterMessage(QueryTradesReq)

QueryHistoryTradesReq = _reflection.GeneratedProtocolMessageType('QueryHistoryTradesReq', (_message.Message,), {
  'DESCRIPTOR' : _QUERYHISTORYTRADESREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QueryHistoryTradesReq)
  })
_sym_db.RegisterMessage(QueryHistoryTradesReq)

QueryTradesAck = _reflection.GeneratedProtocolMessageType('QueryTradesAck', (_message.Message,), {
  'DESCRIPTOR' : _QUERYTRADESACK,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QueryTradesAck)
  })
_sym_db.RegisterMessage(QueryTradesAck)

QueryPositionsReq = _reflection.GeneratedProtocolMessageType('QueryPositionsReq', (_message.Message,), {
  'DESCRIPTOR' : _QUERYPOSITIONSREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QueryPositionsReq)
  })
_sym_db.RegisterMessage(QueryPositionsReq)

QueryPositionsAck = _reflection.GeneratedProtocolMessageType('QueryPositionsAck', (_message.Message,), {
  'DESCRIPTOR' : _QUERYPOSITIONSACK,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QueryPositionsAck)
  })
_sym_db.RegisterMessage(QueryPositionsAck)

QueryHisPositionsReq = _reflection.GeneratedProtocolMessageType('QueryHisPositionsReq', (_message.Message,), {
  'DESCRIPTOR' : _QUERYHISPOSITIONSREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QueryHisPositionsReq)
  })
_sym_db.RegisterMessage(QueryHisPositionsReq)

QueryHisPositionsAck = _reflection.GeneratedProtocolMessageType('QueryHisPositionsAck', (_message.Message,), {
  'DESCRIPTOR' : _QUERYHISPOSITIONSACK,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QueryHisPositionsAck)
  })
_sym_db.RegisterMessage(QueryHisPositionsAck)

QryHisAccReq = _reflection.GeneratedProtocolMessageType('QryHisAccReq', (_message.Message,), {
  'DESCRIPTOR' : _QRYHISACCREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QryHisAccReq)
  })
_sym_db.RegisterMessage(QryHisAccReq)

QryHisAccAck = _reflection.GeneratedProtocolMessageType('QryHisAccAck', (_message.Message,), {
  'DESCRIPTOR' : _QRYHISACCACK,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QryHisAccAck)
  })
_sym_db.RegisterMessage(QryHisAccAck)

QryHisDepositReq = _reflection.GeneratedProtocolMessageType('QryHisDepositReq', (_message.Message,), {
  'DESCRIPTOR' : _QRYHISDEPOSITREQ,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QryHisDepositReq)
  })
_sym_db.RegisterMessage(QryHisDepositReq)

HisDeposit = _reflection.GeneratedProtocolMessageType('HisDeposit', (_message.Message,), {
  'DESCRIPTOR' : _HISDEPOSIT,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.HisDeposit)
  })
_sym_db.RegisterMessage(HisDeposit)

QryHisDepositAck = _reflection.GeneratedProtocolMessageType('QryHisDepositAck', (_message.Message,), {
  'DESCRIPTOR' : _QRYHISDEPOSITACK,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.QryHisDepositAck)
  })
_sym_db.RegisterMessage(QryHisDepositAck)

PlaceOrder = _reflection.GeneratedProtocolMessageType('PlaceOrder', (_message.Message,), {
  'DESCRIPTOR' : _PLACEORDER,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.PlaceOrder)
  })
_sym_db.RegisterMessage(PlaceOrder)

OrdStatusMsg = _reflection.GeneratedProtocolMessageType('OrdStatusMsg', (_message.Message,), {
  'DESCRIPTOR' : _ORDSTATUSMSG,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.OrdStatusMsg)
  })
_sym_db.RegisterMessage(OrdStatusMsg)

CancelOrder = _reflection.GeneratedProtocolMessageType('CancelOrder', (_message.Message,), {
  'DESCRIPTOR' : _CANCELORDER,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.CancelOrder)
  })
_sym_db.RegisterMessage(CancelOrder)

CancelOrderReject = _reflection.GeneratedProtocolMessageType('CancelOrderReject', (_message.Message,), {
  'DESCRIPTOR' : _CANCELORDERREJECT,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.CancelOrderReject)
  })
_sym_db.RegisterMessage(CancelOrderReject)

StokPosition = _reflection.GeneratedProtocolMessageType('StokPosition', (_message.Message,), {
  'DESCRIPTOR' : _STOKPOSITION,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.StokPosition)
  })
_sym_db.RegisterMessage(StokPosition)

AccMargin = _reflection.GeneratedProtocolMessageType('AccMargin', (_message.Message,), {
  'DESCRIPTOR' : _ACCMARGIN,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.AccMargin)
  })
_sym_db.RegisterMessage(AccMargin)

OrdReport = _reflection.GeneratedProtocolMessageType('OrdReport', (_message.Message,), {
  'DESCRIPTOR' : _ORDREPORT,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.OrdReport)
  })
_sym_db.RegisterMessage(OrdReport)

TradeReport = _reflection.GeneratedProtocolMessageType('TradeReport', (_message.Message,), {
  'DESCRIPTOR' : _TRADEREPORT,
  '__module__' : 'Thoth.Trade.Message_pb2'
  # @@protoc_insertion_point(class_scope:Thoth.Trade.TradeReport)
  })
_sym_db.RegisterMessage(TradeReport)

if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  _SESSIONCONTROL._serialized_start=70
  _SESSIONCONTROL._serialized_end=156
  _USERREGISTERINFO._serialized_start=158
  _USERREGISTERINFO._serialized_end=275
  _REGISTERREQ._serialized_start=277
  _REGISTERREQ._serialized_end=340
  _REGISTERACK._serialized_start=342
  _REGISTERACK._serialized_end=456
  _UNREGISTERREQ._serialized_start=458
  _UNREGISTERREQ._serialized_end=523
  _UNREGISTERACK._serialized_start=525
  _UNREGISTERACK._serialized_end=575
  _LOGINREQ._serialized_start=577
  _LOGINREQ._serialized_end=620
  _LOGININFO._serialized_start=622
  _LOGININFO._serialized_end=734
  _LOGINACK._serialized_start=736
  _LOGINACK._serialized_end=836
  _LOGOUTREQ._serialized_start=838
  _LOGOUTREQ._serialized_end=866
  _USERINFOQRYREQ._serialized_start=868
  _USERINFOQRYREQ._serialized_end=967
  _HEARTBEATREQ._serialized_start=969
  _HEARTBEATREQ._serialized_end=1002
  _HEARTBEATACK._serialized_start=1004
  _HEARTBEATACK._serialized_end=1018
  _QRYSECURITYSTATICREQ._serialized_start=1020
  _QRYSECURITYSTATICREQ._serialized_end=1089
  _ACCDEPOSITREQ._serialized_start=1092
  _ACCDEPOSITREQ._serialized_end=1233
  _ACCDEPOSITACK._serialized_start=1235
  _ACCDEPOSITACK._serialized_end=1344
  _TRADINGACCQRYREQ._serialized_start=1346
  _TRADINGACCQRYREQ._serialized_end=1381
  _QUERYORDERSREQ._serialized_start=1383
  _QUERYORDERSREQ._serialized_end=1504
  _QUERYHISTORYORDERSREQ._serialized_start=1506
  _QUERYHISTORYORDERSREQ._serialized_end=1614
  _QUERYORDERSACK._serialized_start=1616
  _QUERYORDERSACK._serialized_end=1679
  _QUERYTRADESREQ._serialized_start=1681
  _QUERYTRADESREQ._serialized_end=1780
  _QUERYHISTORYTRADESREQ._serialized_start=1782
  _QUERYHISTORYTRADESREQ._serialized_end=1890
  _QUERYTRADESACK._serialized_start=1892
  _QUERYTRADESACK._serialized_end=1957
  _QUERYPOSITIONSREQ._serialized_start=1959
  _QUERYPOSITIONSREQ._serialized_end=2025
  _QUERYPOSITIONSACK._serialized_start=2027
  _QUERYPOSITIONSACK._serialized_end=2092
  _QUERYHISPOSITIONSREQ._serialized_start=2094
  _QUERYHISPOSITIONSREQ._serialized_end=2201
  _QUERYHISPOSITIONSACK._serialized_start=2203
  _QUERYHISPOSITIONSACK._serialized_end=2271
  _QRYHISACCREQ._serialized_start=2273
  _QRYHISACCREQ._serialized_end=2329
  _QRYHISACCACK._serialized_start=2331
  _QRYHISACCACK._serialized_end=2390
  _QRYHISDEPOSITREQ._serialized_start=2392
  _QRYHISDEPOSITREQ._serialized_end=2452
  _HISDEPOSIT._serialized_start=2455
  _HISDEPOSIT._serialized_end=2598
  _QRYHISDEPOSITACK._serialized_start=2600
  _QRYHISDEPOSITACK._serialized_end=2665
  _PLACEORDER._serialized_start=2668
  _PLACEORDER._serialized_end=3087
  _ORDSTATUSMSG._serialized_start=3090
  _ORDSTATUSMSG._serialized_end=3396
  _CANCELORDER._serialized_start=3398
  _CANCELORDER._serialized_end=3510
  _CANCELORDERREJECT._serialized_start=3513
  _CANCELORDERREJECT._serialized_end=3679
  _STOKPOSITION._serialized_start=3682
  _STOKPOSITION._serialized_end=3902
  _ACCMARGIN._serialized_start=3905
  _ACCMARGIN._serialized_end=4232
  _ORDREPORT._serialized_start=4234
  _ORDREPORT._serialized_end=4338
  _TRADEREPORT._serialized_start=4341
  _TRADEREPORT._serialized_end=4630
# @@protoc_insertion_point(module_scope)
