-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrading_pb2.py
More file actions
60 lines (54 loc) · 5.77 KB
/
trading_pb2.py
File metadata and controls
60 lines (54 loc) · 5.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: trading.proto
# Protobuf Python Version: 5.29.0
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion(
_runtime_version.Domain.PUBLIC,
5,
29,
0,
'',
'trading.proto'
)
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rtrading.proto\x12\x07trading\"\xf1\x01\n\x0cOrderRequest\x12\x10\n\x08order_id\x18\x01 \x01(\x04\x12\x11\n\tclient_id\x18\x02 \x01(\t\x12\x1b\n\x04side\x18\x03 \x01(\x0e\x32\r.trading.Side\x12\r\n\x05price\x18\x04 \x01(\x01\x12\x10\n\x08quantity\x18\x05 \x01(\x03\x12&\n\norder_type\x18\x06 \x01(\x0e\x32\x12.trading.OrderType\x12\x12\n\nstop_price\x18\x07 \x01(\x01\x12\x18\n\x10\x64isplay_quantity\x18\x08 \x01(\x03\x12\x11\n\ttimestamp\x18\t \x01(\x03\x12\x15\n\rinstrument_id\x18\n \x01(\t\"\xc9\x01\n\rTradeResponse\x12\x10\n\x08order_id\x18\x01 \x01(\x04\x12$\n\x06status\x18\x02 \x01(\x0e\x32\x14.trading.OrderStatus\x12\x15\n\rreject_reason\x18\x03 \x01(\t\x12\"\n\x06trades\x18\x04 \x03(\x0b\x32\x12.trading.TradeInfo\x12\x11\n\ttimestamp\x18\x05 \x01(\x03\x12\x16\n\x0e\x61vg_fill_price\x18\x06 \x01(\x01\x12\x1a\n\x12remaining_quantity\x18\x07 \x01(\x03\"9\n\x12\x43\x61ncelOrderRequest\x12\x10\n\x08order_id\x18\x01 \x01(\x04\x12\x11\n\tclient_id\x18\x02 \x01(\t\"\x7f\n\x12ModifyOrderRequest\x12\x10\n\x08order_id\x18\x01 \x01(\x04\x12\x11\n\tclient_id\x18\x02 \x01(\t\x12\x1b\n\x04side\x18\x03 \x01(\x0e\x32\r.trading.Side\x12\x11\n\tnew_price\x18\x04 \x01(\x01\x12\x14\n\x0cnew_quantity\x18\x05 \x01(\x03\"\xbd\x01\n\tTradeInfo\x12\x10\n\x08order_id\x18\x01 \x01(\x04\x12\r\n\x05price\x18\x02 \x01(\x01\x12\x10\n\x08quantity\x18\x03 \x01(\x03\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\x12\x1b\n\x04side\x18\x05 \x01(\x0e\x32\r.trading.Side\x12\x17\n\x0f\x63ounterparty_id\x18\x06 \x01(\t\x12\x15\n\rinstrument_id\x18\x07 \x01(\t\x12\x10\n\x08trade_id\x18\x08 \x01(\t\x12\x0b\n\x03\x66\x65\x65\x18\t \x01(\x01\"=\n\x13\x43\x61ncelOrderResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x15\n\rreject_reason\x18\x02 \x01(\t\"8\n\x10OrderbookRequest\x12\x15\n\rinstrument_id\x18\x01 \x01(\t\x12\r\n\x05\x64\x65pth\x18\x02 \x01(\x05\"V\n\tLevelInfo\x12\r\n\x05price\x18\x01 \x01(\x01\x12\x10\n\x08quantity\x18\x02 \x01(\x03\x12\x13\n\x0border_count\x18\x03 \x01(\x05\x12\x13\n\x0btotal_value\x18\x04 \x01(\x01\"\xe6\x01\n\x11OrderbookResponse\x12\x15\n\rinstrument_id\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\x12 \n\x04\x62ids\x18\x03 \x03(\x0b\x32\x12.trading.LevelInfo\x12 \n\x04\x61sks\x18\x04 \x03(\x0b\x32\x12.trading.LevelInfo\x12\x18\n\x10last_trade_price\x18\x05 \x01(\x01\x12\x1b\n\x13last_trade_quantity\x18\x06 \x01(\x03\x12\x14\n\x0c\x64\x61ily_volume\x18\x07 \x01(\x01\x12\x16\n\x0e\x64\x61ily_turnover\x18\x08 \x01(\x01*\x80\x01\n\tOrderType\x12\x1a\n\x16ORDER_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10GOOD_TILL_CANCEL\x10\x01\x12\x11\n\rFILL_AND_KILL\x10\x02\x12\x10\n\x0c\x46ILL_OR_KILL\x10\x03\x12\x10\n\x0cGOOD_FOR_DAY\x10\x04\x12\n\n\x06MARKET\x10\x05*/\n\x04Side\x12\x14\n\x10SIDE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x42UY\x10\x01\x12\x08\n\x04SELL\x10\x02*\xa7\x01\n\x0bOrderStatus\x12\x1c\n\x18ORDER_STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41\x43\x43\x45PTED\x10\x01\x12\x0c\n\x08REJECTED\x10\x02\x12\n\n\x06\x46ILLED\x10\x03\x12\x14\n\x10PARTIALLY_FILLED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\x0f\n\x0bPENDING_NEW\x10\x06\x12\r\n\tSUSPENDED\x10\x07\x12\r\n\tTRIGGERED\x10\x08\x32\x9f\x02\n\rTradingEngine\x12\x39\n\x08\x41\x64\x64Order\x12\x15.trading.OrderRequest\x1a\x16.trading.TradeResponse\x12H\n\x0b\x43\x61ncelOrder\x12\x1b.trading.CancelOrderRequest\x1a\x1c.trading.CancelOrderResponse\x12\x42\n\x0bModifyOrder\x12\x1b.trading.ModifyOrderRequest\x1a\x16.trading.TradeResponse\x12\x45\n\x0cGetOrderbook\x12\x19.trading.OrderbookRequest\x1a\x1a.trading.OrderbookResponseb\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'trading_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
DESCRIPTOR._loaded_options = None
_globals['_ORDERTYPE']._serialized_start=1297
_globals['_ORDERTYPE']._serialized_end=1425
_globals['_SIDE']._serialized_start=1427
_globals['_SIDE']._serialized_end=1474
_globals['_ORDERSTATUS']._serialized_start=1477
_globals['_ORDERSTATUS']._serialized_end=1644
_globals['_ORDERREQUEST']._serialized_start=27
_globals['_ORDERREQUEST']._serialized_end=268
_globals['_TRADERESPONSE']._serialized_start=271
_globals['_TRADERESPONSE']._serialized_end=472
_globals['_CANCELORDERREQUEST']._serialized_start=474
_globals['_CANCELORDERREQUEST']._serialized_end=531
_globals['_MODIFYORDERREQUEST']._serialized_start=533
_globals['_MODIFYORDERREQUEST']._serialized_end=660
_globals['_TRADEINFO']._serialized_start=663
_globals['_TRADEINFO']._serialized_end=852
_globals['_CANCELORDERRESPONSE']._serialized_start=854
_globals['_CANCELORDERRESPONSE']._serialized_end=915
_globals['_ORDERBOOKREQUEST']._serialized_start=917
_globals['_ORDERBOOKREQUEST']._serialized_end=973
_globals['_LEVELINFO']._serialized_start=975
_globals['_LEVELINFO']._serialized_end=1061
_globals['_ORDERBOOKRESPONSE']._serialized_start=1064
_globals['_ORDERBOOKRESPONSE']._serialized_end=1294
_globals['_TRADINGENGINE']._serialized_start=1647
_globals['_TRADINGENGINE']._serialized_end=1934
# @@protoc_insertion_point(module_scope)