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.
Files changed (163) hide show
  1. meshtrade/common/__init__.py +2 -4
  2. meshtrade/common/config.py +3 -4
  3. meshtrade/common/grpc_client.py +140 -0
  4. meshtrade/common/service_options.py +46 -0
  5. meshtrade/compliance/client/v1/__init__.py +0 -2
  6. meshtrade/compliance/client/v1/client_pb2.py +15 -4
  7. meshtrade/compliance/client/v1/client_pb2.pyi +1 -0
  8. meshtrade/compliance/client/v1/company_pb2.py +25 -8
  9. meshtrade/compliance/client/v1/company_pb2.pyi +1 -0
  10. meshtrade/compliance/client/v1/company_representative_pb2.py +9 -4
  11. meshtrade/compliance/client/v1/company_representative_pb2.pyi +1 -0
  12. meshtrade/compliance/client/v1/company_representative_role_pb2.py +2 -2
  13. meshtrade/compliance/client/v1/fund_pb2.py +13 -4
  14. meshtrade/compliance/client/v1/fund_pb2.pyi +1 -0
  15. meshtrade/compliance/client/v1/identification_document_type_pb2.py +2 -2
  16. meshtrade/compliance/client/v1/industry_classification_pb2.py +2 -2
  17. meshtrade/compliance/client/v1/natural_person_connection_type_pb2.py +2 -2
  18. meshtrade/compliance/client/v1/natural_person_pb2.py +19 -4
  19. meshtrade/compliance/client/v1/natural_person_pb2.pyi +1 -0
  20. meshtrade/compliance/client/v1/pep_status_pb2.py +2 -2
  21. meshtrade/compliance/client/v1/service_meshpy.py +2 -1
  22. meshtrade/compliance/client/v1/service_pb2.py +21 -17
  23. meshtrade/compliance/client/v1/service_pb2.pyi +2 -2
  24. meshtrade/compliance/client/v1/source_of_income_and_wealth_pb2.py +2 -2
  25. meshtrade/compliance/client/v1/tax_residency_pb2.py +9 -4
  26. meshtrade/compliance/client/v1/tax_residency_pb2.pyi +1 -0
  27. meshtrade/compliance/client/v1/trust_pb2.py +13 -4
  28. meshtrade/compliance/client/v1/trust_pb2.pyi +1 -0
  29. meshtrade/compliance/client/v1/verification_status_pb2.py +2 -2
  30. meshtrade/iam/api_user/v1/__init__.py +34 -26
  31. meshtrade/iam/api_user/v1/api_credentials_pb2.py +5 -5
  32. meshtrade/iam/api_user/v1/api_user_pb2.py +13 -9
  33. meshtrade/iam/api_user/v1/api_user_pb2.pyi +2 -4
  34. meshtrade/iam/api_user/v1/api_user_state_machine.py +104 -0
  35. meshtrade/iam/api_user/v1/service_meshpy.py +96 -61
  36. meshtrade/iam/api_user/v1/service_pb2.py +61 -40
  37. meshtrade/iam/api_user/v1/service_pb2.pyi +26 -11
  38. meshtrade/iam/api_user/v1/service_pb2_grpc.py +179 -135
  39. meshtrade/iam/group/v1/__init__.py +4 -2
  40. meshtrade/iam/group/v1/group_pb2.py +13 -4
  41. meshtrade/iam/group/v1/group_pb2.pyi +9 -2
  42. meshtrade/iam/group/v1/service_meshpy.py +41 -6
  43. meshtrade/iam/group/v1/service_pb2.py +47 -20
  44. meshtrade/iam/group/v1/service_pb2.pyi +46 -13
  45. meshtrade/iam/group/v1/service_pb2_grpc.py +151 -16
  46. meshtrade/iam/role/v1/__init__.py +17 -4
  47. meshtrade/iam/role/v1/role.py +162 -11
  48. meshtrade/iam/role/v1/role_pb2.py +4 -7
  49. meshtrade/iam/role/v1/role_pb2.pyi +53 -23
  50. meshtrade/iam/user/v1/__init__.py +22 -4
  51. meshtrade/iam/user/v1/service_meshpy.py +129 -7
  52. meshtrade/iam/user/v1/service_pb2.py +66 -16
  53. meshtrade/iam/user/v1/service_pb2.pyi +81 -9
  54. meshtrade/iam/user/v1/service_pb2_grpc.py +385 -14
  55. meshtrade/iam/user/v1/user_pb2.py +13 -4
  56. meshtrade/iam/user/v1/user_pb2.pyi +7 -2
  57. meshtrade/ledger/transaction/v1/__init__.py +25 -1
  58. meshtrade/ledger/transaction/v1/service_meshpy.py +176 -0
  59. meshtrade/ledger/transaction/v1/service_pb2.py +56 -0
  60. meshtrade/ledger/transaction/v1/service_pb2.pyi +32 -0
  61. meshtrade/ledger/transaction/v1/service_pb2_grpc.py +131 -0
  62. meshtrade/ledger/transaction/v1/transaction_action_pb2.py +2 -2
  63. meshtrade/ledger/transaction/v1/transaction_state_machine.py +75 -0
  64. meshtrade/ledger/transaction/v1/transaction_state_pb2.py +2 -2
  65. meshtrade/{reporting/income_report → market_data/price}/v1/__init__.py +11 -20
  66. meshtrade/market_data/price/v1/price_pb2.py +40 -0
  67. meshtrade/market_data/price/v1/price_pb2.pyi +23 -0
  68. meshtrade/market_data/price/v1/service_meshpy.py +152 -0
  69. meshtrade/market_data/price/v1/service_pb2.py +49 -0
  70. meshtrade/market_data/price/v1/service_pb2.pyi +18 -0
  71. meshtrade/market_data/price/v1/service_pb2_grpc.py +84 -0
  72. meshtrade/option/method_options/v1/__init__.py +41 -0
  73. meshtrade/option/method_options/v1/method_options_pb2.py +43 -0
  74. meshtrade/option/method_options/v1/method_options_pb2.pyi +40 -0
  75. meshtrade/reporting/account_report/v1/__init__.py +66 -0
  76. meshtrade/reporting/account_report/v1/account_report_pb2.py +46 -0
  77. meshtrade/reporting/account_report/v1/account_report_pb2.pyi +49 -0
  78. meshtrade/reporting/{income_report → account_report}/v1/disclaimer_pb2.py +7 -7
  79. meshtrade/reporting/account_report/v1/fee_entry_pb2.py +39 -0
  80. meshtrade/reporting/account_report/v1/fee_entry_pb2.pyi +26 -0
  81. meshtrade/reporting/account_report/v1/fee_entry_pb2_grpc.py +4 -0
  82. meshtrade/reporting/account_report/v1/income_entry.py +35 -0
  83. meshtrade/reporting/account_report/v1/income_entry_pb2.py +42 -0
  84. meshtrade/reporting/{income_report/v1/entry_pb2.pyi → account_report/v1/income_entry_pb2.pyi} +18 -10
  85. meshtrade/reporting/account_report/v1/income_entry_pb2_grpc.py +4 -0
  86. meshtrade/reporting/{income_report → account_report}/v1/service_meshpy.py +37 -36
  87. meshtrade/reporting/account_report/v1/service_pb2.py +72 -0
  88. meshtrade/reporting/account_report/v1/service_pb2.pyi +43 -0
  89. meshtrade/reporting/account_report/v1/service_pb2_grpc.py +161 -0
  90. meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.py +39 -0
  91. meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.pyi +30 -0
  92. meshtrade/reporting/account_report/v1/trading_statement_entry_pb2_grpc.py +4 -0
  93. meshtrade/studio/instrument/v1/__init__.py +43 -0
  94. meshtrade/studio/instrument/v1/instrument_pb2.py +45 -0
  95. meshtrade/studio/instrument/v1/instrument_pb2.pyi +20 -0
  96. meshtrade/studio/instrument/v1/instrument_pb2_grpc.py +4 -0
  97. meshtrade/studio/instrument/v1/instrument_type_pb2.py +37 -0
  98. meshtrade/studio/instrument/v1/instrument_type_pb2.pyi +64 -0
  99. meshtrade/studio/instrument/v1/instrument_type_pb2_grpc.py +4 -0
  100. meshtrade/studio/instrument/v1/unit_pb2.py +37 -0
  101. meshtrade/studio/instrument/v1/unit_pb2.pyi +46 -0
  102. meshtrade/studio/instrument/v1/unit_pb2_grpc.py +4 -0
  103. meshtrade/trading/limit_order/v1/__init__.py +22 -4
  104. meshtrade/trading/limit_order/v1/limit_order_pb2.py +24 -4
  105. meshtrade/trading/limit_order/v1/limit_order_pb2.pyi +55 -5
  106. meshtrade/trading/limit_order/v1/service_meshpy.py +113 -2
  107. meshtrade/trading/limit_order/v1/service_pb2.py +49 -9
  108. meshtrade/trading/limit_order/v1/service_pb2.pyi +67 -7
  109. meshtrade/trading/limit_order/v1/service_pb2_grpc.py +321 -4
  110. meshtrade/trading/market_order/v1/__init__.py +0 -2
  111. meshtrade/trading/market_order/v1/market_order_pb2.py +2 -2
  112. meshtrade/trading/market_order/v1/service_meshpy.py +3 -2
  113. meshtrade/trading/market_order/v1/service_pb2.py +8 -9
  114. meshtrade/trading/market_order/v1/service_pb2.pyi +1 -2
  115. meshtrade/type/v1/__init__.py +82 -12
  116. meshtrade/type/v1/address_pb2.py +2 -2
  117. meshtrade/type/v1/amount.py +429 -5
  118. meshtrade/type/v1/amount_pb2.py +2 -2
  119. meshtrade/type/v1/contact_details_pb2.py +2 -2
  120. meshtrade/type/v1/date_pb2.py +2 -2
  121. meshtrade/type/v1/decimal_built_in_conversions.py +8 -3
  122. meshtrade/type/v1/decimal_operations.py +354 -0
  123. meshtrade/type/v1/decimal_pb2.py +2 -2
  124. meshtrade/type/v1/ledger.py +76 -1
  125. meshtrade/type/v1/ledger_pb2.py +2 -2
  126. meshtrade/type/v1/sorting_pb2.py +2 -2
  127. meshtrade/type/v1/time_of_day_pb2.py +2 -2
  128. meshtrade/type/v1/token.py +144 -0
  129. meshtrade/type/v1/token_pb2.py +2 -2
  130. meshtrade/wallet/account/v1/__init__.py +21 -3
  131. meshtrade/wallet/account/v1/account_pb2.py +28 -4
  132. meshtrade/wallet/account/v1/account_pb2.pyi +57 -3
  133. meshtrade/wallet/account/v1/service_meshpy.py +72 -1
  134. meshtrade/wallet/account/v1/service_pb2.py +67 -23
  135. meshtrade/wallet/account/v1/service_pb2.pyi +81 -21
  136. meshtrade/wallet/account/v1/service_pb2_grpc.py +242 -8
  137. {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/METADATA +1 -1
  138. meshtrade-1.29.0.dist-info/RECORD +217 -0
  139. meshtrade/compliance/client/v1/service_options_meshpy.py +0 -65
  140. meshtrade/iam/api_user/v1/service.py +0 -58
  141. meshtrade/iam/api_user/v1/service_options_meshpy.py +0 -65
  142. meshtrade/iam/group/v1/service_options_meshpy.py +0 -65
  143. meshtrade/iam/user/v1/service_options_meshpy.py +0 -65
  144. meshtrade/option/v1/method_type_pb2.py +0 -38
  145. meshtrade/option/v1/method_type_pb2.pyi +0 -17
  146. meshtrade/reporting/income_report/v1/entry_pb2.py +0 -42
  147. meshtrade/reporting/income_report/v1/income_report_pb2.py +0 -44
  148. meshtrade/reporting/income_report/v1/income_report_pb2.pyi +0 -42
  149. meshtrade/reporting/income_report/v1/service_options_meshpy.py +0 -65
  150. meshtrade/reporting/income_report/v1/service_pb2.py +0 -58
  151. meshtrade/reporting/income_report/v1/service_pb2.pyi +0 -37
  152. meshtrade/reporting/income_report/v1/service_pb2_grpc.py +0 -170
  153. meshtrade/trading/limit_order/v1/service_options_meshpy.py +0 -65
  154. meshtrade/trading/market_order/v1/service_options_meshpy.py +0 -65
  155. meshtrade/wallet/account/v1/service_options_meshpy.py +0 -65
  156. meshtrade-1.0.1.dist-info/RECORD +0 -191
  157. /meshtrade/{option/v1/method_type_pb2_grpc.py → market_data/price/v1/price_pb2_grpc.py} +0 -0
  158. /meshtrade/{reporting/income_report/v1/disclaimer_pb2_grpc.py → option/method_options/v1/method_options_pb2_grpc.py} +0 -0
  159. /meshtrade/reporting/{income_report/v1/entry_pb2_grpc.py → account_report/v1/account_report_pb2_grpc.py} +0 -0
  160. /meshtrade/reporting/{income_report → account_report}/v1/disclaimer_pb2.pyi +0 -0
  161. /meshtrade/reporting/{income_report/v1/income_report_pb2_grpc.py → account_report/v1/disclaimer_pb2_grpc.py} +0 -0
  162. {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/WHEEL +0 -0
  163. {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,152 @@
1
+ # Code generated by protoc-gen-meshpy. DO NOT EDIT.
2
+ # source: meshtrade/market_data/price/v1/service.proto
3
+
4
+ """
5
+ PriceService gRPC service wrapper with authentication, timeouts, and resource management.
6
+
7
+ This module provides a high-level gRPC service for the PriceService service that combines
8
+ the service interface with resource management capabilities, providing authentication,
9
+ timeouts, and proper connection handling.
10
+ """
11
+
12
+ from collections.abc import Iterator
13
+ from datetime import timedelta
14
+ from typing import Optional
15
+
16
+ from meshtrade.common import BaseGRPCClient
17
+ from meshtrade.iam.api_user.v1.api_credentials import find_credentials
18
+
19
+ from .price_pb2 import Price
20
+ from meshtrade.common.service_options import ServiceOptions
21
+ from .service_pb2 import (
22
+ GetCurrentPriceByTokenPairRequest,
23
+ )
24
+ from .service_pb2_grpc import PriceServiceStub
25
+
26
+
27
+ def _create_priceservice_stub(channel):
28
+ """Factory function to create PriceServiceStub from gRPC channel."""
29
+ return PriceServiceStub(channel)
30
+
31
+
32
+ class PriceService(BaseGRPCClient):
33
+ """PriceService gRPC service with authentication, timeouts, and resource management.
34
+
35
+ This service provides a complete implementation of the PriceService with proper authentication, timeout handling, and automatic resource cleanup.
36
+
37
+ Full Service documentation: https://meshtrade.github.io/api/docs/api-reference/market_data/price/v1
38
+
39
+ Basic service usage with default SDK Configuration:
40
+ ```python
41
+ service = PriceService()
42
+
43
+ with service: # `with` ensures proper clean up of underlying connection after use
44
+ response = service.get_api_user(request)
45
+ ```
46
+
47
+ With default configuration API credentials are searched for using the standard discovery hierarchy:
48
+
49
+ 1. MESH_API_CREDENTIALS environment variable
50
+
51
+ 2. Default credential file location:
52
+
53
+ - Linux: `$XDG_CONFIG_HOME/mesh/credentials.json` or fallback to `$HOME/.config/mesh/credentials.json`
54
+ - macOS: `$HOME/Library/Application Support/mesh/credentials.json`
55
+ - Windows: `C:\\Users\\<user>\\AppData\\Roaming\\mesh\\credentials.json`
56
+
57
+ For more information on authentication: https://meshtrade.github.io/api/docs/architecture/authentication
58
+
59
+ The service may also be configured with custom options:
60
+ ```python
61
+ from .service_options_meshpy import ServiceOptions
62
+ from datetime import timedelta
63
+
64
+ options = ServiceOptions(
65
+ url="api.staging.example.com",
66
+ port=443,
67
+ api_key="your-api-key",
68
+ group="groups/your-group-id",
69
+ timeout=timedelta(seconds=60)
70
+ )
71
+
72
+ service = PriceService(options)
73
+
74
+ with service: # `with` ensures proper clean up of underlying connection after use
75
+ response = service.get_api_user(request)
76
+ ```
77
+
78
+ For more information on service configuration: https://meshtrade.github.io/api/docs/architecture/sdk-configuration
79
+ """
80
+
81
+ def __init__(self, options: Optional[ServiceOptions] = None):
82
+ """Construct and initialize the PriceService service.
83
+
84
+ Full Service documentation: https://meshtrade.github.io/api/docs/api-reference/market_data/price/v1
85
+
86
+ Args:
87
+ options: Optional ServiceOptions for configuring the service.
88
+ If None, service is constructed with default configuration.
89
+ With default configuration API credentials are searched for using the standard discovery hierarchy:
90
+
91
+ 1. MESH_API_CREDENTIALS environment variable
92
+
93
+ 2. Default credential file location:
94
+
95
+ - Linux: `$XDG_CONFIG_HOME/mesh/credentials.json` or fallback to `$HOME/.config/mesh/credentials.json`
96
+ - macOS: `$HOME/Library/Application Support/mesh/credentials.json`
97
+ - Windows: `C:\\Users\\<user>\\AppData\\Roaming\\mesh\\credentials.json`
98
+
99
+ For more information on authentication: https://meshtrade.github.io/api/docs/architecture/authentication
100
+
101
+ For more information on service configuration: https://meshtrade.github.io/api/docs/architecture/sdk-configuration
102
+
103
+ Example:
104
+ ```python
105
+ # construct with default configuration
106
+ service = PriceService()
107
+
108
+ # construct with custom configuration
109
+ options = ServiceOptions(
110
+ url="api.example.com",
111
+ api_key="your-key",
112
+ group="groups/your-group"
113
+ )
114
+ service = PriceService(options)
115
+ ```
116
+ """
117
+ if options is None:
118
+ options = ServiceOptions()
119
+
120
+ # Initialize the base client with all common functionality
121
+ super().__init__(
122
+ service_name="PriceService",
123
+ stub_factory=_create_priceservice_stub,
124
+ find_credentials_func=find_credentials,
125
+ url=options.url,
126
+ port=options.port,
127
+ api_key=options.api_key,
128
+ group=options.group,
129
+ timeout=options.timeout,
130
+ tls=options.tls,
131
+ )
132
+
133
+ def get_current_price_by_token_pair(self, request: GetCurrentPriceByTokenPairRequest, timeout: Optional[timedelta] = None) -> Price:
134
+ """GetCurrentPriceByTokenPair method.
135
+
136
+ Args:
137
+ request: The GetCurrentPriceByTokenPair request message
138
+ timeout: Optional timeout override for this call
139
+
140
+ Returns:
141
+ The GetCurrentPriceByTokenPair response message
142
+
143
+ Raises:
144
+ grpc.RpcError: If the gRPC call fails
145
+ ValueError: If authentication credentials are missing
146
+ """
147
+ return self._execute_method("GetCurrentPriceByTokenPair", request, timeout)
148
+
149
+
150
+ # Create aliases to match expected exports
151
+ PriceServiceGRPCClient = PriceService
152
+ PriceServiceGRPCClientInterface = PriceService
@@ -0,0 +1,49 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: meshtrade/market_data/price/v1/service.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'meshtrade/market_data/price/v1/service.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
26
+ from meshtrade.market_data.price.v1 import price_pb2 as meshtrade_dot_market__data_dot_price_dot_v1_dot_price__pb2
27
+ from meshtrade.option.method_options.v1 import method_options_pb2 as meshtrade_dot_option_dot_method__options_dot_v1_dot_method__options__pb2
28
+ from meshtrade.type.v1 import token_pb2 as meshtrade_dot_type_dot_v1_dot_token__pb2
29
+
30
+
31
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,meshtrade/market_data/price/v1/service.proto\x12\x1emeshtrade.market_data.price.v1\x1a\x1b\x62uf/validate/validate.proto\x1a*meshtrade/market_data/price/v1/price.proto\x1a\x37meshtrade/option/method_options/v1/method_options.proto\x1a\x1dmeshtrade/type/v1/token.proto\"\xa7\x01\n!GetCurrentPriceByTokenPairRequest\x12?\n\nbase_token\x18\x01 \x01(\x0b\x32\x18.meshtrade.type.v1.TokenB\x06\xbaH\x03\xc8\x01\x01R\tbaseToken\x12\x41\n\x0bquote_token\x18\x02 \x01(\x0b\x32\x18.meshtrade.type.v1.TokenB\x06\xbaH\x03\xc8\x01\x01R\nquoteToken2\xb3\x01\n\x0cPriceService\x12\xa2\x01\n\x1aGetCurrentPriceByTokenPair\x12\x41.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest\x1a%.meshtrade.market_data.price.v1.Price\"\x1a\xb2\xb5\x18\x16\x08\x01\x10\x02\x1a\x10\x80\xa4\xe8\x03\x81\xa4\xe8\x03\x82\xa4\xe8\x03\x83\xa4\xe8\x03\x42\x62\n%co.meshtrade.api.market_data.price.v1Z9github.com/meshtrade/api/go/market_data/price/v1;price_v1b\x06proto3')
32
+
33
+ _globals = globals()
34
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
35
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.market_data.price.v1.service_pb2', _globals)
36
+ if not _descriptor._USE_C_DESCRIPTORS:
37
+ _globals['DESCRIPTOR']._loaded_options = None
38
+ _globals['DESCRIPTOR']._serialized_options = b'\n%co.meshtrade.api.market_data.price.v1Z9github.com/meshtrade/api/go/market_data/price/v1;price_v1'
39
+ _globals['_GETCURRENTPRICEBYTOKENPAIRREQUEST'].fields_by_name['base_token']._loaded_options = None
40
+ _globals['_GETCURRENTPRICEBYTOKENPAIRREQUEST'].fields_by_name['base_token']._serialized_options = b'\272H\003\310\001\001'
41
+ _globals['_GETCURRENTPRICEBYTOKENPAIRREQUEST'].fields_by_name['quote_token']._loaded_options = None
42
+ _globals['_GETCURRENTPRICEBYTOKENPAIRREQUEST'].fields_by_name['quote_token']._serialized_options = b'\272H\003\310\001\001'
43
+ _globals['_PRICESERVICE'].methods_by_name['GetCurrentPriceByTokenPair']._loaded_options = None
44
+ _globals['_PRICESERVICE'].methods_by_name['GetCurrentPriceByTokenPair']._serialized_options = b'\262\265\030\026\010\001\020\002\032\020\200\244\350\003\201\244\350\003\202\244\350\003\203\244\350\003'
45
+ _globals['_GETCURRENTPRICEBYTOKENPAIRREQUEST']._serialized_start=242
46
+ _globals['_GETCURRENTPRICEBYTOKENPAIRREQUEST']._serialized_end=409
47
+ _globals['_PRICESERVICE']._serialized_start=412
48
+ _globals['_PRICESERVICE']._serialized_end=591
49
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,18 @@
1
+ from buf.validate import validate_pb2 as _validate_pb2
2
+ from meshtrade.market_data.price.v1 import price_pb2 as _price_pb2
3
+ from meshtrade.option.method_options.v1 import method_options_pb2 as _method_options_pb2
4
+ from meshtrade.type.v1 import token_pb2 as _token_pb2
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import message as _message
7
+ from collections.abc import Mapping as _Mapping
8
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
9
+
10
+ DESCRIPTOR: _descriptor.FileDescriptor
11
+
12
+ class GetCurrentPriceByTokenPairRequest(_message.Message):
13
+ __slots__ = ("base_token", "quote_token")
14
+ BASE_TOKEN_FIELD_NUMBER: _ClassVar[int]
15
+ QUOTE_TOKEN_FIELD_NUMBER: _ClassVar[int]
16
+ base_token: _token_pb2.Token
17
+ quote_token: _token_pb2.Token
18
+ def __init__(self, base_token: _Optional[_Union[_token_pb2.Token, _Mapping]] = ..., quote_token: _Optional[_Union[_token_pb2.Token, _Mapping]] = ...) -> None: ...
@@ -0,0 +1,84 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from meshtrade.market_data.price.v1 import price_pb2 as meshtrade_dot_market__data_dot_price_dot_v1_dot_price__pb2
6
+ from meshtrade.market_data.price.v1 import service_pb2 as meshtrade_dot_market__data_dot_price_dot_v1_dot_service__pb2
7
+
8
+
9
+ class PriceServiceStub(object):
10
+ """
11
+ PriceService provides prices.
12
+ """
13
+
14
+ def __init__(self, channel):
15
+ """Constructor.
16
+
17
+ Args:
18
+ channel: A grpc.Channel.
19
+ """
20
+ self.GetCurrentPriceByTokenPair = channel.unary_unary(
21
+ '/meshtrade.market_data.price.v1.PriceService/GetCurrentPriceByTokenPair',
22
+ request_serializer=meshtrade_dot_market__data_dot_price_dot_v1_dot_service__pb2.GetCurrentPriceByTokenPairRequest.SerializeToString,
23
+ response_deserializer=meshtrade_dot_market__data_dot_price_dot_v1_dot_price__pb2.Price.FromString,
24
+ _registered_method=True)
25
+
26
+
27
+ class PriceServiceServicer(object):
28
+ """
29
+ PriceService provides prices.
30
+ """
31
+
32
+ def GetCurrentPriceByTokenPair(self, request, context):
33
+ """Missing associated documentation comment in .proto file."""
34
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
35
+ context.set_details('Method not implemented!')
36
+ raise NotImplementedError('Method not implemented!')
37
+
38
+
39
+ def add_PriceServiceServicer_to_server(servicer, server):
40
+ rpc_method_handlers = {
41
+ 'GetCurrentPriceByTokenPair': grpc.unary_unary_rpc_method_handler(
42
+ servicer.GetCurrentPriceByTokenPair,
43
+ request_deserializer=meshtrade_dot_market__data_dot_price_dot_v1_dot_service__pb2.GetCurrentPriceByTokenPairRequest.FromString,
44
+ response_serializer=meshtrade_dot_market__data_dot_price_dot_v1_dot_price__pb2.Price.SerializeToString,
45
+ ),
46
+ }
47
+ generic_handler = grpc.method_handlers_generic_handler(
48
+ 'meshtrade.market_data.price.v1.PriceService', rpc_method_handlers)
49
+ server.add_generic_rpc_handlers((generic_handler,))
50
+ server.add_registered_method_handlers('meshtrade.market_data.price.v1.PriceService', rpc_method_handlers)
51
+
52
+
53
+ # This class is part of an EXPERIMENTAL API.
54
+ class PriceService(object):
55
+ """
56
+ PriceService provides prices.
57
+ """
58
+
59
+ @staticmethod
60
+ def GetCurrentPriceByTokenPair(request,
61
+ target,
62
+ options=(),
63
+ channel_credentials=None,
64
+ call_credentials=None,
65
+ insecure=False,
66
+ compression=None,
67
+ wait_for_ready=None,
68
+ timeout=None,
69
+ metadata=None):
70
+ return grpc.experimental.unary_unary(
71
+ request,
72
+ target,
73
+ '/meshtrade.market_data.price.v1.PriceService/GetCurrentPriceByTokenPair',
74
+ meshtrade_dot_market__data_dot_price_dot_v1_dot_service__pb2.GetCurrentPriceByTokenPairRequest.SerializeToString,
75
+ meshtrade_dot_market__data_dot_price_dot_v1_dot_price__pb2.Price.FromString,
76
+ options,
77
+ channel_credentials,
78
+ insecure,
79
+ call_credentials,
80
+ compression,
81
+ wait_for_ready,
82
+ timeout,
83
+ metadata,
84
+ _registered_method=True)
@@ -0,0 +1,41 @@
1
+ """Method Options v1 package."""
2
+
3
+ # ===================================================================
4
+ # AUTO-GENERATED SECTION - ONLY EDIT BELOW THE CLOSING COMMENT BLOCK
5
+ # ===================================================================
6
+ # This section is automatically managed by protoc-gen-meshpy.
7
+ #
8
+ # DO NOT EDIT ANYTHING IN THIS SECTION MANUALLY!
9
+ # Your changes will be overwritten during code generation.
10
+ #
11
+ # To add custom imports and exports, scroll down to the
12
+ # "MANUAL SECTION" indicated below.
13
+ # ===================================================================
14
+
15
+ # Generated protobuf imports
16
+ from .method_options_pb2 import MethodAccessLevel, MethodOptions, MethodType
17
+
18
+ # ===================================================================
19
+ # END OF AUTO-GENERATED SECTION
20
+ # ===================================================================
21
+ #
22
+ # MANUAL SECTION - ADD YOUR CUSTOM IMPORTS AND EXPORTS BELOW
23
+ #
24
+ # You can safely add your own imports, functions, classes, and exports
25
+ # in this section. They will be preserved across code generation.
26
+ #
27
+ # Example:
28
+ # from my_custom_module import my_function
29
+ #
30
+ # ===================================================================
31
+
32
+ # ===================================================================
33
+ # MODULE EXPORTS
34
+ # ===================================================================
35
+ # Combined auto-generated and manual exports
36
+ __all__ = [
37
+ # Generated exports
38
+ "MethodAccessLevel",
39
+ "MethodOptions",
40
+ "MethodType",
41
+ ]
@@ -0,0 +1,43 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: meshtrade/option/method_options/v1/method_options.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'meshtrade/option/method_options/v1/method_options.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
26
+ from meshtrade.iam.role.v1 import role_pb2 as meshtrade_dot_iam_dot_role_dot_v1_dot_role__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7meshtrade/option/method_options/v1/method_options.proto\x12\"meshtrade.option.method_options.v1\x1a google/protobuf/descriptor.proto\x1a meshtrade/iam/role/v1/role.proto\"\xe0\x01\n\rMethodOptions\x12\x42\n\x04type\x18\x01 \x01(\x0e\x32..meshtrade.option.method_options.v1.MethodTypeR\x04type\x12X\n\x0c\x61\x63\x63\x65ss_level\x18\x02 \x01(\x0e\x32\x35.meshtrade.option.method_options.v1.MethodAccessLevelR\x0b\x61\x63\x63\x65ssLevel\x12\x31\n\x05roles\x18\x03 \x03(\x0e\x32\x1b.meshtrade.iam.role.v1.RoleR\x05roles*V\n\nMethodType\x12\x1b\n\x17METHOD_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10METHOD_TYPE_READ\x10\x01\x12\x15\n\x11METHOD_TYPE_WRITE\x10\x02*|\n\x11MethodAccessLevel\x12#\n\x1fMETHOD_ACCESS_LEVEL_UNSPECIFIED\x10\x00\x12\x1e\n\x1aMETHOD_ACCESS_LEVEL_PUBLIC\x10\x01\x12\"\n\x1eMETHOD_ACCESS_LEVEL_AUTHORISED\x10\x02:z\n\x0emethod_options\x12\x1e.google.protobuf.MethodOptions\x18\xd6\x86\x03 \x01(\x0b\x32\x31.meshtrade.option.method_options.v1.MethodOptionsR\rmethodOptionsBs\n)co.meshtrade.api.option.method_options.v1ZFgithub.com/meshtrade/api/go/option/method_options/v1;method_options_v1b\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.option.method_options.v1.method_options_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'\n)co.meshtrade.api.option.method_options.v1ZFgithub.com/meshtrade/api/go/option/method_options/v1;method_options_v1'
37
+ _globals['_METHODTYPE']._serialized_start=390
38
+ _globals['_METHODTYPE']._serialized_end=476
39
+ _globals['_METHODACCESSLEVEL']._serialized_start=478
40
+ _globals['_METHODACCESSLEVEL']._serialized_end=602
41
+ _globals['_METHODOPTIONS']._serialized_start=164
42
+ _globals['_METHODOPTIONS']._serialized_end=388
43
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,40 @@
1
+ from google.protobuf import descriptor_pb2 as _descriptor_pb2
2
+ from meshtrade.iam.role.v1 import role_pb2 as _role_pb2
3
+ from google.protobuf.internal import containers as _containers
4
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import message as _message
7
+ from collections.abc import Iterable as _Iterable
8
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
9
+
10
+ DESCRIPTOR: _descriptor.FileDescriptor
11
+
12
+ class MethodType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
13
+ __slots__ = ()
14
+ METHOD_TYPE_UNSPECIFIED: _ClassVar[MethodType]
15
+ METHOD_TYPE_READ: _ClassVar[MethodType]
16
+ METHOD_TYPE_WRITE: _ClassVar[MethodType]
17
+
18
+ class MethodAccessLevel(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
19
+ __slots__ = ()
20
+ METHOD_ACCESS_LEVEL_UNSPECIFIED: _ClassVar[MethodAccessLevel]
21
+ METHOD_ACCESS_LEVEL_PUBLIC: _ClassVar[MethodAccessLevel]
22
+ METHOD_ACCESS_LEVEL_AUTHORISED: _ClassVar[MethodAccessLevel]
23
+ METHOD_TYPE_UNSPECIFIED: MethodType
24
+ METHOD_TYPE_READ: MethodType
25
+ METHOD_TYPE_WRITE: MethodType
26
+ METHOD_ACCESS_LEVEL_UNSPECIFIED: MethodAccessLevel
27
+ METHOD_ACCESS_LEVEL_PUBLIC: MethodAccessLevel
28
+ METHOD_ACCESS_LEVEL_AUTHORISED: MethodAccessLevel
29
+ METHOD_OPTIONS_FIELD_NUMBER: _ClassVar[int]
30
+ method_options: _descriptor.FieldDescriptor
31
+
32
+ class MethodOptions(_message.Message):
33
+ __slots__ = ("type", "access_level", "roles")
34
+ TYPE_FIELD_NUMBER: _ClassVar[int]
35
+ ACCESS_LEVEL_FIELD_NUMBER: _ClassVar[int]
36
+ ROLES_FIELD_NUMBER: _ClassVar[int]
37
+ type: MethodType
38
+ access_level: MethodAccessLevel
39
+ roles: _containers.RepeatedScalarFieldContainer[_role_pb2.Role]
40
+ def __init__(self, type: _Optional[_Union[MethodType, str]] = ..., access_level: _Optional[_Union[MethodAccessLevel, str]] = ..., roles: _Optional[_Iterable[_Union[_role_pb2.Role, str]]] = ...) -> None: ...
@@ -0,0 +1,66 @@
1
+ """Account Report v1 package."""
2
+
3
+ # ===================================================================
4
+ # AUTO-GENERATED SECTION - ONLY EDIT BELOW THE CLOSING COMMENT BLOCK
5
+ # ===================================================================
6
+ # This section is automatically managed by protoc-gen-meshpy.
7
+ #
8
+ # DO NOT EDIT ANYTHING IN THIS SECTION MANUALLY!
9
+ # Your changes will be overwritten during code generation.
10
+ #
11
+ # To add custom imports and exports, scroll down to the
12
+ # "MANUAL SECTION" indicated below.
13
+ # ===================================================================
14
+
15
+ # Generated protobuf imports
16
+ from .fee_entry_pb2 import FeeEntry
17
+ from .income_entry_pb2 import IncomeEntry, IncomeNarrative
18
+ from .trading_statement_entry_pb2 import TradingStatementEntry
19
+ from .disclaimer_pb2 import Disclaimer
20
+ from .account_report_pb2 import AccountReport
21
+ from .service_pb2 import GetAccountReportRequest, GetExcelAccountReportRequest, GetExcelAccountReportResponse
22
+
23
+ # Generated service imports
24
+ from .service_meshpy import (
25
+ AccountReportService,
26
+ AccountReportServiceGRPCClient,
27
+ AccountReportServiceGRPCClientInterface,
28
+ )
29
+
30
+ # ===================================================================
31
+ # END OF AUTO-GENERATED SECTION
32
+ # ===================================================================
33
+ #
34
+ # MANUAL SECTION - ADD YOUR CUSTOM IMPORTS AND EXPORTS BELOW
35
+ #
36
+ # You can safely add your own imports, functions, classes, and exports
37
+ # in this section. They will be preserved across code generation.
38
+ #
39
+ # Example:
40
+ # from my_custom_module import my_function
41
+ #
42
+ # ===================================================================
43
+
44
+ from .income_entry import income_narrative_pretty_string
45
+
46
+ # ===================================================================
47
+ # MODULE EXPORTS
48
+ # ===================================================================
49
+ # Combined auto-generated and manual exports
50
+ __all__ = [
51
+ # Generated exports
52
+ "AccountReport",
53
+ "AccountReportService",
54
+ "AccountReportServiceGRPCClient",
55
+ "AccountReportServiceGRPCClientInterface",
56
+ "Disclaimer",
57
+ "FeeEntry",
58
+ "GetAccountReportRequest",
59
+ "GetExcelAccountReportRequest",
60
+ "GetExcelAccountReportResponse",
61
+ "IncomeEntry",
62
+ "IncomeNarrative",
63
+ "TradingStatementEntry",
64
+ # Manual exports
65
+ "income_narrative_pretty_string",
66
+ ]
@@ -0,0 +1,46 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: meshtrade/reporting/account_report/v1/account_report.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'meshtrade/reporting/account_report/v1/account_report.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+ from meshtrade.type.v1 import token_pb2 as meshtrade_dot_type_dot_v1_dot_token__pb2
27
+ from meshtrade.type.v1 import address_pb2 as meshtrade_dot_type_dot_v1_dot_address__pb2
28
+ from meshtrade.reporting.account_report.v1 import fee_entry_pb2 as meshtrade_dot_reporting_dot_account__report_dot_v1_dot_fee__entry__pb2
29
+ from meshtrade.reporting.account_report.v1 import income_entry_pb2 as meshtrade_dot_reporting_dot_account__report_dot_v1_dot_income__entry__pb2
30
+ from meshtrade.reporting.account_report.v1 import trading_statement_entry_pb2 as meshtrade_dot_reporting_dot_account__report_dot_v1_dot_trading__statement__entry__pb2
31
+ from meshtrade.reporting.account_report.v1 import disclaimer_pb2 as meshtrade_dot_reporting_dot_account__report_dot_v1_dot_disclaimer__pb2
32
+
33
+
34
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n:meshtrade/reporting/account_report/v1/account_report.proto\x12%meshtrade.reporting.account_report.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dmeshtrade/type/v1/token.proto\x1a\x1fmeshtrade/type/v1/address.proto\x1a\x35meshtrade/reporting/account_report/v1/fee_entry.proto\x1a\x38meshtrade/reporting/account_report/v1/income_entry.proto\x1a\x43meshtrade/reporting/account_report/v1/trading_statement_entry.proto\x1a\x36meshtrade/reporting/account_report/v1/disclaimer.proto\"\x9c\x07\n\rAccountReport\x12Y\n\x0eincome_entries\x18\x01 \x03(\x0b\x32\x32.meshtrade.reporting.account_report.v1.IncomeEntryR\rincomeEntries\x12P\n\x0b\x66\x65\x65_entries\x18\x02 \x03(\x0b\x32/.meshtrade.reporting.account_report.v1.FeeEntryR\nfeeEntries\x12x\n\x19trading_statement_entries\x18\x03 \x03(\x0b\x32<.meshtrade.reporting.account_report.v1.TradingStatementEntryR\x17tradingStatementEntries\x12G\n\x12reporting_currency\x18\x04 \x01(\x0b\x32\x18.meshtrade.type.v1.TokenR\x11reportingCurrency\x12S\n\x06period\x18\x05 \x01(\x0b\x32;.meshtrade.reporting.account_report.v1.AccountReport.PeriodR\x06period\x12\x43\n\x0fgeneration_date\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0egenerationDate\x12%\n\x0e\x61\x63\x63ount_number\x18\x07 \x01(\tR\raccountNumber\x12S\n\x0b\x64isclaimers\x18\x08 \x03(\x0b\x32\x31.meshtrade.reporting.account_report.v1.DisclaimerR\x0b\x64isclaimers\x12\x41\n\x0e\x63lient_address\x18\t \x01(\x0b\x32\x1a.meshtrade.type.v1.AddressR\rclientAddress\x12\x1f\n\x0b\x63lient_name\x18\n \x01(\tR\nclientName\x12\x1c\n\tcopyright\x18\x0b \x01(\tR\tcopyright\x1a\x82\x01\n\x06Period\x12=\n\x0cperiod_start\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bperiodStart\x12\x39\n\nperiod_end\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tperiodEndBy\n,co.meshtrade.api.reporting.account_report.v1ZIgithub.com/meshtrade/api/go/reporting/account_report/v1;account_report_v1b\x06proto3')
35
+
36
+ _globals = globals()
37
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
38
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.account_report.v1.account_report_pb2', _globals)
39
+ if not _descriptor._USE_C_DESCRIPTORS:
40
+ _globals['DESCRIPTOR']._loaded_options = None
41
+ _globals['DESCRIPTOR']._serialized_options = b'\n,co.meshtrade.api.reporting.account_report.v1ZIgithub.com/meshtrade/api/go/reporting/account_report/v1;account_report_v1'
42
+ _globals['_ACCOUNTREPORT']._serialized_start=437
43
+ _globals['_ACCOUNTREPORT']._serialized_end=1361
44
+ _globals['_ACCOUNTREPORT_PERIOD']._serialized_start=1231
45
+ _globals['_ACCOUNTREPORT_PERIOD']._serialized_end=1361
46
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,49 @@
1
+ import datetime
2
+
3
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
4
+ from meshtrade.type.v1 import token_pb2 as _token_pb2
5
+ from meshtrade.type.v1 import address_pb2 as _address_pb2
6
+ from meshtrade.reporting.account_report.v1 import fee_entry_pb2 as _fee_entry_pb2
7
+ from meshtrade.reporting.account_report.v1 import income_entry_pb2 as _income_entry_pb2
8
+ from meshtrade.reporting.account_report.v1 import trading_statement_entry_pb2 as _trading_statement_entry_pb2
9
+ from meshtrade.reporting.account_report.v1 import disclaimer_pb2 as _disclaimer_pb2
10
+ from google.protobuf.internal import containers as _containers
11
+ from google.protobuf import descriptor as _descriptor
12
+ from google.protobuf import message as _message
13
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
14
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
15
+
16
+ DESCRIPTOR: _descriptor.FileDescriptor
17
+
18
+ class AccountReport(_message.Message):
19
+ __slots__ = ("income_entries", "fee_entries", "trading_statement_entries", "reporting_currency", "period", "generation_date", "account_number", "disclaimers", "client_address", "client_name", "copyright")
20
+ class Period(_message.Message):
21
+ __slots__ = ("period_start", "period_end")
22
+ PERIOD_START_FIELD_NUMBER: _ClassVar[int]
23
+ PERIOD_END_FIELD_NUMBER: _ClassVar[int]
24
+ period_start: _timestamp_pb2.Timestamp
25
+ period_end: _timestamp_pb2.Timestamp
26
+ def __init__(self, period_start: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., period_end: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
27
+ INCOME_ENTRIES_FIELD_NUMBER: _ClassVar[int]
28
+ FEE_ENTRIES_FIELD_NUMBER: _ClassVar[int]
29
+ TRADING_STATEMENT_ENTRIES_FIELD_NUMBER: _ClassVar[int]
30
+ REPORTING_CURRENCY_FIELD_NUMBER: _ClassVar[int]
31
+ PERIOD_FIELD_NUMBER: _ClassVar[int]
32
+ GENERATION_DATE_FIELD_NUMBER: _ClassVar[int]
33
+ ACCOUNT_NUMBER_FIELD_NUMBER: _ClassVar[int]
34
+ DISCLAIMERS_FIELD_NUMBER: _ClassVar[int]
35
+ CLIENT_ADDRESS_FIELD_NUMBER: _ClassVar[int]
36
+ CLIENT_NAME_FIELD_NUMBER: _ClassVar[int]
37
+ COPYRIGHT_FIELD_NUMBER: _ClassVar[int]
38
+ income_entries: _containers.RepeatedCompositeFieldContainer[_income_entry_pb2.IncomeEntry]
39
+ fee_entries: _containers.RepeatedCompositeFieldContainer[_fee_entry_pb2.FeeEntry]
40
+ trading_statement_entries: _containers.RepeatedCompositeFieldContainer[_trading_statement_entry_pb2.TradingStatementEntry]
41
+ reporting_currency: _token_pb2.Token
42
+ period: AccountReport.Period
43
+ generation_date: _timestamp_pb2.Timestamp
44
+ account_number: str
45
+ disclaimers: _containers.RepeatedCompositeFieldContainer[_disclaimer_pb2.Disclaimer]
46
+ client_address: _address_pb2.Address
47
+ client_name: str
48
+ copyright: str
49
+ def __init__(self, income_entries: _Optional[_Iterable[_Union[_income_entry_pb2.IncomeEntry, _Mapping]]] = ..., fee_entries: _Optional[_Iterable[_Union[_fee_entry_pb2.FeeEntry, _Mapping]]] = ..., trading_statement_entries: _Optional[_Iterable[_Union[_trading_statement_entry_pb2.TradingStatementEntry, _Mapping]]] = ..., reporting_currency: _Optional[_Union[_token_pb2.Token, _Mapping]] = ..., period: _Optional[_Union[AccountReport.Period, _Mapping]] = ..., generation_date: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., account_number: _Optional[str] = ..., disclaimers: _Optional[_Iterable[_Union[_disclaimer_pb2.Disclaimer, _Mapping]]] = ..., client_address: _Optional[_Union[_address_pb2.Address, _Mapping]] = ..., client_name: _Optional[str] = ..., copyright: _Optional[str] = ...) -> None: ...
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
- # source: meshtrade/reporting/income_report/v1/disclaimer.proto
4
+ # source: meshtrade/reporting/account_report/v1/disclaimer.proto
5
5
  # Protobuf Python Version: 6.31.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
@@ -15,7 +15,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
15
15
  31,
16
16
  1,
17
17
  '',
18
- 'meshtrade/reporting/income_report/v1/disclaimer.proto'
18
+ 'meshtrade/reporting/account_report/v1/disclaimer.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
21
21
 
@@ -24,14 +24,14 @@ _sym_db = _symbol_database.Default()
24
24
 
25
25
 
26
26
 
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5meshtrade/reporting/income_report/v1/disclaimer.proto\x12$meshtrade.reporting.income_report.v1\"D\n\nDisclaimer\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scriptionBu\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1b\x06proto3')
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6meshtrade/reporting/account_report/v1/disclaimer.proto\x12%meshtrade.reporting.account_report.v1\"D\n\nDisclaimer\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scriptionBy\n,co.meshtrade.api.reporting.account_report.v1ZIgithub.com/meshtrade/api/go/reporting/account_report/v1;account_report_v1b\x06proto3')
28
28
 
29
29
  _globals = globals()
30
30
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.income_report.v1.disclaimer_pb2', _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.account_report.v1.disclaimer_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.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1'
35
- _globals['_DISCLAIMER']._serialized_start=95
36
- _globals['_DISCLAIMER']._serialized_end=163
34
+ _globals['DESCRIPTOR']._serialized_options = b'\n,co.meshtrade.api.reporting.account_report.v1ZIgithub.com/meshtrade/api/go/reporting/account_report/v1;account_report_v1'
35
+ _globals['_DISCLAIMER']._serialized_start=97
36
+ _globals['_DISCLAIMER']._serialized_end=165
37
37
  # @@protoc_insertion_point(module_scope)