mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
343 lines
21 KiB
Python
343 lines
21 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\x0fUserDataRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\"\xc4\x01\n\x08UserData\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x10\n\x08\x65xchange\x18\x02 \x01(\t\x12\x1e\n\x07\x63hannel\x18\x03 \x01(\x0e\x32\r.bbgo.Channel\x12\x1a\n\x05\x65vent\x18\x04 \x01(\x0e\x32\x0b.bbgo.Event\x12\x1f\n\x08\x62\x61lances\x18\x05 \x03(\x0b\x32\r.bbgo.Balance\x12\x1b\n\x06trades\x18\x06 \x03(\x0b\x32\x0b.bbgo.Trade\x12\x1b\n\x06orders\x18\x07 \x03(\x0b\x32\x0b.bbgo.Order\"=\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\"\xa1\x02\n\nMarketData\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\x1c\n\x06ticker\x18\t \x01(\x0b\x32\x0c.bbgo.Ticker\x12\x1b\n\x06trades\x18\x08 \x03(\x0b\x32\x0b.bbgo.Trade\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\"\xc7\x01\n\x05Trade\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\n\n\x02id\x18\x04 \x01(\t\x12\r\n\x05price\x18\x05 \x01(\t\x12\x10\n\x08quantity\x18\x06 \x01(\t\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x12\x18\n\x04side\x18\x08 \x01(\x0e\x32\n.bbgo.Side\x12\x14\n\x0c\x66\x65\x65_currency\x18\t \x01(\t\x12\x0b\n\x03\x66\x65\x65\x18\n \x01(\t\x12\r\n\x05maker\x18\x0b \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\"\x93\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(\t\x12\x12\n\nstop_price\x18\x07 \x01(\t\x12\x0e\n\x06status\x18\t \x01(\t\x12\x10\n\x08quantity\x18\x0b \x01(\t\x12\x19\n\x11\x65xecuted_quantity\x18\x0c \x01(\t\x12\x17\n\x0f\x63lient_order_id\x18\x0e \x01(\t\x12\x10\n\x08group_id\x18\x0f \x01(\x03\x12\x12\n\ncreated_at\x18\n \x01(\x03\"\xdf\x01\n\x0bSubmitOrder\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\x18\n\x04side\x18\x04 \x01(\x0e\x32\n.bbgo.Side\x12\r\n\x05price\x18\x06 \x01(\t\x12\x10\n\x08quantity\x18\x05 \x01(\t\x12\x12\n\nstop_price\x18\x07 \x01(\t\x12#\n\norder_type\x18\x08 \x01(\x0e\x32\x0f.bbgo.OrderType\x12\x17\n\x0f\x63lient_order_id\x18\t \x01(\t\x12\x10\n\x08group_id\x18\n \x01(\x03\"s\n\x07\x42\x61lance\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x10\n\x08\x65xchange\x18\x02 \x01(\t\x12\x10\n\x08\x63urrency\x18\x03 \x01(\t\x12\x11\n\tavailable\x18\x04 \x01(\t\x12\x0e\n\x06locked\x18\x05 \x01(\t\x12\x10\n\x08\x62orrowed\x18\x06 \x01(\t\"O\n\x12SubmitOrderRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12(\n\rsubmit_orders\x18\x02 \x03(\x0b\x32\x11.bbgo.SubmitOrder\"_\n\x13SubmitOrderResponse\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x1b\n\x06orders\x18\x02 \x03(\x0b\x32\x0b.bbgo.Order\x12\x1a\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x0b.bbgo.Error\"P\n\x12\x43\x61ncelOrderRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x10\n\x08order_id\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\"I\n\x11QueryOrderRequest\x12\x0f\n\x07session\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\"\xa9\x01\n\x12QueryOrdersRequest\x12\x0f\n\x07session\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*n\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\t\n\x05\x45RROR\x10\x63*M\n\x07\x43hannel\x12\x08\n\x04\x42OOK\x10\x00\x12\t\n\x05TRADE\x10\x01\x12\n\n\x06TICKER\x10\x02\x12\t\n\x05KLINE\x10\x03\x12\x0b\n\x07\x42\x41LANCE\x10\x04\x12\t\n\x05ORDER\x10\x05*\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\x94\x01\n\x11MarketDataService\x12\x39\n\tSubscribe\x12\x16.bbgo.SubscribeRequest\x1a\x10.bbgo.MarketData\"\x00\x30\x01\x12\x44\n\x0bQueryKLines\x12\x18.bbgo.QueryKLinesRequest\x1a\x19.bbgo.QueryKLinesResponse\"\x00\x32I\n\x0fUserDataService\x12\x36\n\tSubscribe\x12\x15.bbgo.UserDataRequest\x1a\x0e.bbgo.UserData\"\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
|
|
ERROR = 99
|
|
BOOK = 0
|
|
TRADE = 1
|
|
TICKER = 2
|
|
KLINE = 3
|
|
BALANCE = 4
|
|
ORDER = 5
|
|
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']
|
|
_USERDATAREQUEST = DESCRIPTOR.message_types_by_name['UserDataRequest']
|
|
_USERDATA = DESCRIPTOR.message_types_by_name['UserData']
|
|
_SUBSCRIBEREQUEST = DESCRIPTOR.message_types_by_name['SubscribeRequest']
|
|
_SUBSCRIPTION = DESCRIPTOR.message_types_by_name['Subscription']
|
|
_MARKETDATA = DESCRIPTOR.message_types_by_name['MarketData']
|
|
_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)
|
|
|
|
UserDataRequest = _reflection.GeneratedProtocolMessageType('UserDataRequest', (_message.Message,), {
|
|
'DESCRIPTOR' : _USERDATAREQUEST,
|
|
'__module__' : 'bbgo_pb2'
|
|
# @@protoc_insertion_point(class_scope:bbgo.UserDataRequest)
|
|
})
|
|
_sym_db.RegisterMessage(UserDataRequest)
|
|
|
|
UserData = _reflection.GeneratedProtocolMessageType('UserData', (_message.Message,), {
|
|
'DESCRIPTOR' : _USERDATA,
|
|
'__module__' : 'bbgo_pb2'
|
|
# @@protoc_insertion_point(class_scope:bbgo.UserData)
|
|
})
|
|
_sym_db.RegisterMessage(UserData)
|
|
|
|
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)
|
|
|
|
MarketData = _reflection.GeneratedProtocolMessageType('MarketData', (_message.Message,), {
|
|
'DESCRIPTOR' : _MARKETDATA,
|
|
'__module__' : 'bbgo_pb2'
|
|
# @@protoc_insertion_point(class_scope:bbgo.MarketData)
|
|
})
|
|
_sym_db.RegisterMessage(MarketData)
|
|
|
|
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=3305
|
|
_EVENT._serialized_end=3415
|
|
_CHANNEL._serialized_start=3417
|
|
_CHANNEL._serialized_end=3494
|
|
_SIDE._serialized_start=3496
|
|
_SIDE._serialized_end=3521
|
|
_ORDERTYPE._serialized_start=3523
|
|
_ORDERTYPE._serialized_end=3620
|
|
_EMPTY._serialized_start=20
|
|
_EMPTY._serialized_end=27
|
|
_ERROR._serialized_start=29
|
|
_ERROR._serialized_end=79
|
|
_USERDATAREQUEST._serialized_start=81
|
|
_USERDATAREQUEST._serialized_end=115
|
|
_USERDATA._serialized_start=118
|
|
_USERDATA._serialized_end=314
|
|
_SUBSCRIBEREQUEST._serialized_start=316
|
|
_SUBSCRIBEREQUEST._serialized_end=377
|
|
_SUBSCRIPTION._serialized_start=379
|
|
_SUBSCRIPTION._serialized_end=492
|
|
_MARKETDATA._serialized_start=495
|
|
_MARKETDATA._serialized_end=784
|
|
_DEPTH._serialized_start=786
|
|
_DEPTH._serialized_end=893
|
|
_PRICEVOLUME._serialized_start=895
|
|
_PRICEVOLUME._serialized_end=939
|
|
_TRADE._serialized_start=942
|
|
_TRADE._serialized_end=1141
|
|
_TICKER._serialized_start=1143
|
|
_TICKER._serialized_end=1257
|
|
_ORDER._serialized_start=1260
|
|
_ORDER._serialized_end=1535
|
|
_SUBMITORDER._serialized_start=1538
|
|
_SUBMITORDER._serialized_end=1761
|
|
_BALANCE._serialized_start=1763
|
|
_BALANCE._serialized_end=1878
|
|
_SUBMITORDERREQUEST._serialized_start=1880
|
|
_SUBMITORDERREQUEST._serialized_end=1959
|
|
_SUBMITORDERRESPONSE._serialized_start=1961
|
|
_SUBMITORDERRESPONSE._serialized_end=2056
|
|
_CANCELORDERREQUEST._serialized_start=2058
|
|
_CANCELORDERREQUEST._serialized_end=2138
|
|
_CANCELORDERRESPONSE._serialized_start=2140
|
|
_CANCELORDERRESPONSE._serialized_end=2217
|
|
_QUERYORDERREQUEST._serialized_start=2219
|
|
_QUERYORDERREQUEST._serialized_end=2292
|
|
_QUERYORDERRESPONSE._serialized_start=2294
|
|
_QUERYORDERRESPONSE._serialized_end=2370
|
|
_QUERYORDERSREQUEST._serialized_start=2373
|
|
_QUERYORDERSREQUEST._serialized_end=2542
|
|
_QUERYORDERSRESPONSE._serialized_start=2544
|
|
_QUERYORDERSRESPONSE._serialized_end=2622
|
|
_QUERYTRADESREQUEST._serialized_start=2625
|
|
_QUERYTRADESREQUEST._serialized_end=2807
|
|
_QUERYTRADESRESPONSE._serialized_start=2809
|
|
_QUERYTRADESRESPONSE._serialized_end=2887
|
|
_QUERYKLINESREQUEST._serialized_start=2889
|
|
_QUERYKLINESREQUEST._serialized_end=3014
|
|
_QUERYKLINESRESPONSE._serialized_start=3016
|
|
_QUERYKLINESRESPONSE._serialized_end=3094
|
|
_KLINE._serialized_start=3097
|
|
_KLINE._serialized_end=3303
|
|
_MARKETDATASERVICE._serialized_start=3623
|
|
_MARKETDATASERVICE._serialized_end=3771
|
|
_USERDATASERVICE._serialized_start=3773
|
|
_USERDATASERVICE._serialized_end=3846
|
|
_TRADINGSERVICE._serialized_start=3849
|
|
_TRADINGSERVICE._serialized_end=4212
|
|
# @@protoc_insertion_point(module_scope)
|