Skip to main content

StructuredNote

Struct StructuredNote 

Source
pub struct StructuredNote {
Show 53 fields pub uid: String, pub figi: String, pub ticker: String, pub class_code: String, pub isin: String, pub name: String, pub asset_uid: String, pub position_uid: String, pub min_price_increment: Option<Quotation>, pub lot: i32, pub nominal: Option<MoneyValue>, pub currency: String, pub maturity_date: Option<Timestamp>, pub placement_date: Option<Timestamp>, pub issue_kind: String, pub issue_size: i32, pub issue_size_plan: i32, pub dlong_client: Option<Quotation>, pub dshort_client: Option<Quotation>, pub short_enabled_flag: bool, pub exchange: String, pub trading_status: i32, pub api_trade_available_flag: bool, pub buy_available_flag: bool, pub sell_available_flag: bool, pub limit_order_available_flag: bool, pub market_order_available_flag: bool, pub bestprice_order_available_flag: bool, pub weekend_flag: bool, pub liquidity_flag: bool, pub for_iis_flag: bool, pub for_qual_investor_flag: bool, pub pawnshop_list_flag: bool, pub real_exchange: i32, pub first_1min_candle_date: Option<Timestamp>, pub first_1day_candle_date: Option<Timestamp>, pub borrow_name: String, pub type: String, pub logic_portfolio: i32, pub asset_type: i32, pub basic_assets: Vec<BasicAsset>, pub safety_barrier: Option<Quotation>, pub coupon_period_base: String, pub observation_principle: i32, pub observation_frequency: String, pub initial_price_fixing_date: Option<Timestamp>, pub yield: Vec<Yield>, pub coupon_saving_flag: bool, pub sector: String, pub country_of_risk: String, pub country_of_risk_name: String, pub logo_name: String, pub required_tests: Vec<String>,
}
Expand description

Объект передачи информации о структурной ноте.

Fields§

§uid: String

Уникальный идентификатор инструмента.

§figi: String

FIGI-идентификатор инструмента.

§ticker: String

Тикер инструмента.

§class_code: String

Класс-код (секция торгов).

§isin: String

ISIN-идентификатор инструмента.

§name: String

Название инструмента.

§asset_uid: String

Уникальный идентификатор актива.

§position_uid: String

Уникальный идентификатор позиции.

§min_price_increment: Option<Quotation>

Шаг цены.

§lot: i32

Лотность инструмента.

§nominal: Option<MoneyValue>

Номинал.

§currency: String

Валюта расчетов.

§maturity_date: Option<Timestamp>

Дата погашения облигации в формате UTC.

§placement_date: Option<Timestamp>

Дата размещения в формате UTC.

§issue_kind: String

Форма выпуска.

§issue_size: i32

Размер выпуска.

§issue_size_plan: i32

Плановый размер выпуска.

§dlong_client: Option<Quotation>

Ставка риска клиента по инструменту лонг.

§dshort_client: Option<Quotation>

Ставка риска клиента по инструменту шорт.

§short_enabled_flag: bool

Признак доступности для операций в шорт.

§exchange: String

Торговая площадка (секция биржи).

§trading_status: i32

Текущий режим торгов инструмента.

§api_trade_available_flag: bool

Признак доступности торгов по бумаге через API.

§buy_available_flag: bool

Признак доступности для покупки.

§sell_available_flag: bool

Признак доступности для продажи.

§limit_order_available_flag: bool

Признак доступности выставления лимитной заявки по инструменту.

§market_order_available_flag: bool

Признак доступности выставления рыночной заявки по инструменту.

§bestprice_order_available_flag: bool

Признак доступности выставления bestprice заявки по инструменту.

§weekend_flag: bool

Флаг отображающий доступность торговли инструментом по выходным.

§liquidity_flag: bool

Флаг достаточной ликвидности.

§for_iis_flag: bool

Возможность покупки/продажи на ИИС.

§for_qual_investor_flag: bool

Флаг отображающий доступность торговли инструментом только для квалифицированных инвесторов.

§pawnshop_list_flag: bool

Признак ФИ, включенного в ломбардный список.

§real_exchange: i32

Реальная площадка исполнения расчётов.

§first_1min_candle_date: Option<Timestamp>

Дата первой минутной свечи.

§first_1day_candle_date: Option<Timestamp>

Дата первой дневной свечи.

§borrow_name: String

Название заемщика.

§type: String

Тип структурной ноты.

§logic_portfolio: i32

Стратегия портфеля.

§asset_type: i32

Тип базового актива.

§basic_assets: Vec<BasicAsset>

Базовые активы, входящие в ноту.

§safety_barrier: Option<Quotation>

Барьер сохранности (в процентах).

§coupon_period_base: String

Базис расчета НКД.

§observation_principle: i32

Принцип наблюдений.

§observation_frequency: String

Частота наблюдений.

§initial_price_fixing_date: Option<Timestamp>

Дата фиксации цен базовых активов.

§yield: Vec<Yield>

Доходность по ноте в годовом выражении.

§coupon_saving_flag: bool

Признак сохранения купонов.

§sector: String

Сектор экономики.

§country_of_risk: String

Код страны рисков.

§country_of_risk_name: String

Наименование страны рисков.

§logo_name: String

Имя файла логотипа эмитента.

§required_tests: Vec<String>

Тесты, которые необходимо пройти клиенту, чтобы совершать покупки по бумаге.

Implementations§

Source§

impl StructuredNote

Source

pub fn trading_status(&self) -> SecurityTradingStatus

Returns the enum value of trading_status, or the default if the field is set to an invalid enum value.

Source

pub fn set_trading_status(&mut self, value: SecurityTradingStatus)

Sets trading_status to the provided enum value.

Source

pub fn real_exchange(&self) -> RealExchange

Returns the enum value of real_exchange, or the default if the field is set to an invalid enum value.

Source

pub fn set_real_exchange(&mut self, value: RealExchange)

Sets real_exchange to the provided enum value.

Source

pub fn logic_portfolio(&self) -> LogicPortfolio

Returns the enum value of logic_portfolio, or the default if the field is set to an invalid enum value.

Source

pub fn set_logic_portfolio(&mut self, value: LogicPortfolio)

Sets logic_portfolio to the provided enum value.

Source

pub fn asset_type(&self) -> AssetType

Returns the enum value of asset_type, or the default if the field is set to an invalid enum value.

Source

pub fn set_asset_type(&mut self, value: AssetType)

Sets asset_type to the provided enum value.

Source

pub fn observation_principle(&self) -> ObservationPrinciple

Returns the enum value of observation_principle, or the default if the field is set to an invalid enum value.

Source

pub fn set_observation_principle(&mut self, value: ObservationPrinciple)

Sets observation_principle to the provided enum value.

Trait Implementations§

Source§

impl Clone for StructuredNote

Source§

fn clone(&self) -> StructuredNote

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 Debug for StructuredNote

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for StructuredNote

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Message for StructuredNote

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for StructuredNote

Source§

fn eq(&self, other: &StructuredNote) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for StructuredNote

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<L> LayerExt<L> for L

Source§

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.
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