# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: tradeApi.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\x0etradeApi.proto\x12\x05Trade\"@\n\tRspHeader\x12!\n\x08ret_type\x18\x01 \x01(\x0e\x32\x0f.Trade.RET_TYPE\x12\x10\n\x08sErrInfo\x18\x02 \x01(\t\"\x1b\n\x0bJSONRequest\x12\x0c\n\x04sReq\x18\x01 \x01(\t\"A\n\x0cJSONResponse\x12#\n\trspHeader\x18\x01 \x01(\x0b\x32\x10.Trade.RspHeader\x12\x0c\n\x04sRsp\x18\x02 \x01(\t\"\x81\x01\n\nRspAccount\x12#\n\trspHeader\x18\x01 \x01(\x0b\x32\x10.Trade.RspHeader\x12\x10\n\x08\x66\x42\x61lance\x18\x02 \x01(\x02\x12\x12\n\nfAvailable\x18\x03 \x01(\x02\x12\x13\n\x0b\x66StockValue\x18\x04 \x01(\x02\x12\x13\n\x0b\x66\x46rozenCash\x18\x05 \x01(\x02\"\x8d\x01\n\x07PosItem\x12\x10\n\x08sStkCode\x18\x01 \x01(\t\x12\x1a\n\x06\x62sFlat\x18\x02 \x01(\x0e\x32\n.Trade.DIR\x12\x12\n\nfHoldPrice\x18\x03 \x01(\x02\x12\x0c\n\x04lQty\x18\x04 \x01(\x04\x12\x12\n\nlFrozenQty\x18\x05 \x01(\x04\x12\x0c\n\x04\x66\x41mt\x18\x06 \x01(\x02\x12\x10\n\x08sStkName\x18\x07 \x01(\t\"S\n\x0bRspPosition\x12#\n\trspHeader\x18\x01 \x01(\x0b\x32\x10.Trade.RspHeader\x12\x1f\n\x07posItem\x18\x02 \x03(\x0b\x32\x0e.Trade.PosItem\"\xf1\x02\n\tOrderItem\x12\x10\n\x08sOrderId\x18\x01 \x01(\t\x12\x10\n\x08sStkName\x18\x02 \x01(\t\x12\x12\n\nlOrderTime\x18\x03 \x01(\x04\x12\x1a\n\x06\x62sFlat\x18\x04 \x01(\x0e\x32\n.Trade.DIR\x12\x13\n\x0b\x66OrderPrice\x18\x05 \x01(\x02\x12\x11\n\tlOrderQty\x18\x06 \x01(\x04\x12\x13\n\x0blMatchedQty\x18\x07 \x01(\x04\x12\x15\n\rlWithdrawnQty\x18\x08 \x01(\x04\x12\x10\n\x08sStkCode\x18\t \x01(\t\x12\r\n\x05iDate\x18\n \x01(\x05\x12\'\n\nstatusInfo\x18\x0b \x01(\x0e\x32\x13.Trade.ORDER_STATUS\x12&\n\ncancelFlag\x18\x0c \x01(\x0e\x32\x12.Trade.CANCEL_FLAG\x12\x10\n\x08iErrCode\x18\r \x01(\x05\x12\x0f\n\x07sErrMsg\x18\x0e \x01(\t\x12\x15\n\rfMatchedPrice\x18\x0f \x01(\x02\x12\x10\n\x08sLocalId\x18\x10 \x01(\t\"i\n\tRspOrders\x12#\n\trspHeader\x18\x01 \x01(\x0b\x32\x10.Trade.RspHeader\x12#\n\torderItem\x18\x02 \x03(\x0b\x32\x10.Trade.OrderItem\x12\x12\n\niTotalSize\x18\x03 \x01(\r\"/\n\x08ReqQuery\x12\x10\n\x08iPageNum\x18\x01 \x01(\r\x12\x11\n\tiPageSize\x18\x02 \x01(\r\"\xa7\x02\n\tTransItem\x12\x10\n\x08sOrderId\x18\x01 \x01(\t\x12\x14\n\x0csMatchedTime\x18\x02 \x01(\t\x12\x13\n\x0b\x66MatchedAmt\x18\x03 \x01(\x02\x12\x1a\n\x06\x62sFlat\x18\x04 \x01(\x0e\x32\n.Trade.DIR\x12\x15\n\rfMatchedPrice\x18\x05 \x01(\x02\x12\x13\n\x0blMatchedQty\x18\x06 \x01(\x04\x12\x12\n\nsMatchedSn\x18\x07 \x01(\t\x12\x18\n\x10\x66TotalCommission\x18\x08 \x01(\x02\x12\x31\n\x0ftradeReportType\x18\t \x01(\x0e\x32\x18.Trade.TRADE_REPORT_TYPE\x12\x10\n\x08sStkCode\x18\n \x01(\t\x12\x10\n\x08sStkName\x18\x0b \x01(\t\x12\x10\n\x08sLocalId\x18\x0c \x01(\t\"T\n\x08RspTrans\x12#\n\trspHeader\x18\x01 \x01(\x0b\x32\x10.Trade.RspHeader\x12#\n\ttransItem\x18\x02 \x03(\x0b\x32\x10.Trade.TransItem\"\x99\x01\n\x0cReqSentOrder\x12\r\n\x05sCode\x18\x01 \x01(\t\x12\x1a\n\x06\x62sFlat\x18\x02 \x01(\x0e\x32\n.Trade.DIR\x12$\n\torderType\x18\x03 \x01(\x0e\x32\x11.Trade.ORDER_TYPE\x12\x13\n\x0biOrderPrice\x18\x04 \x01(\r\x12\x11\n\tlOrderQty\x18\x05 \x01(\x04\x12\x10\n\x08sLocalId\x18\x06 \x01(\t\"E\n\x0cRspSentOrder\x12#\n\trspHeader\x18\x01 \x01(\x0b\x32\x10.Trade.RspHeader\x12\x10\n\x08sOrderId\x18\x02 \x01(\t\"3\n\x0eReqCancelOrder\x12\x10\n\x08sOrderId\x18\x01 \x01(\t\x12\x0f\n\x07sMarket\x18\x02 \x01(\t\"5\n\x0eRspCancelOrder\x12#\n\trspHeader\x18\x01 \x01(\x0b\x32\x10.Trade.RspHeader*H\n\x08RET_TYPE\x12\x0b\n\x07SUCCESS\x10\x00\x12\x0e\n\nERR_NORMAL\x10\x01\x12\x0f\n\x0b\x45RR_SERIOUS\x10\x02\x12\x0e\n\nERR_IGNORE\x10\x03*#\n\nORDER_TYPE\x12\t\n\x05LIMIT\x10\x00\x12\n\n\x06MARKET\x10\x01*q\n\x0cORDER_STATUS\x12\x0b\n\x07PENDING\x10\x00\x12\n\n\x06TRADED\x10\x01\x12\x0f\n\x0bTRADED_PART\x10\x02\x12\x0e\n\nCANCEL_REQ\x10\x03\x12\x0c\n\x08\x43\x41NCELED\x10\x04\x12\x0c\n\x08REJECTED\x10\x05\x12\x0b\n\x07\x46\x41ILURE\x10\x06*6\n\x11TRADE_REPORT_TYPE\x12\n\n\x06NORMAL\x10\x00\x12\n\n\x06\x43\x41NCEL\x10\x01\x12\t\n\x05WASTE\x10\x02*,\n\x0b\x43\x41NCEL_FLAG\x12\x0e\n\nNOT_CANCEL\x10\x00\x12\r\n\tIS_CANCEL\x10\x01*,\n\x03\x44IR\x12\x07\n\x03\x42UY\x10\x00\x12\x08\n\x04SELL\x10\x01\x12\x08\n\x04\x42OTH\x10\x02\x12\x08\n\x04NULL\x10\x03\x32\xfc\x03\n\x05Trade\x12\x35\n\x08sayHello\x12\x12.Trade.JSONRequest\x1a\x13.Trade.JSONResponse\"\x00\x12\x32\n\x06getPos\x12\x12.Trade.JSONRequest\x1a\x12.Trade.RspPosition\"\x00\x12\x30\n\tgetOrders\x12\x0f.Trade.ReqQuery\x1a\x10.Trade.RspOrders\"\x00\x12.\n\x08getTrans\x12\x0f.Trade.ReqQuery\x1a\x0f.Trade.RspTrans\"\x00\x12;\n\x0fgetOrder_stream\x12\x12.Trade.JSONRequest\x1a\x10.Trade.RspOrders\"\x00\x30\x01\x12:\n\x0fgetTrans_stream\x12\x12.Trade.JSONRequest\x1a\x0f.Trade.RspTrans\"\x00\x30\x01\x12=\n\x0b\x63\x61ncelOrder\x12\x15.Trade.ReqCancelOrder\x1a\x15.Trade.RspCancelOrder\"\x00\x12\x37\n\tsendOrder\x12\x13.Trade.ReqSentOrder\x1a\x13.Trade.RspSentOrder\"\x00\x12\x35\n\ngetAccount\x12\x12.Trade.JSONRequest\x1a\x11.Trade.RspAccount\"\x00\x62\x06proto3')

_RET_TYPE = DESCRIPTOR.enum_types_by_name['RET_TYPE']
RET_TYPE = enum_type_wrapper.EnumTypeWrapper(_RET_TYPE)
_ORDER_TYPE = DESCRIPTOR.enum_types_by_name['ORDER_TYPE']
ORDER_TYPE = enum_type_wrapper.EnumTypeWrapper(_ORDER_TYPE)
_ORDER_STATUS = DESCRIPTOR.enum_types_by_name['ORDER_STATUS']
ORDER_STATUS = enum_type_wrapper.EnumTypeWrapper(_ORDER_STATUS)
_TRADE_REPORT_TYPE = DESCRIPTOR.enum_types_by_name['TRADE_REPORT_TYPE']
TRADE_REPORT_TYPE = enum_type_wrapper.EnumTypeWrapper(_TRADE_REPORT_TYPE)
_CANCEL_FLAG = DESCRIPTOR.enum_types_by_name['CANCEL_FLAG']
CANCEL_FLAG = enum_type_wrapper.EnumTypeWrapper(_CANCEL_FLAG)
_DIR = DESCRIPTOR.enum_types_by_name['DIR']
DIR = enum_type_wrapper.EnumTypeWrapper(_DIR)
SUCCESS = 0
ERR_NORMAL = 1
ERR_SERIOUS = 2
ERR_IGNORE = 3
LIMIT = 0
MARKET = 1
PENDING = 0
TRADED = 1
TRADED_PART = 2
CANCEL_REQ = 3
CANCELED = 4
REJECTED = 5
FAILURE = 6
NORMAL = 0
CANCEL = 1
WASTE = 2
NOT_CANCEL = 0
IS_CANCEL = 1
BUY = 0
SELL = 1
BOTH = 2
NULL = 3


_RSPHEADER = DESCRIPTOR.message_types_by_name['RspHeader']
_JSONREQUEST = DESCRIPTOR.message_types_by_name['JSONRequest']
_JSONRESPONSE = DESCRIPTOR.message_types_by_name['JSONResponse']
_RSPACCOUNT = DESCRIPTOR.message_types_by_name['RspAccount']
_POSITEM = DESCRIPTOR.message_types_by_name['PosItem']
_RSPPOSITION = DESCRIPTOR.message_types_by_name['RspPosition']
_ORDERITEM = DESCRIPTOR.message_types_by_name['OrderItem']
_RSPORDERS = DESCRIPTOR.message_types_by_name['RspOrders']
_REQQUERY = DESCRIPTOR.message_types_by_name['ReqQuery']
_TRANSITEM = DESCRIPTOR.message_types_by_name['TransItem']
_RSPTRANS = DESCRIPTOR.message_types_by_name['RspTrans']
_REQSENTORDER = DESCRIPTOR.message_types_by_name['ReqSentOrder']
_RSPSENTORDER = DESCRIPTOR.message_types_by_name['RspSentOrder']
_REQCANCELORDER = DESCRIPTOR.message_types_by_name['ReqCancelOrder']
_RSPCANCELORDER = DESCRIPTOR.message_types_by_name['RspCancelOrder']
RspHeader = _reflection.GeneratedProtocolMessageType('RspHeader', (_message.Message,), {
  'DESCRIPTOR' : _RSPHEADER,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.RspHeader)
  })
_sym_db.RegisterMessage(RspHeader)

JSONRequest = _reflection.GeneratedProtocolMessageType('JSONRequest', (_message.Message,), {
  'DESCRIPTOR' : _JSONREQUEST,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.JSONRequest)
  })
_sym_db.RegisterMessage(JSONRequest)

JSONResponse = _reflection.GeneratedProtocolMessageType('JSONResponse', (_message.Message,), {
  'DESCRIPTOR' : _JSONRESPONSE,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.JSONResponse)
  })
_sym_db.RegisterMessage(JSONResponse)

RspAccount = _reflection.GeneratedProtocolMessageType('RspAccount', (_message.Message,), {
  'DESCRIPTOR' : _RSPACCOUNT,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.RspAccount)
  })
_sym_db.RegisterMessage(RspAccount)

PosItem = _reflection.GeneratedProtocolMessageType('PosItem', (_message.Message,), {
  'DESCRIPTOR' : _POSITEM,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.PosItem)
  })
_sym_db.RegisterMessage(PosItem)

RspPosition = _reflection.GeneratedProtocolMessageType('RspPosition', (_message.Message,), {
  'DESCRIPTOR' : _RSPPOSITION,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.RspPosition)
  })
_sym_db.RegisterMessage(RspPosition)

OrderItem = _reflection.GeneratedProtocolMessageType('OrderItem', (_message.Message,), {
  'DESCRIPTOR' : _ORDERITEM,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.OrderItem)
  })
_sym_db.RegisterMessage(OrderItem)

RspOrders = _reflection.GeneratedProtocolMessageType('RspOrders', (_message.Message,), {
  'DESCRIPTOR' : _RSPORDERS,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.RspOrders)
  })
_sym_db.RegisterMessage(RspOrders)

ReqQuery = _reflection.GeneratedProtocolMessageType('ReqQuery', (_message.Message,), {
  'DESCRIPTOR' : _REQQUERY,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.ReqQuery)
  })
_sym_db.RegisterMessage(ReqQuery)

TransItem = _reflection.GeneratedProtocolMessageType('TransItem', (_message.Message,), {
  'DESCRIPTOR' : _TRANSITEM,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.TransItem)
  })
_sym_db.RegisterMessage(TransItem)

RspTrans = _reflection.GeneratedProtocolMessageType('RspTrans', (_message.Message,), {
  'DESCRIPTOR' : _RSPTRANS,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.RspTrans)
  })
_sym_db.RegisterMessage(RspTrans)

ReqSentOrder = _reflection.GeneratedProtocolMessageType('ReqSentOrder', (_message.Message,), {
  'DESCRIPTOR' : _REQSENTORDER,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.ReqSentOrder)
  })
_sym_db.RegisterMessage(ReqSentOrder)

RspSentOrder = _reflection.GeneratedProtocolMessageType('RspSentOrder', (_message.Message,), {
  'DESCRIPTOR' : _RSPSENTORDER,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.RspSentOrder)
  })
_sym_db.RegisterMessage(RspSentOrder)

ReqCancelOrder = _reflection.GeneratedProtocolMessageType('ReqCancelOrder', (_message.Message,), {
  'DESCRIPTOR' : _REQCANCELORDER,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.ReqCancelOrder)
  })
_sym_db.RegisterMessage(ReqCancelOrder)

RspCancelOrder = _reflection.GeneratedProtocolMessageType('RspCancelOrder', (_message.Message,), {
  'DESCRIPTOR' : _RSPCANCELORDER,
  '__module__' : 'tradeApi_pb2'
  # @@protoc_insertion_point(class_scope:Trade.RspCancelOrder)
  })
_sym_db.RegisterMessage(RspCancelOrder)

_TRADE = DESCRIPTOR.services_by_name['Trade']
if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  _RET_TYPE._serialized_start=1795
  _RET_TYPE._serialized_end=1867
  _ORDER_TYPE._serialized_start=1869
  _ORDER_TYPE._serialized_end=1904
  _ORDER_STATUS._serialized_start=1906
  _ORDER_STATUS._serialized_end=2019
  _TRADE_REPORT_TYPE._serialized_start=2021
  _TRADE_REPORT_TYPE._serialized_end=2075
  _CANCEL_FLAG._serialized_start=2077
  _CANCEL_FLAG._serialized_end=2121
  _DIR._serialized_start=2123
  _DIR._serialized_end=2167
  _RSPHEADER._serialized_start=25
  _RSPHEADER._serialized_end=89
  _JSONREQUEST._serialized_start=91
  _JSONREQUEST._serialized_end=118
  _JSONRESPONSE._serialized_start=120
  _JSONRESPONSE._serialized_end=185
  _RSPACCOUNT._serialized_start=188
  _RSPACCOUNT._serialized_end=317
  _POSITEM._serialized_start=320
  _POSITEM._serialized_end=461
  _RSPPOSITION._serialized_start=463
  _RSPPOSITION._serialized_end=546
  _ORDERITEM._serialized_start=549
  _ORDERITEM._serialized_end=918
  _RSPORDERS._serialized_start=920
  _RSPORDERS._serialized_end=1025
  _REQQUERY._serialized_start=1027
  _REQQUERY._serialized_end=1074
  _TRANSITEM._serialized_start=1077
  _TRANSITEM._serialized_end=1372
  _RSPTRANS._serialized_start=1374
  _RSPTRANS._serialized_end=1458
  _REQSENTORDER._serialized_start=1461
  _REQSENTORDER._serialized_end=1614
  _RSPSENTORDER._serialized_start=1616
  _RSPSENTORDER._serialized_end=1685
  _REQCANCELORDER._serialized_start=1687
  _REQCANCELORDER._serialized_end=1738
  _RSPCANCELORDER._serialized_start=1740
  _RSPCANCELORDER._serialized_end=1793
  _TRADE._serialized_start=2170
  _TRADE._serialized_end=2678
# @@protoc_insertion_point(module_scope)
