Struct tinkoff_invest_types::PortfolioPosition
source · pub struct PortfolioPosition {Show 16 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>,
}
Expand description
Позиции портфеля.
Fields§
§figi: String
Figi-идентификатора инструмента.
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
position_uid-идентификатора инструмента
instrument_uid: String
instrument_uid-идентификатора инструмента
var_margin: Option<MoneyValue>
Вариационная маржа
expected_yield_fifo: Option<Quotation>
Текущая рассчитанная доходность позиции.
Trait Implementations§
source§impl Clone for PortfolioPosition
impl Clone for PortfolioPosition
source§fn clone(&self) -> PortfolioPosition
fn clone(&self) -> PortfolioPosition
1.0.0 · 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
source§impl Message for PortfolioPosition
impl Message for PortfolioPosition
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
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 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> 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>
T
in a tonic::Request