pub struct PortfolioPosition {Show 19 fields
pub figi: String,
pub instrument_type: String,
pub quantity: Option<Quotation>,
pub average_position_price: Option<MoneyValue>,
pub expected_yield: Option<Quotation>,
pub current_nkd: Option<MoneyValue>,
pub average_position_price_pt: Option<Quotation>,
pub current_price: Option<MoneyValue>,
pub average_position_price_fifo: Option<MoneyValue>,
pub quantity_lots: Option<Quotation>,
pub blocked: bool,
pub blocked_lots: Option<Quotation>,
pub position_uid: String,
pub instrument_uid: String,
pub var_margin: Option<MoneyValue>,
pub expected_yield_fifo: Option<Quotation>,
pub daily_yield: Option<MoneyValue>,
pub ticker: String,
pub class_code: String,
}Expand description
Позиции портфеля.
Fields§
§figi: StringFIGI-идентификатор инструмента.
instrument_type: StringТип инструмента.
quantity: Option<Quotation>Количество инструмента в портфеле в штуках.
average_position_price: Option<MoneyValue>Средневзвешенная цена позиции. Для пересчета возможна задержка до одной секунды.
expected_yield: Option<Quotation>Текущая рассчитанная доходность позиции.
current_nkd: Option<MoneyValue>Текущий НКД.
average_position_price_pt: Option<Quotation>Deprecated Средняя цена позиции в пунктах (для фьючерсов). Для пересчета возможна задержка до одной секунды.
current_price: Option<MoneyValue>Текущая цена за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента.
average_position_price_fifo: Option<MoneyValue>Средняя цена позиции по методу FIFO. Для пересчета возможна задержка до одной секунды.
quantity_lots: Option<Quotation>Deprecated Количество лотов в портфеле.
blocked: boolЗаблокировано на бирже.
blocked_lots: Option<Quotation>Количество бумаг, заблокированных выставленными заявками.
position_uid: StringУникальный идентификатор позиции.
instrument_uid: StringУникальный идентификатор инструмента.
var_margin: Option<MoneyValue>Вариационная маржа.
expected_yield_fifo: Option<Quotation>Текущая рассчитанная доходность позиции.
daily_yield: Option<MoneyValue>Рассчитанная доходность портфеля за день.
ticker: StringТикер инструмента.
class_code: StringКласс-код (секция торгов).
Trait Implementations§
Source§impl Clone for PortfolioPosition
impl Clone for PortfolioPosition
Source§fn clone(&self) -> PortfolioPosition
fn clone(&self) -> PortfolioPosition
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 PortfolioPosition
impl Debug for PortfolioPosition
Source§impl Default for PortfolioPosition
impl Default for PortfolioPosition
impl Eq for PortfolioPosition
Source§impl Hash for PortfolioPosition
impl Hash for PortfolioPosition
Source§impl Message for PortfolioPosition
impl Message for PortfolioPosition
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 PortfolioPosition
impl PartialEq for PortfolioPosition
Source§fn eq(&self, other: &PortfolioPosition) -> bool
fn eq(&self, other: &PortfolioPosition) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PortfolioPosition
Auto Trait Implementations§
impl Freeze for PortfolioPosition
impl RefUnwindSafe for PortfolioPosition
impl Send for PortfolioPosition
impl Sync for PortfolioPosition
impl Unpin for PortfolioPosition
impl UnsafeUnpin for PortfolioPosition
impl UnwindSafe for PortfolioPosition
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].