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