meshtrade 1.0.1__py3-none-any.whl → 1.29.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- meshtrade/common/__init__.py +2 -4
- meshtrade/common/config.py +3 -4
- meshtrade/common/grpc_client.py +140 -0
- meshtrade/common/service_options.py +46 -0
- meshtrade/compliance/client/v1/__init__.py +0 -2
- meshtrade/compliance/client/v1/client_pb2.py +15 -4
- meshtrade/compliance/client/v1/client_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/company_pb2.py +25 -8
- meshtrade/compliance/client/v1/company_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/company_representative_pb2.py +9 -4
- meshtrade/compliance/client/v1/company_representative_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/company_representative_role_pb2.py +2 -2
- meshtrade/compliance/client/v1/fund_pb2.py +13 -4
- meshtrade/compliance/client/v1/fund_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/identification_document_type_pb2.py +2 -2
- meshtrade/compliance/client/v1/industry_classification_pb2.py +2 -2
- meshtrade/compliance/client/v1/natural_person_connection_type_pb2.py +2 -2
- meshtrade/compliance/client/v1/natural_person_pb2.py +19 -4
- meshtrade/compliance/client/v1/natural_person_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/pep_status_pb2.py +2 -2
- meshtrade/compliance/client/v1/service_meshpy.py +2 -1
- meshtrade/compliance/client/v1/service_pb2.py +21 -17
- meshtrade/compliance/client/v1/service_pb2.pyi +2 -2
- meshtrade/compliance/client/v1/source_of_income_and_wealth_pb2.py +2 -2
- meshtrade/compliance/client/v1/tax_residency_pb2.py +9 -4
- meshtrade/compliance/client/v1/tax_residency_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/trust_pb2.py +13 -4
- meshtrade/compliance/client/v1/trust_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/verification_status_pb2.py +2 -2
- meshtrade/iam/api_user/v1/__init__.py +34 -26
- meshtrade/iam/api_user/v1/api_credentials_pb2.py +5 -5
- meshtrade/iam/api_user/v1/api_user_pb2.py +13 -9
- meshtrade/iam/api_user/v1/api_user_pb2.pyi +2 -4
- meshtrade/iam/api_user/v1/api_user_state_machine.py +104 -0
- meshtrade/iam/api_user/v1/service_meshpy.py +96 -61
- meshtrade/iam/api_user/v1/service_pb2.py +61 -40
- meshtrade/iam/api_user/v1/service_pb2.pyi +26 -11
- meshtrade/iam/api_user/v1/service_pb2_grpc.py +179 -135
- meshtrade/iam/group/v1/__init__.py +4 -2
- meshtrade/iam/group/v1/group_pb2.py +13 -4
- meshtrade/iam/group/v1/group_pb2.pyi +9 -2
- meshtrade/iam/group/v1/service_meshpy.py +41 -6
- meshtrade/iam/group/v1/service_pb2.py +47 -20
- meshtrade/iam/group/v1/service_pb2.pyi +46 -13
- meshtrade/iam/group/v1/service_pb2_grpc.py +151 -16
- meshtrade/iam/role/v1/__init__.py +17 -4
- meshtrade/iam/role/v1/role.py +162 -11
- meshtrade/iam/role/v1/role_pb2.py +4 -7
- meshtrade/iam/role/v1/role_pb2.pyi +53 -23
- meshtrade/iam/user/v1/__init__.py +22 -4
- meshtrade/iam/user/v1/service_meshpy.py +129 -7
- meshtrade/iam/user/v1/service_pb2.py +66 -16
- meshtrade/iam/user/v1/service_pb2.pyi +81 -9
- meshtrade/iam/user/v1/service_pb2_grpc.py +385 -14
- meshtrade/iam/user/v1/user_pb2.py +13 -4
- meshtrade/iam/user/v1/user_pb2.pyi +7 -2
- meshtrade/ledger/transaction/v1/__init__.py +25 -1
- meshtrade/ledger/transaction/v1/service_meshpy.py +176 -0
- meshtrade/ledger/transaction/v1/service_pb2.py +56 -0
- meshtrade/ledger/transaction/v1/service_pb2.pyi +32 -0
- meshtrade/ledger/transaction/v1/service_pb2_grpc.py +131 -0
- meshtrade/ledger/transaction/v1/transaction_action_pb2.py +2 -2
- meshtrade/ledger/transaction/v1/transaction_state_machine.py +75 -0
- meshtrade/ledger/transaction/v1/transaction_state_pb2.py +2 -2
- meshtrade/{reporting/income_report → market_data/price}/v1/__init__.py +11 -20
- meshtrade/market_data/price/v1/price_pb2.py +40 -0
- meshtrade/market_data/price/v1/price_pb2.pyi +23 -0
- meshtrade/market_data/price/v1/service_meshpy.py +152 -0
- meshtrade/market_data/price/v1/service_pb2.py +49 -0
- meshtrade/market_data/price/v1/service_pb2.pyi +18 -0
- meshtrade/market_data/price/v1/service_pb2_grpc.py +84 -0
- meshtrade/option/method_options/v1/__init__.py +41 -0
- meshtrade/option/method_options/v1/method_options_pb2.py +43 -0
- meshtrade/option/method_options/v1/method_options_pb2.pyi +40 -0
- meshtrade/reporting/account_report/v1/__init__.py +66 -0
- meshtrade/reporting/account_report/v1/account_report_pb2.py +46 -0
- meshtrade/reporting/account_report/v1/account_report_pb2.pyi +49 -0
- meshtrade/reporting/{income_report → account_report}/v1/disclaimer_pb2.py +7 -7
- meshtrade/reporting/account_report/v1/fee_entry_pb2.py +39 -0
- meshtrade/reporting/account_report/v1/fee_entry_pb2.pyi +26 -0
- meshtrade/reporting/account_report/v1/fee_entry_pb2_grpc.py +4 -0
- meshtrade/reporting/account_report/v1/income_entry.py +35 -0
- meshtrade/reporting/account_report/v1/income_entry_pb2.py +42 -0
- meshtrade/reporting/{income_report/v1/entry_pb2.pyi → account_report/v1/income_entry_pb2.pyi} +18 -10
- meshtrade/reporting/account_report/v1/income_entry_pb2_grpc.py +4 -0
- meshtrade/reporting/{income_report → account_report}/v1/service_meshpy.py +37 -36
- meshtrade/reporting/account_report/v1/service_pb2.py +72 -0
- meshtrade/reporting/account_report/v1/service_pb2.pyi +43 -0
- meshtrade/reporting/account_report/v1/service_pb2_grpc.py +161 -0
- meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.py +39 -0
- meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.pyi +30 -0
- meshtrade/reporting/account_report/v1/trading_statement_entry_pb2_grpc.py +4 -0
- meshtrade/studio/instrument/v1/__init__.py +43 -0
- meshtrade/studio/instrument/v1/instrument_pb2.py +45 -0
- meshtrade/studio/instrument/v1/instrument_pb2.pyi +20 -0
- meshtrade/studio/instrument/v1/instrument_pb2_grpc.py +4 -0
- meshtrade/studio/instrument/v1/instrument_type_pb2.py +37 -0
- meshtrade/studio/instrument/v1/instrument_type_pb2.pyi +64 -0
- meshtrade/studio/instrument/v1/instrument_type_pb2_grpc.py +4 -0
- meshtrade/studio/instrument/v1/unit_pb2.py +37 -0
- meshtrade/studio/instrument/v1/unit_pb2.pyi +46 -0
- meshtrade/studio/instrument/v1/unit_pb2_grpc.py +4 -0
- meshtrade/trading/limit_order/v1/__init__.py +22 -4
- meshtrade/trading/limit_order/v1/limit_order_pb2.py +24 -4
- meshtrade/trading/limit_order/v1/limit_order_pb2.pyi +55 -5
- meshtrade/trading/limit_order/v1/service_meshpy.py +113 -2
- meshtrade/trading/limit_order/v1/service_pb2.py +49 -9
- meshtrade/trading/limit_order/v1/service_pb2.pyi +67 -7
- meshtrade/trading/limit_order/v1/service_pb2_grpc.py +321 -4
- meshtrade/trading/market_order/v1/__init__.py +0 -2
- meshtrade/trading/market_order/v1/market_order_pb2.py +2 -2
- meshtrade/trading/market_order/v1/service_meshpy.py +3 -2
- meshtrade/trading/market_order/v1/service_pb2.py +8 -9
- meshtrade/trading/market_order/v1/service_pb2.pyi +1 -2
- meshtrade/type/v1/__init__.py +82 -12
- meshtrade/type/v1/address_pb2.py +2 -2
- meshtrade/type/v1/amount.py +429 -5
- meshtrade/type/v1/amount_pb2.py +2 -2
- meshtrade/type/v1/contact_details_pb2.py +2 -2
- meshtrade/type/v1/date_pb2.py +2 -2
- meshtrade/type/v1/decimal_built_in_conversions.py +8 -3
- meshtrade/type/v1/decimal_operations.py +354 -0
- meshtrade/type/v1/decimal_pb2.py +2 -2
- meshtrade/type/v1/ledger.py +76 -1
- meshtrade/type/v1/ledger_pb2.py +2 -2
- meshtrade/type/v1/sorting_pb2.py +2 -2
- meshtrade/type/v1/time_of_day_pb2.py +2 -2
- meshtrade/type/v1/token.py +144 -0
- meshtrade/type/v1/token_pb2.py +2 -2
- meshtrade/wallet/account/v1/__init__.py +21 -3
- meshtrade/wallet/account/v1/account_pb2.py +28 -4
- meshtrade/wallet/account/v1/account_pb2.pyi +57 -3
- meshtrade/wallet/account/v1/service_meshpy.py +72 -1
- meshtrade/wallet/account/v1/service_pb2.py +67 -23
- meshtrade/wallet/account/v1/service_pb2.pyi +81 -21
- meshtrade/wallet/account/v1/service_pb2_grpc.py +242 -8
- {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/METADATA +1 -1
- meshtrade-1.29.0.dist-info/RECORD +217 -0
- meshtrade/compliance/client/v1/service_options_meshpy.py +0 -65
- meshtrade/iam/api_user/v1/service.py +0 -58
- meshtrade/iam/api_user/v1/service_options_meshpy.py +0 -65
- meshtrade/iam/group/v1/service_options_meshpy.py +0 -65
- meshtrade/iam/user/v1/service_options_meshpy.py +0 -65
- meshtrade/option/v1/method_type_pb2.py +0 -38
- meshtrade/option/v1/method_type_pb2.pyi +0 -17
- meshtrade/reporting/income_report/v1/entry_pb2.py +0 -42
- meshtrade/reporting/income_report/v1/income_report_pb2.py +0 -44
- meshtrade/reporting/income_report/v1/income_report_pb2.pyi +0 -42
- meshtrade/reporting/income_report/v1/service_options_meshpy.py +0 -65
- meshtrade/reporting/income_report/v1/service_pb2.py +0 -58
- meshtrade/reporting/income_report/v1/service_pb2.pyi +0 -37
- meshtrade/reporting/income_report/v1/service_pb2_grpc.py +0 -170
- meshtrade/trading/limit_order/v1/service_options_meshpy.py +0 -65
- meshtrade/trading/market_order/v1/service_options_meshpy.py +0 -65
- meshtrade/wallet/account/v1/service_options_meshpy.py +0 -65
- meshtrade-1.0.1.dist-info/RECORD +0 -191
- /meshtrade/{option/v1/method_type_pb2_grpc.py → market_data/price/v1/price_pb2_grpc.py} +0 -0
- /meshtrade/{reporting/income_report/v1/disclaimer_pb2_grpc.py → option/method_options/v1/method_options_pb2_grpc.py} +0 -0
- /meshtrade/reporting/{income_report/v1/entry_pb2_grpc.py → account_report/v1/account_report_pb2_grpc.py} +0 -0
- /meshtrade/reporting/{income_report → account_report}/v1/disclaimer_pb2.pyi +0 -0
- /meshtrade/reporting/{income_report/v1/income_report_pb2_grpc.py → account_report/v1/disclaimer_pb2_grpc.py} +0 -0
- {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/WHEEL +0 -0
- {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/top_level.txt +0 -0
|
@@ -9,16 +9,25 @@ the service interface with resource management capabilities, providing authentic
|
|
|
9
9
|
timeouts, and proper connection handling.
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
|
+
from collections.abc import Iterator
|
|
12
13
|
from datetime import timedelta
|
|
13
14
|
from typing import Optional
|
|
14
15
|
|
|
15
16
|
from meshtrade.common import BaseGRPCClient
|
|
16
17
|
from meshtrade.iam.api_user.v1.api_credentials import find_credentials
|
|
17
18
|
|
|
18
|
-
from .
|
|
19
|
+
from .limit_order_pb2 import LimitOrder
|
|
20
|
+
from meshtrade.common.service_options import ServiceOptions
|
|
19
21
|
from .service_pb2 import (
|
|
22
|
+
CancelLimitOrderRequest,
|
|
23
|
+
CreateLimitOrderRequest,
|
|
24
|
+
GetLimitOrderByExternalReferenceRequest,
|
|
20
25
|
GetLimitOrderRequest,
|
|
21
|
-
|
|
26
|
+
ListLimitOrdersRequest,
|
|
27
|
+
ListLimitOrdersResponse,
|
|
28
|
+
MonitorLimitOrderRequest,
|
|
29
|
+
SearchLimitOrdersRequest,
|
|
30
|
+
SearchLimitOrdersResponse,
|
|
22
31
|
)
|
|
23
32
|
from .service_pb2_grpc import LimitOrderServiceStub
|
|
24
33
|
|
|
@@ -129,6 +138,38 @@ class LimitOrderService(BaseGRPCClient):
|
|
|
129
138
|
tls=options.tls,
|
|
130
139
|
)
|
|
131
140
|
|
|
141
|
+
def create_limit_order(self, request: CreateLimitOrderRequest, timeout: Optional[timedelta] = None) -> LimitOrder:
|
|
142
|
+
"""CreateLimitOrder method.
|
|
143
|
+
|
|
144
|
+
Args:
|
|
145
|
+
request: The CreateLimitOrder request message
|
|
146
|
+
timeout: Optional timeout override for this call
|
|
147
|
+
|
|
148
|
+
Returns:
|
|
149
|
+
The CreateLimitOrder response message
|
|
150
|
+
|
|
151
|
+
Raises:
|
|
152
|
+
grpc.RpcError: If the gRPC call fails
|
|
153
|
+
ValueError: If authentication credentials are missing
|
|
154
|
+
"""
|
|
155
|
+
return self._execute_method("CreateLimitOrder", request, timeout)
|
|
156
|
+
|
|
157
|
+
def cancel_limit_order(self, request: CancelLimitOrderRequest, timeout: Optional[timedelta] = None) -> LimitOrder:
|
|
158
|
+
"""CancelLimitOrder method.
|
|
159
|
+
|
|
160
|
+
Args:
|
|
161
|
+
request: The CancelLimitOrder request message
|
|
162
|
+
timeout: Optional timeout override for this call
|
|
163
|
+
|
|
164
|
+
Returns:
|
|
165
|
+
The CancelLimitOrder response message
|
|
166
|
+
|
|
167
|
+
Raises:
|
|
168
|
+
grpc.RpcError: If the gRPC call fails
|
|
169
|
+
ValueError: If authentication credentials are missing
|
|
170
|
+
"""
|
|
171
|
+
return self._execute_method("CancelLimitOrder", request, timeout)
|
|
172
|
+
|
|
132
173
|
def get_limit_order(self, request: GetLimitOrderRequest, timeout: Optional[timedelta] = None) -> LimitOrder:
|
|
133
174
|
"""GetLimitOrder method.
|
|
134
175
|
|
|
@@ -145,6 +186,76 @@ class LimitOrderService(BaseGRPCClient):
|
|
|
145
186
|
"""
|
|
146
187
|
return self._execute_method("GetLimitOrder", request, timeout)
|
|
147
188
|
|
|
189
|
+
def get_limit_order_by_external_reference(self, request: GetLimitOrderByExternalReferenceRequest, timeout: Optional[timedelta] = None) -> LimitOrder:
|
|
190
|
+
"""GetLimitOrderByExternalReference method.
|
|
191
|
+
|
|
192
|
+
Args:
|
|
193
|
+
request: The GetLimitOrderByExternalReference request message
|
|
194
|
+
timeout: Optional timeout override for this call
|
|
195
|
+
|
|
196
|
+
Returns:
|
|
197
|
+
The GetLimitOrderByExternalReference response message
|
|
198
|
+
|
|
199
|
+
Raises:
|
|
200
|
+
grpc.RpcError: If the gRPC call fails
|
|
201
|
+
ValueError: If authentication credentials are missing
|
|
202
|
+
"""
|
|
203
|
+
return self._execute_method("GetLimitOrderByExternalReference", request, timeout)
|
|
204
|
+
|
|
205
|
+
def list_limit_orders(self, request: ListLimitOrdersRequest, timeout: Optional[timedelta] = None) -> ListLimitOrdersResponse:
|
|
206
|
+
"""ListLimitOrders method.
|
|
207
|
+
|
|
208
|
+
Args:
|
|
209
|
+
request: The ListLimitOrders request message
|
|
210
|
+
timeout: Optional timeout override for this call
|
|
211
|
+
|
|
212
|
+
Returns:
|
|
213
|
+
The ListLimitOrders response message
|
|
214
|
+
|
|
215
|
+
Raises:
|
|
216
|
+
grpc.RpcError: If the gRPC call fails
|
|
217
|
+
ValueError: If authentication credentials are missing
|
|
218
|
+
"""
|
|
219
|
+
return self._execute_method("ListLimitOrders", request, timeout)
|
|
220
|
+
|
|
221
|
+
def search_limit_orders(self, request: SearchLimitOrdersRequest, timeout: Optional[timedelta] = None) -> SearchLimitOrdersResponse:
|
|
222
|
+
"""SearchLimitOrders method.
|
|
223
|
+
|
|
224
|
+
Args:
|
|
225
|
+
request: The SearchLimitOrders request message
|
|
226
|
+
timeout: Optional timeout override for this call
|
|
227
|
+
|
|
228
|
+
Returns:
|
|
229
|
+
The SearchLimitOrders response message
|
|
230
|
+
|
|
231
|
+
Raises:
|
|
232
|
+
grpc.RpcError: If the gRPC call fails
|
|
233
|
+
ValueError: If authentication credentials are missing
|
|
234
|
+
"""
|
|
235
|
+
return self._execute_method("SearchLimitOrders", request, timeout)
|
|
236
|
+
|
|
237
|
+
def monitor_limit_order(self, request: MonitorLimitOrderRequest, timeout: Optional[timedelta] = None) -> Iterator[LimitOrder]:
|
|
238
|
+
"""MonitorLimitOrder server-side streaming method with authentication and validation.
|
|
239
|
+
|
|
240
|
+
Args:
|
|
241
|
+
request: The MonitorLimitOrder request message
|
|
242
|
+
timeout: Optional timeout override for this call
|
|
243
|
+
|
|
244
|
+
Yields:
|
|
245
|
+
LimitOrder: Stream of response messages
|
|
246
|
+
|
|
247
|
+
Raises:
|
|
248
|
+
grpc.RpcError: If the gRPC call fails
|
|
249
|
+
ValueError: If authentication credentials are missing or request validation fails
|
|
250
|
+
|
|
251
|
+
Example:
|
|
252
|
+
>>> stream = service.monitor_limit_order(request)
|
|
253
|
+
>>> for response in stream:
|
|
254
|
+
... # Process each response
|
|
255
|
+
... print(response)
|
|
256
|
+
"""
|
|
257
|
+
return self._execute_streaming_method("MonitorLimitOrder", request, timeout)
|
|
258
|
+
|
|
148
259
|
|
|
149
260
|
# Create aliases to match expected exports
|
|
150
261
|
LimitOrderServiceGRPCClient = LimitOrderService
|
|
@@ -22,23 +22,63 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
22
22
|
_sym_db = _symbol_database.Default()
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
from
|
|
26
|
-
from meshtrade.option.v1 import
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from meshtrade.option.method_options.v1 import method_options_pb2 as meshtrade_dot_option_dot_method__options_dot_v1_dot_method__options__pb2
|
|
27
27
|
from meshtrade.trading.limit_order.v1 import limit_order_pb2 as meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.meshtrade/trading/limit_order/v1/service.proto\x12 meshtrade.trading.limit_order.v1\x1a
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.meshtrade/trading/limit_order/v1/service.proto\x12 meshtrade.trading.limit_order.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x37meshtrade/option/method_options/v1/method_options.proto\x1a\x32meshtrade/trading/limit_order/v1/limit_order.proto\"p\n\x17\x43reateLimitOrderRequest\x12U\n\x0blimit_order\x18\x01 \x01(\x0b\x32,.meshtrade.trading.limit_order.v1.LimitOrderB\x06\xbaH\x03\xc8\x01\x01R\nlimitOrder\"q\n\x17\x43\x61ncelLimitOrderRequest\x12V\n\x04name\x18\x01 \x01(\tBB\xbaH?r:25^limit_orders/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01&\xc8\x01\x01R\x04name\"\x98\x01\n\x14GetLimitOrderRequest\x12V\n\x04name\x18\x01 \x01(\tBB\xbaH?r:25^limit_orders/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01&\xc8\x01\x01R\x04name\x12(\n\x10live_ledger_data\x18\x02 \x01(\x08R\x0eliveLedgerData\"\x8a\x01\n\'GetLimitOrderByExternalReferenceRequest\x12\x35\n\x12\x65xternal_reference\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x11\x65xternalReference\x12(\n\x10live_ledger_data\x18\x02 \x01(\x08R\x0eliveLedgerData\"B\n\x16ListLimitOrdersRequest\x12(\n\x10live_ledger_data\x18\x01 \x01(\x08R\x0eliveLedgerData\"j\n\x17ListLimitOrdersResponse\x12O\n\x0climit_orders\x18\x01 \x03(\x0b\x32,.meshtrade.trading.limit_order.v1.LimitOrderR\x0blimitOrders\"\xae\x01\n\x18SearchLimitOrdersRequest\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\x12R\n\x07\x61\x63\x63ount\x18\x02 \x01(\tB8\xbaH5r321^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$R\x07\x61\x63\x63ount\x12(\n\x10live_ledger_data\x18\x03 \x01(\x08R\x0eliveLedgerData\"l\n\x19SearchLimitOrdersResponse\x12O\n\x0climit_orders\x18\x01 \x03(\x0b\x32,.meshtrade.trading.limit_order.v1.LimitOrderR\x0blimitOrders\"\xb0\x01\n\x18MonitorLimitOrderRequest\x12U\n\x04name\x18\x01 \x01(\tB?\xbaH<r:25^limit_orders/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01&H\x00R\x04name\x12/\n\x12\x65xternal_reference\x18\x02 \x01(\tH\x00R\x11\x65xternalReferenceB\x0c\n\nidentifier2\xf3\x08\n\x11LimitOrderService\x12\x8f\x01\n\x10\x43reateLimitOrder\x12\x39.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest\x1a,.meshtrade.trading.limit_order.v1.LimitOrder\"\x12\xb2\xb5\x18\x0e\x08\x02\x10\x02\x1a\x08\xc0\x96\xb1\x02\xc2\x96\xb1\x02\x12\x8f\x01\n\x10\x43\x61ncelLimitOrder\x12\x39.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest\x1a,.meshtrade.trading.limit_order.v1.LimitOrder\"\x12\xb2\xb5\x18\x0e\x08\x02\x10\x02\x1a\x08\xc0\x96\xb1\x02\xc2\x96\xb1\x02\x12\x91\x01\n\rGetLimitOrder\x12\x36.meshtrade.trading.limit_order.v1.GetLimitOrderRequest\x1a,.meshtrade.trading.limit_order.v1.LimitOrder\"\x1a\xb2\xb5\x18\x16\x08\x01\x10\x02\x1a\x10\xc0\x96\xb1\x02\xc1\x96\xb1\x02\xc2\x96\xb1\x02\xc3\x96\xb1\x02\x12\xb7\x01\n GetLimitOrderByExternalReference\x12I.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest\x1a,.meshtrade.trading.limit_order.v1.LimitOrder\"\x1a\xb2\xb5\x18\x16\x08\x01\x10\x02\x1a\x10\xc0\x96\xb1\x02\xc1\x96\xb1\x02\xc2\x96\xb1\x02\xc3\x96\xb1\x02\x12\xa2\x01\n\x0fListLimitOrders\x12\x38.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest\x1a\x39.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse\"\x1a\xb2\xb5\x18\x16\x08\x01\x10\x02\x1a\x10\xc0\x96\xb1\x02\xc1\x96\xb1\x02\xc2\x96\xb1\x02\xc3\x96\xb1\x02\x12\xa8\x01\n\x11SearchLimitOrders\x12:.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest\x1a;.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse\"\x1a\xb2\xb5\x18\x16\x08\x01\x10\x02\x1a\x10\xc0\x96\xb1\x02\xc1\x96\xb1\x02\xc2\x96\xb1\x02\xc3\x96\xb1\x02\x12\x9b\x01\n\x11MonitorLimitOrder\x12:.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest\x1a,.meshtrade.trading.limit_order.v1.LimitOrder\"\x1a\xb2\xb5\x18\x16\x08\x01\x10\x02\x1a\x10\xc0\x96\xb1\x02\xc1\x96\xb1\x02\xc2\x96\xb1\x02\xc3\x96\xb1\x02\x30\x01\x42l\n\'co.meshtrade.api.trading.limit_order.v1ZAgithub.com/meshtrade/api/go/trading/limit_order/v1;limit_order_v1b\x06proto3')
|
|
31
31
|
|
|
32
32
|
_globals = globals()
|
|
33
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
34
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.trading.limit_order.v1.service_pb2', _globals)
|
|
35
35
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
36
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\'co.meshtrade.api.trading.limit_order.
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\'co.meshtrade.api.trading.limit_order.v1ZAgithub.com/meshtrade/api/go/trading/limit_order/v1;limit_order_v1'
|
|
38
|
+
_globals['_CREATELIMITORDERREQUEST'].fields_by_name['limit_order']._loaded_options = None
|
|
39
|
+
_globals['_CREATELIMITORDERREQUEST'].fields_by_name['limit_order']._serialized_options = b'\272H\003\310\001\001'
|
|
40
|
+
_globals['_CANCELLIMITORDERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
41
|
+
_globals['_CANCELLIMITORDERREQUEST'].fields_by_name['name']._serialized_options = b'\272H?r:25^limit_orders/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001&\310\001\001'
|
|
42
|
+
_globals['_GETLIMITORDERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
43
|
+
_globals['_GETLIMITORDERREQUEST'].fields_by_name['name']._serialized_options = b'\272H?r:25^limit_orders/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001&\310\001\001'
|
|
44
|
+
_globals['_GETLIMITORDERBYEXTERNALREFERENCEREQUEST'].fields_by_name['external_reference']._loaded_options = None
|
|
45
|
+
_globals['_GETLIMITORDERBYEXTERNALREFERENCEREQUEST'].fields_by_name['external_reference']._serialized_options = b'\272H\003\310\001\001'
|
|
46
|
+
_globals['_SEARCHLIMITORDERSREQUEST'].fields_by_name['account']._loaded_options = None
|
|
47
|
+
_globals['_SEARCHLIMITORDERSREQUEST'].fields_by_name['account']._serialized_options = b'\272H5r321^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$'
|
|
48
|
+
_globals['_MONITORLIMITORDERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
49
|
+
_globals['_MONITORLIMITORDERREQUEST'].fields_by_name['name']._serialized_options = b'\272H<r:25^limit_orders/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001&'
|
|
50
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['CreateLimitOrder']._loaded_options = None
|
|
51
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['CreateLimitOrder']._serialized_options = b'\262\265\030\016\010\002\020\002\032\010\300\226\261\002\302\226\261\002'
|
|
52
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['CancelLimitOrder']._loaded_options = None
|
|
53
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['CancelLimitOrder']._serialized_options = b'\262\265\030\016\010\002\020\002\032\010\300\226\261\002\302\226\261\002'
|
|
38
54
|
_globals['_LIMITORDERSERVICE'].methods_by_name['GetLimitOrder']._loaded_options = None
|
|
39
|
-
_globals['_LIMITORDERSERVICE'].methods_by_name['GetLimitOrder']._serialized_options = b'\
|
|
40
|
-
_globals['
|
|
41
|
-
_globals['
|
|
42
|
-
_globals['_LIMITORDERSERVICE'].
|
|
43
|
-
_globals['_LIMITORDERSERVICE'].
|
|
55
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['GetLimitOrder']._serialized_options = b'\262\265\030\026\010\001\020\002\032\020\300\226\261\002\301\226\261\002\302\226\261\002\303\226\261\002'
|
|
56
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['GetLimitOrderByExternalReference']._loaded_options = None
|
|
57
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['GetLimitOrderByExternalReference']._serialized_options = b'\262\265\030\026\010\001\020\002\032\020\300\226\261\002\301\226\261\002\302\226\261\002\303\226\261\002'
|
|
58
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['ListLimitOrders']._loaded_options = None
|
|
59
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['ListLimitOrders']._serialized_options = b'\262\265\030\026\010\001\020\002\032\020\300\226\261\002\301\226\261\002\302\226\261\002\303\226\261\002'
|
|
60
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['SearchLimitOrders']._loaded_options = None
|
|
61
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['SearchLimitOrders']._serialized_options = b'\262\265\030\026\010\001\020\002\032\020\300\226\261\002\301\226\261\002\302\226\261\002\303\226\261\002'
|
|
62
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['MonitorLimitOrder']._loaded_options = None
|
|
63
|
+
_globals['_LIMITORDERSERVICE'].methods_by_name['MonitorLimitOrder']._serialized_options = b'\262\265\030\026\010\001\020\002\032\020\300\226\261\002\301\226\261\002\302\226\261\002\303\226\261\002'
|
|
64
|
+
_globals['_CREATELIMITORDERREQUEST']._serialized_start=222
|
|
65
|
+
_globals['_CREATELIMITORDERREQUEST']._serialized_end=334
|
|
66
|
+
_globals['_CANCELLIMITORDERREQUEST']._serialized_start=336
|
|
67
|
+
_globals['_CANCELLIMITORDERREQUEST']._serialized_end=449
|
|
68
|
+
_globals['_GETLIMITORDERREQUEST']._serialized_start=452
|
|
69
|
+
_globals['_GETLIMITORDERREQUEST']._serialized_end=604
|
|
70
|
+
_globals['_GETLIMITORDERBYEXTERNALREFERENCEREQUEST']._serialized_start=607
|
|
71
|
+
_globals['_GETLIMITORDERBYEXTERNALREFERENCEREQUEST']._serialized_end=745
|
|
72
|
+
_globals['_LISTLIMITORDERSREQUEST']._serialized_start=747
|
|
73
|
+
_globals['_LISTLIMITORDERSREQUEST']._serialized_end=813
|
|
74
|
+
_globals['_LISTLIMITORDERSRESPONSE']._serialized_start=815
|
|
75
|
+
_globals['_LISTLIMITORDERSRESPONSE']._serialized_end=921
|
|
76
|
+
_globals['_SEARCHLIMITORDERSREQUEST']._serialized_start=924
|
|
77
|
+
_globals['_SEARCHLIMITORDERSREQUEST']._serialized_end=1098
|
|
78
|
+
_globals['_SEARCHLIMITORDERSRESPONSE']._serialized_start=1100
|
|
79
|
+
_globals['_SEARCHLIMITORDERSRESPONSE']._serialized_end=1208
|
|
80
|
+
_globals['_MONITORLIMITORDERREQUEST']._serialized_start=1211
|
|
81
|
+
_globals['_MONITORLIMITORDERREQUEST']._serialized_end=1387
|
|
82
|
+
_globals['_LIMITORDERSERVICE']._serialized_start=1390
|
|
83
|
+
_globals['_LIMITORDERSERVICE']._serialized_end=2529
|
|
44
84
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,14 +1,74 @@
|
|
|
1
|
-
from
|
|
2
|
-
from meshtrade.option.v1 import
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from meshtrade.option.method_options.v1 import method_options_pb2 as _method_options_pb2
|
|
3
3
|
from meshtrade.trading.limit_order.v1 import limit_order_pb2 as _limit_order_pb2
|
|
4
|
+
from google.protobuf.internal import containers as _containers
|
|
4
5
|
from google.protobuf import descriptor as _descriptor
|
|
5
6
|
from google.protobuf import message as _message
|
|
6
|
-
from
|
|
7
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
8
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
7
9
|
|
|
8
10
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
9
11
|
|
|
12
|
+
class CreateLimitOrderRequest(_message.Message):
|
|
13
|
+
__slots__ = ("limit_order",)
|
|
14
|
+
LIMIT_ORDER_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
limit_order: _limit_order_pb2.LimitOrder
|
|
16
|
+
def __init__(self, limit_order: _Optional[_Union[_limit_order_pb2.LimitOrder, _Mapping]] = ...) -> None: ...
|
|
17
|
+
|
|
18
|
+
class CancelLimitOrderRequest(_message.Message):
|
|
19
|
+
__slots__ = ("name",)
|
|
20
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
name: str
|
|
22
|
+
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
23
|
+
|
|
10
24
|
class GetLimitOrderRequest(_message.Message):
|
|
11
|
-
__slots__ = ("
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
25
|
+
__slots__ = ("name", "live_ledger_data")
|
|
26
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
LIVE_LEDGER_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
name: str
|
|
29
|
+
live_ledger_data: bool
|
|
30
|
+
def __init__(self, name: _Optional[str] = ..., live_ledger_data: bool = ...) -> None: ...
|
|
31
|
+
|
|
32
|
+
class GetLimitOrderByExternalReferenceRequest(_message.Message):
|
|
33
|
+
__slots__ = ("external_reference", "live_ledger_data")
|
|
34
|
+
EXTERNAL_REFERENCE_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
LIVE_LEDGER_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
external_reference: str
|
|
37
|
+
live_ledger_data: bool
|
|
38
|
+
def __init__(self, external_reference: _Optional[str] = ..., live_ledger_data: bool = ...) -> None: ...
|
|
39
|
+
|
|
40
|
+
class ListLimitOrdersRequest(_message.Message):
|
|
41
|
+
__slots__ = ("live_ledger_data",)
|
|
42
|
+
LIVE_LEDGER_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
live_ledger_data: bool
|
|
44
|
+
def __init__(self, live_ledger_data: bool = ...) -> None: ...
|
|
45
|
+
|
|
46
|
+
class ListLimitOrdersResponse(_message.Message):
|
|
47
|
+
__slots__ = ("limit_orders",)
|
|
48
|
+
LIMIT_ORDERS_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
limit_orders: _containers.RepeatedCompositeFieldContainer[_limit_order_pb2.LimitOrder]
|
|
50
|
+
def __init__(self, limit_orders: _Optional[_Iterable[_Union[_limit_order_pb2.LimitOrder, _Mapping]]] = ...) -> None: ...
|
|
51
|
+
|
|
52
|
+
class SearchLimitOrdersRequest(_message.Message):
|
|
53
|
+
__slots__ = ("token", "account", "live_ledger_data")
|
|
54
|
+
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
ACCOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
LIVE_LEDGER_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
token: str
|
|
58
|
+
account: str
|
|
59
|
+
live_ledger_data: bool
|
|
60
|
+
def __init__(self, token: _Optional[str] = ..., account: _Optional[str] = ..., live_ledger_data: bool = ...) -> None: ...
|
|
61
|
+
|
|
62
|
+
class SearchLimitOrdersResponse(_message.Message):
|
|
63
|
+
__slots__ = ("limit_orders",)
|
|
64
|
+
LIMIT_ORDERS_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
limit_orders: _containers.RepeatedCompositeFieldContainer[_limit_order_pb2.LimitOrder]
|
|
66
|
+
def __init__(self, limit_orders: _Optional[_Iterable[_Union[_limit_order_pb2.LimitOrder, _Mapping]]] = ...) -> None: ...
|
|
67
|
+
|
|
68
|
+
class MonitorLimitOrderRequest(_message.Message):
|
|
69
|
+
__slots__ = ("name", "external_reference")
|
|
70
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
EXTERNAL_REFERENCE_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
name: str
|
|
73
|
+
external_reference: str
|
|
74
|
+
def __init__(self, name: _Optional[str] = ..., external_reference: _Optional[str] = ...) -> None: ...
|