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
|
@@ -0,0 +1,39 @@
|
|
|
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/trading_statement_entry.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/trading_statement_entry.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 amount_pb2 as meshtrade_dot_type_dot_v1_dot_amount__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nCmeshtrade/reporting/account_report/v1/trading_statement_entry.proto\x12%meshtrade.reporting.account_report.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emeshtrade/type/v1/amount.proto\"\x8e\x03\n\x15TradingStatementEntry\x12\x45\n\x10transaction_date\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0ftransactionDate\x12%\n\x0etransaction_id\x18\x02 \x01(\tR\rtransactionId\x12\x1d\n\ntoken_code\x18\x03 \x01(\tR\ttokenCode\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12\x31\n\x06\x61mount\x18\x05 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x06\x61mount\x12/\n\x05price\x18\x06 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x05price\x12-\n\x04\x63ost\x18\x07 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x04\x63ost\x12\x33\n\x07\x62\x61lance\x18\x08 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x07\x62\x61lanceBy\n,co.meshtrade.api.reporting.account_report.v1ZIgithub.com/meshtrade/api/go/reporting/account_report/v1;account_report_v1b\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.account_report.v1.trading_statement_entry_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.reporting.account_report.v1ZIgithub.com/meshtrade/api/go/reporting/account_report/v1;account_report_v1'
|
|
37
|
+
_globals['_TRADINGSTATEMENTENTRY']._serialized_start=176
|
|
38
|
+
_globals['_TRADINGSTATEMENTENTRY']._serialized_end=574
|
|
39
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
4
|
+
from meshtrade.type.v1 import amount_pb2 as _amount_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 TradingStatementEntry(_message.Message):
|
|
13
|
+
__slots__ = ("transaction_date", "transaction_id", "token_code", "description", "amount", "price", "cost", "balance")
|
|
14
|
+
TRANSACTION_DATE_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
TRANSACTION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
TOKEN_CODE_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
AMOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
PRICE_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
COST_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
BALANCE_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
+
transaction_date: _timestamp_pb2.Timestamp
|
|
23
|
+
transaction_id: str
|
|
24
|
+
token_code: str
|
|
25
|
+
description: str
|
|
26
|
+
amount: _amount_pb2.Amount
|
|
27
|
+
price: _amount_pb2.Amount
|
|
28
|
+
cost: _amount_pb2.Amount
|
|
29
|
+
balance: _amount_pb2.Amount
|
|
30
|
+
def __init__(self, transaction_date: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., transaction_id: _Optional[str] = ..., token_code: _Optional[str] = ..., description: _Optional[str] = ..., amount: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., price: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., cost: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., balance: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Instrument 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 .instrument_pb2 import Instrument
|
|
17
|
+
from .instrument_type_pb2 import InstrumentType
|
|
18
|
+
from .unit_pb2 import Unit
|
|
19
|
+
|
|
20
|
+
# ===================================================================
|
|
21
|
+
# END OF AUTO-GENERATED SECTION
|
|
22
|
+
# ===================================================================
|
|
23
|
+
#
|
|
24
|
+
# MANUAL SECTION - ADD YOUR CUSTOM IMPORTS AND EXPORTS BELOW
|
|
25
|
+
#
|
|
26
|
+
# You can safely add your own imports, functions, classes, and exports
|
|
27
|
+
# in this section. They will be preserved across code generation.
|
|
28
|
+
#
|
|
29
|
+
# Example:
|
|
30
|
+
# from my_custom_module import my_function
|
|
31
|
+
#
|
|
32
|
+
# ===================================================================
|
|
33
|
+
|
|
34
|
+
# ===================================================================
|
|
35
|
+
# MODULE EXPORTS
|
|
36
|
+
# ===================================================================
|
|
37
|
+
# Combined auto-generated and manual exports
|
|
38
|
+
__all__ = [
|
|
39
|
+
# Generated exports
|
|
40
|
+
"Instrument",
|
|
41
|
+
"InstrumentType",
|
|
42
|
+
"Unit",
|
|
43
|
+
]
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: meshtrade/studio/instrument/v1/instrument.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/studio/instrument/v1/instrument.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.type.v1 import token_pb2 as meshtrade_dot_type_dot_v1_dot_token__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/meshtrade/studio/instrument/v1/instrument.proto\x12\x1emeshtrade.studio.instrument.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1dmeshtrade/type/v1/token.proto\"\xfb\x02\n\nInstrument\x12\xbc\x01\n\x04name\x18\x01 \x01(\tB\xa7\x01\xbaH\xa3\x01\xba\x01\x9f\x01\n\x14name.format.optional\x12\x33name must be empty or in the format groups/{ULIDv2}\x1aRsize(this) == 0 || this.matches(\'^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\')R\x04name\x12O\n\x05owner\x18\x02 \x01(\tB9\xbaH6r42/^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01!R\x05owner\x12-\n\x0c\x64isplay_name\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x01\x18\xff\x01R\x0b\x64isplayName\x12.\n\x05token\x18\x05 \x01(\x0b\x32\x18.meshtrade.type.v1.TokenR\x05tokenBg\n%co.meshtrade.api.studio.instrument.v1Z>github.com/meshtrade/api/go/studio/instrument/v1;instrument_v1b\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.studio.instrument.v1.instrument_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.studio.instrument.v1Z>github.com/meshtrade/api/go/studio/instrument/v1;instrument_v1'
|
|
37
|
+
_globals['_INSTRUMENT'].fields_by_name['name']._loaded_options = None
|
|
38
|
+
_globals['_INSTRUMENT'].fields_by_name['name']._serialized_options = b'\272H\243\001\272\001\237\001\n\024name.format.optional\0223name must be empty or in the format groups/{ULIDv2}\032Rsize(this) == 0 || this.matches(\'^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\')'
|
|
39
|
+
_globals['_INSTRUMENT'].fields_by_name['owner']._loaded_options = None
|
|
40
|
+
_globals['_INSTRUMENT'].fields_by_name['owner']._serialized_options = b'\272H6r42/^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001!'
|
|
41
|
+
_globals['_INSTRUMENT'].fields_by_name['display_name']._loaded_options = None
|
|
42
|
+
_globals['_INSTRUMENT'].fields_by_name['display_name']._serialized_options = b'\272H\007r\005\020\001\030\377\001'
|
|
43
|
+
_globals['_INSTRUMENT']._serialized_start=144
|
|
44
|
+
_globals['_INSTRUMENT']._serialized_end=523
|
|
45
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from meshtrade.type.v1 import token_pb2 as _token_pb2
|
|
3
|
+
from google.protobuf import descriptor as _descriptor
|
|
4
|
+
from google.protobuf import message as _message
|
|
5
|
+
from collections.abc import Mapping as _Mapping
|
|
6
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
7
|
+
|
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
9
|
+
|
|
10
|
+
class Instrument(_message.Message):
|
|
11
|
+
__slots__ = ("name", "owner", "display_name", "token")
|
|
12
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
OWNER_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
name: str
|
|
17
|
+
owner: str
|
|
18
|
+
display_name: str
|
|
19
|
+
token: _token_pb2.Token
|
|
20
|
+
def __init__(self, name: _Optional[str] = ..., owner: _Optional[str] = ..., display_name: _Optional[str] = ..., token: _Optional[_Union[_token_pb2.Token, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: meshtrade/studio/instrument/v1/instrument_type.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/studio/instrument/v1/instrument_type.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4meshtrade/studio/instrument/v1/instrument_type.proto\x12\x1emeshtrade.studio.instrument.v1*\xfc\x06\n\x0eInstrumentType\x12\x1f\n\x1bINSTRUMENT_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15INSTRUMENT_TYPE_OTHER\x10\x01\x12\x19\n\x15INSTRUMENT_TYPE_SHARE\x10\x02\x12$\n INSTRUMENT_TYPE_PREFERENCE_SHARE\x10\x03\x12\x18\n\x14INSTRUMENT_TYPE_BOND\x10\x04\x12\x17\n\x13INSTRUMENT_TYPE_ETF\x10\x05\x12\x17\n\x13INSTRUMENT_TYPE_ETN\x10\x06\x12\x17\n\x13INSTRUMENT_TYPE_AMC\x10\x07\x12\x1e\n\x1aINSTRUMENT_TYPE_UNIT_TRUST\x10\x08\x12#\n\x1fINSTRUMENT_TYPE_CRYPTO_CURRENCY\x10\t\x12!\n\x1dINSTRUMENT_TYPE_FIAT_CURRENCY\x10\n\x12\x1a\n\x16INSTRUMENT_TYPE_RIGHTS\x10\x0b\x12\x18\n\x14INSTRUMENT_TYPE_GOLD\x10\x0c\x12\x1a\n\x16INSTRUMENT_TYPE_SILVER\x10\r\x12\x1c\n\x18INSTRUMENT_TYPE_PLATINUM\x10\x0e\x12\x1d\n\x19INSTRUMENT_TYPE_PALLADIUM\x10\x0f\x12\x1d\n\x19INSTRUMENT_TYPE_CRUDE_OIL\x10\x10\x12\x1f\n\x1bINSTRUMENT_TYPE_NATURAL_GAS\x10\x11\x12\x1a\n\x16INSTRUMENT_TYPE_COPPER\x10\x12\x12\x18\n\x14INSTRUMENT_TYPE_CORN\x10\x13\x12\x19\n\x15INSTRUMENT_TYPE_WHEAT\x10\x14\x12\x1c\n\x18INSTRUMENT_TYPE_SOYBEANS\x10\x15\x12#\n\x1fINSTRUMENT_TYPE_FIAT_STABLECOIN\x10\x16\x12%\n!INSTRUMENT_TYPE_MONEY_MARKET_FUND\x10\x17\x12\x30\n,INSTRUMENT_TYPE_MONEY_MARKET_FUND_STABLECOIN\x10\x18\x12%\n!INSTRUMENT_TYPE_ENDOWMENT_WRAPPER\x10\x19\x12\x18\n\x14INSTRUMENT_TYPE_FUND\x10\x1a\x12#\n\x1fINSTRUMENT_TYPE_FUND_STABLECOIN\x10\x1b\x42g\n%co.meshtrade.api.studio.instrument.v1Z>github.com/meshtrade/api/go/studio/instrument/v1;instrument_v1b\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.studio.instrument.v1.instrument_type_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%co.meshtrade.api.studio.instrument.v1Z>github.com/meshtrade/api/go/studio/instrument/v1;instrument_v1'
|
|
35
|
+
_globals['_INSTRUMENTTYPE']._serialized_start=89
|
|
36
|
+
_globals['_INSTRUMENTTYPE']._serialized_end=981
|
|
37
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from typing import ClassVar as _ClassVar
|
|
4
|
+
|
|
5
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
6
|
+
|
|
7
|
+
class InstrumentType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
8
|
+
__slots__ = ()
|
|
9
|
+
INSTRUMENT_TYPE_UNSPECIFIED: _ClassVar[InstrumentType]
|
|
10
|
+
INSTRUMENT_TYPE_OTHER: _ClassVar[InstrumentType]
|
|
11
|
+
INSTRUMENT_TYPE_SHARE: _ClassVar[InstrumentType]
|
|
12
|
+
INSTRUMENT_TYPE_PREFERENCE_SHARE: _ClassVar[InstrumentType]
|
|
13
|
+
INSTRUMENT_TYPE_BOND: _ClassVar[InstrumentType]
|
|
14
|
+
INSTRUMENT_TYPE_ETF: _ClassVar[InstrumentType]
|
|
15
|
+
INSTRUMENT_TYPE_ETN: _ClassVar[InstrumentType]
|
|
16
|
+
INSTRUMENT_TYPE_AMC: _ClassVar[InstrumentType]
|
|
17
|
+
INSTRUMENT_TYPE_UNIT_TRUST: _ClassVar[InstrumentType]
|
|
18
|
+
INSTRUMENT_TYPE_CRYPTO_CURRENCY: _ClassVar[InstrumentType]
|
|
19
|
+
INSTRUMENT_TYPE_FIAT_CURRENCY: _ClassVar[InstrumentType]
|
|
20
|
+
INSTRUMENT_TYPE_RIGHTS: _ClassVar[InstrumentType]
|
|
21
|
+
INSTRUMENT_TYPE_GOLD: _ClassVar[InstrumentType]
|
|
22
|
+
INSTRUMENT_TYPE_SILVER: _ClassVar[InstrumentType]
|
|
23
|
+
INSTRUMENT_TYPE_PLATINUM: _ClassVar[InstrumentType]
|
|
24
|
+
INSTRUMENT_TYPE_PALLADIUM: _ClassVar[InstrumentType]
|
|
25
|
+
INSTRUMENT_TYPE_CRUDE_OIL: _ClassVar[InstrumentType]
|
|
26
|
+
INSTRUMENT_TYPE_NATURAL_GAS: _ClassVar[InstrumentType]
|
|
27
|
+
INSTRUMENT_TYPE_COPPER: _ClassVar[InstrumentType]
|
|
28
|
+
INSTRUMENT_TYPE_CORN: _ClassVar[InstrumentType]
|
|
29
|
+
INSTRUMENT_TYPE_WHEAT: _ClassVar[InstrumentType]
|
|
30
|
+
INSTRUMENT_TYPE_SOYBEANS: _ClassVar[InstrumentType]
|
|
31
|
+
INSTRUMENT_TYPE_FIAT_STABLECOIN: _ClassVar[InstrumentType]
|
|
32
|
+
INSTRUMENT_TYPE_MONEY_MARKET_FUND: _ClassVar[InstrumentType]
|
|
33
|
+
INSTRUMENT_TYPE_MONEY_MARKET_FUND_STABLECOIN: _ClassVar[InstrumentType]
|
|
34
|
+
INSTRUMENT_TYPE_ENDOWMENT_WRAPPER: _ClassVar[InstrumentType]
|
|
35
|
+
INSTRUMENT_TYPE_FUND: _ClassVar[InstrumentType]
|
|
36
|
+
INSTRUMENT_TYPE_FUND_STABLECOIN: _ClassVar[InstrumentType]
|
|
37
|
+
INSTRUMENT_TYPE_UNSPECIFIED: InstrumentType
|
|
38
|
+
INSTRUMENT_TYPE_OTHER: InstrumentType
|
|
39
|
+
INSTRUMENT_TYPE_SHARE: InstrumentType
|
|
40
|
+
INSTRUMENT_TYPE_PREFERENCE_SHARE: InstrumentType
|
|
41
|
+
INSTRUMENT_TYPE_BOND: InstrumentType
|
|
42
|
+
INSTRUMENT_TYPE_ETF: InstrumentType
|
|
43
|
+
INSTRUMENT_TYPE_ETN: InstrumentType
|
|
44
|
+
INSTRUMENT_TYPE_AMC: InstrumentType
|
|
45
|
+
INSTRUMENT_TYPE_UNIT_TRUST: InstrumentType
|
|
46
|
+
INSTRUMENT_TYPE_CRYPTO_CURRENCY: InstrumentType
|
|
47
|
+
INSTRUMENT_TYPE_FIAT_CURRENCY: InstrumentType
|
|
48
|
+
INSTRUMENT_TYPE_RIGHTS: InstrumentType
|
|
49
|
+
INSTRUMENT_TYPE_GOLD: InstrumentType
|
|
50
|
+
INSTRUMENT_TYPE_SILVER: InstrumentType
|
|
51
|
+
INSTRUMENT_TYPE_PLATINUM: InstrumentType
|
|
52
|
+
INSTRUMENT_TYPE_PALLADIUM: InstrumentType
|
|
53
|
+
INSTRUMENT_TYPE_CRUDE_OIL: InstrumentType
|
|
54
|
+
INSTRUMENT_TYPE_NATURAL_GAS: InstrumentType
|
|
55
|
+
INSTRUMENT_TYPE_COPPER: InstrumentType
|
|
56
|
+
INSTRUMENT_TYPE_CORN: InstrumentType
|
|
57
|
+
INSTRUMENT_TYPE_WHEAT: InstrumentType
|
|
58
|
+
INSTRUMENT_TYPE_SOYBEANS: InstrumentType
|
|
59
|
+
INSTRUMENT_TYPE_FIAT_STABLECOIN: InstrumentType
|
|
60
|
+
INSTRUMENT_TYPE_MONEY_MARKET_FUND: InstrumentType
|
|
61
|
+
INSTRUMENT_TYPE_MONEY_MARKET_FUND_STABLECOIN: InstrumentType
|
|
62
|
+
INSTRUMENT_TYPE_ENDOWMENT_WRAPPER: InstrumentType
|
|
63
|
+
INSTRUMENT_TYPE_FUND: InstrumentType
|
|
64
|
+
INSTRUMENT_TYPE_FUND_STABLECOIN: InstrumentType
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: meshtrade/studio/instrument/v1/unit.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/studio/instrument/v1/unit.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)meshtrade/studio/instrument/v1/unit.proto\x12\x1emeshtrade.studio.instrument.v1*\xf4\x02\n\x04Unit\x12\x14\n\x10UNIT_UNSPECIFIED\x10\x00\x12\r\n\tUNIT_NULL\x10\x01\x12\r\n\tUNIT_NOTE\x10\x02\x12\x0e\n\nUNIT_SHARE\x10\x03\x12\x19\n\x15UNIT_PREFERENCE_SHARE\x10\x04\x12\r\n\tUNIT_BOND\x10\x05\x12\r\n\tUNIT_BILL\x10\x06\x12\x11\n\rUNIT_CONTRACT\x10\x07\x12\x0f\n\x0bUNIT_OPTION\x10\x08\x12\x0e\n\nUNIT_TOKEN\x10\t\x12\x0f\n\x0bUNIT_BARREL\x10\n\x12\r\n\tUNIT_GRAM\x10\x0b\x12\x11\n\rUNIT_KILOGRAM\x10\x0c\x12\x13\n\x0fUNIT_METRIC_TON\x10\r\x12\x0e\n\nUNIT_OUNCE\x10\x0e\x12\x13\n\x0fUNIT_HALF_OUNCE\x10\x0f\x12\x16\n\x12UNIT_QUARTER_OUNCE\x10\x10\x12\x18\n\x14UNIT_ONE_TENTH_OUNCE\x10\x11\x12\x1c\n\x18UNIT_ONE_HUNDREDTH_OUNCE\x10\x12\x42g\n%co.meshtrade.api.studio.instrument.v1Z>github.com/meshtrade/api/go/studio/instrument/v1;instrument_v1b\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.studio.instrument.v1.unit_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%co.meshtrade.api.studio.instrument.v1Z>github.com/meshtrade/api/go/studio/instrument/v1;instrument_v1'
|
|
35
|
+
_globals['_UNIT']._serialized_start=78
|
|
36
|
+
_globals['_UNIT']._serialized_end=450
|
|
37
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from typing import ClassVar as _ClassVar
|
|
4
|
+
|
|
5
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
6
|
+
|
|
7
|
+
class Unit(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
8
|
+
__slots__ = ()
|
|
9
|
+
UNIT_UNSPECIFIED: _ClassVar[Unit]
|
|
10
|
+
UNIT_NULL: _ClassVar[Unit]
|
|
11
|
+
UNIT_NOTE: _ClassVar[Unit]
|
|
12
|
+
UNIT_SHARE: _ClassVar[Unit]
|
|
13
|
+
UNIT_PREFERENCE_SHARE: _ClassVar[Unit]
|
|
14
|
+
UNIT_BOND: _ClassVar[Unit]
|
|
15
|
+
UNIT_BILL: _ClassVar[Unit]
|
|
16
|
+
UNIT_CONTRACT: _ClassVar[Unit]
|
|
17
|
+
UNIT_OPTION: _ClassVar[Unit]
|
|
18
|
+
UNIT_TOKEN: _ClassVar[Unit]
|
|
19
|
+
UNIT_BARREL: _ClassVar[Unit]
|
|
20
|
+
UNIT_GRAM: _ClassVar[Unit]
|
|
21
|
+
UNIT_KILOGRAM: _ClassVar[Unit]
|
|
22
|
+
UNIT_METRIC_TON: _ClassVar[Unit]
|
|
23
|
+
UNIT_OUNCE: _ClassVar[Unit]
|
|
24
|
+
UNIT_HALF_OUNCE: _ClassVar[Unit]
|
|
25
|
+
UNIT_QUARTER_OUNCE: _ClassVar[Unit]
|
|
26
|
+
UNIT_ONE_TENTH_OUNCE: _ClassVar[Unit]
|
|
27
|
+
UNIT_ONE_HUNDREDTH_OUNCE: _ClassVar[Unit]
|
|
28
|
+
UNIT_UNSPECIFIED: Unit
|
|
29
|
+
UNIT_NULL: Unit
|
|
30
|
+
UNIT_NOTE: Unit
|
|
31
|
+
UNIT_SHARE: Unit
|
|
32
|
+
UNIT_PREFERENCE_SHARE: Unit
|
|
33
|
+
UNIT_BOND: Unit
|
|
34
|
+
UNIT_BILL: Unit
|
|
35
|
+
UNIT_CONTRACT: Unit
|
|
36
|
+
UNIT_OPTION: Unit
|
|
37
|
+
UNIT_TOKEN: Unit
|
|
38
|
+
UNIT_BARREL: Unit
|
|
39
|
+
UNIT_GRAM: Unit
|
|
40
|
+
UNIT_KILOGRAM: Unit
|
|
41
|
+
UNIT_METRIC_TON: Unit
|
|
42
|
+
UNIT_OUNCE: Unit
|
|
43
|
+
UNIT_HALF_OUNCE: Unit
|
|
44
|
+
UNIT_QUARTER_OUNCE: Unit
|
|
45
|
+
UNIT_ONE_TENTH_OUNCE: Unit
|
|
46
|
+
UNIT_ONE_HUNDREDTH_OUNCE: Unit
|
|
@@ -13,8 +13,18 @@
|
|
|
13
13
|
# ===================================================================
|
|
14
14
|
|
|
15
15
|
# Generated protobuf imports
|
|
16
|
-
from .limit_order_pb2 import LimitOrder
|
|
17
|
-
from .service_pb2 import
|
|
16
|
+
from .limit_order_pb2 import LimitOrder, LimitOrderSide, LimitOrderStatus
|
|
17
|
+
from .service_pb2 import (
|
|
18
|
+
CancelLimitOrderRequest,
|
|
19
|
+
CreateLimitOrderRequest,
|
|
20
|
+
GetLimitOrderByExternalReferenceRequest,
|
|
21
|
+
GetLimitOrderRequest,
|
|
22
|
+
ListLimitOrdersRequest,
|
|
23
|
+
ListLimitOrdersResponse,
|
|
24
|
+
MonitorLimitOrderRequest,
|
|
25
|
+
SearchLimitOrdersRequest,
|
|
26
|
+
SearchLimitOrdersResponse,
|
|
27
|
+
)
|
|
18
28
|
|
|
19
29
|
# Generated service imports
|
|
20
30
|
from .service_meshpy import (
|
|
@@ -22,7 +32,6 @@ from .service_meshpy import (
|
|
|
22
32
|
LimitOrderServiceGRPCClient,
|
|
23
33
|
LimitOrderServiceGRPCClientInterface,
|
|
24
34
|
)
|
|
25
|
-
from .service_options_meshpy import ClientOptions
|
|
26
35
|
|
|
27
36
|
# ===================================================================
|
|
28
37
|
# END OF AUTO-GENERATED SECTION
|
|
@@ -44,10 +53,19 @@ from .service_options_meshpy import ClientOptions
|
|
|
44
53
|
# Combined auto-generated and manual exports
|
|
45
54
|
__all__ = [
|
|
46
55
|
# Generated exports
|
|
47
|
-
"
|
|
56
|
+
"CancelLimitOrderRequest",
|
|
57
|
+
"CreateLimitOrderRequest",
|
|
58
|
+
"GetLimitOrderByExternalReferenceRequest",
|
|
48
59
|
"GetLimitOrderRequest",
|
|
49
60
|
"LimitOrder",
|
|
50
61
|
"LimitOrderService",
|
|
51
62
|
"LimitOrderServiceGRPCClient",
|
|
52
63
|
"LimitOrderServiceGRPCClientInterface",
|
|
64
|
+
"LimitOrderSide",
|
|
65
|
+
"LimitOrderStatus",
|
|
66
|
+
"ListLimitOrdersRequest",
|
|
67
|
+
"ListLimitOrdersResponse",
|
|
68
|
+
"MonitorLimitOrderRequest",
|
|
69
|
+
"SearchLimitOrdersRequest",
|
|
70
|
+
"SearchLimitOrdersResponse",
|
|
53
71
|
]
|
|
@@ -22,16 +22,36 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
22
22
|
_sym_db = _symbol_database.Default()
|
|
23
23
|
|
|
24
24
|
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from meshtrade.type.v1 import amount_pb2 as meshtrade_dot_type_dot_v1_dot_amount__pb2
|
|
25
27
|
|
|
26
28
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2meshtrade/trading/limit_order/v1/limit_order.proto\x12 meshtrade.trading.limit_order.v1\"
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2meshtrade/trading/limit_order/v1/limit_order.proto\x12 meshtrade.trading.limit_order.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emeshtrade/type/v1/amount.proto\"\xf1\x06\n\nLimitOrder\x12\xc8\x01\n\x04name\x18\x01 \x01(\tB\xb3\x01\xbaH\xaf\x01\xba\x01\xab\x01\n\x14name.format.optional\x12\x39name must be empty or in the format limit_orders/{ULIDv2}\x1aXsize(this) == 0 || this.matches(\'^limit_orders/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\')R\x04name\x12R\n\x05owner\x18\x02 \x01(\tB<\xbaH9r42/^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01!\xc8\x01\x01R\x05owner\x12X\n\x07\x61\x63\x63ount\x18\x03 \x01(\tB>\xbaH;r621^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01#\xc8\x01\x01R\x07\x61\x63\x63ount\x12\x37\n\x12\x65xternal_reference\x18\x05 \x01(\tB\x08\xbaH\x05r\x03\x18\xc8\x01R\x11\x65xternalReference\x12P\n\x04side\x18\x06 \x01(\x0e\x32\x30.meshtrade.trading.limit_order.v1.LimitOrderSideB\n\xbaH\x07\x82\x01\x04\x10\x01 \x00R\x04side\x12\x42\n\x0blimit_price\x18\x07 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountB\x06\xbaH\x03\xc8\x01\x01R\nlimitPrice\x12=\n\x08quantity\x18\x08 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountB\x06\xbaH\x03\xc8\x01\x01R\x08quantity\x12\x38\n\nfill_price\x18\t \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\tfillPrice\x12\x42\n\x0f\x66illed_quantity\x18\n \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x0e\x66illedQuantity\x12J\n\x06status\x18\x0b \x01(\x0e\x32\x32.meshtrade.trading.limit_order.v1.LimitOrderStatusR\x06statusJ\x04\x08\x04\x10\x05R\x0c\x64isplay_name*g\n\x0eLimitOrderSide\x12 \n\x1cLIMIT_ORDER_SIDE_UNSPECIFIED\x10\x00\x12\x18\n\x14LIMIT_ORDER_SIDE_BUY\x10\x01\x12\x19\n\x15LIMIT_ORDER_SIDE_SELL\x10\x02*\xcd\x02\n\x10LimitOrderStatus\x12\"\n\x1eLIMIT_ORDER_STATUS_UNSPECIFIED\x10\x00\x12-\n)LIMIT_ORDER_STATUS_SUBMISSION_IN_PROGRESS\x10\x01\x12(\n$LIMIT_ORDER_STATUS_SUBMISSION_FAILED\x10\x02\x12\x1b\n\x17LIMIT_ORDER_STATUS_OPEN\x10\x03\x12+\n\'LIMIT_ORDER_STATUS_COMPLETE_IN_PROGRESS\x10\x04\x12\x1f\n\x1bLIMIT_ORDER_STATUS_COMPLETE\x10\x05\x12/\n+LIMIT_ORDER_STATUS_CANCELLATION_IN_PROGRESS\x10\x06\x12 \n\x1cLIMIT_ORDER_STATUS_CANCELLED\x10\x07\x42l\n\'co.meshtrade.api.trading.limit_order.v1ZAgithub.com/meshtrade/api/go/trading/limit_order/v1;limit_order_v1b\x06proto3')
|
|
28
30
|
|
|
29
31
|
_globals = globals()
|
|
30
32
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
33
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.trading.limit_order.v1.limit_order_pb2', _globals)
|
|
32
34
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
35
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\'co.meshtrade.api.trading.limit_order.
|
|
35
|
-
_globals['_LIMITORDER'].
|
|
36
|
-
_globals['_LIMITORDER'].
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\'co.meshtrade.api.trading.limit_order.v1ZAgithub.com/meshtrade/api/go/trading/limit_order/v1;limit_order_v1'
|
|
37
|
+
_globals['_LIMITORDER'].fields_by_name['name']._loaded_options = None
|
|
38
|
+
_globals['_LIMITORDER'].fields_by_name['name']._serialized_options = b'\272H\257\001\272\001\253\001\n\024name.format.optional\0229name must be empty or in the format limit_orders/{ULIDv2}\032Xsize(this) == 0 || this.matches(\'^limit_orders/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\')'
|
|
39
|
+
_globals['_LIMITORDER'].fields_by_name['owner']._loaded_options = None
|
|
40
|
+
_globals['_LIMITORDER'].fields_by_name['owner']._serialized_options = b'\272H9r42/^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001!\310\001\001'
|
|
41
|
+
_globals['_LIMITORDER'].fields_by_name['account']._loaded_options = None
|
|
42
|
+
_globals['_LIMITORDER'].fields_by_name['account']._serialized_options = b'\272H;r621^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001#\310\001\001'
|
|
43
|
+
_globals['_LIMITORDER'].fields_by_name['external_reference']._loaded_options = None
|
|
44
|
+
_globals['_LIMITORDER'].fields_by_name['external_reference']._serialized_options = b'\272H\005r\003\030\310\001'
|
|
45
|
+
_globals['_LIMITORDER'].fields_by_name['side']._loaded_options = None
|
|
46
|
+
_globals['_LIMITORDER'].fields_by_name['side']._serialized_options = b'\272H\007\202\001\004\020\001 \000'
|
|
47
|
+
_globals['_LIMITORDER'].fields_by_name['limit_price']._loaded_options = None
|
|
48
|
+
_globals['_LIMITORDER'].fields_by_name['limit_price']._serialized_options = b'\272H\003\310\001\001'
|
|
49
|
+
_globals['_LIMITORDER'].fields_by_name['quantity']._loaded_options = None
|
|
50
|
+
_globals['_LIMITORDER'].fields_by_name['quantity']._serialized_options = b'\272H\003\310\001\001'
|
|
51
|
+
_globals['_LIMITORDERSIDE']._serialized_start=1033
|
|
52
|
+
_globals['_LIMITORDERSIDE']._serialized_end=1136
|
|
53
|
+
_globals['_LIMITORDERSTATUS']._serialized_start=1139
|
|
54
|
+
_globals['_LIMITORDERSTATUS']._serialized_end=1472
|
|
55
|
+
_globals['_LIMITORDER']._serialized_start=150
|
|
56
|
+
_globals['_LIMITORDER']._serialized_end=1031
|
|
37
57
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,11 +1,61 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from meshtrade.type.v1 import amount_pb2 as _amount_pb2
|
|
3
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
1
4
|
from google.protobuf import descriptor as _descriptor
|
|
2
5
|
from google.protobuf import message as _message
|
|
3
|
-
from
|
|
6
|
+
from collections.abc import Mapping as _Mapping
|
|
7
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
4
8
|
|
|
5
9
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
6
10
|
|
|
11
|
+
class LimitOrderSide(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
12
|
+
__slots__ = ()
|
|
13
|
+
LIMIT_ORDER_SIDE_UNSPECIFIED: _ClassVar[LimitOrderSide]
|
|
14
|
+
LIMIT_ORDER_SIDE_BUY: _ClassVar[LimitOrderSide]
|
|
15
|
+
LIMIT_ORDER_SIDE_SELL: _ClassVar[LimitOrderSide]
|
|
16
|
+
|
|
17
|
+
class LimitOrderStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
18
|
+
__slots__ = ()
|
|
19
|
+
LIMIT_ORDER_STATUS_UNSPECIFIED: _ClassVar[LimitOrderStatus]
|
|
20
|
+
LIMIT_ORDER_STATUS_SUBMISSION_IN_PROGRESS: _ClassVar[LimitOrderStatus]
|
|
21
|
+
LIMIT_ORDER_STATUS_SUBMISSION_FAILED: _ClassVar[LimitOrderStatus]
|
|
22
|
+
LIMIT_ORDER_STATUS_OPEN: _ClassVar[LimitOrderStatus]
|
|
23
|
+
LIMIT_ORDER_STATUS_COMPLETE_IN_PROGRESS: _ClassVar[LimitOrderStatus]
|
|
24
|
+
LIMIT_ORDER_STATUS_COMPLETE: _ClassVar[LimitOrderStatus]
|
|
25
|
+
LIMIT_ORDER_STATUS_CANCELLATION_IN_PROGRESS: _ClassVar[LimitOrderStatus]
|
|
26
|
+
LIMIT_ORDER_STATUS_CANCELLED: _ClassVar[LimitOrderStatus]
|
|
27
|
+
LIMIT_ORDER_SIDE_UNSPECIFIED: LimitOrderSide
|
|
28
|
+
LIMIT_ORDER_SIDE_BUY: LimitOrderSide
|
|
29
|
+
LIMIT_ORDER_SIDE_SELL: LimitOrderSide
|
|
30
|
+
LIMIT_ORDER_STATUS_UNSPECIFIED: LimitOrderStatus
|
|
31
|
+
LIMIT_ORDER_STATUS_SUBMISSION_IN_PROGRESS: LimitOrderStatus
|
|
32
|
+
LIMIT_ORDER_STATUS_SUBMISSION_FAILED: LimitOrderStatus
|
|
33
|
+
LIMIT_ORDER_STATUS_OPEN: LimitOrderStatus
|
|
34
|
+
LIMIT_ORDER_STATUS_COMPLETE_IN_PROGRESS: LimitOrderStatus
|
|
35
|
+
LIMIT_ORDER_STATUS_COMPLETE: LimitOrderStatus
|
|
36
|
+
LIMIT_ORDER_STATUS_CANCELLATION_IN_PROGRESS: LimitOrderStatus
|
|
37
|
+
LIMIT_ORDER_STATUS_CANCELLED: LimitOrderStatus
|
|
38
|
+
|
|
7
39
|
class LimitOrder(_message.Message):
|
|
8
|
-
__slots__ = ("
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
40
|
+
__slots__ = ("name", "owner", "account", "external_reference", "side", "limit_price", "quantity", "fill_price", "filled_quantity", "status")
|
|
41
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
OWNER_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
ACCOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
EXTERNAL_REFERENCE_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
SIDE_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
LIMIT_PRICE_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
QUANTITY_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
FILL_PRICE_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
FILLED_QUANTITY_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
name: str
|
|
52
|
+
owner: str
|
|
53
|
+
account: str
|
|
54
|
+
external_reference: str
|
|
55
|
+
side: LimitOrderSide
|
|
56
|
+
limit_price: _amount_pb2.Amount
|
|
57
|
+
quantity: _amount_pb2.Amount
|
|
58
|
+
fill_price: _amount_pb2.Amount
|
|
59
|
+
filled_quantity: _amount_pb2.Amount
|
|
60
|
+
status: LimitOrderStatus
|
|
61
|
+
def __init__(self, name: _Optional[str] = ..., owner: _Optional[str] = ..., account: _Optional[str] = ..., external_reference: _Optional[str] = ..., side: _Optional[_Union[LimitOrderSide, str]] = ..., limit_price: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., quantity: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., fill_price: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., filled_quantity: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., status: _Optional[_Union[LimitOrderStatus, str]] = ...) -> None: ...
|