Files

696 lines
31 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import google.protobuf.timestamp_pb2
import sys
import t_tech.invest.grpc.common_pb2
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
class _AccountType:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _AccountTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AccountType.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
ACCOUNT_TYPE_UNSPECIFIED: _AccountType.ValueType # 0
"""Тип аккаунта не определeн."""
ACCOUNT_TYPE_TINKOFF: _AccountType.ValueType # 1
"""Брокерский счeт Т-Инвестиций."""
ACCOUNT_TYPE_TINKOFF_IIS: _AccountType.ValueType # 2
"""ИИС."""
ACCOUNT_TYPE_INVEST_BOX: _AccountType.ValueType # 3
"""Инвесткопилка."""
ACCOUNT_TYPE_INVEST_FUND: _AccountType.ValueType # 4
"""Фонд денежного рынка."""
ACCOUNT_TYPE_DEBIT: _AccountType.ValueType # 5
"""Дебетовый карточный счeт."""
ACCOUNT_TYPE_SAVING: _AccountType.ValueType # 6
"""Накопительный счeт."""
ACCOUNT_TYPE_DFA: _AccountType.ValueType # 7
"""Смарт-счет."""
class AccountType(_AccountType, metaclass=_AccountTypeEnumTypeWrapper):
"""Тип счeта."""
ACCOUNT_TYPE_UNSPECIFIED: AccountType.ValueType # 0
"""Тип аккаунта не определeн."""
ACCOUNT_TYPE_TINKOFF: AccountType.ValueType # 1
"""Брокерский счeт Т-Инвестиций."""
ACCOUNT_TYPE_TINKOFF_IIS: AccountType.ValueType # 2
"""ИИС."""
ACCOUNT_TYPE_INVEST_BOX: AccountType.ValueType # 3
"""Инвесткопилка."""
ACCOUNT_TYPE_INVEST_FUND: AccountType.ValueType # 4
"""Фонд денежного рынка."""
ACCOUNT_TYPE_DEBIT: AccountType.ValueType # 5
"""Дебетовый карточный счeт."""
ACCOUNT_TYPE_SAVING: AccountType.ValueType # 6
"""Накопительный счeт."""
ACCOUNT_TYPE_DFA: AccountType.ValueType # 7
"""Смарт-счет."""
global___AccountType = AccountType
class _AccountStatus:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _AccountStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AccountStatus.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
ACCOUNT_STATUS_UNSPECIFIED: _AccountStatus.ValueType # 0
"""Статус счeта не определeн."""
ACCOUNT_STATUS_NEW: _AccountStatus.ValueType # 1
"""Новый, в процессе открытия."""
ACCOUNT_STATUS_OPEN: _AccountStatus.ValueType # 2
"""Открытый и активный счeт."""
ACCOUNT_STATUS_CLOSED: _AccountStatus.ValueType # 3
"""Закрытый счeт."""
ACCOUNT_STATUS_ALL: _AccountStatus.ValueType # 4
"""Все счета."""
class AccountStatus(_AccountStatus, metaclass=_AccountStatusEnumTypeWrapper):
"""Статус счeта."""
ACCOUNT_STATUS_UNSPECIFIED: AccountStatus.ValueType # 0
"""Статус счeта не определeн."""
ACCOUNT_STATUS_NEW: AccountStatus.ValueType # 1
"""Новый, в процессе открытия."""
ACCOUNT_STATUS_OPEN: AccountStatus.ValueType # 2
"""Открытый и активный счeт."""
ACCOUNT_STATUS_CLOSED: AccountStatus.ValueType # 3
"""Закрытый счeт."""
ACCOUNT_STATUS_ALL: AccountStatus.ValueType # 4
"""Все счета."""
global___AccountStatus = AccountStatus
class _AccessLevel:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _AccessLevelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AccessLevel.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
ACCOUNT_ACCESS_LEVEL_UNSPECIFIED: _AccessLevel.ValueType # 0
"""Уровень доступа не определeн."""
ACCOUNT_ACCESS_LEVEL_FULL_ACCESS: _AccessLevel.ValueType # 1
"""Полный доступ к счeту."""
ACCOUNT_ACCESS_LEVEL_READ_ONLY: _AccessLevel.ValueType # 2
"""Доступ с уровнем прав «только чтение»."""
ACCOUNT_ACCESS_LEVEL_NO_ACCESS: _AccessLevel.ValueType # 3
"""Доступа нет."""
class AccessLevel(_AccessLevel, metaclass=_AccessLevelEnumTypeWrapper):
"""Уровень доступа к счeту."""
ACCOUNT_ACCESS_LEVEL_UNSPECIFIED: AccessLevel.ValueType # 0
"""Уровень доступа не определeн."""
ACCOUNT_ACCESS_LEVEL_FULL_ACCESS: AccessLevel.ValueType # 1
"""Полный доступ к счeту."""
ACCOUNT_ACCESS_LEVEL_READ_ONLY: AccessLevel.ValueType # 2
"""Доступ с уровнем прав «только чтение»."""
ACCOUNT_ACCESS_LEVEL_NO_ACCESS: AccessLevel.ValueType # 3
"""Доступа нет."""
global___AccessLevel = AccessLevel
class _AccountValue:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _AccountValueEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AccountValue.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
ACCOUNT_VALUE_UNSPECIFIED: _AccountValue.ValueType # 0
"""Не определён."""
ACCOUNT_VALUE_MARGIN_FEE: _AccountValue.ValueType # 1
"""Размер комиссии за маржинальное кредитование."""
ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE: _AccountValue.ValueType # 2
"""Остаток доступного лимита с текущей комиссией."""
class AccountValue(_AccountValue, metaclass=_AccountValueEnumTypeWrapper): ...
ACCOUNT_VALUE_UNSPECIFIED: AccountValue.ValueType # 0
"""Не определён."""
ACCOUNT_VALUE_MARGIN_FEE: AccountValue.ValueType # 1
"""Размер комиссии за маржинальное кредитование."""
ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE: AccountValue.ValueType # 2
"""Остаток доступного лимита с текущей комиссией."""
global___AccountValue = AccountValue
@typing.final
class GetAccountsRequest(google.protobuf.message.Message):
"""Запрос получения счетов пользователя."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
STATUS_FIELD_NUMBER: builtins.int
status: global___AccountStatus.ValueType
"""Статус счета."""
def __init__(
self,
*,
status: global___AccountStatus.ValueType | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["_status", b"_status", "status", b"status"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["_status", b"_status", "status", b"status"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["_status", b"_status"]) -> typing.Literal["status"] | None: ...
global___GetAccountsRequest = GetAccountsRequest
@typing.final
class GetAccountsResponse(google.protobuf.message.Message):
"""Список счетов пользователя."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ACCOUNTS_FIELD_NUMBER: builtins.int
@property
def accounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Account]:
"""Массив счетов клиента."""
def __init__(
self,
*,
accounts: collections.abc.Iterable[global___Account] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["accounts", b"accounts"]) -> None: ...
global___GetAccountsResponse = GetAccountsResponse
@typing.final
class Account(google.protobuf.message.Message):
"""Информация о счeте."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
TYPE_FIELD_NUMBER: builtins.int
NAME_FIELD_NUMBER: builtins.int
STATUS_FIELD_NUMBER: builtins.int
OPENED_DATE_FIELD_NUMBER: builtins.int
CLOSED_DATE_FIELD_NUMBER: builtins.int
ACCESS_LEVEL_FIELD_NUMBER: builtins.int
id: builtins.str
"""Идентификатор счeта."""
type: global___AccountType.ValueType
"""Тип счeта."""
name: builtins.str
"""Название счeта."""
status: global___AccountStatus.ValueType
"""Статус счeта."""
access_level: global___AccessLevel.ValueType
"""Уровень доступа к текущему счeту (определяется токеном)."""
@property
def opened_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Дата открытия счeта в часовом поясе UTC."""
@property
def closed_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Дата закрытия счeта в часовом поясе UTC."""
def __init__(
self,
*,
id: builtins.str = ...,
type: global___AccountType.ValueType = ...,
name: builtins.str = ...,
status: global___AccountStatus.ValueType = ...,
opened_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
closed_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
access_level: global___AccessLevel.ValueType = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["closed_date", b"closed_date", "opened_date", b"opened_date"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["access_level", b"access_level", "closed_date", b"closed_date", "id", b"id", "name", b"name", "opened_date", b"opened_date", "status", b"status", "type", b"type"]) -> None: ...
global___Account = Account
@typing.final
class GetMarginAttributesRequest(google.protobuf.message.Message):
"""Запрос маржинальных показателей по счeту."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ACCOUNT_ID_FIELD_NUMBER: builtins.int
account_id: builtins.str
"""Идентификатор счeта пользователя."""
def __init__(
self,
*,
account_id: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["account_id", b"account_id"]) -> None: ...
global___GetMarginAttributesRequest = GetMarginAttributesRequest
@typing.final
class GetMarginAttributesResponse(google.protobuf.message.Message):
"""Маржинальные показатели по счeту."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
LIQUID_PORTFOLIO_FIELD_NUMBER: builtins.int
STARTING_MARGIN_FIELD_NUMBER: builtins.int
MINIMAL_MARGIN_FIELD_NUMBER: builtins.int
FUNDS_SUFFICIENCY_LEVEL_FIELD_NUMBER: builtins.int
AMOUNT_OF_MISSING_FUNDS_FIELD_NUMBER: builtins.int
CORRECTED_MARGIN_FIELD_NUMBER: builtins.int
GUARANTEE_FOR_FUTURES_FIELD_NUMBER: builtins.int
@property
def liquid_portfolio(self) -> t_tech.invest.grpc.common_pb2.MoneyValue:
"""Ликвидная стоимость портфеля. [Подробнее про ликвидный портфель](https://www.tbank.ru/invest/help/brokerage/account/margin/about/#q4)."""
@property
def starting_margin(self) -> t_tech.invest.grpc.common_pb2.MoneyValue:
"""Начальная маржа — начальное обеспечение для совершения новой сделки. [Подробнее про начальную и минимальную маржу](https://www.tbank.ru/invest/help/brokerage/account/margin/about/#q6)."""
@property
def minimal_margin(self) -> t_tech.invest.grpc.common_pb2.MoneyValue:
"""Минимальная маржа — это минимальное обеспечение для поддержания позиции, которую вы уже открыли. [Подробнее про начальную и минимальную маржу](https://www.tbank.ru/invest/help/brokerage/account/margin/about/#q6)."""
@property
def funds_sufficiency_level(self) -> t_tech.invest.grpc.common_pb2.Quotation:
"""Уровень достаточности средств. Соотношение стоимости ликвидного портфеля к начальной марже."""
@property
def amount_of_missing_funds(self) -> t_tech.invest.grpc.common_pb2.MoneyValue:
"""Объем недостающих средств. Разница между стартовой маржой и ликвидной стоимости портфеля."""
@property
def corrected_margin(self) -> t_tech.invest.grpc.common_pb2.MoneyValue:
"""Скорректированная маржа. Начальная маржа, в которой плановые позиции рассчитываются с учeтом активных заявок на покупку позиций лонг или продажу позиций шорт."""
@property
def guarantee_for_futures(self) -> t_tech.invest.grpc.common_pb2.MoneyValue:
"""Размер гарантийного обеспечения, заблокированного под фьючерсы."""
def __init__(
self,
*,
liquid_portfolio: t_tech.invest.grpc.common_pb2.MoneyValue | None = ...,
starting_margin: t_tech.invest.grpc.common_pb2.MoneyValue | None = ...,
minimal_margin: t_tech.invest.grpc.common_pb2.MoneyValue | None = ...,
funds_sufficiency_level: t_tech.invest.grpc.common_pb2.Quotation | None = ...,
amount_of_missing_funds: t_tech.invest.grpc.common_pb2.MoneyValue | None = ...,
corrected_margin: t_tech.invest.grpc.common_pb2.MoneyValue | None = ...,
guarantee_for_futures: t_tech.invest.grpc.common_pb2.MoneyValue | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["amount_of_missing_funds", b"amount_of_missing_funds", "corrected_margin", b"corrected_margin", "funds_sufficiency_level", b"funds_sufficiency_level", "guarantee_for_futures", b"guarantee_for_futures", "liquid_portfolio", b"liquid_portfolio", "minimal_margin", b"minimal_margin", "starting_margin", b"starting_margin"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["amount_of_missing_funds", b"amount_of_missing_funds", "corrected_margin", b"corrected_margin", "funds_sufficiency_level", b"funds_sufficiency_level", "guarantee_for_futures", b"guarantee_for_futures", "liquid_portfolio", b"liquid_portfolio", "minimal_margin", b"minimal_margin", "starting_margin", b"starting_margin"]) -> None: ...
global___GetMarginAttributesResponse = GetMarginAttributesResponse
@typing.final
class GetUserTariffRequest(google.protobuf.message.Message):
"""Запрос текущих лимитов пользователя."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(
self,
) -> None: ...
global___GetUserTariffRequest = GetUserTariffRequest
@typing.final
class GetUserTariffResponse(google.protobuf.message.Message):
"""Текущие лимиты пользователя."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
UNARY_LIMITS_FIELD_NUMBER: builtins.int
STREAM_LIMITS_FIELD_NUMBER: builtins.int
@property
def unary_limits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UnaryLimit]:
"""Массив лимитов пользователя по unary-запросам."""
@property
def stream_limits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamLimit]:
"""Массив лимитов пользователей для stream-соединений."""
def __init__(
self,
*,
unary_limits: collections.abc.Iterable[global___UnaryLimit] | None = ...,
stream_limits: collections.abc.Iterable[global___StreamLimit] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["stream_limits", b"stream_limits", "unary_limits", b"unary_limits"]) -> None: ...
global___GetUserTariffResponse = GetUserTariffResponse
@typing.final
class UnaryLimit(google.protobuf.message.Message):
"""Лимит unary-методов."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
LIMIT_PER_MINUTE_FIELD_NUMBER: builtins.int
METHODS_FIELD_NUMBER: builtins.int
LIMIT_PER_SECOND_FIELD_NUMBER: builtins.int
limit_per_minute: builtins.int
"""Количество unary-запросов в минуту."""
limit_per_second: builtins.int
"""Количество unary-запросов в секунду."""
@property
def methods(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""Названия методов."""
def __init__(
self,
*,
limit_per_minute: builtins.int = ...,
methods: collections.abc.Iterable[builtins.str] | None = ...,
limit_per_second: builtins.int | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["_limit_per_second", b"_limit_per_second", "limit_per_second", b"limit_per_second"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["_limit_per_second", b"_limit_per_second", "limit_per_minute", b"limit_per_minute", "limit_per_second", b"limit_per_second", "methods", b"methods"]) -> None: ...
def WhichOneof(self, oneof_group: typing.Literal["_limit_per_second", b"_limit_per_second"]) -> typing.Literal["limit_per_second"] | None: ...
global___UnaryLimit = UnaryLimit
@typing.final
class StreamLimit(google.protobuf.message.Message):
"""Лимит stream-соединений."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
LIMIT_FIELD_NUMBER: builtins.int
STREAMS_FIELD_NUMBER: builtins.int
OPEN_FIELD_NUMBER: builtins.int
limit: builtins.int
"""Максимальное количество stream-соединений."""
open: builtins.int
"""Текущее количество открытых stream-соединений."""
@property
def streams(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""Названия stream-методов."""
def __init__(
self,
*,
limit: builtins.int = ...,
streams: collections.abc.Iterable[builtins.str] | None = ...,
open: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["limit", b"limit", "open", b"open", "streams", b"streams"]) -> None: ...
global___StreamLimit = StreamLimit
@typing.final
class GetInfoRequest(google.protobuf.message.Message):
"""Запрос информации о пользователе."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(
self,
) -> None: ...
global___GetInfoRequest = GetInfoRequest
@typing.final
class GetInfoResponse(google.protobuf.message.Message):
"""Информация о пользователе."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
PREM_STATUS_FIELD_NUMBER: builtins.int
QUAL_STATUS_FIELD_NUMBER: builtins.int
QUALIFIED_FOR_WORK_WITH_FIELD_NUMBER: builtins.int
TARIFF_FIELD_NUMBER: builtins.int
USER_ID_FIELD_NUMBER: builtins.int
RISK_LEVEL_CODE_FIELD_NUMBER: builtins.int
prem_status: builtins.bool
"""Признак премиум клиента."""
qual_status: builtins.bool
"""Признак квалифицированного инвестора."""
tariff: builtins.str
"""Наименование тарифа пользователя."""
user_id: builtins.str
"""Идентификатор пользователя."""
risk_level_code: builtins.str
"""Категория риска."""
@property
def qualified_for_work_with(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](/invest/services/accounts/faq_users)."""
def __init__(
self,
*,
prem_status: builtins.bool = ...,
qual_status: builtins.bool = ...,
qualified_for_work_with: collections.abc.Iterable[builtins.str] | None = ...,
tariff: builtins.str = ...,
user_id: builtins.str = ...,
risk_level_code: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["prem_status", b"prem_status", "qual_status", b"qual_status", "qualified_for_work_with", b"qualified_for_work_with", "risk_level_code", b"risk_level_code", "tariff", b"tariff", "user_id", b"user_id"]) -> None: ...
global___GetInfoResponse = GetInfoResponse
@typing.final
class GetBankAccountsRequest(google.protobuf.message.Message):
"""Запрос списка банковских счетов пользователя."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(
self,
) -> None: ...
global___GetBankAccountsRequest = GetBankAccountsRequest
@typing.final
class GetBankAccountsResponse(google.protobuf.message.Message):
"""Список банковских счетов пользователя."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
BANK_ACCOUNTS_FIELD_NUMBER: builtins.int
@property
def bank_accounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BankAccount]:
"""Массив банковских счетов."""
def __init__(
self,
*,
bank_accounts: collections.abc.Iterable[global___BankAccount] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["bank_accounts", b"bank_accounts"]) -> None: ...
global___GetBankAccountsResponse = GetBankAccountsResponse
@typing.final
class BankAccount(google.protobuf.message.Message):
"""Банковский счeт."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
NAME_FIELD_NUMBER: builtins.int
MONEY_FIELD_NUMBER: builtins.int
OPENED_DATE_FIELD_NUMBER: builtins.int
TYPE_FIELD_NUMBER: builtins.int
id: builtins.str
"""Идентификатор счeта."""
name: builtins.str
"""Название счeта."""
type: global___AccountType.ValueType
"""Тип счeта."""
@property
def money(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[t_tech.invest.grpc.common_pb2.MoneyValue]:
"""Список валютных позиций на счeте."""
@property
def opened_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Дата открытия счeта в часовом поясе UTC."""
def __init__(
self,
*,
id: builtins.str = ...,
name: builtins.str = ...,
money: collections.abc.Iterable[t_tech.invest.grpc.common_pb2.MoneyValue] | None = ...,
opened_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
type: global___AccountType.ValueType = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["opened_date", b"opened_date"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["id", b"id", "money", b"money", "name", b"name", "opened_date", b"opened_date", "type", b"type"]) -> None: ...
global___BankAccount = BankAccount
@typing.final
class CurrencyTransferRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
FROM_ACCOUNT_ID_FIELD_NUMBER: builtins.int
TO_ACCOUNT_ID_FIELD_NUMBER: builtins.int
AMOUNT_FIELD_NUMBER: builtins.int
TRANSACTION_ID_FIELD_NUMBER: builtins.int
from_account_id: builtins.str
"""Номер счета списания."""
to_account_id: builtins.str
"""Номер счета зачисления."""
transaction_id: builtins.str
"""Идентификатор запроса выставления поручения для целей идемпотентности в формате UUID."""
@property
def amount(self) -> t_tech.invest.grpc.common_pb2.MoneyValue:
"""Сумма перевода с указанием валюты."""
def __init__(
self,
*,
from_account_id: builtins.str = ...,
to_account_id: builtins.str = ...,
amount: t_tech.invest.grpc.common_pb2.MoneyValue | None = ...,
transaction_id: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["amount", b"amount"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["amount", b"amount", "from_account_id", b"from_account_id", "to_account_id", b"to_account_id", "transaction_id", b"transaction_id"]) -> None: ...
global___CurrencyTransferRequest = CurrencyTransferRequest
@typing.final
class CurrencyTransferResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(
self,
) -> None: ...
global___CurrencyTransferResponse = CurrencyTransferResponse
@typing.final
class PayInRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
FROM_ACCOUNT_ID_FIELD_NUMBER: builtins.int
TO_ACCOUNT_ID_FIELD_NUMBER: builtins.int
AMOUNT_FIELD_NUMBER: builtins.int
from_account_id: builtins.str
"""Номер счета списания."""
to_account_id: builtins.str
"""Номер брокерского счета зачисления."""
@property
def amount(self) -> t_tech.invest.grpc.common_pb2.MoneyValue:
"""Сумма перевода с указанием валюты."""
def __init__(
self,
*,
from_account_id: builtins.str = ...,
to_account_id: builtins.str = ...,
amount: t_tech.invest.grpc.common_pb2.MoneyValue | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["amount", b"amount"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["amount", b"amount", "from_account_id", b"from_account_id", "to_account_id", b"to_account_id"]) -> None: ...
global___PayInRequest = PayInRequest
@typing.final
class PayInResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(
self,
) -> None: ...
global___PayInResponse = PayInResponse
@typing.final
class GetAccountValuesRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ACCOUNTS_FIELD_NUMBER: builtins.int
VALUES_FIELD_NUMBER: builtins.int
@property
def accounts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""Массив счетов пользователя."""
@property
def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___AccountValue.ValueType]:
"""Массив запрашиваемых параметров."""
def __init__(
self,
*,
accounts: collections.abc.Iterable[builtins.str] | None = ...,
values: collections.abc.Iterable[global___AccountValue.ValueType] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["accounts", b"accounts", "values", b"values"]) -> None: ...
global___GetAccountValuesRequest = GetAccountValuesRequest
@typing.final
class GetAccountValuesResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ACCOUNTS_FIELD_NUMBER: builtins.int
@property
def accounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AccountValuesWithParameters]:
"""Массив счетов с параметрами."""
def __init__(
self,
*,
accounts: collections.abc.Iterable[global___AccountValuesWithParameters] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["accounts", b"accounts"]) -> None: ...
global___GetAccountValuesResponse = GetAccountValuesResponse
@typing.final
class AccountValuesWithParameters(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ACCOUNT_ID_FIELD_NUMBER: builtins.int
VALUES_FIELD_NUMBER: builtins.int
account_id: builtins.str
"""Номер счета."""
@property
def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InstrumentParameter]:
"""Массив параметров инструмента."""
def __init__(
self,
*,
account_id: builtins.str = ...,
values: collections.abc.Iterable[global___InstrumentParameter] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing.Literal["account_id", b"account_id", "values", b"values"]) -> None: ...
global___AccountValuesWithParameters = AccountValuesWithParameters
@typing.final
class InstrumentParameter(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
NAME_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
name: global___AccountValue.ValueType
"""Тип запрашиваемого параметра."""
@property
def value(self) -> t_tech.invest.grpc.common_pb2.MoneyValue:
"""Значение запрашиваемого параметра."""
def __init__(
self,
*,
name: global___AccountValue.ValueType = ...,
value: t_tech.invest.grpc.common_pb2.MoneyValue | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["name", b"name", "value", b"value"]) -> None: ...
global___InstrumentParameter = InstrumentParameter