meshtrade 1.21.0__py3-none-any.whl → 1.23.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.
Potentially problematic release.
This version of meshtrade might be problematic. Click here for more details.
- meshtrade/common/grpc_client.py +93 -0
- meshtrade/common/service_options.py +46 -0
- meshtrade/compliance/client/v1/__init__.py +0 -2
- meshtrade/compliance/client/v1/client_roles.py +123 -0
- meshtrade/compliance/client/v1/service_meshpy.py +1 -1
- meshtrade/iam/api_user/v1/__init__.py +0 -2
- meshtrade/iam/api_user/v1/api_user_state_machine.py +104 -0
- meshtrade/iam/api_user/v1/service_meshpy.py +1 -1
- meshtrade/iam/group/v1/__init__.py +0 -2
- meshtrade/iam/group/v1/service_meshpy.py +1 -1
- meshtrade/iam/role/v1/__init__.py +2 -2
- meshtrade/iam/role/v1/role.py +162 -11
- meshtrade/iam/user/v1/__init__.py +0 -2
- meshtrade/iam/user/v1/service_meshpy.py +1 -1
- meshtrade/ledger/transaction/v1/__init__.py +0 -2
- meshtrade/ledger/transaction/v1/service_meshpy.py +1 -1
- meshtrade/ledger/transaction/v1/transaction_state_machine.py +75 -0
- meshtrade/reporting/account_report/v1/__init__.py +0 -2
- meshtrade/reporting/account_report/v1/income_entry.py +35 -0
- meshtrade/reporting/account_report/v1/service_meshpy.py +1 -1
- meshtrade/trading/limit_order/v1/__init__.py +0 -2
- meshtrade/trading/limit_order/v1/service_meshpy.py +1 -1
- meshtrade/trading/market_order/v1/__init__.py +0 -2
- meshtrade/trading/market_order/v1/service_meshpy.py +1 -1
- meshtrade/type/v1/amount.py +429 -5
- meshtrade/type/v1/decimal_built_in_conversions.py +8 -3
- meshtrade/type/v1/decimal_operations.py +354 -0
- meshtrade/type/v1/ledger.py +76 -1
- meshtrade/type/v1/token.py +144 -0
- meshtrade/wallet/account/v1/__init__.py +0 -2
- meshtrade/wallet/account/v1/service_meshpy.py +1 -1
- {meshtrade-1.21.0.dist-info → meshtrade-1.23.0.dist-info}/METADATA +1 -1
- {meshtrade-1.21.0.dist-info → meshtrade-1.23.0.dist-info}/RECORD +35 -37
- meshtrade/compliance/client/v1/service_options_meshpy.py +0 -65
- 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/ledger/transaction/v1/service_options_meshpy.py +0 -65
- meshtrade/reporting/account_report/v1/service_options_meshpy.py +0 -65
- 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.21.0.dist-info → meshtrade-1.23.0.dist-info}/WHEEL +0 -0
- {meshtrade-1.21.0.dist-info → meshtrade-1.23.0.dist-info}/top_level.txt +0 -0
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# Code generated by protoc-gen-meshpy. DO NOT EDIT.
|
|
2
|
-
# source: meshtrade/trading/limit_order/v1/service.proto
|
|
3
|
-
|
|
4
|
-
"""
|
|
5
|
-
Configuration options for LimitOrderService gRPC service.
|
|
6
|
-
This module provides a clean, extensible way to configure the service with optional
|
|
7
|
-
parameters while maintaining backward compatibility and readability.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
from datetime import timedelta
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ServiceOptions:
|
|
14
|
-
"""Configuration options for LimitOrderService gRPC service.
|
|
15
|
-
|
|
16
|
-
This class provides a clean, extensible way to configure the service with optional
|
|
17
|
-
parameters while maintaining backward compatibility and readability.
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
def __init__(
|
|
21
|
-
self,
|
|
22
|
-
tls: bool = True,
|
|
23
|
-
url: str | None = None,
|
|
24
|
-
port: int | None = None,
|
|
25
|
-
api_key: str | None = None,
|
|
26
|
-
group: str | None = None,
|
|
27
|
-
timeout: timedelta = timedelta(seconds=30),
|
|
28
|
-
):
|
|
29
|
-
"""Initialize service options.
|
|
30
|
-
|
|
31
|
-
Args:
|
|
32
|
-
tls: Whether to use TLS encryption for the gRPC connection.
|
|
33
|
-
When True, establishes a secure connection using TLS.
|
|
34
|
-
When False, uses an insecure connection.
|
|
35
|
-
Default: True (secure connection)
|
|
36
|
-
|
|
37
|
-
url: The server hostname or IP address (e.g., "api.example.com", "localhost").
|
|
38
|
-
Default: Uses DEFAULT_GRPC_URL from common module
|
|
39
|
-
|
|
40
|
-
port: The server port number (e.g., 443 for HTTPS, 8080 for development).
|
|
41
|
-
Default: Uses DEFAULT_GRPC_PORT from common module
|
|
42
|
-
|
|
43
|
-
api_key: The API key string (without "Bearer " prefix) for authentication.
|
|
44
|
-
The API key will be sent as a Bearer token in the Authorization header.
|
|
45
|
-
This is the primary authentication method for service-to-service communication.
|
|
46
|
-
|
|
47
|
-
group: The group resource name in format groups/{group_id} required for all API requests.
|
|
48
|
-
The group determines the authorization context for operations
|
|
49
|
-
and is sent as an "x-group" header with every request.
|
|
50
|
-
|
|
51
|
-
timeout: The default timeout for all gRPC method calls.
|
|
52
|
-
This timeout applies to individual method calls and helps prevent hanging requests.
|
|
53
|
-
If a request takes longer than the specified timeout, it will be cancelled.
|
|
54
|
-
Default: 30 seconds
|
|
55
|
-
"""
|
|
56
|
-
self.tls = tls
|
|
57
|
-
self.url = url
|
|
58
|
-
self.port = port
|
|
59
|
-
self.api_key = api_key
|
|
60
|
-
self.group = group
|
|
61
|
-
self.timeout = timeout
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
# Create alias to match expected exports
|
|
65
|
-
ClientOptions = ServiceOptions
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# Code generated by protoc-gen-meshpy. DO NOT EDIT.
|
|
2
|
-
# source: meshtrade/trading/market_order/v1/service.proto
|
|
3
|
-
|
|
4
|
-
"""
|
|
5
|
-
Configuration options for MarketOrderService gRPC service.
|
|
6
|
-
This module provides a clean, extensible way to configure the service with optional
|
|
7
|
-
parameters while maintaining backward compatibility and readability.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
from datetime import timedelta
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ServiceOptions:
|
|
14
|
-
"""Configuration options for MarketOrderService gRPC service.
|
|
15
|
-
|
|
16
|
-
This class provides a clean, extensible way to configure the service with optional
|
|
17
|
-
parameters while maintaining backward compatibility and readability.
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
def __init__(
|
|
21
|
-
self,
|
|
22
|
-
tls: bool = True,
|
|
23
|
-
url: str | None = None,
|
|
24
|
-
port: int | None = None,
|
|
25
|
-
api_key: str | None = None,
|
|
26
|
-
group: str | None = None,
|
|
27
|
-
timeout: timedelta = timedelta(seconds=30),
|
|
28
|
-
):
|
|
29
|
-
"""Initialize service options.
|
|
30
|
-
|
|
31
|
-
Args:
|
|
32
|
-
tls: Whether to use TLS encryption for the gRPC connection.
|
|
33
|
-
When True, establishes a secure connection using TLS.
|
|
34
|
-
When False, uses an insecure connection.
|
|
35
|
-
Default: True (secure connection)
|
|
36
|
-
|
|
37
|
-
url: The server hostname or IP address (e.g., "api.example.com", "localhost").
|
|
38
|
-
Default: Uses DEFAULT_GRPC_URL from common module
|
|
39
|
-
|
|
40
|
-
port: The server port number (e.g., 443 for HTTPS, 8080 for development).
|
|
41
|
-
Default: Uses DEFAULT_GRPC_PORT from common module
|
|
42
|
-
|
|
43
|
-
api_key: The API key string (without "Bearer " prefix) for authentication.
|
|
44
|
-
The API key will be sent as a Bearer token in the Authorization header.
|
|
45
|
-
This is the primary authentication method for service-to-service communication.
|
|
46
|
-
|
|
47
|
-
group: The group resource name in format groups/{group_id} required for all API requests.
|
|
48
|
-
The group determines the authorization context for operations
|
|
49
|
-
and is sent as an "x-group" header with every request.
|
|
50
|
-
|
|
51
|
-
timeout: The default timeout for all gRPC method calls.
|
|
52
|
-
This timeout applies to individual method calls and helps prevent hanging requests.
|
|
53
|
-
If a request takes longer than the specified timeout, it will be cancelled.
|
|
54
|
-
Default: 30 seconds
|
|
55
|
-
"""
|
|
56
|
-
self.tls = tls
|
|
57
|
-
self.url = url
|
|
58
|
-
self.port = port
|
|
59
|
-
self.api_key = api_key
|
|
60
|
-
self.group = group
|
|
61
|
-
self.timeout = timeout
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
# Create alias to match expected exports
|
|
65
|
-
ClientOptions = ServiceOptions
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# Code generated by protoc-gen-meshpy. DO NOT EDIT.
|
|
2
|
-
# source: meshtrade/wallet/account/v1/service.proto
|
|
3
|
-
|
|
4
|
-
"""
|
|
5
|
-
Configuration options for AccountService gRPC service.
|
|
6
|
-
This module provides a clean, extensible way to configure the service with optional
|
|
7
|
-
parameters while maintaining backward compatibility and readability.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
from datetime import timedelta
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ServiceOptions:
|
|
14
|
-
"""Configuration options for AccountService gRPC service.
|
|
15
|
-
|
|
16
|
-
This class provides a clean, extensible way to configure the service with optional
|
|
17
|
-
parameters while maintaining backward compatibility and readability.
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
def __init__(
|
|
21
|
-
self,
|
|
22
|
-
tls: bool = True,
|
|
23
|
-
url: str | None = None,
|
|
24
|
-
port: int | None = None,
|
|
25
|
-
api_key: str | None = None,
|
|
26
|
-
group: str | None = None,
|
|
27
|
-
timeout: timedelta = timedelta(seconds=30),
|
|
28
|
-
):
|
|
29
|
-
"""Initialize service options.
|
|
30
|
-
|
|
31
|
-
Args:
|
|
32
|
-
tls: Whether to use TLS encryption for the gRPC connection.
|
|
33
|
-
When True, establishes a secure connection using TLS.
|
|
34
|
-
When False, uses an insecure connection.
|
|
35
|
-
Default: True (secure connection)
|
|
36
|
-
|
|
37
|
-
url: The server hostname or IP address (e.g., "api.example.com", "localhost").
|
|
38
|
-
Default: Uses DEFAULT_GRPC_URL from common module
|
|
39
|
-
|
|
40
|
-
port: The server port number (e.g., 443 for HTTPS, 8080 for development).
|
|
41
|
-
Default: Uses DEFAULT_GRPC_PORT from common module
|
|
42
|
-
|
|
43
|
-
api_key: The API key string (without "Bearer " prefix) for authentication.
|
|
44
|
-
The API key will be sent as a Bearer token in the Authorization header.
|
|
45
|
-
This is the primary authentication method for service-to-service communication.
|
|
46
|
-
|
|
47
|
-
group: The group resource name in format groups/{group_id} required for all API requests.
|
|
48
|
-
The group determines the authorization context for operations
|
|
49
|
-
and is sent as an "x-group" header with every request.
|
|
50
|
-
|
|
51
|
-
timeout: The default timeout for all gRPC method calls.
|
|
52
|
-
This timeout applies to individual method calls and helps prevent hanging requests.
|
|
53
|
-
If a request takes longer than the specified timeout, it will be cancelled.
|
|
54
|
-
Default: 30 seconds
|
|
55
|
-
"""
|
|
56
|
-
self.tls = tls
|
|
57
|
-
self.url = url
|
|
58
|
-
self.port = port
|
|
59
|
-
self.api_key = api_key
|
|
60
|
-
self.group = group
|
|
61
|
-
self.timeout = timeout
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
# Create alias to match expected exports
|
|
65
|
-
ClientOptions = ServiceOptions
|
|
File without changes
|
|
File without changes
|