pub struct InstrumentsServiceClient<T> { /* private fields */ }Implementations§
Source§impl<T> InstrumentsServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> InstrumentsServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
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>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
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>
Получить расписания торгов торговых площадок
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>
Получить облигации по ее идентификатору
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>
Получить список облигаций
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>
Получить график выплат купонов по облигации
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>
Получить события по облигации
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>
Получить валюту по ее идентификатору
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>
Получить список валют
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>
Получить инвестиционный фонд по его идентификатору
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>
Получить список инвестиционных фондов
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>
Получить фьючерс по его идентификатору
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>
Получить список фьючерсов
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>
Получить опцион по его идентификатору
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 Получить список опционов
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>
Получить список опционов
Получить акцию по ее идентификатору
Получить список акций
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>
Получить индикативные инструменты — индексы, товары и другие
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>
Получить накопленный купонный доход по облигации
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>
Получить размера гарантийного обеспечения по фьючерсам
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>
Получить основную информацию об инструменте
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>
Получить события выплаты дивидендов по инструменту
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>
Получить актив по его идентификатору
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>
Получить список активов. Метод работает для всех инструментов, кроме срочных — фьючерсов и опционов
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>
Получить список избранных инструментов
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>
Отредактировать список избранных инструментов
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>
Создать новую группу избранных инструментов
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>
Удалить группу избранных инструментов
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>
Получить список групп избранных инструментов
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>
Получить список стран
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>
Найти инструмент
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>
Получить список брендов
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>
Получить бренд по его идентификатору
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>
Получить фундаментальные показатели по активу
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>
Получить расписания выхода отчетностей эмитентов
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>
Получить мнения аналитиков по инструменту
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>
Получить прогнозов инвестдомов по инструменту
pub async fn get_risk_rates( &mut self, request: impl IntoRequest<RiskRatesRequest>, ) -> Result<Response<RiskRatesResponse>, Status>
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 · 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> 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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request