pub struct BacktestExecutionClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ExecutionClient for BacktestExecutionClient
impl ExecutionClient for BacktestExecutionClient
fn is_connected(&self) -> bool
fn client_id(&self) -> ClientId
fn account_id(&self) -> AccountId
fn venue(&self) -> Venue
fn oms_type(&self) -> OmsType
fn get_account(&self) -> Option<AccountAny>
fn generate_account_state( &self, balances: Vec<AccountBalance>, margins: Vec<MarginBalance>, reported: bool, ts_event: UnixNanos, ) -> Result<()>
fn start(&mut self) -> Result<()>
fn stop(&mut self) -> Result<()>
fn submit_order(&self, command: SubmitOrder) -> Result<()>
fn submit_order_list(&self, command: SubmitOrderList) -> Result<()>
fn modify_order(&self, command: ModifyOrder) -> Result<()>
fn cancel_order(&self, command: CancelOrder) -> Result<()>
fn cancel_all_orders(&self, command: CancelAllOrders) -> Result<()>
fn batch_cancel_orders(&self, command: BatchCancelOrders) -> Result<()>
fn query_order(&self, command: QueryOrder) -> Result<()>
Auto Trait Implementations§
impl Freeze for BacktestExecutionClient
impl !RefUnwindSafe for BacktestExecutionClient
impl !Send for BacktestExecutionClient
impl !Sync for BacktestExecutionClient
impl Unpin for BacktestExecutionClient
impl !UnwindSafe for BacktestExecutionClient
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> 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 more