bbgo_origin/python/bbgo_pb2.py
2022-04-13 23:20:57 +08:00

328 lines
20 KiB
Python

# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: bbgo.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\nbbgo.proto\x12\x04\x62\x62go\"\x07\n\x05\x45mpty\"2\n\x05\x45rror\x12\x12\n\nerror_code\x18\x01 \x01(\x03\x12\x15\n\rerror_message\x18\x02 \x01(\t\"=\n\x10SubscribeRequest\x12)\n\rsubscriptions\x18\x01 \x03(\x0b\x32\x12.bbgo.Subscription\"q\n\x0cSubscription\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x1e\n\x07\x63hannel\x18\x02 \x01(\x0e\x32\r.bbgo.Channel\x12\x0e\n\x06symbol\x18\x03 \x01(\t\x12\r\n\x05\x64\x65pth\x18\x04 \x01(\t\x12\x10\n\x08interval\x18\x05 \x01(\t\"\xe6\x02\n\x11SubscribeResponse\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x10\n\x08\x65xchange\x18\x02 \x01(\t\x12\x0e\n\x06symbol\x18\x03 \x01(\t\x12\x1e\n\x07\x63hannel\x18\x04 \x01(\x0e\x32\r.bbgo.Channel\x12\x1a\n\x05\x65vent\x18\x05 \x01(\x0e\x32\x0b.bbgo.Event\x12\x1a\n\x05\x64\x65pth\x18\x06 \x01(\x0b\x32\x0b.bbgo.Depth\x12\x1a\n\x05kline\x18\x07 \x01(\x0b\x32\x0b.bbgo.KLine\x12\x1b\n\x06trades\x18\x08 \x03(\x0b\x32\x0b.bbgo.Trade\x12\x1c\n\x06ticker\x18\t \x01(\x0b\x32\x0c.bbgo.Ticker\x12\x1b\n\x06orders\x18\n \x03(\x0b\x32\x0b.bbgo.Order\x12\x1f\n\x08\x62\x61lances\x18\x0b \x03(\x0b\x32\r.bbgo.Balance\x12\x15\n\rsubscribed_at\x18\x0c \x01(\x03\x12\x1a\n\x05\x65rror\x18\r \x01(\x0b\x32\x0b.bbgo.Error\"k\n\x05\x44\x65pth\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x1f\n\x04\x61sks\x18\x03 \x03(\x0b\x32\x11.bbgo.PriceVolume\x12\x1f\n\x04\x62ids\x18\x04 \x03(\x0b\x32\x11.bbgo.PriceVolume\",\n\x0bPriceVolume\x12\r\n\x05price\x18\x01 \x01(\t\x12\x0e\n\x06volume\x18\x02 \x01(\t\"\xb6\x01\n\x05Trade\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\x12\r\n\x05price\x18\x04 \x01(\t\x12\x10\n\x08quantity\x18\x05 \x01(\t\x12\x12\n\ncreated_at\x18\x06 \x01(\x03\x12\x18\n\x04side\x18\x07 \x01(\x0e\x32\n.bbgo.Side\x12\x14\n\x0c\x66\x65\x65_currency\x18\x08 \x01(\t\x12\x0b\n\x03\x66\x65\x65\x18\t \x01(\t\x12\r\n\x05maker\x18\n \x01(\x08\"r\n\x06Ticker\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x0c\n\x04open\x18\x03 \x01(\x01\x12\x0c\n\x04high\x18\x04 \x01(\x01\x12\x0b\n\x03low\x18\x05 \x01(\x01\x12\r\n\x05\x63lose\x18\x06 \x01(\x01\x12\x0e\n\x06volume\x18\x07 \x01(\x01\"\xba\x02\n\x05Order\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\x12\x18\n\x04side\x18\x04 \x01(\x0e\x32\n.bbgo.Side\x12#\n\norder_type\x18\x05 \x01(\x0e\x32\x0f.bbgo.OrderType\x12\r\n\x05price\x18\x06 \x01(\x01\x12\x12\n\nstop_price\x18\x07 \x01(\x01\x12\x11\n\tavg_price\x18\x08 \x01(\x01\x12\x0e\n\x06status\x18\t \x01(\t\x12\x12\n\ncreated_at\x18\n \x01(\x03\x12\x10\n\x08quantity\x18\x0b \x01(\x01\x12\x17\n\x0f\x65xecuted_volume\x18\x0c \x01(\x01\x12\x14\n\x0ctrades_count\x18\r \x01(\x03\x12\x17\n\x0f\x63lient_order_id\x18\x0e \x01(\t\x12\x10\n\x08group_id\x18\x0f \x01(\x03\"\xce\x01\n\x0bSubmitOrder\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x18\n\x04side\x18\x03 \x01(\x0e\x32\n.bbgo.Side\x12\x10\n\x08quantity\x18\x04 \x01(\x01\x12\r\n\x05price\x18\x05 \x01(\x01\x12\x12\n\nstop_price\x18\x06 \x01(\x01\x12#\n\norder_type\x18\x07 \x01(\x0e\x32\x0f.bbgo.OrderType\x12\x17\n\x0f\x63lient_order_id\x18\x08 \x01(\t\x12\x10\n\x08group_id\x18\t \x01(\x03\"P\n\x07\x42\x61lance\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x10\n\x08\x63urrency\x18\x02 \x01(\t\x12\x11\n\tavailable\x18\x03 \x01(\x01\x12\x0e\n\x06locked\x18\x04 \x01(\x01\"=\n\x12SubmitOrderRequest\x12\'\n\x0csubmit_order\x18\x01 \x01(\x0b\x32\x11.bbgo.SubmitOrder\"M\n\x13SubmitOrderResponse\x12\x1a\n\x05order\x18\x01 \x01(\x0b\x32\x0b.bbgo.Order\x12\x1a\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x0b.bbgo.Error\"K\n\x12\x43\x61ncelOrderRequest\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x17\n\x0f\x63lient_order_id\x18\x03 \x01(\t\"M\n\x13\x43\x61ncelOrderResponse\x12\x1a\n\x05order\x18\x01 \x01(\x0b\x32\x0b.bbgo.Order\x12\x1a\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x0b.bbgo.Error\"J\n\x11QueryOrderRequest\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x17\n\x0f\x63lient_order_id\x18\x03 \x01(\t\"L\n\x12QueryOrderResponse\x12\x1a\n\x05order\x18\x01 \x01(\x0b\x32\x0b.bbgo.Order\x12\x1a\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x0b.bbgo.Error\"\xaa\x01\n\x12QueryOrdersRequest\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\r\n\x05state\x18\x03 \x03(\t\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12\x10\n\x08group_id\x18\x05 \x01(\x03\x12\x12\n\npagination\x18\x06 \x01(\x08\x12\x0c\n\x04page\x18\x07 \x01(\x03\x12\r\n\x05limit\x18\x08 \x01(\x03\x12\x0e\n\x06offset\x18\t \x01(\x03\"N\n\x13QueryOrdersResponse\x12\x1b\n\x06orders\x18\x01 \x03(\x0b\x32\x0b.bbgo.Order\x12\x1a\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x0b.bbgo.Error\"\xb6\x01\n\x12QueryTradesRequest\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x03\x12\x0c\n\x04\x66rom\x18\x04 \x01(\x03\x12\n\n\x02to\x18\x05 \x01(\x03\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12\x12\n\npagination\x18\x07 \x01(\x08\x12\x0c\n\x04page\x18\x08 \x01(\x03\x12\r\n\x05limit\x18\t \x01(\x03\x12\x0e\n\x06offset\x18\n \x01(\x03\"N\n\x13QueryTradesResponse\x12\x1b\n\x06trades\x18\x01 \x03(\x0b\x32\x0b.bbgo.Trade\x12\x1a\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x0b.bbgo.Error\"}\n\x12QueryKLinesRequest\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x10\n\x08interval\x18\x03 \x01(\t\x12\x12\n\nstart_time\x18\x04 \x01(\x03\x12\x10\n\x08\x65nd_time\x18\x05 \x01(\x03\x12\r\n\x05limit\x18\x06 \x01(\x03\"N\n\x13QueryKLinesResponse\x12\x1b\n\x06klines\x18\x01 \x03(\x0b\x32\x0b.bbgo.KLine\x12\x1a\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x0b.bbgo.Error\"\xce\x01\n\x05KLine\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x10\n\x08\x65xchange\x18\x02 \x01(\t\x12\x0e\n\x06symbol\x18\x03 \x01(\t\x12\x0c\n\x04open\x18\x04 \x01(\t\x12\x0c\n\x04high\x18\x05 \x01(\t\x12\x0b\n\x03low\x18\x06 \x01(\t\x12\r\n\x05\x63lose\x18\x07 \x01(\t\x12\x0e\n\x06volume\x18\x08 \x01(\t\x12\x14\n\x0cquote_volume\x18\t \x01(\t\x12\x12\n\nstart_time\x18\n \x01(\x03\x12\x10\n\x08\x65nd_time\x18\x0b \x01(\x03\x12\x0e\n\x06\x63losed\x18\x0c \x01(\x08*\xe4\x01\n\x05\x45vent\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0e\n\nSUBSCRIBED\x10\x01\x12\x10\n\x0cUNSUBSCRIBED\x10\x02\x12\x0c\n\x08SNAPSHOT\x10\x03\x12\n\n\x06UPDATE\x10\x04\x12\x11\n\rAUTHENTICATED\x10\x05\x12\x12\n\x0eORDER_SNAPSHOT\x10\x06\x12\x10\n\x0cORDER_UPDATE\x10\x07\x12\x12\n\x0eTRADE_SNAPSHOT\x10\x08\x12\x10\n\x0cTRADE_UPDATE\x10\t\x12\x14\n\x10\x41\x43\x43OUNT_SNAPSHOT\x10\n\x12\x12\n\x0e\x41\x43\x43OUNT_UPDATE\x10\x0b\x12\t\n\x05\x45RROR\x10\x63*?\n\x07\x43hannel\x12\x08\n\x04\x42OOK\x10\x00\x12\t\n\x05TRADE\x10\x01\x12\n\n\x06TICKER\x10\x02\x12\x08\n\x04USER\x10\x03\x12\t\n\x05KLINE\x10\x04*\x19\n\x04Side\x12\x07\n\x03\x42UY\x10\x00\x12\x08\n\x04SELL\x10\x01*a\n\tOrderType\x12\n\n\x06MARKET\x10\x00\x12\t\n\x05LIMIT\x10\x01\x12\x0f\n\x0bSTOP_MARKET\x10\x02\x12\x0e\n\nSTOP_LIMIT\x10\x03\x12\r\n\tPOST_ONLY\x10\x04\x12\r\n\tIOC_LIMIT\x10\x05\x32\x9b\x01\n\x11MarketDataService\x12@\n\tSubscribe\x12\x16.bbgo.SubscribeRequest\x1a\x17.bbgo.SubscribeResponse\"\x00\x30\x01\x12\x44\n\x0bQueryKLines\x12\x18.bbgo.QueryKLinesRequest\x1a\x19.bbgo.QueryKLinesResponse\"\x00\x32P\n\x0fUserDataService\x12=\n\x11SubscribeUserData\x12\x0b.bbgo.Empty\x1a\x17.bbgo.SubscribeResponse\"\x00\x30\x01\x32\xeb\x02\n\x0eTradingService\x12\x44\n\x0bSubmitOrder\x12\x18.bbgo.SubmitOrderRequest\x1a\x19.bbgo.SubmitOrderResponse\"\x00\x12\x44\n\x0b\x43\x61ncelOrder\x12\x18.bbgo.CancelOrderRequest\x1a\x19.bbgo.CancelOrderResponse\"\x00\x12\x41\n\nQueryOrder\x12\x17.bbgo.QueryOrderRequest\x1a\x18.bbgo.QueryOrderResponse\"\x00\x12\x44\n\x0bQueryOrders\x12\x18.bbgo.QueryOrdersRequest\x1a\x19.bbgo.QueryOrdersResponse\"\x00\x12\x44\n\x0bQueryTrades\x12\x18.bbgo.QueryTradesRequest\x1a\x19.bbgo.QueryTradesResponse\"\x00\x42\x07Z\x05../pbb\x06proto3')
_EVENT = DESCRIPTOR.enum_types_by_name['Event']
Event = enum_type_wrapper.EnumTypeWrapper(_EVENT)
_CHANNEL = DESCRIPTOR.enum_types_by_name['Channel']
Channel = enum_type_wrapper.EnumTypeWrapper(_CHANNEL)
_SIDE = DESCRIPTOR.enum_types_by_name['Side']
Side = enum_type_wrapper.EnumTypeWrapper(_SIDE)
_ORDERTYPE = DESCRIPTOR.enum_types_by_name['OrderType']
OrderType = enum_type_wrapper.EnumTypeWrapper(_ORDERTYPE)
UNKNOWN = 0
SUBSCRIBED = 1
UNSUBSCRIBED = 2
SNAPSHOT = 3
UPDATE = 4
AUTHENTICATED = 5
ORDER_SNAPSHOT = 6
ORDER_UPDATE = 7
TRADE_SNAPSHOT = 8
TRADE_UPDATE = 9
ACCOUNT_SNAPSHOT = 10
ACCOUNT_UPDATE = 11
ERROR = 99
BOOK = 0
TRADE = 1
TICKER = 2
USER = 3
KLINE = 4
BUY = 0
SELL = 1
MARKET = 0
LIMIT = 1
STOP_MARKET = 2
STOP_LIMIT = 3
POST_ONLY = 4
IOC_LIMIT = 5
_EMPTY = DESCRIPTOR.message_types_by_name['Empty']
_ERROR = DESCRIPTOR.message_types_by_name['Error']
_SUBSCRIBEREQUEST = DESCRIPTOR.message_types_by_name['SubscribeRequest']
_SUBSCRIPTION = DESCRIPTOR.message_types_by_name['Subscription']
_SUBSCRIBERESPONSE = DESCRIPTOR.message_types_by_name['SubscribeResponse']
_DEPTH = DESCRIPTOR.message_types_by_name['Depth']
_PRICEVOLUME = DESCRIPTOR.message_types_by_name['PriceVolume']
_TRADE = DESCRIPTOR.message_types_by_name['Trade']
_TICKER = DESCRIPTOR.message_types_by_name['Ticker']
_ORDER = DESCRIPTOR.message_types_by_name['Order']
_SUBMITORDER = DESCRIPTOR.message_types_by_name['SubmitOrder']
_BALANCE = DESCRIPTOR.message_types_by_name['Balance']
_SUBMITORDERREQUEST = DESCRIPTOR.message_types_by_name['SubmitOrderRequest']
_SUBMITORDERRESPONSE = DESCRIPTOR.message_types_by_name['SubmitOrderResponse']
_CANCELORDERREQUEST = DESCRIPTOR.message_types_by_name['CancelOrderRequest']
_CANCELORDERRESPONSE = DESCRIPTOR.message_types_by_name['CancelOrderResponse']
_QUERYORDERREQUEST = DESCRIPTOR.message_types_by_name['QueryOrderRequest']
_QUERYORDERRESPONSE = DESCRIPTOR.message_types_by_name['QueryOrderResponse']
_QUERYORDERSREQUEST = DESCRIPTOR.message_types_by_name['QueryOrdersRequest']
_QUERYORDERSRESPONSE = DESCRIPTOR.message_types_by_name['QueryOrdersResponse']
_QUERYTRADESREQUEST = DESCRIPTOR.message_types_by_name['QueryTradesRequest']
_QUERYTRADESRESPONSE = DESCRIPTOR.message_types_by_name['QueryTradesResponse']
_QUERYKLINESREQUEST = DESCRIPTOR.message_types_by_name['QueryKLinesRequest']
_QUERYKLINESRESPONSE = DESCRIPTOR.message_types_by_name['QueryKLinesResponse']
_KLINE = DESCRIPTOR.message_types_by_name['KLine']
Empty = _reflection.GeneratedProtocolMessageType('Empty', (_message.Message,), {
'DESCRIPTOR' : _EMPTY,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.Empty)
})
_sym_db.RegisterMessage(Empty)
Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), {
'DESCRIPTOR' : _ERROR,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.Error)
})
_sym_db.RegisterMessage(Error)
SubscribeRequest = _reflection.GeneratedProtocolMessageType('SubscribeRequest', (_message.Message,), {
'DESCRIPTOR' : _SUBSCRIBEREQUEST,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.SubscribeRequest)
})
_sym_db.RegisterMessage(SubscribeRequest)
Subscription = _reflection.GeneratedProtocolMessageType('Subscription', (_message.Message,), {
'DESCRIPTOR' : _SUBSCRIPTION,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.Subscription)
})
_sym_db.RegisterMessage(Subscription)
SubscribeResponse = _reflection.GeneratedProtocolMessageType('SubscribeResponse', (_message.Message,), {
'DESCRIPTOR' : _SUBSCRIBERESPONSE,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.SubscribeResponse)
})
_sym_db.RegisterMessage(SubscribeResponse)
Depth = _reflection.GeneratedProtocolMessageType('Depth', (_message.Message,), {
'DESCRIPTOR' : _DEPTH,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.Depth)
})
_sym_db.RegisterMessage(Depth)
PriceVolume = _reflection.GeneratedProtocolMessageType('PriceVolume', (_message.Message,), {
'DESCRIPTOR' : _PRICEVOLUME,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.PriceVolume)
})
_sym_db.RegisterMessage(PriceVolume)
Trade = _reflection.GeneratedProtocolMessageType('Trade', (_message.Message,), {
'DESCRIPTOR' : _TRADE,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.Trade)
})
_sym_db.RegisterMessage(Trade)
Ticker = _reflection.GeneratedProtocolMessageType('Ticker', (_message.Message,), {
'DESCRIPTOR' : _TICKER,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.Ticker)
})
_sym_db.RegisterMessage(Ticker)
Order = _reflection.GeneratedProtocolMessageType('Order', (_message.Message,), {
'DESCRIPTOR' : _ORDER,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.Order)
})
_sym_db.RegisterMessage(Order)
SubmitOrder = _reflection.GeneratedProtocolMessageType('SubmitOrder', (_message.Message,), {
'DESCRIPTOR' : _SUBMITORDER,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.SubmitOrder)
})
_sym_db.RegisterMessage(SubmitOrder)
Balance = _reflection.GeneratedProtocolMessageType('Balance', (_message.Message,), {
'DESCRIPTOR' : _BALANCE,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.Balance)
})
_sym_db.RegisterMessage(Balance)
SubmitOrderRequest = _reflection.GeneratedProtocolMessageType('SubmitOrderRequest', (_message.Message,), {
'DESCRIPTOR' : _SUBMITORDERREQUEST,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.SubmitOrderRequest)
})
_sym_db.RegisterMessage(SubmitOrderRequest)
SubmitOrderResponse = _reflection.GeneratedProtocolMessageType('SubmitOrderResponse', (_message.Message,), {
'DESCRIPTOR' : _SUBMITORDERRESPONSE,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.SubmitOrderResponse)
})
_sym_db.RegisterMessage(SubmitOrderResponse)
CancelOrderRequest = _reflection.GeneratedProtocolMessageType('CancelOrderRequest', (_message.Message,), {
'DESCRIPTOR' : _CANCELORDERREQUEST,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.CancelOrderRequest)
})
_sym_db.RegisterMessage(CancelOrderRequest)
CancelOrderResponse = _reflection.GeneratedProtocolMessageType('CancelOrderResponse', (_message.Message,), {
'DESCRIPTOR' : _CANCELORDERRESPONSE,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.CancelOrderResponse)
})
_sym_db.RegisterMessage(CancelOrderResponse)
QueryOrderRequest = _reflection.GeneratedProtocolMessageType('QueryOrderRequest', (_message.Message,), {
'DESCRIPTOR' : _QUERYORDERREQUEST,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.QueryOrderRequest)
})
_sym_db.RegisterMessage(QueryOrderRequest)
QueryOrderResponse = _reflection.GeneratedProtocolMessageType('QueryOrderResponse', (_message.Message,), {
'DESCRIPTOR' : _QUERYORDERRESPONSE,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.QueryOrderResponse)
})
_sym_db.RegisterMessage(QueryOrderResponse)
QueryOrdersRequest = _reflection.GeneratedProtocolMessageType('QueryOrdersRequest', (_message.Message,), {
'DESCRIPTOR' : _QUERYORDERSREQUEST,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.QueryOrdersRequest)
})
_sym_db.RegisterMessage(QueryOrdersRequest)
QueryOrdersResponse = _reflection.GeneratedProtocolMessageType('QueryOrdersResponse', (_message.Message,), {
'DESCRIPTOR' : _QUERYORDERSRESPONSE,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.QueryOrdersResponse)
})
_sym_db.RegisterMessage(QueryOrdersResponse)
QueryTradesRequest = _reflection.GeneratedProtocolMessageType('QueryTradesRequest', (_message.Message,), {
'DESCRIPTOR' : _QUERYTRADESREQUEST,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.QueryTradesRequest)
})
_sym_db.RegisterMessage(QueryTradesRequest)
QueryTradesResponse = _reflection.GeneratedProtocolMessageType('QueryTradesResponse', (_message.Message,), {
'DESCRIPTOR' : _QUERYTRADESRESPONSE,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.QueryTradesResponse)
})
_sym_db.RegisterMessage(QueryTradesResponse)
QueryKLinesRequest = _reflection.GeneratedProtocolMessageType('QueryKLinesRequest', (_message.Message,), {
'DESCRIPTOR' : _QUERYKLINESREQUEST,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.QueryKLinesRequest)
})
_sym_db.RegisterMessage(QueryKLinesRequest)
QueryKLinesResponse = _reflection.GeneratedProtocolMessageType('QueryKLinesResponse', (_message.Message,), {
'DESCRIPTOR' : _QUERYKLINESRESPONSE,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.QueryKLinesResponse)
})
_sym_db.RegisterMessage(QueryKLinesResponse)
KLine = _reflection.GeneratedProtocolMessageType('KLine', (_message.Message,), {
'DESCRIPTOR' : _KLINE,
'__module__' : 'bbgo_pb2'
# @@protoc_insertion_point(class_scope:bbgo.KLine)
})
_sym_db.RegisterMessage(KLine)
_MARKETDATASERVICE = DESCRIPTOR.services_by_name['MarketDataService']
_USERDATASERVICE = DESCRIPTOR.services_by_name['UserDataService']
_TRADINGSERVICE = DESCRIPTOR.services_by_name['TradingService']
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'Z\005../pb'
_EVENT._serialized_start=3071
_EVENT._serialized_end=3299
_CHANNEL._serialized_start=3301
_CHANNEL._serialized_end=3364
_SIDE._serialized_start=3366
_SIDE._serialized_end=3391
_ORDERTYPE._serialized_start=3393
_ORDERTYPE._serialized_end=3490
_EMPTY._serialized_start=20
_EMPTY._serialized_end=27
_ERROR._serialized_start=29
_ERROR._serialized_end=79
_SUBSCRIBEREQUEST._serialized_start=81
_SUBSCRIBEREQUEST._serialized_end=142
_SUBSCRIPTION._serialized_start=144
_SUBSCRIPTION._serialized_end=257
_SUBSCRIBERESPONSE._serialized_start=260
_SUBSCRIBERESPONSE._serialized_end=618
_DEPTH._serialized_start=620
_DEPTH._serialized_end=727
_PRICEVOLUME._serialized_start=729
_PRICEVOLUME._serialized_end=773
_TRADE._serialized_start=776
_TRADE._serialized_end=958
_TICKER._serialized_start=960
_TICKER._serialized_end=1074
_ORDER._serialized_start=1077
_ORDER._serialized_end=1391
_SUBMITORDER._serialized_start=1394
_SUBMITORDER._serialized_end=1600
_BALANCE._serialized_start=1602
_BALANCE._serialized_end=1682
_SUBMITORDERREQUEST._serialized_start=1684
_SUBMITORDERREQUEST._serialized_end=1745
_SUBMITORDERRESPONSE._serialized_start=1747
_SUBMITORDERRESPONSE._serialized_end=1824
_CANCELORDERREQUEST._serialized_start=1826
_CANCELORDERREQUEST._serialized_end=1901
_CANCELORDERRESPONSE._serialized_start=1903
_CANCELORDERRESPONSE._serialized_end=1980
_QUERYORDERREQUEST._serialized_start=1982
_QUERYORDERREQUEST._serialized_end=2056
_QUERYORDERRESPONSE._serialized_start=2058
_QUERYORDERRESPONSE._serialized_end=2134
_QUERYORDERSREQUEST._serialized_start=2137
_QUERYORDERSREQUEST._serialized_end=2307
_QUERYORDERSRESPONSE._serialized_start=2309
_QUERYORDERSRESPONSE._serialized_end=2387
_QUERYTRADESREQUEST._serialized_start=2390
_QUERYTRADESREQUEST._serialized_end=2572
_QUERYTRADESRESPONSE._serialized_start=2574
_QUERYTRADESRESPONSE._serialized_end=2652
_QUERYKLINESREQUEST._serialized_start=2654
_QUERYKLINESREQUEST._serialized_end=2779
_QUERYKLINESRESPONSE._serialized_start=2781
_QUERYKLINESRESPONSE._serialized_end=2859
_KLINE._serialized_start=2862
_KLINE._serialized_end=3068
_MARKETDATASERVICE._serialized_start=3493
_MARKETDATASERVICE._serialized_end=3648
_USERDATASERVICE._serialized_start=3650
_USERDATASERVICE._serialized_end=3730
_TRADINGSERVICE._serialized_start=3733
_TRADINGSERVICE._serialized_end=4096
# @@protoc_insertion_point(module_scope)