InstrumentsServiceClient

Struct InstrumentsServiceClient 

Source
pub struct InstrumentsServiceClient<T> { /* private fields */ }

Implementations§

Source§

impl InstrumentsServiceClient<Channel>

Source

pub async fn connect<D>(dst: D) -> Result<Self, Error>
where D: TryInto<Endpoint>, D::Error: Into<StdError>,

Attempt to create a new client by connecting to a given endpoint.

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,

Source

pub fn new(inner: T) -> Self

Source

pub fn with_origin(inner: T, origin: Uri) -> Self

Source

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,

Source

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.

Source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

Source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

Source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

Source

pub async fn trading_schedules( &mut self, request: impl IntoRequest<TradingSchedulesRequest>, ) -> Result<Response<TradingSchedulesResponse>, Status>

Получить расписания торгов торговых площадок

Source

pub async fn bond_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<BondResponse>, Status>

Получить облигации по ее идентификатору

Source

pub async fn bonds( &mut self, request: impl IntoRequest<InstrumentsRequest>, ) -> Result<Response<BondsResponse>, Status>

Получить список облигаций

Source

pub async fn get_bond_coupons( &mut self, request: impl IntoRequest<GetBondCouponsRequest>, ) -> Result<Response<GetBondCouponsResponse>, Status>

Получить график выплат купонов по облигации

Source

pub async fn get_bond_events( &mut self, request: impl IntoRequest<GetBondEventsRequest>, ) -> Result<Response<GetBondEventsResponse>, Status>

Получить события по облигации

Source

pub async fn currency_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<CurrencyResponse>, Status>

Получить валюту по ее идентификатору

Source

pub async fn currencies( &mut self, request: impl IntoRequest<InstrumentsRequest>, ) -> Result<Response<CurrenciesResponse>, Status>

Получить список валют

Source

pub async fn etf_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<EtfResponse>, Status>

Получить инвестиционный фонд по его идентификатору

Source

pub async fn etfs( &mut self, request: impl IntoRequest<InstrumentsRequest>, ) -> Result<Response<EtfsResponse>, Status>

Получить список инвестиционных фондов

Source

pub async fn future_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<FutureResponse>, Status>

Получить фьючерс по его идентификатору

Source

pub async fn futures( &mut self, request: impl IntoRequest<InstrumentsRequest>, ) -> Result<Response<FuturesResponse>, Status>

Получить список фьючерсов

Source

pub async fn option_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<OptionResponse>, Status>

Получить опцион по его идентификатору

Source

pub async fn options( &mut self, request: impl IntoRequest<InstrumentsRequest>, ) -> Result<Response<OptionsResponse>, Status>

👎Deprecated

Deprecated Получить список опционов

Source

pub async fn options_by( &mut self, request: impl IntoRequest<FilterOptionsRequest>, ) -> Result<Response<OptionsResponse>, Status>

Получить список опционов

Source

pub async fn share_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<ShareResponse>, Status>

Получить акцию по ее идентификатору

Source

pub async fn shares( &mut self, request: impl IntoRequest<InstrumentsRequest>, ) -> Result<Response<SharesResponse>, Status>

Получить список акций

Source

pub async fn indicatives( &mut self, request: impl IntoRequest<IndicativesRequest>, ) -> Result<Response<IndicativesResponse>, Status>

Получить индикативные инструменты — индексы, товары и другие

Source

pub async fn get_accrued_interests( &mut self, request: impl IntoRequest<GetAccruedInterestsRequest>, ) -> Result<Response<GetAccruedInterestsResponse>, Status>

Получить накопленный купонный доход по облигации

Source

pub async fn get_futures_margin( &mut self, request: impl IntoRequest<GetFuturesMarginRequest>, ) -> Result<Response<GetFuturesMarginResponse>, Status>

Получить размера гарантийного обеспечения по фьючерсам

Source

pub async fn get_instrument_by( &mut self, request: impl IntoRequest<InstrumentRequest>, ) -> Result<Response<InstrumentResponse>, Status>

Получить основную информацию об инструменте

Source

pub async fn get_dividends( &mut self, request: impl IntoRequest<GetDividendsRequest>, ) -> Result<Response<GetDividendsResponse>, Status>

Получить события выплаты дивидендов по инструменту

Source

pub async fn get_asset_by( &mut self, request: impl IntoRequest<AssetRequest>, ) -> Result<Response<AssetResponse>, Status>

Получить актив по его идентификатору

Source

pub async fn get_assets( &mut self, request: impl IntoRequest<AssetsRequest>, ) -> Result<Response<AssetsResponse>, Status>

Получить список активов. Метод работает для всех инструментов, кроме срочных — фьючерсов и опционов

Source

pub async fn get_favorites( &mut self, request: impl IntoRequest<GetFavoritesRequest>, ) -> Result<Response<GetFavoritesResponse>, Status>

Получить список избранных инструментов

Source

pub async fn edit_favorites( &mut self, request: impl IntoRequest<EditFavoritesRequest>, ) -> Result<Response<EditFavoritesResponse>, Status>

Отредактировать список избранных инструментов

Source

pub async fn create_favorite_group( &mut self, request: impl IntoRequest<CreateFavoriteGroupRequest>, ) -> Result<Response<CreateFavoriteGroupResponse>, Status>

Создать новую группу избранных инструментов

Source

pub async fn delete_favorite_group( &mut self, request: impl IntoRequest<DeleteFavoriteGroupRequest>, ) -> Result<Response<DeleteFavoriteGroupResponse>, Status>

Удалить группу избранных инструментов

Source

pub async fn get_favorite_groups( &mut self, request: impl IntoRequest<GetFavoriteGroupsRequest>, ) -> Result<Response<GetFavoriteGroupsResponse>, Status>

Получить список групп избранных инструментов

Source

pub async fn get_countries( &mut self, request: impl IntoRequest<GetCountriesRequest>, ) -> Result<Response<GetCountriesResponse>, Status>

Получить список стран

Source

pub async fn find_instrument( &mut self, request: impl IntoRequest<FindInstrumentRequest>, ) -> Result<Response<FindInstrumentResponse>, Status>

Найти инструмент

Source

pub async fn get_brands( &mut self, request: impl IntoRequest<GetBrandsRequest>, ) -> Result<Response<GetBrandsResponse>, Status>

Получить список брендов

Source

pub async fn get_brand_by( &mut self, request: impl IntoRequest<GetBrandRequest>, ) -> Result<Response<Brand>, Status>

Получить бренд по его идентификатору

Source

pub async fn get_asset_fundamentals( &mut self, request: impl IntoRequest<GetAssetFundamentalsRequest>, ) -> Result<Response<GetAssetFundamentalsResponse>, Status>

Получить фундаментальные показатели по активу

Source

pub async fn get_asset_reports( &mut self, request: impl IntoRequest<GetAssetReportsRequest>, ) -> Result<Response<GetAssetReportsResponse>, Status>

Получить расписания выхода отчетностей эмитентов

Source

pub async fn get_consensus_forecasts( &mut self, request: impl IntoRequest<GetConsensusForecastsRequest>, ) -> Result<Response<GetConsensusForecastsResponse>, Status>

Получить мнения аналитиков по инструменту

Source

pub async fn get_forecast_by( &mut self, request: impl IntoRequest<GetForecastRequest>, ) -> Result<Response<GetForecastResponse>, Status>

Получить прогнозов инвестдомов по инструменту

Source

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>

Source§

fn clone(&self) -> InstrumentsServiceClient<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for InstrumentsServiceClient<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more