1474 lines
80 KiB
Python
1474 lines
80 KiB
Python
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||
"""Client and server classes corresponding to protobuf-defined services."""
|
||
import grpc
|
||
|
||
from t_tech.invest.grpc import (
|
||
instruments_pb2 as t__tech_dot_invest_dot_grpc_dot_instruments__pb2,
|
||
)
|
||
|
||
|
||
class InstrumentsServiceStub(object):
|
||
"""Методы сервиса предназначены для получения:<br/>1. Информации об инструментах.<br/>2.
|
||
Расписания торговых сессий.<br/>3. Календаря выплат купонов по облигациям.<br/>4.
|
||
Размера гарантийного обеспечения по фьючерсам.<br/>5. Дивидендов по ценной бумаге.
|
||
"""
|
||
|
||
def __init__(self, channel):
|
||
"""Constructor.
|
||
|
||
Args:
|
||
channel: A grpc.Channel.
|
||
"""
|
||
self.TradingSchedules = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/TradingSchedules',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.TradingSchedulesRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.TradingSchedulesResponse.FromString,
|
||
)
|
||
self.BondBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/BondBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.BondResponse.FromString,
|
||
)
|
||
self.Bonds = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/Bonds',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.BondsResponse.FromString,
|
||
)
|
||
self.GetBondCoupons = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetBondCoupons',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBondCouponsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBondCouponsResponse.FromString,
|
||
)
|
||
self.GetBondEvents = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetBondEvents',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBondEventsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBondEventsResponse.FromString,
|
||
)
|
||
self.CurrencyBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/CurrencyBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.CurrencyResponse.FromString,
|
||
)
|
||
self.Currencies = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/Currencies',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.CurrenciesResponse.FromString,
|
||
)
|
||
self.EtfBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/EtfBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.EtfResponse.FromString,
|
||
)
|
||
self.Etfs = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/Etfs',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.EtfsResponse.FromString,
|
||
)
|
||
self.FutureBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/FutureBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FutureResponse.FromString,
|
||
)
|
||
self.Futures = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/Futures',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FuturesResponse.FromString,
|
||
)
|
||
self.OptionBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/OptionBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.OptionResponse.FromString,
|
||
)
|
||
self.Options = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/Options',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.OptionsResponse.FromString,
|
||
)
|
||
self.OptionsBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/OptionsBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FilterOptionsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.OptionsResponse.FromString,
|
||
)
|
||
self.ShareBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/ShareBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.ShareResponse.FromString,
|
||
)
|
||
self.Shares = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/Shares',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.SharesResponse.FromString,
|
||
)
|
||
self.DfaBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/DfaBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DfaResponse.FromString,
|
||
)
|
||
self.Dfas = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/Dfas',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DfasRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DfasResponse.FromString,
|
||
)
|
||
self.Indicatives = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/Indicatives',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.IndicativesRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.IndicativesResponse.FromString,
|
||
)
|
||
self.GetAccruedInterests = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetAccruedInterests',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAccruedInterestsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAccruedInterestsResponse.FromString,
|
||
)
|
||
self.GetFuturesMargin = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetFuturesMargin',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFuturesMarginRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFuturesMarginResponse.FromString,
|
||
)
|
||
self.GetInstrumentBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetInstrumentBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentResponse.FromString,
|
||
)
|
||
self.GetDividends = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetDividends',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetDividendsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetDividendsResponse.FromString,
|
||
)
|
||
self.GetAssetBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetAssetBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.AssetRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.AssetResponse.FromString,
|
||
)
|
||
self.GetAssets = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetAssets',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.AssetsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.AssetsResponse.FromString,
|
||
)
|
||
self.GetFavorites = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetFavorites',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFavoritesRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFavoritesResponse.FromString,
|
||
)
|
||
self.EditFavorites = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/EditFavorites',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.EditFavoritesRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.EditFavoritesResponse.FromString,
|
||
)
|
||
self.CreateFavoriteGroup = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/CreateFavoriteGroup',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.CreateFavoriteGroupRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.CreateFavoriteGroupResponse.FromString,
|
||
)
|
||
self.DeleteFavoriteGroup = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/DeleteFavoriteGroup',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DeleteFavoriteGroupRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DeleteFavoriteGroupResponse.FromString,
|
||
)
|
||
self.GetFavoriteGroups = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetFavoriteGroups',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFavoriteGroupsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFavoriteGroupsResponse.FromString,
|
||
)
|
||
self.GetCountries = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetCountries',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetCountriesRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetCountriesResponse.FromString,
|
||
)
|
||
self.FindInstrument = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/FindInstrument',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FindInstrumentRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FindInstrumentResponse.FromString,
|
||
)
|
||
self.GetBrands = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetBrands',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBrandsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBrandsResponse.FromString,
|
||
)
|
||
self.GetBrandBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetBrandBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBrandRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.Brand.FromString,
|
||
)
|
||
self.GetAssetFundamentals = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetAssetFundamentals',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAssetFundamentalsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAssetFundamentalsResponse.FromString,
|
||
)
|
||
self.GetAssetReports = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetAssetReports',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAssetReportsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAssetReportsResponse.FromString,
|
||
)
|
||
self.GetConsensusForecasts = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetConsensusForecasts',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetConsensusForecastsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetConsensusForecastsResponse.FromString,
|
||
)
|
||
self.GetForecastBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetForecastBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetForecastRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetForecastResponse.FromString,
|
||
)
|
||
self.GetRiskRates = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetRiskRates',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.RiskRatesRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.RiskRatesResponse.FromString,
|
||
)
|
||
self.GetInsiderDeals = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetInsiderDeals',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetInsiderDealsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetInsiderDealsResponse.FromString,
|
||
)
|
||
self.StructuredNoteBy = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/StructuredNoteBy',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.StructuredNoteResponse.FromString,
|
||
)
|
||
self.StructuredNotes = channel.unary_unary(
|
||
'/tinkoff.public.invest.api.contract.v1.InstrumentsService/StructuredNotes',
|
||
request_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
response_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.StructuredNotesResponse.FromString,
|
||
)
|
||
|
||
|
||
class InstrumentsServiceServicer(object):
|
||
"""Методы сервиса предназначены для получения:<br/>1. Информации об инструментах.<br/>2.
|
||
Расписания торговых сессий.<br/>3. Календаря выплат купонов по облигациям.<br/>4.
|
||
Размера гарантийного обеспечения по фьючерсам.<br/>5. Дивидендов по ценной бумаге.
|
||
"""
|
||
|
||
def TradingSchedules(self, request, context):
|
||
"""TradingSchedules — расписания торговых площадок
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def BondBy(self, request, context):
|
||
"""BondBy — получить облигацию по ее идентификатору
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def Bonds(self, request, context):
|
||
"""Bonds — список облигаций
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetBondCoupons(self, request, context):
|
||
"""GetBondCoupons — график выплат купонов по облигации
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetBondEvents(self, request, context):
|
||
"""GetBondEvents — события по облигации
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def CurrencyBy(self, request, context):
|
||
"""CurrencyBy — получить валюту по ее идентификатору
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def Currencies(self, request, context):
|
||
"""Currencies — список валют
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def EtfBy(self, request, context):
|
||
"""EtfBy — получить инвестиционный фонд по его идентификатору
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def Etfs(self, request, context):
|
||
"""Etfs — список инвестиционных фондов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def FutureBy(self, request, context):
|
||
"""FutureBy — получить фьючерс по его идентификатору
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def Futures(self, request, context):
|
||
"""Futures — список фьючерсов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def OptionBy(self, request, context):
|
||
"""OptionBy — получить опцион по его идентификатору
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def Options(self, request, context):
|
||
"""Deprecated Options — список опционов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def OptionsBy(self, request, context):
|
||
"""OptionsBy — список опционов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def ShareBy(self, request, context):
|
||
"""ShareBy — получить акцию по ее идентификатору
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def Shares(self, request, context):
|
||
"""Shares — список акций
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def DfaBy(self, request, context):
|
||
"""DfaBy — получить цифровой актив по ее идентификатору
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def Dfas(self, request, context):
|
||
"""Dfas — список цифровых активов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def Indicatives(self, request, context):
|
||
"""Indicatives — индикативные инструменты — индексы, товары и другие
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetAccruedInterests(self, request, context):
|
||
"""GetAccruedInterests — накопленный купонный доход по облигации
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetFuturesMargin(self, request, context):
|
||
"""GetFuturesMargin — размера гарантийного обеспечения по фьючерсам
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetInstrumentBy(self, request, context):
|
||
"""GetInstrumentBy — основная информация об инструменте
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetDividends(self, request, context):
|
||
"""GetDividends — события выплаты дивидендов по инструменту
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetAssetBy(self, request, context):
|
||
"""GetAssetBy — получить актив по его идентификатору
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetAssets(self, request, context):
|
||
"""GetAssets — список активов
|
||
Метод работает для всех инструментов, кроме срочных — фьючерсов и опционов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetFavorites(self, request, context):
|
||
"""GetFavorites — получить список избранных инструментов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def EditFavorites(self, request, context):
|
||
"""EditFavorites — отредактировать список избранных инструментов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def CreateFavoriteGroup(self, request, context):
|
||
"""CreateFavoriteGroup — создать новую группу избранных инструментов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def DeleteFavoriteGroup(self, request, context):
|
||
"""DeleteFavoriteGroup — удалить группу избранных инструментов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetFavoriteGroups(self, request, context):
|
||
"""GetFavoriteGroups — список групп избранных инструментов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetCountries(self, request, context):
|
||
"""GetCountries — список стран
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def FindInstrument(self, request, context):
|
||
"""FindInstrument — найти инструмент
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetBrands(self, request, context):
|
||
"""GetBrands — список брендов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetBrandBy(self, request, context):
|
||
"""GetBrandBy — получить бренд по его идентификатору
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetAssetFundamentals(self, request, context):
|
||
"""GetAssetFundamentals — фундаментальные показатели по активу
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetAssetReports(self, request, context):
|
||
"""GetAssetReports — расписания выхода отчетностей эмитентов
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetConsensusForecasts(self, request, context):
|
||
"""GetConsensusForecasts — мнения аналитиков по инструменту
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetForecastBy(self, request, context):
|
||
"""GetForecastBy — прогнозы инвестдомов по инструменту
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetRiskRates(self, request, context):
|
||
"""GetRiskRates — ставки риска по инструменту
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def GetInsiderDeals(self, request, context):
|
||
"""GetInsiderDeals — сделки инсайдеров по инструментам
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def StructuredNoteBy(self, request, context):
|
||
"""StructuredNoteBy — получить структурную ноту по ее идентификатору
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
def StructuredNotes(self, request, context):
|
||
"""StructuredNotes — список структурных нот
|
||
"""
|
||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
context.set_details('Method not implemented!')
|
||
raise NotImplementedError('Method not implemented!')
|
||
|
||
|
||
def add_InstrumentsServiceServicer_to_server(servicer, server):
|
||
rpc_method_handlers = {
|
||
'TradingSchedules': grpc.unary_unary_rpc_method_handler(
|
||
servicer.TradingSchedules,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.TradingSchedulesRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.TradingSchedulesResponse.SerializeToString,
|
||
),
|
||
'BondBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.BondBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.BondResponse.SerializeToString,
|
||
),
|
||
'Bonds': grpc.unary_unary_rpc_method_handler(
|
||
servicer.Bonds,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.BondsResponse.SerializeToString,
|
||
),
|
||
'GetBondCoupons': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetBondCoupons,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBondCouponsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBondCouponsResponse.SerializeToString,
|
||
),
|
||
'GetBondEvents': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetBondEvents,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBondEventsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBondEventsResponse.SerializeToString,
|
||
),
|
||
'CurrencyBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.CurrencyBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.CurrencyResponse.SerializeToString,
|
||
),
|
||
'Currencies': grpc.unary_unary_rpc_method_handler(
|
||
servicer.Currencies,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.CurrenciesResponse.SerializeToString,
|
||
),
|
||
'EtfBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.EtfBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.EtfResponse.SerializeToString,
|
||
),
|
||
'Etfs': grpc.unary_unary_rpc_method_handler(
|
||
servicer.Etfs,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.EtfsResponse.SerializeToString,
|
||
),
|
||
'FutureBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.FutureBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FutureResponse.SerializeToString,
|
||
),
|
||
'Futures': grpc.unary_unary_rpc_method_handler(
|
||
servicer.Futures,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FuturesResponse.SerializeToString,
|
||
),
|
||
'OptionBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.OptionBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.OptionResponse.SerializeToString,
|
||
),
|
||
'Options': grpc.unary_unary_rpc_method_handler(
|
||
servicer.Options,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.OptionsResponse.SerializeToString,
|
||
),
|
||
'OptionsBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.OptionsBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FilterOptionsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.OptionsResponse.SerializeToString,
|
||
),
|
||
'ShareBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.ShareBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.ShareResponse.SerializeToString,
|
||
),
|
||
'Shares': grpc.unary_unary_rpc_method_handler(
|
||
servicer.Shares,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.SharesResponse.SerializeToString,
|
||
),
|
||
'DfaBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.DfaBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DfaResponse.SerializeToString,
|
||
),
|
||
'Dfas': grpc.unary_unary_rpc_method_handler(
|
||
servicer.Dfas,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DfasRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DfasResponse.SerializeToString,
|
||
),
|
||
'Indicatives': grpc.unary_unary_rpc_method_handler(
|
||
servicer.Indicatives,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.IndicativesRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.IndicativesResponse.SerializeToString,
|
||
),
|
||
'GetAccruedInterests': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetAccruedInterests,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAccruedInterestsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAccruedInterestsResponse.SerializeToString,
|
||
),
|
||
'GetFuturesMargin': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetFuturesMargin,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFuturesMarginRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFuturesMarginResponse.SerializeToString,
|
||
),
|
||
'GetInstrumentBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetInstrumentBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentResponse.SerializeToString,
|
||
),
|
||
'GetDividends': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetDividends,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetDividendsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetDividendsResponse.SerializeToString,
|
||
),
|
||
'GetAssetBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetAssetBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.AssetRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.AssetResponse.SerializeToString,
|
||
),
|
||
'GetAssets': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetAssets,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.AssetsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.AssetsResponse.SerializeToString,
|
||
),
|
||
'GetFavorites': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetFavorites,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFavoritesRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFavoritesResponse.SerializeToString,
|
||
),
|
||
'EditFavorites': grpc.unary_unary_rpc_method_handler(
|
||
servicer.EditFavorites,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.EditFavoritesRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.EditFavoritesResponse.SerializeToString,
|
||
),
|
||
'CreateFavoriteGroup': grpc.unary_unary_rpc_method_handler(
|
||
servicer.CreateFavoriteGroup,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.CreateFavoriteGroupRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.CreateFavoriteGroupResponse.SerializeToString,
|
||
),
|
||
'DeleteFavoriteGroup': grpc.unary_unary_rpc_method_handler(
|
||
servicer.DeleteFavoriteGroup,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DeleteFavoriteGroupRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DeleteFavoriteGroupResponse.SerializeToString,
|
||
),
|
||
'GetFavoriteGroups': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetFavoriteGroups,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFavoriteGroupsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFavoriteGroupsResponse.SerializeToString,
|
||
),
|
||
'GetCountries': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetCountries,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetCountriesRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetCountriesResponse.SerializeToString,
|
||
),
|
||
'FindInstrument': grpc.unary_unary_rpc_method_handler(
|
||
servicer.FindInstrument,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FindInstrumentRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FindInstrumentResponse.SerializeToString,
|
||
),
|
||
'GetBrands': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetBrands,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBrandsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBrandsResponse.SerializeToString,
|
||
),
|
||
'GetBrandBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetBrandBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBrandRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.Brand.SerializeToString,
|
||
),
|
||
'GetAssetFundamentals': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetAssetFundamentals,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAssetFundamentalsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAssetFundamentalsResponse.SerializeToString,
|
||
),
|
||
'GetAssetReports': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetAssetReports,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAssetReportsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAssetReportsResponse.SerializeToString,
|
||
),
|
||
'GetConsensusForecasts': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetConsensusForecasts,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetConsensusForecastsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetConsensusForecastsResponse.SerializeToString,
|
||
),
|
||
'GetForecastBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetForecastBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetForecastRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetForecastResponse.SerializeToString,
|
||
),
|
||
'GetRiskRates': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetRiskRates,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.RiskRatesRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.RiskRatesResponse.SerializeToString,
|
||
),
|
||
'GetInsiderDeals': grpc.unary_unary_rpc_method_handler(
|
||
servicer.GetInsiderDeals,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetInsiderDealsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetInsiderDealsResponse.SerializeToString,
|
||
),
|
||
'StructuredNoteBy': grpc.unary_unary_rpc_method_handler(
|
||
servicer.StructuredNoteBy,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.StructuredNoteResponse.SerializeToString,
|
||
),
|
||
'StructuredNotes': grpc.unary_unary_rpc_method_handler(
|
||
servicer.StructuredNotes,
|
||
request_deserializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.FromString,
|
||
response_serializer=t__tech_dot_invest_dot_grpc_dot_instruments__pb2.StructuredNotesResponse.SerializeToString,
|
||
),
|
||
}
|
||
generic_handler = grpc.method_handlers_generic_handler(
|
||
'tinkoff.public.invest.api.contract.v1.InstrumentsService', rpc_method_handlers)
|
||
server.add_generic_rpc_handlers((generic_handler,))
|
||
|
||
|
||
# This class is part of an EXPERIMENTAL API.
|
||
class InstrumentsService(object):
|
||
"""Методы сервиса предназначены для получения:<br/>1. Информации об инструментах.<br/>2.
|
||
Расписания торговых сессий.<br/>3. Календаря выплат купонов по облигациям.<br/>4.
|
||
Размера гарантийного обеспечения по фьючерсам.<br/>5. Дивидендов по ценной бумаге.
|
||
"""
|
||
|
||
@staticmethod
|
||
def TradingSchedules(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/TradingSchedules',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.TradingSchedulesRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.TradingSchedulesResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def BondBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/BondBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.BondResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def Bonds(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/Bonds',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.BondsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetBondCoupons(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetBondCoupons',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBondCouponsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBondCouponsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetBondEvents(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetBondEvents',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBondEventsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBondEventsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def CurrencyBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/CurrencyBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.CurrencyResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def Currencies(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/Currencies',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.CurrenciesResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def EtfBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/EtfBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.EtfResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def Etfs(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/Etfs',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.EtfsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def FutureBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/FutureBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FutureResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def Futures(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/Futures',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FuturesResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def OptionBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/OptionBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.OptionResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def Options(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/Options',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.OptionsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def OptionsBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/OptionsBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FilterOptionsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.OptionsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def ShareBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/ShareBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.ShareResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def Shares(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/Shares',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.SharesResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def DfaBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/DfaBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DfaResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def Dfas(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/Dfas',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DfasRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DfasResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def Indicatives(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/Indicatives',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.IndicativesRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.IndicativesResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetAccruedInterests(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetAccruedInterests',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAccruedInterestsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAccruedInterestsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetFuturesMargin(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetFuturesMargin',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFuturesMarginRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFuturesMarginResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetInstrumentBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetInstrumentBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetDividends(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetDividends',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetDividendsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetDividendsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetAssetBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetAssetBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.AssetRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.AssetResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetAssets(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetAssets',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.AssetsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.AssetsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetFavorites(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetFavorites',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFavoritesRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFavoritesResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def EditFavorites(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/EditFavorites',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.EditFavoritesRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.EditFavoritesResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def CreateFavoriteGroup(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/CreateFavoriteGroup',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.CreateFavoriteGroupRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.CreateFavoriteGroupResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def DeleteFavoriteGroup(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/DeleteFavoriteGroup',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DeleteFavoriteGroupRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.DeleteFavoriteGroupResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetFavoriteGroups(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetFavoriteGroups',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFavoriteGroupsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetFavoriteGroupsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetCountries(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetCountries',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetCountriesRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetCountriesResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def FindInstrument(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/FindInstrument',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FindInstrumentRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.FindInstrumentResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetBrands(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetBrands',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBrandsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBrandsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetBrandBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetBrandBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetBrandRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.Brand.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetAssetFundamentals(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetAssetFundamentals',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAssetFundamentalsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAssetFundamentalsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetAssetReports(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetAssetReports',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAssetReportsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetAssetReportsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetConsensusForecasts(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetConsensusForecasts',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetConsensusForecastsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetConsensusForecastsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetForecastBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetForecastBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetForecastRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetForecastResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetRiskRates(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetRiskRates',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.RiskRatesRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.RiskRatesResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def GetInsiderDeals(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/GetInsiderDeals',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetInsiderDealsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.GetInsiderDealsResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def StructuredNoteBy(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/StructuredNoteBy',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.StructuredNoteResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||
|
||
@staticmethod
|
||
def StructuredNotes(request,
|
||
target,
|
||
options=(),
|
||
channel_credentials=None,
|
||
call_credentials=None,
|
||
insecure=False,
|
||
compression=None,
|
||
wait_for_ready=None,
|
||
timeout=None,
|
||
metadata=None):
|
||
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.InstrumentsService/StructuredNotes',
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.InstrumentsRequest.SerializeToString,
|
||
t__tech_dot_invest_dot_grpc_dot_instruments__pb2.StructuredNotesResponse.FromString,
|
||
options, channel_credentials,
|
||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|