Skip to main content

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<Body>, 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<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>, <T as Service<Request<Body>>>::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>

TradingSchedules — расписания торговых площадок

Source

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

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

Source

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

Bonds — список облигаций

Source

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

GetBondCoupons — график выплат купонов по облигации

Source

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

GetBondEvents — события по облигации

Source

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

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

Source

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

Currencies — список валют

Source

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

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

Source

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

Etfs — список инвестиционных фондов

Source

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

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

Source

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

Futures — список фьючерсов

Source

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

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

Source

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

👎Deprecated

Deprecated Options — список опционов

Source

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

OptionsBy — список опционов

Source

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

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

Source

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

Shares — список акций

Source

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

Indicatives — индикативные инструменты — индексы, товары и другие

Source

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

GetAccruedInterests — накопленный купонный доход по облигации

Source

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

GetFuturesMargin — размера гарантийного обеспечения по фьючерсам

Source

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

GetInstrumentBy — основная информация об инструменте

Source

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

GetDividends — события выплаты дивидендов по инструменту

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

GetFavoriteGroups — список групп избранных инструментов

Source

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

GetCountries — список стран

Source

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

FindInstrument — найти инструмент

Source

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

GetBrands — список брендов

Source

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

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

Source

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

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

Source

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

GetAssetReports — расписания выхода отчетностей эмитентов

Source

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

GetConsensusForecasts — мнения аналитиков по инструменту

Source

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

GetForecastBy — прогнозы инвестдомов по инструменту

Source

pub async fn get_risk_rates( &mut self, request: impl IntoRequest<RiskRatesRequest>, ) -> Result<Response<RiskRatesResponse>, Status>

GetRiskRates — ставки риска по инструменту

Source

pub async fn get_insider_deals( &mut self, request: impl IntoRequest<GetInsiderDealsRequest>, ) -> Result<Response<GetInsiderDealsResponse>, Status>

GetInsiderDeals — сделки инсайдеров по инструментам

Source

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

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

Source

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>

Source§

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

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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.

§

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

§

fn from_ref(input: &T) -> T

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

impl<T> Instrument for T

§

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

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

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.

§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

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

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
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.
§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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