pub struct InstrumentsServiceClient<T> { /* private fields */ }Implementations§
Source§impl InstrumentsServiceClient<Channel>
impl InstrumentsServiceClient<Channel>
Source§impl<T> InstrumentsServiceClient<T>
impl<T> InstrumentsServiceClient<T>
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> InstrumentsServiceClient<InterceptedService<T, F>>
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn trading_schedules(
&mut self,
request: impl IntoRequest<TradingSchedulesRequest>,
) -> Result<Response<TradingSchedulesResponse>, Status>
pub async fn trading_schedules( &mut self, request: impl IntoRequest<TradingSchedulesRequest>, ) -> Result<Response<TradingSchedulesResponse>, Status>
TradingSchedules — расписания торговых площадок
Sourcepub async fn bond_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>,
) -> Result<Response<BondResponse>, Status>
pub async fn bond_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<BondResponse>, Status>
BondBy — получить облигацию по ее идентификатору
Sourcepub async fn bonds(
&mut self,
request: impl IntoRequest<InstrumentsRequest>,
) -> Result<Response<BondsResponse>, Status>
pub async fn bonds( &mut self, request: impl IntoRequest<InstrumentsRequest>, ) -> Result<Response<BondsResponse>, Status>
Bonds — список облигаций
Sourcepub async fn get_bond_coupons(
&mut self,
request: impl IntoRequest<GetBondCouponsRequest>,
) -> Result<Response<GetBondCouponsResponse>, Status>
pub async fn get_bond_coupons( &mut self, request: impl IntoRequest<GetBondCouponsRequest>, ) -> Result<Response<GetBondCouponsResponse>, Status>
GetBondCoupons — график выплат купонов по облигации
Sourcepub async fn get_bond_events(
&mut self,
request: impl IntoRequest<GetBondEventsRequest>,
) -> Result<Response<GetBondEventsResponse>, Status>
pub async fn get_bond_events( &mut self, request: impl IntoRequest<GetBondEventsRequest>, ) -> Result<Response<GetBondEventsResponse>, Status>
GetBondEvents — события по облигации
Sourcepub async fn currency_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>,
) -> Result<Response<CurrencyResponse>, Status>
pub async fn currency_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<CurrencyResponse>, Status>
CurrencyBy — получить валюту по ее идентификатору
Sourcepub async fn currencies(
&mut self,
request: impl IntoRequest<InstrumentsRequest>,
) -> Result<Response<CurrenciesResponse>, Status>
pub async fn currencies( &mut self, request: impl IntoRequest<InstrumentsRequest>, ) -> Result<Response<CurrenciesResponse>, Status>
Currencies — список валют
Sourcepub async fn etf_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>,
) -> Result<Response<EtfResponse>, Status>
pub async fn etf_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<EtfResponse>, Status>
EtfBy — получить инвестиционный фонд по его идентификатору
Sourcepub async fn etfs(
&mut self,
request: impl IntoRequest<InstrumentsRequest>,
) -> Result<Response<EtfsResponse>, Status>
pub async fn etfs( &mut self, request: impl IntoRequest<InstrumentsRequest>, ) -> Result<Response<EtfsResponse>, Status>
Etfs — список инвестиционных фондов
Sourcepub async fn future_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>,
) -> Result<Response<FutureResponse>, Status>
pub async fn future_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<FutureResponse>, Status>
FutureBy — получить фьючерс по его идентификатору
Sourcepub async fn futures(
&mut self,
request: impl IntoRequest<InstrumentsRequest>,
) -> Result<Response<FuturesResponse>, Status>
pub async fn futures( &mut self, request: impl IntoRequest<InstrumentsRequest>, ) -> Result<Response<FuturesResponse>, Status>
Futures — список фьючерсов
Sourcepub async fn option_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>,
) -> Result<Response<OptionResponse>, Status>
pub async fn option_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<OptionResponse>, Status>
OptionBy — получить опцион по его идентификатору
Sourcepub async fn options(
&mut self,
request: impl IntoRequest<InstrumentsRequest>,
) -> Result<Response<OptionsResponse>, Status>
👎Deprecated
pub async fn options( &mut self, request: impl IntoRequest<InstrumentsRequest>, ) -> Result<Response<OptionsResponse>, Status>
Deprecated Options — список опционов
Sourcepub async fn options_by(
&mut self,
request: impl IntoRequest<FilterOptionsRequest>,
) -> Result<Response<OptionsResponse>, Status>
pub async fn options_by( &mut self, request: impl IntoRequest<FilterOptionsRequest>, ) -> Result<Response<OptionsResponse>, Status>
OptionsBy — список опционов
ShareBy — получить акцию по ее идентификатору
Shares — список акций
Sourcepub async fn indicatives(
&mut self,
request: impl IntoRequest<IndicativesRequest>,
) -> Result<Response<IndicativesResponse>, Status>
pub async fn indicatives( &mut self, request: impl IntoRequest<IndicativesRequest>, ) -> Result<Response<IndicativesResponse>, Status>
Indicatives — индикативные инструменты — индексы, товары и другие
Sourcepub async fn get_accrued_interests(
&mut self,
request: impl IntoRequest<GetAccruedInterestsRequest>,
) -> Result<Response<GetAccruedInterestsResponse>, Status>
pub async fn get_accrued_interests( &mut self, request: impl IntoRequest<GetAccruedInterestsRequest>, ) -> Result<Response<GetAccruedInterestsResponse>, Status>
GetAccruedInterests — накопленный купонный доход по облигации
Sourcepub async fn get_futures_margin(
&mut self,
request: impl IntoRequest<GetFuturesMarginRequest>,
) -> Result<Response<GetFuturesMarginResponse>, Status>
pub async fn get_futures_margin( &mut self, request: impl IntoRequest<GetFuturesMarginRequest>, ) -> Result<Response<GetFuturesMarginResponse>, Status>
GetFuturesMargin — размера гарантийного обеспечения по фьючерсам
Sourcepub async fn get_instrument_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>,
) -> Result<Response<InstrumentResponse>, Status>
pub async fn get_instrument_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<InstrumentResponse>, Status>
GetInstrumentBy — основная информация об инструменте
Sourcepub async fn get_dividends(
&mut self,
request: impl IntoRequest<GetDividendsRequest>,
) -> Result<Response<GetDividendsResponse>, Status>
pub async fn get_dividends( &mut self, request: impl IntoRequest<GetDividendsRequest>, ) -> Result<Response<GetDividendsResponse>, Status>
GetDividends — события выплаты дивидендов по инструменту
Sourcepub async fn get_asset_by(
&mut self,
request: impl IntoRequest<AssetRequest>,
) -> Result<Response<AssetResponse>, Status>
pub async fn get_asset_by( &mut self, request: impl IntoRequest<AssetRequest>, ) -> Result<Response<AssetResponse>, Status>
GetAssetBy — получить актив по его идентификатору
Sourcepub async fn get_assets(
&mut self,
request: impl IntoRequest<AssetsRequest>,
) -> Result<Response<AssetsResponse>, Status>
pub async fn get_assets( &mut self, request: impl IntoRequest<AssetsRequest>, ) -> Result<Response<AssetsResponse>, Status>
GetAssets — список активов Метод работает для всех инструментов, кроме срочных — фьючерсов и опционов
Sourcepub async fn get_favorites(
&mut self,
request: impl IntoRequest<GetFavoritesRequest>,
) -> Result<Response<GetFavoritesResponse>, Status>
pub async fn get_favorites( &mut self, request: impl IntoRequest<GetFavoritesRequest>, ) -> Result<Response<GetFavoritesResponse>, Status>
GetFavorites — получить список избранных инструментов
Sourcepub async fn edit_favorites(
&mut self,
request: impl IntoRequest<EditFavoritesRequest>,
) -> Result<Response<EditFavoritesResponse>, Status>
pub async fn edit_favorites( &mut self, request: impl IntoRequest<EditFavoritesRequest>, ) -> Result<Response<EditFavoritesResponse>, Status>
EditFavorites — отредактировать список избранных инструментов
Sourcepub async fn create_favorite_group(
&mut self,
request: impl IntoRequest<CreateFavoriteGroupRequest>,
) -> Result<Response<CreateFavoriteGroupResponse>, Status>
pub async fn create_favorite_group( &mut self, request: impl IntoRequest<CreateFavoriteGroupRequest>, ) -> Result<Response<CreateFavoriteGroupResponse>, Status>
CreateFavoriteGroup — создать новую группу избранных инструментов
Sourcepub async fn delete_favorite_group(
&mut self,
request: impl IntoRequest<DeleteFavoriteGroupRequest>,
) -> Result<Response<DeleteFavoriteGroupResponse>, Status>
pub async fn delete_favorite_group( &mut self, request: impl IntoRequest<DeleteFavoriteGroupRequest>, ) -> Result<Response<DeleteFavoriteGroupResponse>, Status>
DeleteFavoriteGroup — удалить группу избранных инструментов
Sourcepub async fn get_favorite_groups(
&mut self,
request: impl IntoRequest<GetFavoriteGroupsRequest>,
) -> Result<Response<GetFavoriteGroupsResponse>, Status>
pub async fn get_favorite_groups( &mut self, request: impl IntoRequest<GetFavoriteGroupsRequest>, ) -> Result<Response<GetFavoriteGroupsResponse>, Status>
GetFavoriteGroups — список групп избранных инструментов
Sourcepub async fn get_countries(
&mut self,
request: impl IntoRequest<GetCountriesRequest>,
) -> Result<Response<GetCountriesResponse>, Status>
pub async fn get_countries( &mut self, request: impl IntoRequest<GetCountriesRequest>, ) -> Result<Response<GetCountriesResponse>, Status>
GetCountries — список стран
Sourcepub async fn find_instrument(
&mut self,
request: impl IntoRequest<FindInstrumentRequest>,
) -> Result<Response<FindInstrumentResponse>, Status>
pub async fn find_instrument( &mut self, request: impl IntoRequest<FindInstrumentRequest>, ) -> Result<Response<FindInstrumentResponse>, Status>
FindInstrument — найти инструмент
Sourcepub async fn get_brands(
&mut self,
request: impl IntoRequest<GetBrandsRequest>,
) -> Result<Response<GetBrandsResponse>, Status>
pub async fn get_brands( &mut self, request: impl IntoRequest<GetBrandsRequest>, ) -> Result<Response<GetBrandsResponse>, Status>
GetBrands — список брендов
Sourcepub async fn get_brand_by(
&mut self,
request: impl IntoRequest<GetBrandRequest>,
) -> Result<Response<Brand>, Status>
pub async fn get_brand_by( &mut self, request: impl IntoRequest<GetBrandRequest>, ) -> Result<Response<Brand>, Status>
GetBrandBy — получить бренд по его идентификатору
Sourcepub async fn get_asset_fundamentals(
&mut self,
request: impl IntoRequest<GetAssetFundamentalsRequest>,
) -> Result<Response<GetAssetFundamentalsResponse>, Status>
pub async fn get_asset_fundamentals( &mut self, request: impl IntoRequest<GetAssetFundamentalsRequest>, ) -> Result<Response<GetAssetFundamentalsResponse>, Status>
GetAssetFundamentals — фундаментальные показатели по активу
Sourcepub async fn get_asset_reports(
&mut self,
request: impl IntoRequest<GetAssetReportsRequest>,
) -> Result<Response<GetAssetReportsResponse>, Status>
pub async fn get_asset_reports( &mut self, request: impl IntoRequest<GetAssetReportsRequest>, ) -> Result<Response<GetAssetReportsResponse>, Status>
GetAssetReports — расписания выхода отчетностей эмитентов
Sourcepub async fn get_consensus_forecasts(
&mut self,
request: impl IntoRequest<GetConsensusForecastsRequest>,
) -> Result<Response<GetConsensusForecastsResponse>, Status>
pub async fn get_consensus_forecasts( &mut self, request: impl IntoRequest<GetConsensusForecastsRequest>, ) -> Result<Response<GetConsensusForecastsResponse>, Status>
GetConsensusForecasts — мнения аналитиков по инструменту
Sourcepub async fn get_forecast_by(
&mut self,
request: impl IntoRequest<GetForecastRequest>,
) -> Result<Response<GetForecastResponse>, Status>
pub async fn get_forecast_by( &mut self, request: impl IntoRequest<GetForecastRequest>, ) -> Result<Response<GetForecastResponse>, Status>
GetForecastBy — прогнозы инвестдомов по инструменту
Sourcepub async fn get_risk_rates(
&mut self,
request: impl IntoRequest<RiskRatesRequest>,
) -> Result<Response<RiskRatesResponse>, Status>
pub async fn get_risk_rates( &mut self, request: impl IntoRequest<RiskRatesRequest>, ) -> Result<Response<RiskRatesResponse>, Status>
GetRiskRates — ставки риска по инструменту
Sourcepub async fn get_insider_deals(
&mut self,
request: impl IntoRequest<GetInsiderDealsRequest>,
) -> Result<Response<GetInsiderDealsResponse>, Status>
pub async fn get_insider_deals( &mut self, request: impl IntoRequest<GetInsiderDealsRequest>, ) -> Result<Response<GetInsiderDealsResponse>, Status>
GetInsiderDeals — сделки инсайдеров по инструментам
Sourcepub async fn structured_note_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>,
) -> Result<Response<StructuredNoteResponse>, Status>
pub async fn structured_note_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<StructuredNoteResponse>, Status>
StructuredNoteBy — получить структурную ноту по ее идентификатору
Sourcepub async fn structured_notes(
&mut self,
request: impl IntoRequest<InstrumentsRequest>,
) -> Result<Response<StructuredNotesResponse>, Status>
pub async fn structured_notes( &mut self, request: impl IntoRequest<InstrumentsRequest>, ) -> Result<Response<StructuredNotesResponse>, Status>
StructuredNotes — список структурных нот
Trait Implementations§
Source§impl<T: Clone> Clone for InstrumentsServiceClient<T>
impl<T: Clone> Clone for InstrumentsServiceClient<T>
Source§fn clone(&self) -> InstrumentsServiceClient<T>
fn clone(&self) -> InstrumentsServiceClient<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for InstrumentsServiceClient<T>
impl<T> RefUnwindSafe for InstrumentsServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for InstrumentsServiceClient<T>where
T: Send,
impl<T> Sync for InstrumentsServiceClient<T>where
T: Sync,
impl<T> Unpin for InstrumentsServiceClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for InstrumentsServiceClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for InstrumentsServiceClient<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].