pub struct Instrument {Show 39 fields
pub figi: String,
pub ticker: String,
pub class_code: String,
pub isin: String,
pub lot: i32,
pub currency: String,
pub klong: Option<Quotation>,
pub kshort: Option<Quotation>,
pub dlong: Option<Quotation>,
pub dshort: Option<Quotation>,
pub dlong_min: Option<Quotation>,
pub dshort_min: Option<Quotation>,
pub short_enabled_flag: bool,
pub name: String,
pub exchange: String,
pub country_of_risk: String,
pub country_of_risk_name: String,
pub instrument_type: String,
pub trading_status: i32,
pub otc_flag: bool,
pub buy_available_flag: bool,
pub sell_available_flag: bool,
pub min_price_increment: Option<Quotation>,
pub api_trade_available_flag: bool,
pub uid: String,
pub real_exchange: i32,
pub position_uid: String,
pub asset_uid: String,
pub required_tests: Vec<String>,
pub for_iis_flag: bool,
pub for_qual_investor_flag: bool,
pub weekend_flag: bool,
pub blocked_tca_flag: bool,
pub instrument_kind: i32,
pub first_1min_candle_date: Option<Timestamp>,
pub first_1day_candle_date: Option<Timestamp>,
pub brand: Option<BrandData>,
pub dlong_client: Option<Quotation>,
pub dshort_client: Option<Quotation>,
}Expand description
Объект передачи основной информации об инструменте.
Fields§
§figi: StringFIGI-идентификатор инструмента.
ticker: StringТикер инструмента.
class_code: StringКласс-код инструмента.
isin: StringISIN-идентификатор инструмента.
lot: i32Лотность инструмента. Возможно совершение операций только на количества ценной бумаги, кратные параметру lot. Подробнее.
currency: StringВалюта расчетов.
klong: Option<Quotation>Коэффициент ставки риска длинной позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР); 1 – клиент с повышенным уровнем риска (КПУР).
kshort: Option<Quotation>Коэффициент ставки риска короткой позиции по клиенту. 2 – клиент со стандартным уровнем риска (КСУР); 1 – клиент с повышенным уровнем риска (КПУР).
dlong: Option<Quotation>Ставка риска начальной маржи для КСУР лонг. Подробнее про ставки риска.
dshort: Option<Quotation>Ставка риска начальной маржи для КСУР шорт. Подробнее про ставки риска.
dlong_min: Option<Quotation>Ставка риска начальной маржи для КПУР лонг. Подробнее про ставки риска.
dshort_min: Option<Quotation>Ставка риска начальной маржи для КПУР шорт. Подробнее про ставки риска.
short_enabled_flag: boolПризнак доступности для операций в шорт.
name: StringНазвание инструмента.
exchange: StringTорговая площадка (секция биржи).
country_of_risk: StringКод страны риска — то есть страны, в которой компания ведет основной бизнес.
country_of_risk_name: StringНаименование страны риска — то есть страны, в которой компания ведет основной бизнес.
instrument_type: StringТип инструмента.
trading_status: i32Текущий режим торгов инструмента.
otc_flag: boolФлаг, используемый ранее для определения внебиржевых инструментов. На данный момент не используется для торгуемых через API инструментов. Может использоваться как фильтр для операций, совершавшихся некоторое время назад на ОТС площадке.
buy_available_flag: boolПризнак доступности для покупки.
sell_available_flag: boolПризнак доступности для продажи.
min_price_increment: Option<Quotation>Шаг цены.
api_trade_available_flag: boolПараметр указывает на возможность торговать инструментом через API.
uid: StringУникальный идентификатор инструмента.
real_exchange: i32Реальная площадка исполнения расчетов (биржа).
position_uid: StringУникальный идентификатор позиции инструмента.
asset_uid: StringУникальный идентификатор актива.
required_tests: Vec<String>Тесты, которые необходимо пройти клиенту, чтобы совершать сделки по инструменту.
for_iis_flag: boolПризнак доступности для ИИС.
for_qual_investor_flag: boolФлаг, отображающий доступность торговли инструментом только для квалифицированных инвесторов.
weekend_flag: boolФлаг, отображающий доступность торговли инструментом по выходным.
blocked_tca_flag: boolФлаг заблокированного ТКС.
instrument_kind: i32Тип инструмента.
first_1min_candle_date: Option<Timestamp>Дата первой минутной свечи.
first_1day_candle_date: Option<Timestamp>Дата первой дневной свечи.
brand: Option<BrandData>Информация о бренде.
dlong_client: Option<Quotation>Ставка риска в лонг с учетом текущего уровня риска портфеля клиента. Подробнее про ставки риска.
dshort_client: Option<Quotation>Ставка риска в шорт с учетом текущего уровня риска портфеля клиента. Подробнее про ставки риска.
Implementations§
Source§impl Instrument
impl Instrument
Sourcepub fn trading_status(&self) -> SecurityTradingStatus
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.
Sourcepub fn set_trading_status(&mut self, value: SecurityTradingStatus)
pub fn set_trading_status(&mut self, value: SecurityTradingStatus)
Sets trading_status to the provided enum value.
Sourcepub fn real_exchange(&self) -> RealExchange
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.
Sourcepub fn set_real_exchange(&mut self, value: RealExchange)
pub fn set_real_exchange(&mut self, value: RealExchange)
Sets real_exchange to the provided enum value.
Sourcepub fn instrument_kind(&self) -> InstrumentType
pub fn instrument_kind(&self) -> InstrumentType
Returns the enum value of instrument_kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_instrument_kind(&mut self, value: InstrumentType)
pub fn set_instrument_kind(&mut self, value: InstrumentType)
Sets instrument_kind to the provided enum value.
Trait Implementations§
Source§impl Clone for Instrument
impl Clone for Instrument
Source§fn clone(&self) -> Instrument
fn clone(&self) -> Instrument
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Instrument
impl Debug for Instrument
Source§impl Default for Instrument
impl Default for Instrument
impl Eq for Instrument
Source§impl Hash for Instrument
impl Hash for Instrument
Source§impl Message for Instrument
impl Message for Instrument
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for Instrument
impl PartialEq for Instrument
Source§fn eq(&self, other: &Instrument) -> bool
fn eq(&self, other: &Instrument) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Instrument
Auto Trait Implementations§
impl Freeze for Instrument
impl RefUnwindSafe for Instrument
impl Send for Instrument
impl Sync for Instrument
impl Unpin for Instrument
impl UnsafeUnpin for Instrument
impl UnwindSafe for Instrument
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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].