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
|
@@ -7,7 +7,16 @@ from meshtrade.trading.limit_order.v1 import service_pb2 as meshtrade_dot_tradin
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class LimitOrderServiceStub(object):
|
|
10
|
-
"""
|
|
10
|
+
"""
|
|
11
|
+
LimitOrderService manages limit orders for trading operations (BETA).
|
|
12
|
+
|
|
13
|
+
This service provides comprehensive limit order management capabilities including
|
|
14
|
+
order creation, cancellation, querying, and real-time monitoring. All operations
|
|
15
|
+
are scoped to the authenticated group's hierarchy and require appropriate trading
|
|
16
|
+
domain permissions.
|
|
17
|
+
|
|
18
|
+
Note: This service is currently in BETA. Interface and functionality may change.
|
|
19
|
+
"""
|
|
11
20
|
|
|
12
21
|
def __init__(self, channel):
|
|
13
22
|
"""Constructor.
|
|
@@ -15,18 +24,125 @@ class LimitOrderServiceStub(object):
|
|
|
15
24
|
Args:
|
|
16
25
|
channel: A grpc.Channel.
|
|
17
26
|
"""
|
|
27
|
+
self.CreateLimitOrder = channel.unary_unary(
|
|
28
|
+
'/meshtrade.trading.limit_order.v1.LimitOrderService/CreateLimitOrder',
|
|
29
|
+
request_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.CreateLimitOrderRequest.SerializeToString,
|
|
30
|
+
response_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.FromString,
|
|
31
|
+
_registered_method=True)
|
|
32
|
+
self.CancelLimitOrder = channel.unary_unary(
|
|
33
|
+
'/meshtrade.trading.limit_order.v1.LimitOrderService/CancelLimitOrder',
|
|
34
|
+
request_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.CancelLimitOrderRequest.SerializeToString,
|
|
35
|
+
response_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.FromString,
|
|
36
|
+
_registered_method=True)
|
|
18
37
|
self.GetLimitOrder = channel.unary_unary(
|
|
19
38
|
'/meshtrade.trading.limit_order.v1.LimitOrderService/GetLimitOrder',
|
|
20
39
|
request_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.GetLimitOrderRequest.SerializeToString,
|
|
21
40
|
response_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.FromString,
|
|
22
41
|
_registered_method=True)
|
|
42
|
+
self.GetLimitOrderByExternalReference = channel.unary_unary(
|
|
43
|
+
'/meshtrade.trading.limit_order.v1.LimitOrderService/GetLimitOrderByExternalReference',
|
|
44
|
+
request_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.GetLimitOrderByExternalReferenceRequest.SerializeToString,
|
|
45
|
+
response_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.FromString,
|
|
46
|
+
_registered_method=True)
|
|
47
|
+
self.ListLimitOrders = channel.unary_unary(
|
|
48
|
+
'/meshtrade.trading.limit_order.v1.LimitOrderService/ListLimitOrders',
|
|
49
|
+
request_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.ListLimitOrdersRequest.SerializeToString,
|
|
50
|
+
response_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.ListLimitOrdersResponse.FromString,
|
|
51
|
+
_registered_method=True)
|
|
52
|
+
self.SearchLimitOrders = channel.unary_unary(
|
|
53
|
+
'/meshtrade.trading.limit_order.v1.LimitOrderService/SearchLimitOrders',
|
|
54
|
+
request_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.SearchLimitOrdersRequest.SerializeToString,
|
|
55
|
+
response_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.SearchLimitOrdersResponse.FromString,
|
|
56
|
+
_registered_method=True)
|
|
57
|
+
self.MonitorLimitOrder = channel.unary_stream(
|
|
58
|
+
'/meshtrade.trading.limit_order.v1.LimitOrderService/MonitorLimitOrder',
|
|
59
|
+
request_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.MonitorLimitOrderRequest.SerializeToString,
|
|
60
|
+
response_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.FromString,
|
|
61
|
+
_registered_method=True)
|
|
23
62
|
|
|
24
63
|
|
|
25
64
|
class LimitOrderServiceServicer(object):
|
|
26
|
-
"""
|
|
65
|
+
"""
|
|
66
|
+
LimitOrderService manages limit orders for trading operations (BETA).
|
|
67
|
+
|
|
68
|
+
This service provides comprehensive limit order management capabilities including
|
|
69
|
+
order creation, cancellation, querying, and real-time monitoring. All operations
|
|
70
|
+
are scoped to the authenticated group's hierarchy and require appropriate trading
|
|
71
|
+
domain permissions.
|
|
72
|
+
|
|
73
|
+
Note: This service is currently in BETA. Interface and functionality may change.
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
def CreateLimitOrder(self, request, context):
|
|
77
|
+
"""
|
|
78
|
+
Creates a new limit order.
|
|
79
|
+
|
|
80
|
+
Submits a limit order to the trading system. The order is validated and
|
|
81
|
+
submitted to the appropriate ledger for execution.
|
|
82
|
+
"""
|
|
83
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
84
|
+
context.set_details('Method not implemented!')
|
|
85
|
+
raise NotImplementedError('Method not implemented!')
|
|
86
|
+
|
|
87
|
+
def CancelLimitOrder(self, request, context):
|
|
88
|
+
"""
|
|
89
|
+
Cancels an existing limit order.
|
|
90
|
+
|
|
91
|
+
Initiates cancellation of a limit order on the ledger.
|
|
92
|
+
"""
|
|
93
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
94
|
+
context.set_details('Method not implemented!')
|
|
95
|
+
raise NotImplementedError('Method not implemented!')
|
|
27
96
|
|
|
28
97
|
def GetLimitOrder(self, request, context):
|
|
29
|
-
"""
|
|
98
|
+
"""
|
|
99
|
+
Retrieves a specific limit order by its resource name.
|
|
100
|
+
|
|
101
|
+
Provides access to limit order metadata and optionally fetches live
|
|
102
|
+
ledger data when populate_ledger_data is true.
|
|
103
|
+
"""
|
|
104
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
105
|
+
context.set_details('Method not implemented!')
|
|
106
|
+
raise NotImplementedError('Method not implemented!')
|
|
107
|
+
|
|
108
|
+
def GetLimitOrderByExternalReference(self, request, context):
|
|
109
|
+
"""
|
|
110
|
+
Retrieves a limit order by its external reference.
|
|
111
|
+
|
|
112
|
+
Convenient lookup using client-provided external reference identifier.
|
|
113
|
+
"""
|
|
114
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
115
|
+
context.set_details('Method not implemented!')
|
|
116
|
+
raise NotImplementedError('Method not implemented!')
|
|
117
|
+
|
|
118
|
+
def ListLimitOrders(self, request, context):
|
|
119
|
+
"""
|
|
120
|
+
Lists all limit orders within the authenticated group's scope.
|
|
121
|
+
|
|
122
|
+
Returns the complete set of limit orders accessible to the executing context.
|
|
123
|
+
"""
|
|
124
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
125
|
+
context.set_details('Method not implemented!')
|
|
126
|
+
raise NotImplementedError('Method not implemented!')
|
|
127
|
+
|
|
128
|
+
def SearchLimitOrders(self, request, context):
|
|
129
|
+
"""
|
|
130
|
+
Searches limit orders using flexible filtering criteria.
|
|
131
|
+
|
|
132
|
+
Supports filtering by token, account, and populating live ledger data.
|
|
133
|
+
"""
|
|
134
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
135
|
+
context.set_details('Method not implemented!')
|
|
136
|
+
raise NotImplementedError('Method not implemented!')
|
|
137
|
+
|
|
138
|
+
def MonitorLimitOrder(self, request, context):
|
|
139
|
+
"""
|
|
140
|
+
Monitors a limit order for real-time updates.
|
|
141
|
+
|
|
142
|
+
Supports lookup by either resource name or external reference using
|
|
143
|
+
the identifier oneof field in the request. Returns a stream of limit
|
|
144
|
+
order states as they change.
|
|
145
|
+
"""
|
|
30
146
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
31
147
|
context.set_details('Method not implemented!')
|
|
32
148
|
raise NotImplementedError('Method not implemented!')
|
|
@@ -34,11 +150,41 @@ class LimitOrderServiceServicer(object):
|
|
|
34
150
|
|
|
35
151
|
def add_LimitOrderServiceServicer_to_server(servicer, server):
|
|
36
152
|
rpc_method_handlers = {
|
|
153
|
+
'CreateLimitOrder': grpc.unary_unary_rpc_method_handler(
|
|
154
|
+
servicer.CreateLimitOrder,
|
|
155
|
+
request_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.CreateLimitOrderRequest.FromString,
|
|
156
|
+
response_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.SerializeToString,
|
|
157
|
+
),
|
|
158
|
+
'CancelLimitOrder': grpc.unary_unary_rpc_method_handler(
|
|
159
|
+
servicer.CancelLimitOrder,
|
|
160
|
+
request_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.CancelLimitOrderRequest.FromString,
|
|
161
|
+
response_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.SerializeToString,
|
|
162
|
+
),
|
|
37
163
|
'GetLimitOrder': grpc.unary_unary_rpc_method_handler(
|
|
38
164
|
servicer.GetLimitOrder,
|
|
39
165
|
request_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.GetLimitOrderRequest.FromString,
|
|
40
166
|
response_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.SerializeToString,
|
|
41
167
|
),
|
|
168
|
+
'GetLimitOrderByExternalReference': grpc.unary_unary_rpc_method_handler(
|
|
169
|
+
servicer.GetLimitOrderByExternalReference,
|
|
170
|
+
request_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.GetLimitOrderByExternalReferenceRequest.FromString,
|
|
171
|
+
response_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.SerializeToString,
|
|
172
|
+
),
|
|
173
|
+
'ListLimitOrders': grpc.unary_unary_rpc_method_handler(
|
|
174
|
+
servicer.ListLimitOrders,
|
|
175
|
+
request_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.ListLimitOrdersRequest.FromString,
|
|
176
|
+
response_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.ListLimitOrdersResponse.SerializeToString,
|
|
177
|
+
),
|
|
178
|
+
'SearchLimitOrders': grpc.unary_unary_rpc_method_handler(
|
|
179
|
+
servicer.SearchLimitOrders,
|
|
180
|
+
request_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.SearchLimitOrdersRequest.FromString,
|
|
181
|
+
response_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.SearchLimitOrdersResponse.SerializeToString,
|
|
182
|
+
),
|
|
183
|
+
'MonitorLimitOrder': grpc.unary_stream_rpc_method_handler(
|
|
184
|
+
servicer.MonitorLimitOrder,
|
|
185
|
+
request_deserializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.MonitorLimitOrderRequest.FromString,
|
|
186
|
+
response_serializer=meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.SerializeToString,
|
|
187
|
+
),
|
|
42
188
|
}
|
|
43
189
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
44
190
|
'meshtrade.trading.limit_order.v1.LimitOrderService', rpc_method_handlers)
|
|
@@ -48,7 +194,70 @@ def add_LimitOrderServiceServicer_to_server(servicer, server):
|
|
|
48
194
|
|
|
49
195
|
# This class is part of an EXPERIMENTAL API.
|
|
50
196
|
class LimitOrderService(object):
|
|
51
|
-
"""
|
|
197
|
+
"""
|
|
198
|
+
LimitOrderService manages limit orders for trading operations (BETA).
|
|
199
|
+
|
|
200
|
+
This service provides comprehensive limit order management capabilities including
|
|
201
|
+
order creation, cancellation, querying, and real-time monitoring. All operations
|
|
202
|
+
are scoped to the authenticated group's hierarchy and require appropriate trading
|
|
203
|
+
domain permissions.
|
|
204
|
+
|
|
205
|
+
Note: This service is currently in BETA. Interface and functionality may change.
|
|
206
|
+
"""
|
|
207
|
+
|
|
208
|
+
@staticmethod
|
|
209
|
+
def CreateLimitOrder(request,
|
|
210
|
+
target,
|
|
211
|
+
options=(),
|
|
212
|
+
channel_credentials=None,
|
|
213
|
+
call_credentials=None,
|
|
214
|
+
insecure=False,
|
|
215
|
+
compression=None,
|
|
216
|
+
wait_for_ready=None,
|
|
217
|
+
timeout=None,
|
|
218
|
+
metadata=None):
|
|
219
|
+
return grpc.experimental.unary_unary(
|
|
220
|
+
request,
|
|
221
|
+
target,
|
|
222
|
+
'/meshtrade.trading.limit_order.v1.LimitOrderService/CreateLimitOrder',
|
|
223
|
+
meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.CreateLimitOrderRequest.SerializeToString,
|
|
224
|
+
meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.FromString,
|
|
225
|
+
options,
|
|
226
|
+
channel_credentials,
|
|
227
|
+
insecure,
|
|
228
|
+
call_credentials,
|
|
229
|
+
compression,
|
|
230
|
+
wait_for_ready,
|
|
231
|
+
timeout,
|
|
232
|
+
metadata,
|
|
233
|
+
_registered_method=True)
|
|
234
|
+
|
|
235
|
+
@staticmethod
|
|
236
|
+
def CancelLimitOrder(request,
|
|
237
|
+
target,
|
|
238
|
+
options=(),
|
|
239
|
+
channel_credentials=None,
|
|
240
|
+
call_credentials=None,
|
|
241
|
+
insecure=False,
|
|
242
|
+
compression=None,
|
|
243
|
+
wait_for_ready=None,
|
|
244
|
+
timeout=None,
|
|
245
|
+
metadata=None):
|
|
246
|
+
return grpc.experimental.unary_unary(
|
|
247
|
+
request,
|
|
248
|
+
target,
|
|
249
|
+
'/meshtrade.trading.limit_order.v1.LimitOrderService/CancelLimitOrder',
|
|
250
|
+
meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.CancelLimitOrderRequest.SerializeToString,
|
|
251
|
+
meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.FromString,
|
|
252
|
+
options,
|
|
253
|
+
channel_credentials,
|
|
254
|
+
insecure,
|
|
255
|
+
call_credentials,
|
|
256
|
+
compression,
|
|
257
|
+
wait_for_ready,
|
|
258
|
+
timeout,
|
|
259
|
+
metadata,
|
|
260
|
+
_registered_method=True)
|
|
52
261
|
|
|
53
262
|
@staticmethod
|
|
54
263
|
def GetLimitOrder(request,
|
|
@@ -76,3 +285,111 @@ class LimitOrderService(object):
|
|
|
76
285
|
timeout,
|
|
77
286
|
metadata,
|
|
78
287
|
_registered_method=True)
|
|
288
|
+
|
|
289
|
+
@staticmethod
|
|
290
|
+
def GetLimitOrderByExternalReference(request,
|
|
291
|
+
target,
|
|
292
|
+
options=(),
|
|
293
|
+
channel_credentials=None,
|
|
294
|
+
call_credentials=None,
|
|
295
|
+
insecure=False,
|
|
296
|
+
compression=None,
|
|
297
|
+
wait_for_ready=None,
|
|
298
|
+
timeout=None,
|
|
299
|
+
metadata=None):
|
|
300
|
+
return grpc.experimental.unary_unary(
|
|
301
|
+
request,
|
|
302
|
+
target,
|
|
303
|
+
'/meshtrade.trading.limit_order.v1.LimitOrderService/GetLimitOrderByExternalReference',
|
|
304
|
+
meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.GetLimitOrderByExternalReferenceRequest.SerializeToString,
|
|
305
|
+
meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.FromString,
|
|
306
|
+
options,
|
|
307
|
+
channel_credentials,
|
|
308
|
+
insecure,
|
|
309
|
+
call_credentials,
|
|
310
|
+
compression,
|
|
311
|
+
wait_for_ready,
|
|
312
|
+
timeout,
|
|
313
|
+
metadata,
|
|
314
|
+
_registered_method=True)
|
|
315
|
+
|
|
316
|
+
@staticmethod
|
|
317
|
+
def ListLimitOrders(request,
|
|
318
|
+
target,
|
|
319
|
+
options=(),
|
|
320
|
+
channel_credentials=None,
|
|
321
|
+
call_credentials=None,
|
|
322
|
+
insecure=False,
|
|
323
|
+
compression=None,
|
|
324
|
+
wait_for_ready=None,
|
|
325
|
+
timeout=None,
|
|
326
|
+
metadata=None):
|
|
327
|
+
return grpc.experimental.unary_unary(
|
|
328
|
+
request,
|
|
329
|
+
target,
|
|
330
|
+
'/meshtrade.trading.limit_order.v1.LimitOrderService/ListLimitOrders',
|
|
331
|
+
meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.ListLimitOrdersRequest.SerializeToString,
|
|
332
|
+
meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.ListLimitOrdersResponse.FromString,
|
|
333
|
+
options,
|
|
334
|
+
channel_credentials,
|
|
335
|
+
insecure,
|
|
336
|
+
call_credentials,
|
|
337
|
+
compression,
|
|
338
|
+
wait_for_ready,
|
|
339
|
+
timeout,
|
|
340
|
+
metadata,
|
|
341
|
+
_registered_method=True)
|
|
342
|
+
|
|
343
|
+
@staticmethod
|
|
344
|
+
def SearchLimitOrders(request,
|
|
345
|
+
target,
|
|
346
|
+
options=(),
|
|
347
|
+
channel_credentials=None,
|
|
348
|
+
call_credentials=None,
|
|
349
|
+
insecure=False,
|
|
350
|
+
compression=None,
|
|
351
|
+
wait_for_ready=None,
|
|
352
|
+
timeout=None,
|
|
353
|
+
metadata=None):
|
|
354
|
+
return grpc.experimental.unary_unary(
|
|
355
|
+
request,
|
|
356
|
+
target,
|
|
357
|
+
'/meshtrade.trading.limit_order.v1.LimitOrderService/SearchLimitOrders',
|
|
358
|
+
meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.SearchLimitOrdersRequest.SerializeToString,
|
|
359
|
+
meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.SearchLimitOrdersResponse.FromString,
|
|
360
|
+
options,
|
|
361
|
+
channel_credentials,
|
|
362
|
+
insecure,
|
|
363
|
+
call_credentials,
|
|
364
|
+
compression,
|
|
365
|
+
wait_for_ready,
|
|
366
|
+
timeout,
|
|
367
|
+
metadata,
|
|
368
|
+
_registered_method=True)
|
|
369
|
+
|
|
370
|
+
@staticmethod
|
|
371
|
+
def MonitorLimitOrder(request,
|
|
372
|
+
target,
|
|
373
|
+
options=(),
|
|
374
|
+
channel_credentials=None,
|
|
375
|
+
call_credentials=None,
|
|
376
|
+
insecure=False,
|
|
377
|
+
compression=None,
|
|
378
|
+
wait_for_ready=None,
|
|
379
|
+
timeout=None,
|
|
380
|
+
metadata=None):
|
|
381
|
+
return grpc.experimental.unary_stream(
|
|
382
|
+
request,
|
|
383
|
+
target,
|
|
384
|
+
'/meshtrade.trading.limit_order.v1.LimitOrderService/MonitorLimitOrder',
|
|
385
|
+
meshtrade_dot_trading_dot_limit__order_dot_v1_dot_service__pb2.MonitorLimitOrderRequest.SerializeToString,
|
|
386
|
+
meshtrade_dot_trading_dot_limit__order_dot_v1_dot_limit__order__pb2.LimitOrder.FromString,
|
|
387
|
+
options,
|
|
388
|
+
channel_credentials,
|
|
389
|
+
insecure,
|
|
390
|
+
call_credentials,
|
|
391
|
+
compression,
|
|
392
|
+
wait_for_ready,
|
|
393
|
+
timeout,
|
|
394
|
+
metadata,
|
|
395
|
+
_registered_method=True)
|
|
@@ -22,7 +22,6 @@ from .service_meshpy import (
|
|
|
22
22
|
MarketOrderServiceGRPCClient,
|
|
23
23
|
MarketOrderServiceGRPCClientInterface,
|
|
24
24
|
)
|
|
25
|
-
from .service_options_meshpy import ClientOptions
|
|
26
25
|
|
|
27
26
|
# ===================================================================
|
|
28
27
|
# END OF AUTO-GENERATED SECTION
|
|
@@ -44,7 +43,6 @@ from .service_options_meshpy import ClientOptions
|
|
|
44
43
|
# Combined auto-generated and manual exports
|
|
45
44
|
__all__ = [
|
|
46
45
|
# Generated exports
|
|
47
|
-
"ClientOptions",
|
|
48
46
|
"GetMarketOrderRequest",
|
|
49
47
|
"MarketOrder",
|
|
50
48
|
"MarketOrderService",
|
|
@@ -24,14 +24,14 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4meshtrade/trading/market_order/v1/market_order.proto\x12!meshtrade.trading.market_order.v1\"%\n\x0bMarketOrder\x12\x16\n\x06number\x18\x01 \x01(\tR\
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4meshtrade/trading/market_order/v1/market_order.proto\x12!meshtrade.trading.market_order.v1\"%\n\x0bMarketOrder\x12\x16\n\x06number\x18\x01 \x01(\tR\x06numberBo\n(co.meshtrade.api.trading.market_order.v1ZCgithub.com/meshtrade/api/go/trading/market_order/v1;market_order_v1b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.trading.market_order.v1.market_order_pb2', _globals)
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n(co.meshtrade.api.trading.market_order.
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n(co.meshtrade.api.trading.market_order.v1ZCgithub.com/meshtrade/api/go/trading/market_order/v1;market_order_v1'
|
|
35
35
|
_globals['_MARKETORDER']._serialized_start=91
|
|
36
36
|
_globals['_MARKETORDER']._serialized_end=128
|
|
37
37
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -9,16 +9,17 @@ 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 .market_order_pb2 import MarketOrder
|
|
20
|
+
from meshtrade.common.service_options import ServiceOptions
|
|
19
21
|
from .service_pb2 import (
|
|
20
22
|
GetMarketOrderRequest,
|
|
21
|
-
MarketOrder,
|
|
22
23
|
)
|
|
23
24
|
from .service_pb2_grpc import MarketOrderServiceStub
|
|
24
25
|
|
|
@@ -22,23 +22,22 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
22
22
|
_sym_db = _symbol_database.Default()
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
from meshtrade.
|
|
26
|
-
from meshtrade.option.v1 import method_type_pb2 as meshtrade_dot_option_dot_v1_dot_method__type__pb2
|
|
25
|
+
from meshtrade.option.method_options.v1 import method_options_pb2 as meshtrade_dot_option_dot_method__options_dot_v1_dot_method__options__pb2
|
|
27
26
|
from meshtrade.trading.market_order.v1 import market_order_pb2 as meshtrade_dot_trading_dot_market__order_dot_v1_dot_market__order__pb2
|
|
28
27
|
|
|
29
28
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/meshtrade/trading/market_order/v1/service.proto\x12!meshtrade.trading.market_order.v1\x1a
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/meshtrade/trading/market_order/v1/service.proto\x12!meshtrade.trading.market_order.v1\x1a\x37meshtrade/option/method_options/v1/method_options.proto\x1a\x34meshtrade/trading/market_order/v1/market_order.proto\"/\n\x15GetMarketOrderRequest\x12\x16\n\x06number\x18\x01 \x01(\tR\x06number2\xa5\x01\n\x12MarketOrderService\x12\x8e\x01\n\x0eGetMarketOrder\x12\x38.meshtrade.trading.market_order.v1.GetMarketOrderRequest\x1a..meshtrade.trading.market_order.v1.MarketOrder\"\x12\xb2\xb5\x18\x0e\x08\x01\x10\x02\x1a\x08\xc0\x96\xb1\x02\xc1\x96\xb1\x02\x42o\n(co.meshtrade.api.trading.market_order.v1ZCgithub.com/meshtrade/api/go/trading/market_order/v1;market_order_v1b\x06proto3')
|
|
31
30
|
|
|
32
31
|
_globals = globals()
|
|
33
32
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
33
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.trading.market_order.v1.service_pb2', _globals)
|
|
35
34
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
35
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n(co.meshtrade.api.trading.market_order.
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n(co.meshtrade.api.trading.market_order.v1ZCgithub.com/meshtrade/api/go/trading/market_order/v1;market_order_v1'
|
|
38
37
|
_globals['_MARKETORDERSERVICE'].methods_by_name['GetMarketOrder']._loaded_options = None
|
|
39
|
-
_globals['_MARKETORDERSERVICE'].methods_by_name['GetMarketOrder']._serialized_options = b'\
|
|
40
|
-
_globals['_GETMARKETORDERREQUEST']._serialized_start=
|
|
41
|
-
_globals['_GETMARKETORDERREQUEST']._serialized_end=
|
|
42
|
-
_globals['_MARKETORDERSERVICE']._serialized_start=
|
|
43
|
-
_globals['_MARKETORDERSERVICE']._serialized_end=
|
|
38
|
+
_globals['_MARKETORDERSERVICE'].methods_by_name['GetMarketOrder']._serialized_options = b'\262\265\030\016\010\001\020\002\032\010\300\226\261\002\301\226\261\002'
|
|
39
|
+
_globals['_GETMARKETORDERREQUEST']._serialized_start=197
|
|
40
|
+
_globals['_GETMARKETORDERREQUEST']._serialized_end=244
|
|
41
|
+
_globals['_MARKETORDERSERVICE']._serialized_start=247
|
|
42
|
+
_globals['_MARKETORDERSERVICE']._serialized_end=412
|
|
44
43
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
from meshtrade.
|
|
2
|
-
from meshtrade.option.v1 import method_type_pb2 as _method_type_pb2
|
|
1
|
+
from meshtrade.option.method_options.v1 import method_options_pb2 as _method_options_pb2
|
|
3
2
|
from meshtrade.trading.market_order.v1 import market_order_pb2 as _market_order_pb2
|
|
4
3
|
from google.protobuf import descriptor as _descriptor
|
|
5
4
|
from google.protobuf import message as _message
|
meshtrade/type/v1/__init__.py
CHANGED
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
from .address_pb2 import Address
|
|
17
17
|
from .contact_details_pb2 import ContactDetails
|
|
18
18
|
from .decimal_pb2 import Decimal
|
|
19
|
+
from .sorting_pb2 import SortingOrder
|
|
19
20
|
from .ledger_pb2 import Ledger
|
|
20
21
|
from .token_pb2 import Token
|
|
21
22
|
from .amount_pb2 import Amount
|
|
22
23
|
from .date_pb2 import Date
|
|
23
|
-
from .sorting_pb2 import SortingOrder
|
|
24
24
|
from .time_of_day_pb2 import TimeOfDay
|
|
25
25
|
|
|
26
26
|
# ===================================================================
|
|
@@ -38,43 +38,80 @@ from .time_of_day_pb2 import TimeOfDay
|
|
|
38
38
|
# ===================================================================
|
|
39
39
|
|
|
40
40
|
from .amount import (
|
|
41
|
+
amount_add,
|
|
42
|
+
amount_contains_fractions,
|
|
43
|
+
amount_decimal_div,
|
|
44
|
+
amount_decimal_mul,
|
|
45
|
+
amount_is_equal_to,
|
|
46
|
+
amount_is_negative,
|
|
47
|
+
amount_is_same_type_as,
|
|
48
|
+
amount_is_undefined,
|
|
49
|
+
amount_is_zero,
|
|
50
|
+
amount_set_value,
|
|
51
|
+
amount_sub,
|
|
41
52
|
new_amount,
|
|
53
|
+
new_undefined_amount,
|
|
42
54
|
)
|
|
43
55
|
from .date import (
|
|
44
56
|
date_add_days,
|
|
45
57
|
date_add_months,
|
|
46
58
|
date_add_years,
|
|
47
|
-
date_to_python_date,
|
|
48
|
-
date_to_string,
|
|
49
59
|
date_is_after,
|
|
50
60
|
date_is_after_or_equal,
|
|
51
61
|
date_is_before,
|
|
52
62
|
date_is_before_or_equal,
|
|
53
63
|
date_is_complete,
|
|
54
64
|
date_is_equal,
|
|
65
|
+
date_is_valid,
|
|
66
|
+
date_to_python_date,
|
|
67
|
+
date_to_string,
|
|
55
68
|
new_date,
|
|
56
69
|
new_date_from_python_date,
|
|
57
|
-
|
|
70
|
+
)
|
|
71
|
+
from .decimal_built_in_conversions import (
|
|
72
|
+
built_in_to_decimal,
|
|
73
|
+
decimal_to_built_in,
|
|
74
|
+
)
|
|
75
|
+
from .decimal_operations import (
|
|
76
|
+
decimal_add,
|
|
77
|
+
decimal_div,
|
|
78
|
+
decimal_equal,
|
|
79
|
+
decimal_greater_than,
|
|
80
|
+
decimal_greater_than_or_equal,
|
|
81
|
+
decimal_is_negative,
|
|
82
|
+
decimal_is_positive,
|
|
83
|
+
decimal_is_zero,
|
|
84
|
+
decimal_less_than,
|
|
85
|
+
decimal_less_than_or_equal,
|
|
86
|
+
decimal_mul,
|
|
87
|
+
decimal_round,
|
|
88
|
+
decimal_sub,
|
|
89
|
+
)
|
|
90
|
+
from .ledger import (
|
|
91
|
+
UnsupportedLedgerError,
|
|
92
|
+
get_ledger_no_decimal_places,
|
|
93
|
+
ledger_is_valid,
|
|
94
|
+
ledger_is_valid_and_defined,
|
|
95
|
+
ledger_to_pretty_string,
|
|
58
96
|
)
|
|
59
97
|
from .time_of_day import (
|
|
60
|
-
time_of_day_is_midnight,
|
|
61
98
|
new_time_of_day,
|
|
62
99
|
new_time_of_day_from_datetime,
|
|
63
100
|
new_time_of_day_from_python_time,
|
|
64
101
|
new_time_of_day_from_timedelta,
|
|
102
|
+
time_of_day_is_midnight,
|
|
103
|
+
time_of_day_is_valid,
|
|
65
104
|
time_of_day_to_datetime_with_date,
|
|
66
105
|
time_of_day_to_python_time,
|
|
67
106
|
time_of_day_to_string,
|
|
68
107
|
time_of_day_to_timedelta,
|
|
69
108
|
time_of_day_total_seconds,
|
|
70
|
-
time_of_day_is_valid,
|
|
71
109
|
)
|
|
72
|
-
from .
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
get_ledger_no_decimal_places,
|
|
110
|
+
from .token import (
|
|
111
|
+
new_undefined_token,
|
|
112
|
+
token_is_equal_to,
|
|
113
|
+
token_is_undefined,
|
|
114
|
+
token_pretty_string,
|
|
78
115
|
)
|
|
79
116
|
|
|
80
117
|
# ===================================================================
|
|
@@ -93,6 +130,18 @@ __all__ = [
|
|
|
93
130
|
"TimeOfDay",
|
|
94
131
|
"Token",
|
|
95
132
|
# Manual exports
|
|
133
|
+
"UnsupportedLedgerError",
|
|
134
|
+
"amount_add",
|
|
135
|
+
"amount_contains_fractions",
|
|
136
|
+
"amount_decimal_div",
|
|
137
|
+
"amount_decimal_mul",
|
|
138
|
+
"amount_is_equal_to",
|
|
139
|
+
"amount_is_negative",
|
|
140
|
+
"amount_is_same_type_as",
|
|
141
|
+
"amount_is_undefined",
|
|
142
|
+
"amount_is_zero",
|
|
143
|
+
"amount_set_value",
|
|
144
|
+
"amount_sub",
|
|
96
145
|
"built_in_to_decimal",
|
|
97
146
|
"date_add_days",
|
|
98
147
|
"date_add_months",
|
|
@@ -106,8 +155,24 @@ __all__ = [
|
|
|
106
155
|
"date_is_valid",
|
|
107
156
|
"date_to_python_date",
|
|
108
157
|
"date_to_string",
|
|
158
|
+
"decimal_add",
|
|
159
|
+
"decimal_div",
|
|
160
|
+
"decimal_equal",
|
|
161
|
+
"decimal_greater_than",
|
|
162
|
+
"decimal_greater_than_or_equal",
|
|
163
|
+
"decimal_is_negative",
|
|
164
|
+
"decimal_is_positive",
|
|
165
|
+
"decimal_is_zero",
|
|
166
|
+
"decimal_less_than",
|
|
167
|
+
"decimal_less_than_or_equal",
|
|
168
|
+
"decimal_mul",
|
|
169
|
+
"decimal_round",
|
|
170
|
+
"decimal_sub",
|
|
109
171
|
"decimal_to_built_in",
|
|
110
172
|
"get_ledger_no_decimal_places",
|
|
173
|
+
"ledger_is_valid",
|
|
174
|
+
"ledger_is_valid_and_defined",
|
|
175
|
+
"ledger_to_pretty_string",
|
|
111
176
|
"new_amount",
|
|
112
177
|
"new_date",
|
|
113
178
|
"new_date_from_python_date",
|
|
@@ -115,6 +180,8 @@ __all__ = [
|
|
|
115
180
|
"new_time_of_day_from_datetime",
|
|
116
181
|
"new_time_of_day_from_python_time",
|
|
117
182
|
"new_time_of_day_from_timedelta",
|
|
183
|
+
"new_undefined_amount",
|
|
184
|
+
"new_undefined_token",
|
|
118
185
|
"time_of_day_is_midnight",
|
|
119
186
|
"time_of_day_is_valid",
|
|
120
187
|
"time_of_day_to_datetime_with_date",
|
|
@@ -122,4 +189,7 @@ __all__ = [
|
|
|
122
189
|
"time_of_day_to_string",
|
|
123
190
|
"time_of_day_to_timedelta",
|
|
124
191
|
"time_of_day_total_seconds",
|
|
192
|
+
"token_is_equal_to",
|
|
193
|
+
"token_is_undefined",
|
|
194
|
+
"token_pretty_string",
|
|
125
195
|
]
|
meshtrade/type/v1/address_pb2.py
CHANGED
|
@@ -24,14 +24,14 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmeshtrade/type/v1/address.proto\x12\x11meshtrade.type.v1\"\xba\x01\n\x07\x41\x64\x64ress\x12#\n\raddress_lines\x18\x01 \x03(\tR\x0c\x61\x64\x64ressLines\x12\x16\n\x06suburb\x18\x02 \x01(\tR\x06suburb\x12\x12\n\x04\x63ity\x18\x03 \x01(\tR\x04\x63ity\x12\x1a\n\x08province\x18\x04 \x01(\tR\x08province\x12!\n\x0c\x63ountry_code\x18\x05 \x01(\tR\x0b\x63ountryCode\x12\x1f\n\x0bpostal_code\x18\x06 \x01(\tR\
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmeshtrade/type/v1/address.proto\x12\x11meshtrade.type.v1\"\xba\x01\n\x07\x41\x64\x64ress\x12#\n\raddress_lines\x18\x01 \x03(\tR\x0c\x61\x64\x64ressLines\x12\x16\n\x06suburb\x18\x02 \x01(\tR\x06suburb\x12\x12\n\x04\x63ity\x18\x03 \x01(\tR\x04\x63ity\x12\x1a\n\x08province\x18\x04 \x01(\tR\x08province\x12!\n\x0c\x63ountry_code\x18\x05 \x01(\tR\x0b\x63ountryCode\x12\x1f\n\x0bpostal_code\x18\x06 \x01(\tR\npostalCodeBG\n\x18\x63o.meshtrade.api.type.v1Z+github.com/meshtrade/api/go/type/v1;type_v1b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.type.v1.address_pb2', _globals)
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z+github.com/meshtrade/api/go/type/v1;type_v1'
|
|
35
35
|
_globals['_ADDRESS']._serialized_start=55
|
|
36
36
|
_globals['_ADDRESS']._serialized_end=241
|
|
37
37
|
# @@protoc_insertion_point(module_scope)
|