diff --git a/Makefile b/Makefile index 4f5e1a292..5423c219d 100644 --- a/Makefile +++ b/Makefile @@ -175,3 +175,6 @@ static: frontend/out/index.html pkg/server/assets.go protobuf: protoc -I=$(PWD)/pkg/pb --go_out=$(PWD)/pkg/pb $(PWD)/pkg/pb/bbgo.proto + +protobuf-py: + python -m grpc_tools.protoc -I$(PWD)/pkg/pb --python_out=$(PWD)/python/pybbgo --grpc_python_out=$(PWD)/python/pybbgo $(PWD)/pkg/pb/bbgo.proto diff --git a/python/pybbgo/bbgo_pb2.py b/python/pybbgo/bbgo_pb2.py new file mode 100644 index 000000000..7271e4460 --- /dev/null +++ b/python/pybbgo/bbgo_pb2.py @@ -0,0 +1,1828 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: bbgo.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +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.FileDescriptor( + name='bbgo.proto', + package='pb', + syntax='proto3', + serialized_options=b'Z\005../pb', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\nbbgo.proto\x12\x02pb\"\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\x10.pb.Subscription\"P\n\x0cSubscription\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x0e\n\x06symbol\x18\x03 \x01(\t\x12\r\n\x05\x64\x65pth\x18\x04 \x01(\x03\"\x91\x02\n\x11SubscribeResponse\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x0f\n\x07\x63hannel\x18\x03 \x01(\t\x12\r\n\x05\x65vent\x18\x04 \x01(\t\x12\x18\n\x05\x64\x65pth\x18\x05 \x01(\x0b\x32\t.pb.Depth\x12\x19\n\x06trades\x18\x06 \x03(\x0b\x32\t.pb.Trade\x12\x1a\n\x06ticker\x18\x07 \x01(\x0b\x32\n.pb.Ticker\x12\x19\n\x06orders\x18\x08 \x03(\x0b\x32\t.pb.Order\x12\x1d\n\x08\x62\x61lances\x18\t \x03(\x0b\x32\x0b.pb.Balance\x12\x15\n\rsubscribed_at\x18\n \x01(\x03\x12\x18\n\x05\x65rror\x18\x0b \x01(\x0b\x32\t.pb.Error\"g\n\x05\x44\x65pth\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x1d\n\x04\x61sks\x18\x03 \x03(\x0b\x32\x0f.pb.PriceVolume\x12\x1d\n\x04\x62ids\x18\x04 \x03(\x0b\x32\x0f.pb.PriceVolume\",\n\x0bPriceVolume\x12\r\n\x05price\x18\x01 \x01(\x03\x12\x0e\n\x06volume\x18\x02 \x01(\x03\"\xb7\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(\x03\x12\r\n\x05price\x18\x04 \x01(\x01\x12\x0e\n\x06volume\x18\x05 \x01(\x01\x12\x12\n\ncreated_at\x18\x06 \x01(\x03\x12\x0c\n\x04side\x18\x07 \x01(\t\x12\x0b\n\x03\x66\x65\x65\x18\x08 \x01(\x01\x12\x14\n\x0c\x66\x65\x65_currency\x18\t \x01(\t\x12\r\n\x05maker\x18\n \x01(\x08\x12\r\n\x05trend\x18\x0b \x01(\t\"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\"\x9d\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(\x03\x12\x0c\n\x04side\x18\x04 \x01(\t\x12\x12\n\norder_type\x18\x05 \x01(\t\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(\x03\x12\x10\n\x08group_id\x18\x0f \x01(\x03\"\xb1\x01\n\x0bSubmitOrder\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x0c\n\x04side\x18\x03 \x01(\t\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\x12\n\norder_type\x18\x07 \x01(\t\x12\x17\n\x0f\x63lient_order_id\x18\x08 \x01(\x03\x12\x10\n\x08group_id\x18\t \x01(\x03\"`\n\x07\x42\x61lance\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x10\n\x08\x63urrency\x18\x03 \x01(\t\x12\x11\n\tavailable\x18\x04 \x01(\x01\x12\x0e\n\x06locked\x18\x05 \x01(\x01\";\n\x12SubmitOrderRequest\x12%\n\x0csubmit_order\x18\x01 \x01(\x0b\x32\x0f.pb.SubmitOrder\"I\n\x13SubmitOrderResponse\x12\x18\n\x05order\x18\x01 \x01(\x0b\x32\t.pb.Order\x12\x18\n\x05\x65rror\x18\x02 \x01(\x0b\x32\t.pb.Error\"K\n\x12\x43\x61ncelOrderRequest\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\x03\x12\x17\n\x0f\x63lient_order_id\x18\x03 \x01(\x03\"I\n\x13\x43\x61ncelOrderResponse\x12\x18\n\x05order\x18\x01 \x01(\x0b\x32\t.pb.Order\x12\x18\n\x05\x65rror\x18\x02 \x01(\x0b\x32\t.pb.Error\"8\n\x11QueryOrderRequest\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x17\n\x0f\x63lient_order_id\x18\x02 \x01(\x03\"H\n\x12QueryOrderResponse\x12\x18\n\x05order\x18\x01 \x01(\x0b\x32\t.pb.Order\x12\x18\n\x05\x65rror\x18\x02 \x01(\x0b\x32\t.pb.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\"J\n\x13QueryOrdersResponse\x12\x19\n\x06orders\x18\x01 \x03(\x0b\x32\t.pb.Order\x12\x18\n\x05\x65rror\x18\x02 \x01(\x0b\x32\t.pb.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\"J\n\x13QueryTradesResponse\x12\x19\n\x06trades\x18\x01 \x03(\x0b\x32\t.pb.Trade\x12\x18\n\x05\x65rror\x18\x02 \x01(\x0b\x32\t.pb.Error\"j\n\x12QueryKLinesRequest\x12\x10\n\x08\x65xchange\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x03\x12\x10\n\x08interval\x18\x04 \x01(\x03\x12\x11\n\ttimestamp\x18\x05 \x01(\x03\"J\n\x13QueryKLinesResponse\x12\x19\n\x06klines\x18\x01 \x03(\x0b\x32\t.pb.KLine\x12\x18\n\x05\x65rror\x18\x02 \x01(\x0b\x32\t.pb.Error\"\x9a\x01\n\x05KLine\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\x04open\x18\x04 \x01(\x01\x12\x0c\n\x04high\x18\x05 \x01(\x01\x12\x0b\n\x03low\x18\x06 \x01(\x01\x12\r\n\x05\x63lose\x18\x07 \x01(\x01\x12\x0e\n\x06volume\x18\x08 \x01(\x01\x12\x14\n\x0cquote_volume\x18\t \x01(\x01\x32\x86\x04\n\x04\x42\x42GO\x12;\n\x08Subcribe\x12\x14.pb.SubscribeRequest\x1a\x15.pb.SubscribeResponse\"\x00\x30\x01\x12\x38\n\x10SubcribeUserData\x12\t.pb.Empty\x1a\x15.pb.SubscribeResponse\"\x00\x30\x01\x12@\n\x0bSubmitOrder\x12\x16.pb.SubmitOrderRequest\x1a\x17.pb.SubmitOrderResponse\"\x00\x12@\n\x0b\x43\x61ncelOrder\x12\x16.pb.CancelOrderRequest\x1a\x17.pb.CancelOrderResponse\"\x00\x12=\n\nQueryOrder\x12\x15.pb.QueryOrderRequest\x1a\x16.pb.QueryOrderResponse\"\x00\x12@\n\x0bQueryOrders\x12\x16.pb.QueryOrdersRequest\x1a\x17.pb.QueryOrdersResponse\"\x00\x12@\n\x0bQueryTrades\x12\x16.pb.QueryTradesRequest\x1a\x17.pb.QueryTradesResponse\"\x00\x12@\n\x0bQueryKLines\x12\x16.pb.QueryKLinesRequest\x1a\x17.pb.QueryKLinesResponse\"\x00\x42\x07Z\x05../pbb\x06proto3' +) + + + + +_EMPTY = _descriptor.Descriptor( + name='Empty', + full_name='pb.Empty', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=18, + serialized_end=25, +) + + +_ERROR = _descriptor.Descriptor( + name='Error', + full_name='pb.Error', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='error_code', full_name='pb.Error.error_code', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error_message', full_name='pb.Error.error_message', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=27, + serialized_end=77, +) + + +_SUBSCRIBEREQUEST = _descriptor.Descriptor( + name='SubscribeRequest', + full_name='pb.SubscribeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='subscriptions', full_name='pb.SubscribeRequest.subscriptions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=79, + serialized_end=138, +) + + +_SUBSCRIPTION = _descriptor.Descriptor( + name='Subscription', + full_name='pb.Subscription', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.Subscription.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='channel', full_name='pb.Subscription.channel', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='pb.Subscription.symbol', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='depth', full_name='pb.Subscription.depth', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=140, + serialized_end=220, +) + + +_SUBSCRIBERESPONSE = _descriptor.Descriptor( + name='SubscribeResponse', + full_name='pb.SubscribeResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.SubscribeResponse.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='pb.SubscribeResponse.symbol', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='channel', full_name='pb.SubscribeResponse.channel', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='event', full_name='pb.SubscribeResponse.event', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='depth', full_name='pb.SubscribeResponse.depth', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='trades', full_name='pb.SubscribeResponse.trades', index=5, + number=6, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='ticker', full_name='pb.SubscribeResponse.ticker', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='orders', full_name='pb.SubscribeResponse.orders', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='balances', full_name='pb.SubscribeResponse.balances', index=8, + number=9, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='subscribed_at', full_name='pb.SubscribeResponse.subscribed_at', index=9, + number=10, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='pb.SubscribeResponse.error', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=223, + serialized_end=496, +) + + +_DEPTH = _descriptor.Descriptor( + name='Depth', + full_name='pb.Depth', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.Depth.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='pb.Depth.symbol', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='asks', full_name='pb.Depth.asks', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='bids', full_name='pb.Depth.bids', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=498, + serialized_end=601, +) + + +_PRICEVOLUME = _descriptor.Descriptor( + name='PriceVolume', + full_name='pb.PriceVolume', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='price', full_name='pb.PriceVolume.price', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='volume', full_name='pb.PriceVolume.volume', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=603, + serialized_end=647, +) + + +_TRADE = _descriptor.Descriptor( + name='Trade', + full_name='pb.Trade', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.Trade.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='pb.Trade.symbol', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='id', full_name='pb.Trade.id', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='price', full_name='pb.Trade.price', index=3, + number=4, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='volume', full_name='pb.Trade.volume', index=4, + number=5, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='created_at', full_name='pb.Trade.created_at', index=5, + number=6, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='side', full_name='pb.Trade.side', index=6, + number=7, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='fee', full_name='pb.Trade.fee', index=7, + number=8, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='fee_currency', full_name='pb.Trade.fee_currency', index=8, + number=9, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='maker', full_name='pb.Trade.maker', index=9, + number=10, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='trend', full_name='pb.Trade.trend', index=10, + number=11, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=650, + serialized_end=833, +) + + +_TICKER = _descriptor.Descriptor( + name='Ticker', + full_name='pb.Ticker', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.Ticker.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='pb.Ticker.symbol', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='open', full_name='pb.Ticker.open', index=2, + number=3, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='high', full_name='pb.Ticker.high', index=3, + number=4, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='low', full_name='pb.Ticker.low', index=4, + number=5, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='close', full_name='pb.Ticker.close', index=5, + number=6, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='volume', full_name='pb.Ticker.volume', index=6, + number=7, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=835, + serialized_end=949, +) + + +_ORDER = _descriptor.Descriptor( + name='Order', + full_name='pb.Order', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.Order.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='pb.Order.symbol', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='id', full_name='pb.Order.id', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='side', full_name='pb.Order.side', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='order_type', full_name='pb.Order.order_type', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='price', full_name='pb.Order.price', index=5, + number=6, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='stop_price', full_name='pb.Order.stop_price', index=6, + number=7, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='avg_price', full_name='pb.Order.avg_price', index=7, + number=8, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='status', full_name='pb.Order.status', index=8, + number=9, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='created_at', full_name='pb.Order.created_at', index=9, + number=10, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='quantity', full_name='pb.Order.quantity', index=10, + number=11, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='executed_volume', full_name='pb.Order.executed_volume', index=11, + number=12, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='trades_count', full_name='pb.Order.trades_count', index=12, + number=13, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='client_order_id', full_name='pb.Order.client_order_id', index=13, + number=14, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='group_id', full_name='pb.Order.group_id', index=14, + number=15, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=952, + serialized_end=1237, +) + + +_SUBMITORDER = _descriptor.Descriptor( + name='SubmitOrder', + full_name='pb.SubmitOrder', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.SubmitOrder.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='pb.SubmitOrder.symbol', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='side', full_name='pb.SubmitOrder.side', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='quantity', full_name='pb.SubmitOrder.quantity', index=3, + number=4, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='price', full_name='pb.SubmitOrder.price', index=4, + number=5, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='stop_price', full_name='pb.SubmitOrder.stop_price', index=5, + number=6, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='order_type', full_name='pb.SubmitOrder.order_type', index=6, + number=7, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='client_order_id', full_name='pb.SubmitOrder.client_order_id', index=7, + number=8, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='group_id', full_name='pb.SubmitOrder.group_id', index=8, + number=9, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1240, + serialized_end=1417, +) + + +_BALANCE = _descriptor.Descriptor( + name='Balance', + full_name='pb.Balance', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.Balance.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='pb.Balance.symbol', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='currency', full_name='pb.Balance.currency', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='available', full_name='pb.Balance.available', index=3, + number=4, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='locked', full_name='pb.Balance.locked', index=4, + number=5, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1419, + serialized_end=1515, +) + + +_SUBMITORDERREQUEST = _descriptor.Descriptor( + name='SubmitOrderRequest', + full_name='pb.SubmitOrderRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='submit_order', full_name='pb.SubmitOrderRequest.submit_order', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1517, + serialized_end=1576, +) + + +_SUBMITORDERRESPONSE = _descriptor.Descriptor( + name='SubmitOrderResponse', + full_name='pb.SubmitOrderResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='order', full_name='pb.SubmitOrderResponse.order', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='pb.SubmitOrderResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1578, + serialized_end=1651, +) + + +_CANCELORDERREQUEST = _descriptor.Descriptor( + name='CancelOrderRequest', + full_name='pb.CancelOrderRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.CancelOrderRequest.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='id', full_name='pb.CancelOrderRequest.id', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='client_order_id', full_name='pb.CancelOrderRequest.client_order_id', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1653, + serialized_end=1728, +) + + +_CANCELORDERRESPONSE = _descriptor.Descriptor( + name='CancelOrderResponse', + full_name='pb.CancelOrderResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='order', full_name='pb.CancelOrderResponse.order', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='pb.CancelOrderResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1730, + serialized_end=1803, +) + + +_QUERYORDERREQUEST = _descriptor.Descriptor( + name='QueryOrderRequest', + full_name='pb.QueryOrderRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='pb.QueryOrderRequest.id', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='client_order_id', full_name='pb.QueryOrderRequest.client_order_id', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1805, + serialized_end=1861, +) + + +_QUERYORDERRESPONSE = _descriptor.Descriptor( + name='QueryOrderResponse', + full_name='pb.QueryOrderResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='order', full_name='pb.QueryOrderResponse.order', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='pb.QueryOrderResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1863, + serialized_end=1935, +) + + +_QUERYORDERSREQUEST = _descriptor.Descriptor( + name='QueryOrdersRequest', + full_name='pb.QueryOrdersRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.QueryOrdersRequest.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='pb.QueryOrdersRequest.symbol', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='state', full_name='pb.QueryOrdersRequest.state', index=2, + number=3, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='order_by', full_name='pb.QueryOrdersRequest.order_by', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='group_id', full_name='pb.QueryOrdersRequest.group_id', index=4, + number=5, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='pagination', full_name='pb.QueryOrdersRequest.pagination', index=5, + number=6, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='page', full_name='pb.QueryOrdersRequest.page', index=6, + number=7, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='limit', full_name='pb.QueryOrdersRequest.limit', index=7, + number=8, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='offset', full_name='pb.QueryOrdersRequest.offset', index=8, + number=9, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1938, + serialized_end=2108, +) + + +_QUERYORDERSRESPONSE = _descriptor.Descriptor( + name='QueryOrdersResponse', + full_name='pb.QueryOrdersResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='orders', full_name='pb.QueryOrdersResponse.orders', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='pb.QueryOrdersResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2110, + serialized_end=2184, +) + + +_QUERYTRADESREQUEST = _descriptor.Descriptor( + name='QueryTradesRequest', + full_name='pb.QueryTradesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.QueryTradesRequest.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='pb.QueryTradesRequest.symbol', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='timestamp', full_name='pb.QueryTradesRequest.timestamp', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='from', full_name='pb.QueryTradesRequest.from', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='to', full_name='pb.QueryTradesRequest.to', index=4, + number=5, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='order_by', full_name='pb.QueryTradesRequest.order_by', index=5, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='pagination', full_name='pb.QueryTradesRequest.pagination', index=6, + number=7, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='page', full_name='pb.QueryTradesRequest.page', index=7, + number=8, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='limit', full_name='pb.QueryTradesRequest.limit', index=8, + number=9, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='offset', full_name='pb.QueryTradesRequest.offset', index=9, + number=10, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2187, + serialized_end=2369, +) + + +_QUERYTRADESRESPONSE = _descriptor.Descriptor( + name='QueryTradesResponse', + full_name='pb.QueryTradesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='trades', full_name='pb.QueryTradesResponse.trades', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='pb.QueryTradesResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2371, + serialized_end=2445, +) + + +_QUERYKLINESREQUEST = _descriptor.Descriptor( + name='QueryKLinesRequest', + full_name='pb.QueryKLinesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.QueryKLinesRequest.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='pb.QueryKLinesRequest.symbol', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='limit', full_name='pb.QueryKLinesRequest.limit', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='interval', full_name='pb.QueryKLinesRequest.interval', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='timestamp', full_name='pb.QueryKLinesRequest.timestamp', index=4, + number=5, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2447, + serialized_end=2553, +) + + +_QUERYKLINESRESPONSE = _descriptor.Descriptor( + name='QueryKLinesResponse', + full_name='pb.QueryKLinesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='klines', full_name='pb.QueryKLinesResponse.klines', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='error', full_name='pb.QueryKLinesResponse.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2555, + serialized_end=2629, +) + + +_KLINE = _descriptor.Descriptor( + name='KLine', + full_name='pb.KLine', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='exchange', full_name='pb.KLine.exchange', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='pb.KLine.symbol', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='timestamp', full_name='pb.KLine.timestamp', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='open', full_name='pb.KLine.open', index=3, + number=4, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='high', full_name='pb.KLine.high', index=4, + number=5, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='low', full_name='pb.KLine.low', index=5, + number=6, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='close', full_name='pb.KLine.close', index=6, + number=7, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='volume', full_name='pb.KLine.volume', index=7, + number=8, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='quote_volume', full_name='pb.KLine.quote_volume', index=8, + number=9, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2632, + serialized_end=2786, +) + +_SUBSCRIBEREQUEST.fields_by_name['subscriptions'].message_type = _SUBSCRIPTION +_SUBSCRIBERESPONSE.fields_by_name['depth'].message_type = _DEPTH +_SUBSCRIBERESPONSE.fields_by_name['trades'].message_type = _TRADE +_SUBSCRIBERESPONSE.fields_by_name['ticker'].message_type = _TICKER +_SUBSCRIBERESPONSE.fields_by_name['orders'].message_type = _ORDER +_SUBSCRIBERESPONSE.fields_by_name['balances'].message_type = _BALANCE +_SUBSCRIBERESPONSE.fields_by_name['error'].message_type = _ERROR +_DEPTH.fields_by_name['asks'].message_type = _PRICEVOLUME +_DEPTH.fields_by_name['bids'].message_type = _PRICEVOLUME +_SUBMITORDERREQUEST.fields_by_name['submit_order'].message_type = _SUBMITORDER +_SUBMITORDERRESPONSE.fields_by_name['order'].message_type = _ORDER +_SUBMITORDERRESPONSE.fields_by_name['error'].message_type = _ERROR +_CANCELORDERRESPONSE.fields_by_name['order'].message_type = _ORDER +_CANCELORDERRESPONSE.fields_by_name['error'].message_type = _ERROR +_QUERYORDERRESPONSE.fields_by_name['order'].message_type = _ORDER +_QUERYORDERRESPONSE.fields_by_name['error'].message_type = _ERROR +_QUERYORDERSRESPONSE.fields_by_name['orders'].message_type = _ORDER +_QUERYORDERSRESPONSE.fields_by_name['error'].message_type = _ERROR +_QUERYTRADESRESPONSE.fields_by_name['trades'].message_type = _TRADE +_QUERYTRADESRESPONSE.fields_by_name['error'].message_type = _ERROR +_QUERYKLINESRESPONSE.fields_by_name['klines'].message_type = _KLINE +_QUERYKLINESRESPONSE.fields_by_name['error'].message_type = _ERROR +DESCRIPTOR.message_types_by_name['Empty'] = _EMPTY +DESCRIPTOR.message_types_by_name['Error'] = _ERROR +DESCRIPTOR.message_types_by_name['SubscribeRequest'] = _SUBSCRIBEREQUEST +DESCRIPTOR.message_types_by_name['Subscription'] = _SUBSCRIPTION +DESCRIPTOR.message_types_by_name['SubscribeResponse'] = _SUBSCRIBERESPONSE +DESCRIPTOR.message_types_by_name['Depth'] = _DEPTH +DESCRIPTOR.message_types_by_name['PriceVolume'] = _PRICEVOLUME +DESCRIPTOR.message_types_by_name['Trade'] = _TRADE +DESCRIPTOR.message_types_by_name['Ticker'] = _TICKER +DESCRIPTOR.message_types_by_name['Order'] = _ORDER +DESCRIPTOR.message_types_by_name['SubmitOrder'] = _SUBMITORDER +DESCRIPTOR.message_types_by_name['Balance'] = _BALANCE +DESCRIPTOR.message_types_by_name['SubmitOrderRequest'] = _SUBMITORDERREQUEST +DESCRIPTOR.message_types_by_name['SubmitOrderResponse'] = _SUBMITORDERRESPONSE +DESCRIPTOR.message_types_by_name['CancelOrderRequest'] = _CANCELORDERREQUEST +DESCRIPTOR.message_types_by_name['CancelOrderResponse'] = _CANCELORDERRESPONSE +DESCRIPTOR.message_types_by_name['QueryOrderRequest'] = _QUERYORDERREQUEST +DESCRIPTOR.message_types_by_name['QueryOrderResponse'] = _QUERYORDERRESPONSE +DESCRIPTOR.message_types_by_name['QueryOrdersRequest'] = _QUERYORDERSREQUEST +DESCRIPTOR.message_types_by_name['QueryOrdersResponse'] = _QUERYORDERSRESPONSE +DESCRIPTOR.message_types_by_name['QueryTradesRequest'] = _QUERYTRADESREQUEST +DESCRIPTOR.message_types_by_name['QueryTradesResponse'] = _QUERYTRADESRESPONSE +DESCRIPTOR.message_types_by_name['QueryKLinesRequest'] = _QUERYKLINESREQUEST +DESCRIPTOR.message_types_by_name['QueryKLinesResponse'] = _QUERYKLINESRESPONSE +DESCRIPTOR.message_types_by_name['KLine'] = _KLINE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Empty = _reflection.GeneratedProtocolMessageType('Empty', (_message.Message,), { + 'DESCRIPTOR' : _EMPTY, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.Empty) + }) +_sym_db.RegisterMessage(Empty) + +Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), { + 'DESCRIPTOR' : _ERROR, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.Error) + }) +_sym_db.RegisterMessage(Error) + +SubscribeRequest = _reflection.GeneratedProtocolMessageType('SubscribeRequest', (_message.Message,), { + 'DESCRIPTOR' : _SUBSCRIBEREQUEST, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.SubscribeRequest) + }) +_sym_db.RegisterMessage(SubscribeRequest) + +Subscription = _reflection.GeneratedProtocolMessageType('Subscription', (_message.Message,), { + 'DESCRIPTOR' : _SUBSCRIPTION, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.Subscription) + }) +_sym_db.RegisterMessage(Subscription) + +SubscribeResponse = _reflection.GeneratedProtocolMessageType('SubscribeResponse', (_message.Message,), { + 'DESCRIPTOR' : _SUBSCRIBERESPONSE, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.SubscribeResponse) + }) +_sym_db.RegisterMessage(SubscribeResponse) + +Depth = _reflection.GeneratedProtocolMessageType('Depth', (_message.Message,), { + 'DESCRIPTOR' : _DEPTH, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.Depth) + }) +_sym_db.RegisterMessage(Depth) + +PriceVolume = _reflection.GeneratedProtocolMessageType('PriceVolume', (_message.Message,), { + 'DESCRIPTOR' : _PRICEVOLUME, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.PriceVolume) + }) +_sym_db.RegisterMessage(PriceVolume) + +Trade = _reflection.GeneratedProtocolMessageType('Trade', (_message.Message,), { + 'DESCRIPTOR' : _TRADE, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.Trade) + }) +_sym_db.RegisterMessage(Trade) + +Ticker = _reflection.GeneratedProtocolMessageType('Ticker', (_message.Message,), { + 'DESCRIPTOR' : _TICKER, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.Ticker) + }) +_sym_db.RegisterMessage(Ticker) + +Order = _reflection.GeneratedProtocolMessageType('Order', (_message.Message,), { + 'DESCRIPTOR' : _ORDER, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.Order) + }) +_sym_db.RegisterMessage(Order) + +SubmitOrder = _reflection.GeneratedProtocolMessageType('SubmitOrder', (_message.Message,), { + 'DESCRIPTOR' : _SUBMITORDER, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.SubmitOrder) + }) +_sym_db.RegisterMessage(SubmitOrder) + +Balance = _reflection.GeneratedProtocolMessageType('Balance', (_message.Message,), { + 'DESCRIPTOR' : _BALANCE, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.Balance) + }) +_sym_db.RegisterMessage(Balance) + +SubmitOrderRequest = _reflection.GeneratedProtocolMessageType('SubmitOrderRequest', (_message.Message,), { + 'DESCRIPTOR' : _SUBMITORDERREQUEST, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.SubmitOrderRequest) + }) +_sym_db.RegisterMessage(SubmitOrderRequest) + +SubmitOrderResponse = _reflection.GeneratedProtocolMessageType('SubmitOrderResponse', (_message.Message,), { + 'DESCRIPTOR' : _SUBMITORDERRESPONSE, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.SubmitOrderResponse) + }) +_sym_db.RegisterMessage(SubmitOrderResponse) + +CancelOrderRequest = _reflection.GeneratedProtocolMessageType('CancelOrderRequest', (_message.Message,), { + 'DESCRIPTOR' : _CANCELORDERREQUEST, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.CancelOrderRequest) + }) +_sym_db.RegisterMessage(CancelOrderRequest) + +CancelOrderResponse = _reflection.GeneratedProtocolMessageType('CancelOrderResponse', (_message.Message,), { + 'DESCRIPTOR' : _CANCELORDERRESPONSE, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.CancelOrderResponse) + }) +_sym_db.RegisterMessage(CancelOrderResponse) + +QueryOrderRequest = _reflection.GeneratedProtocolMessageType('QueryOrderRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYORDERREQUEST, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.QueryOrderRequest) + }) +_sym_db.RegisterMessage(QueryOrderRequest) + +QueryOrderResponse = _reflection.GeneratedProtocolMessageType('QueryOrderResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYORDERRESPONSE, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.QueryOrderResponse) + }) +_sym_db.RegisterMessage(QueryOrderResponse) + +QueryOrdersRequest = _reflection.GeneratedProtocolMessageType('QueryOrdersRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYORDERSREQUEST, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.QueryOrdersRequest) + }) +_sym_db.RegisterMessage(QueryOrdersRequest) + +QueryOrdersResponse = _reflection.GeneratedProtocolMessageType('QueryOrdersResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYORDERSRESPONSE, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.QueryOrdersResponse) + }) +_sym_db.RegisterMessage(QueryOrdersResponse) + +QueryTradesRequest = _reflection.GeneratedProtocolMessageType('QueryTradesRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYTRADESREQUEST, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.QueryTradesRequest) + }) +_sym_db.RegisterMessage(QueryTradesRequest) + +QueryTradesResponse = _reflection.GeneratedProtocolMessageType('QueryTradesResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYTRADESRESPONSE, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.QueryTradesResponse) + }) +_sym_db.RegisterMessage(QueryTradesResponse) + +QueryKLinesRequest = _reflection.GeneratedProtocolMessageType('QueryKLinesRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYKLINESREQUEST, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.QueryKLinesRequest) + }) +_sym_db.RegisterMessage(QueryKLinesRequest) + +QueryKLinesResponse = _reflection.GeneratedProtocolMessageType('QueryKLinesResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYKLINESRESPONSE, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.QueryKLinesResponse) + }) +_sym_db.RegisterMessage(QueryKLinesResponse) + +KLine = _reflection.GeneratedProtocolMessageType('KLine', (_message.Message,), { + 'DESCRIPTOR' : _KLINE, + '__module__' : 'bbgo_pb2' + # @@protoc_insertion_point(class_scope:pb.KLine) + }) +_sym_db.RegisterMessage(KLine) + + +DESCRIPTOR._options = None + +_BBGO = _descriptor.ServiceDescriptor( + name='BBGO', + full_name='pb.BBGO', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=2789, + serialized_end=3307, + methods=[ + _descriptor.MethodDescriptor( + name='Subcribe', + full_name='pb.BBGO.Subcribe', + index=0, + containing_service=None, + input_type=_SUBSCRIBEREQUEST, + output_type=_SUBSCRIBERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='SubcribeUserData', + full_name='pb.BBGO.SubcribeUserData', + index=1, + containing_service=None, + input_type=_EMPTY, + output_type=_SUBSCRIBERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='SubmitOrder', + full_name='pb.BBGO.SubmitOrder', + index=2, + containing_service=None, + input_type=_SUBMITORDERREQUEST, + output_type=_SUBMITORDERRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='CancelOrder', + full_name='pb.BBGO.CancelOrder', + index=3, + containing_service=None, + input_type=_CANCELORDERREQUEST, + output_type=_CANCELORDERRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='QueryOrder', + full_name='pb.BBGO.QueryOrder', + index=4, + containing_service=None, + input_type=_QUERYORDERREQUEST, + output_type=_QUERYORDERRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='QueryOrders', + full_name='pb.BBGO.QueryOrders', + index=5, + containing_service=None, + input_type=_QUERYORDERSREQUEST, + output_type=_QUERYORDERSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='QueryTrades', + full_name='pb.BBGO.QueryTrades', + index=6, + containing_service=None, + input_type=_QUERYTRADESREQUEST, + output_type=_QUERYTRADESRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='QueryKLines', + full_name='pb.BBGO.QueryKLines', + index=7, + containing_service=None, + input_type=_QUERYKLINESREQUEST, + output_type=_QUERYKLINESRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_BBGO) + +DESCRIPTOR.services_by_name['BBGO'] = _BBGO + +# @@protoc_insertion_point(module_scope) diff --git a/python/pybbgo/bbgo_pb2_grpc.py b/python/pybbgo/bbgo_pb2_grpc.py new file mode 100644 index 000000000..3e376cb81 --- /dev/null +++ b/python/pybbgo/bbgo_pb2_grpc.py @@ -0,0 +1,299 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +import bbgo_pb2 as bbgo__pb2 + + +class BBGOStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Subcribe = channel.unary_stream( + '/pb.BBGO/Subcribe', + request_serializer=bbgo__pb2.SubscribeRequest.SerializeToString, + response_deserializer=bbgo__pb2.SubscribeResponse.FromString, + ) + self.SubcribeUserData = channel.unary_stream( + '/pb.BBGO/SubcribeUserData', + request_serializer=bbgo__pb2.Empty.SerializeToString, + response_deserializer=bbgo__pb2.SubscribeResponse.FromString, + ) + self.SubmitOrder = channel.unary_unary( + '/pb.BBGO/SubmitOrder', + request_serializer=bbgo__pb2.SubmitOrderRequest.SerializeToString, + response_deserializer=bbgo__pb2.SubmitOrderResponse.FromString, + ) + self.CancelOrder = channel.unary_unary( + '/pb.BBGO/CancelOrder', + request_serializer=bbgo__pb2.CancelOrderRequest.SerializeToString, + response_deserializer=bbgo__pb2.CancelOrderResponse.FromString, + ) + self.QueryOrder = channel.unary_unary( + '/pb.BBGO/QueryOrder', + request_serializer=bbgo__pb2.QueryOrderRequest.SerializeToString, + response_deserializer=bbgo__pb2.QueryOrderResponse.FromString, + ) + self.QueryOrders = channel.unary_unary( + '/pb.BBGO/QueryOrders', + request_serializer=bbgo__pb2.QueryOrdersRequest.SerializeToString, + response_deserializer=bbgo__pb2.QueryOrdersResponse.FromString, + ) + self.QueryTrades = channel.unary_unary( + '/pb.BBGO/QueryTrades', + request_serializer=bbgo__pb2.QueryTradesRequest.SerializeToString, + response_deserializer=bbgo__pb2.QueryTradesResponse.FromString, + ) + self.QueryKLines = channel.unary_unary( + '/pb.BBGO/QueryKLines', + request_serializer=bbgo__pb2.QueryKLinesRequest.SerializeToString, + response_deserializer=bbgo__pb2.QueryKLinesResponse.FromString, + ) + + +class BBGOServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Subcribe(self, request, context): + """should support streaming + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SubcribeUserData(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SubmitOrder(self, request, context): + """request-response + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CancelOrder(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryOrder(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryOrders(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryTrades(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryKLines(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_BBGOServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Subcribe': grpc.unary_stream_rpc_method_handler( + servicer.Subcribe, + request_deserializer=bbgo__pb2.SubscribeRequest.FromString, + response_serializer=bbgo__pb2.SubscribeResponse.SerializeToString, + ), + 'SubcribeUserData': grpc.unary_stream_rpc_method_handler( + servicer.SubcribeUserData, + request_deserializer=bbgo__pb2.Empty.FromString, + response_serializer=bbgo__pb2.SubscribeResponse.SerializeToString, + ), + 'SubmitOrder': grpc.unary_unary_rpc_method_handler( + servicer.SubmitOrder, + request_deserializer=bbgo__pb2.SubmitOrderRequest.FromString, + response_serializer=bbgo__pb2.SubmitOrderResponse.SerializeToString, + ), + 'CancelOrder': grpc.unary_unary_rpc_method_handler( + servicer.CancelOrder, + request_deserializer=bbgo__pb2.CancelOrderRequest.FromString, + response_serializer=bbgo__pb2.CancelOrderResponse.SerializeToString, + ), + 'QueryOrder': grpc.unary_unary_rpc_method_handler( + servicer.QueryOrder, + request_deserializer=bbgo__pb2.QueryOrderRequest.FromString, + response_serializer=bbgo__pb2.QueryOrderResponse.SerializeToString, + ), + 'QueryOrders': grpc.unary_unary_rpc_method_handler( + servicer.QueryOrders, + request_deserializer=bbgo__pb2.QueryOrdersRequest.FromString, + response_serializer=bbgo__pb2.QueryOrdersResponse.SerializeToString, + ), + 'QueryTrades': grpc.unary_unary_rpc_method_handler( + servicer.QueryTrades, + request_deserializer=bbgo__pb2.QueryTradesRequest.FromString, + response_serializer=bbgo__pb2.QueryTradesResponse.SerializeToString, + ), + 'QueryKLines': grpc.unary_unary_rpc_method_handler( + servicer.QueryKLines, + request_deserializer=bbgo__pb2.QueryKLinesRequest.FromString, + response_serializer=bbgo__pb2.QueryKLinesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'pb.BBGO', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class BBGO(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Subcribe(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/pb.BBGO/Subcribe', + bbgo__pb2.SubscribeRequest.SerializeToString, + bbgo__pb2.SubscribeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SubcribeUserData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/pb.BBGO/SubcribeUserData', + bbgo__pb2.Empty.SerializeToString, + bbgo__pb2.SubscribeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SubmitOrder(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/pb.BBGO/SubmitOrder', + bbgo__pb2.SubmitOrderRequest.SerializeToString, + bbgo__pb2.SubmitOrderResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CancelOrder(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/pb.BBGO/CancelOrder', + bbgo__pb2.CancelOrderRequest.SerializeToString, + bbgo__pb2.CancelOrderResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryOrder(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/pb.BBGO/QueryOrder', + bbgo__pb2.QueryOrderRequest.SerializeToString, + bbgo__pb2.QueryOrderResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryOrders(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/pb.BBGO/QueryOrders', + bbgo__pb2.QueryOrdersRequest.SerializeToString, + bbgo__pb2.QueryOrdersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryTrades(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/pb.BBGO/QueryTrades', + bbgo__pb2.QueryTradesRequest.SerializeToString, + bbgo__pb2.QueryTradesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryKLines(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/pb.BBGO/QueryKLines', + bbgo__pb2.QueryKLinesRequest.SerializeToString, + bbgo__pb2.QueryKLinesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata)