pub struct OrderState {Show 27 fields
pub order_id: String,
pub order_request_id: Option<String>,
pub client_code: String,
pub created_at: Option<Timestamp>,
pub execution_report_status: i32,
pub status_info: Option<i32>,
pub ticker: String,
pub class_code: String,
pub lot_size: i32,
pub direction: i32,
pub time_in_force: i32,
pub order_type: i32,
pub account_id: String,
pub initial_order_price: Option<MoneyValue>,
pub order_price: Option<MoneyValue>,
pub amount: Option<MoneyValue>,
pub executed_order_price: Option<MoneyValue>,
pub currency: String,
pub lots_requested: i64,
pub lots_executed: i64,
pub lots_left: i64,
pub lots_cancelled: i64,
pub marker: Option<i32>,
pub trades: Vec<OrderTrade>,
pub completion_time: Option<Timestamp>,
pub exchange: String,
pub instrument_uid: String,
}Expand description
Заявка
Fields§
§order_id: StringБиржевой идентификатор заявки.
order_request_id: Option<String>Идентификатор ключа идемпотентности, переданный клиентом, в формате UID. Максимальная длина 36 символов.
client_code: StringКод клиента на бирже.
created_at: Option<Timestamp>Дата создания заявки.
execution_report_status: i32Статус заявки.
status_info: Option<i32>Дополнительная информация по статусу.
ticker: StringТикер инструмента.
class_code: StringКласс-код (секция торгов).
lot_size: i32Лотность инструмента заявки.
direction: i32Направление заявки.
time_in_force: i32Алгоритм исполнения поручения.
order_type: i32Тип заявки.
account_id: StringНомер счета.
initial_order_price: Option<MoneyValue>Начальная цена заявки.
order_price: Option<MoneyValue>Цена выставления заявки.
amount: Option<MoneyValue>Предрассчитанная стоимость полной заявки.
executed_order_price: Option<MoneyValue>Исполненная цена заявки.
currency: StringВалюта исполнения.
lots_requested: i64Запрошено лотов.
lots_executed: i64Исполнено лотов.
lots_left: i64Число неисполненных лотов по заявке.
lots_cancelled: i64Отмененные лоты.
marker: Option<i32>Спецсимвол.
trades: Vec<OrderTrade>Список сделок.completion_time: Option<Timestamp>Время исполнения заявки.
exchange: StringКод биржи.
instrument_uid: StringUID идентификатор инструмента.
Implementations§
Source§impl OrderState
impl OrderState
Sourcepub fn order_request_id(&self) -> &str
pub fn order_request_id(&self) -> &str
Returns the value of order_request_id, or the default value if order_request_id is unset.
Sourcepub fn execution_report_status(&self) -> OrderExecutionReportStatus
pub fn execution_report_status(&self) -> OrderExecutionReportStatus
Returns the enum value of execution_report_status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_execution_report_status(&mut self, value: OrderExecutionReportStatus)
pub fn set_execution_report_status(&mut self, value: OrderExecutionReportStatus)
Sets execution_report_status to the provided enum value.
Sourcepub fn status_info(&self) -> StatusCauseInfo
pub fn status_info(&self) -> StatusCauseInfo
Returns the enum value of status_info, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_status_info(&mut self, value: StatusCauseInfo)
pub fn set_status_info(&mut self, value: StatusCauseInfo)
Sets status_info to the provided enum value.
Sourcepub fn direction(&self) -> OrderDirection
pub fn direction(&self) -> OrderDirection
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: OrderDirection)
pub fn set_direction(&mut self, value: OrderDirection)
Sets direction to the provided enum value.
Sourcepub fn time_in_force(&self) -> TimeInForceType
pub fn time_in_force(&self) -> TimeInForceType
Returns the enum value of time_in_force, or the default if the field is set to an invalid enum value.
Sourcepub fn set_time_in_force(&mut self, value: TimeInForceType)
pub fn set_time_in_force(&mut self, value: TimeInForceType)
Sets time_in_force to the provided enum value.
Sourcepub fn order_type(&self) -> OrderType
pub fn order_type(&self) -> OrderType
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: OrderType)
pub fn set_order_type(&mut self, value: OrderType)
Sets order_type to the provided enum value.
Sourcepub fn marker(&self) -> MarkerType
pub fn marker(&self) -> MarkerType
Returns the enum value of marker, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_marker(&mut self, value: MarkerType)
pub fn set_marker(&mut self, value: MarkerType)
Sets marker to the provided enum value.
Trait Implementations§
Source§impl Clone for OrderState
impl Clone for OrderState
Source§fn clone(&self) -> OrderState
fn clone(&self) -> OrderState
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 OrderState
impl Debug for OrderState
Source§impl Default for OrderState
impl Default for OrderState
Source§impl Message for OrderState
impl Message for OrderState
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 OrderState
impl PartialEq for OrderState
Source§fn eq(&self, other: &OrderState) -> bool
fn eq(&self, other: &OrderState) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OrderState
Auto Trait Implementations§
impl Freeze for OrderState
impl RefUnwindSafe for OrderState
impl Send for OrderState
impl Sync for OrderState
impl Unpin for OrderState
impl UnsafeUnpin for OrderState
impl UnwindSafe for OrderState
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<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].