pub struct OrderAction {
pub account: Account,
pub iid: Iid,
pub owner: String,
pub order: Order,
}Expand description
Message to post or cancel order.
§ru
Сообщение о необходимости выставить или отменить ордер.
Их формирует стратегия в ходе своей работы. Используются
в боевом режиме, тестере и терминале. В боевом режиме их принимает
Trader и передает брокеру. В тестере их принимает Tester и передает
VirturalBroker, в терминале они напрямую отправляются к брокеру.
Содержит аккаунт, идентификатор инструмента, имя владельца и сам ордер.
В боевом режиме и тестере, в качестве имени владельца, следует указывать
название стратегии, которая создала этот ордер. Чтобы при
исполнении/изменении ордера ответ (OrderEvent) передали обратно
в соответствующую стратегию.
А в режиме терминала автоматически указывается owner=“User”.
Fields§
§account: Account§iid: Iid§owner: String§order: OrderImplementations§
Trait Implementations§
Source§impl Clone for OrderAction
impl Clone for OrderAction
Source§fn clone(&self) -> OrderAction
fn clone(&self) -> OrderAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderAction
impl Debug for OrderAction
Auto Trait Implementations§
impl Freeze for OrderAction
impl RefUnwindSafe for OrderAction
impl Send for OrderAction
impl Sync for OrderAction
impl Unpin for OrderAction
impl UnwindSafe for OrderAction
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
Mutably borrows from an owned value. Read more
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.