pub struct StopOrder {Show 19 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,
pub exchange_order_type: i32,
pub exchange_order_id: Option<String>,
pub ticker: String,
pub class_code: String,
}Expand description
Информация о стоп-заявке.
Fields§
§stop_order_id: StringУникальный идентификатор стоп-заявки.
lots_requested: i64Запрошено лотов.
figi: StringFIGI-идентификатор инструмента.
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: Stringinstrument_uid-идентификатор инструмента.
take_profit_type: i32Подтип стоп-заявки — TakeProfit.
trailing_data: Option<TrailingData>Параметры трейлинг-стопа.
status: i32Статус заявки.
exchange_order_type: i32Тип дочерней биржевой заявки для тейкпрофита.
exchange_order_id: Option<String>Идентификатор биржевой заявки.
ticker: StringТикер инструмента.
class_code: StringКласс-код (секция торгов).
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.
Sourcepub fn exchange_order_type(&self) -> ExchangeOrderType
pub fn exchange_order_type(&self) -> ExchangeOrderType
Returns the enum value of exchange_order_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_exchange_order_type(&mut self, value: ExchangeOrderType)
pub fn set_exchange_order_type(&mut self, value: ExchangeOrderType)
Sets exchange_order_type to the provided enum value.
Sourcepub fn exchange_order_id(&self) -> &str
pub fn exchange_order_id(&self) -> &str
Returns the value of exchange_order_id, or the default value if exchange_order_id is unset.
Trait Implementations§
impl Eq for StopOrder
Source§impl Message for StopOrder
impl Message for StopOrder
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.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 UnsafeUnpin 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> 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].