pub struct PostOrderRequest {
pub figi: Option<String>,
pub quantity: i64,
pub price: Option<Quotation>,
pub direction: i32,
pub account_id: String,
pub order_type: i32,
pub order_id: String,
pub instrument_id: String,
pub time_in_force: i32,
pub price_type: i32,
}Expand description
Запрос выставления торгового поручения.
Fields§
§figi: Option<String>Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
quantity: i64Количество лотов.
price: Option<Quotation>Цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Игнорируется для рыночных поручений.
direction: i32Направление операции.
account_id: StringНомер счета.
order_type: i32Тип заявки.
order_id: StringИдентификатор запроса выставления поручения для целей идемпотентности в формате UID. Максимальная длина 36 символов.
instrument_id: StringИдентификатор инструмента, принимает значения Figi или Instrument_uid.
time_in_force: i32Алгоритм исполнения поручения, применяется только к лимитной заявке.
price_type: i32Тип цены.
Implementations§
Source§impl PostOrderRequest
impl PostOrderRequest
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 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 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 price_type(&self) -> PriceType
pub fn price_type(&self) -> PriceType
Returns the enum value of price_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_price_type(&mut self, value: PriceType)
pub fn set_price_type(&mut self, value: PriceType)
Sets price_type to the provided enum value.
Trait Implementations§
Source§impl Clone for PostOrderRequest
impl Clone for PostOrderRequest
Source§fn clone(&self) -> PostOrderRequest
fn clone(&self) -> PostOrderRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PostOrderRequest
impl Debug for PostOrderRequest
Source§impl Default for PostOrderRequest
impl Default for PostOrderRequest
Source§impl Message for PostOrderRequest
impl Message for PostOrderRequest
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 PostOrderRequest
impl PartialEq for PostOrderRequest
impl StructuralPartialEq for PostOrderRequest
Auto Trait Implementations§
impl Freeze for PostOrderRequest
impl RefUnwindSafe for PostOrderRequest
impl Send for PostOrderRequest
impl Sync for PostOrderRequest
impl Unpin for PostOrderRequest
impl UnwindSafe for PostOrderRequest
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,
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