Struct tinkoff_invest_types::StopOrder
source · pub struct StopOrder {Show 15 fields
pub stop_order_id: String,
pub lots_requested: i64,
pub figi: String,
pub direction: i32,
pub currency: String,
pub order_type: i32,
pub create_date: Option<Timestamp>,
pub activation_date_time: Option<Timestamp>,
pub expiration_time: Option<Timestamp>,
pub price: Option<MoneyValue>,
pub stop_price: Option<MoneyValue>,
pub instrument_uid: String,
pub take_profit_type: i32,
pub trailing_data: Option<TrailingData>,
pub status: i32,
}
Expand description
Информация о стоп-заявке.
Fields§
§stop_order_id: String
Идентификатор-идентификатор стоп-заявки
lots_requested: i64
Запрошено лотов
figi: String
Figi-идентификатор инструмента
direction: i32
Направление операции
currency: String
Валюта стоп-заявки
order_type: i32
Тип стоп-заявки
create_date: Option<Timestamp>
Дата и время выставления заявки в часовом поясе UTC
activation_date_time: Option<Timestamp>
Дата и время конвертации стоп-заявки в биржевую в часовом поясе UTC
expiration_time: Option<Timestamp>
Дата и время снятия заявки в часовом поясе UTC
price: Option<MoneyValue>
Цена заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
stop_price: Option<MoneyValue>
Цена активации стоп-заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
instrument_uid: String
instrument_uid идентификатор инструмента
take_profit_type: i32
Подтип стоп-заявки TakeProfit
trailing_data: Option<TrailingData>
Параметры трейлинг-стопа
status: i32
Статус заявки
Implementations§
source§impl StopOrder
impl StopOrder
sourcepub fn direction(&self) -> StopOrderDirection
pub fn direction(&self) -> StopOrderDirection
Returns the enum value of direction
, or the default if the field is set to an invalid enum value.
sourcepub fn set_direction(&mut self, value: StopOrderDirection)
pub fn set_direction(&mut self, value: StopOrderDirection)
Sets direction
to the provided enum value.
sourcepub fn order_type(&self) -> StopOrderType
pub fn order_type(&self) -> StopOrderType
Returns the enum value of order_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_order_type(&mut self, value: StopOrderType)
pub fn set_order_type(&mut self, value: StopOrderType)
Sets order_type
to the provided enum value.
sourcepub fn take_profit_type(&self) -> TakeProfitType
pub fn take_profit_type(&self) -> TakeProfitType
Returns the enum value of take_profit_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_take_profit_type(&mut self, value: TakeProfitType)
pub fn set_take_profit_type(&mut self, value: TakeProfitType)
Sets take_profit_type
to the provided enum value.
sourcepub fn status(&self) -> StopOrderStatusOption
pub fn status(&self) -> StopOrderStatusOption
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: StopOrderStatusOption)
pub fn set_status(&mut self, value: StopOrderStatusOption)
Sets status
to the provided enum value.
Trait Implementations§
source§impl Message for StopOrder
impl Message for StopOrder
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 StopOrder
impl PartialEq for StopOrder
impl StructuralPartialEq for StopOrder
Auto Trait Implementations§
impl Freeze for StopOrder
impl RefUnwindSafe for StopOrder
impl Send for StopOrder
impl Sync for StopOrder
impl Unpin for StopOrder
impl UnwindSafe for StopOrder
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