pub struct VirtualPortfolioPosition {
pub position_uid: String,
pub instrument_uid: String,
pub figi: String,
pub instrument_type: String,
pub quantity: Option<Quotation>,
pub average_position_price: Option<MoneyValue>,
pub expected_yield: Option<Quotation>,
pub expected_yield_fifo: Option<Quotation>,
pub expire_date: Option<Timestamp>,
pub current_price: Option<MoneyValue>,
pub average_position_price_fifo: Option<MoneyValue>,
}
Fields§
§position_uid: String
Уникальный идентификатор позиции.
instrument_uid: String
Уникальный идентификатор инструмента.
figi: String
FIGI-идентификатор инструмента.
instrument_type: String
Тип инструмента.
quantity: Option<Quotation>
Количество инструмента в портфеле в штуках.
average_position_price: Option<MoneyValue>
Средневзвешенная цена позиции. Для пересчёта возможна задержка до одной секунды.
expected_yield: Option<Quotation>
Текущая рассчитанная доходность позиции.
expected_yield_fifo: Option<Quotation>
Текущая рассчитанная доходность позиции.
expire_date: Option<Timestamp>
Дата, до которой нужно продать виртуальные бумаги. После этой даты виртуальная позиция «сгораетт».
current_price: Option<MoneyValue>
Текущая цена за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента.
average_position_price_fifo: Option<MoneyValue>
Средняя цена позиции по методу FIFO. Для пересчёта возможна задержка до одной секунды.
Trait Implementations§
source§impl Clone for VirtualPortfolioPosition
impl Clone for VirtualPortfolioPosition
source§fn clone(&self) -> VirtualPortfolioPosition
fn clone(&self) -> VirtualPortfolioPosition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VirtualPortfolioPosition
impl Debug for VirtualPortfolioPosition
source§impl Default for VirtualPortfolioPosition
impl Default for VirtualPortfolioPosition
source§impl Message for VirtualPortfolioPosition
impl Message for VirtualPortfolioPosition
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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,
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,
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,
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,
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,
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 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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for VirtualPortfolioPosition
impl PartialEq for VirtualPortfolioPosition
impl StructuralPartialEq for VirtualPortfolioPosition
Auto Trait Implementations§
impl Freeze for VirtualPortfolioPosition
impl RefUnwindSafe for VirtualPortfolioPosition
impl Send for VirtualPortfolioPosition
impl Sync for VirtualPortfolioPosition
impl Unpin for VirtualPortfolioPosition
impl UnwindSafe for VirtualPortfolioPosition
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request