pub struct BacktestExecutionClient { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Debug for BacktestExecutionClient
impl Debug for BacktestExecutionClient
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>
Source§fn generate_account_state(
&self,
balances: Vec<AccountBalance>,
margins: Vec<MarginBalance>,
reported: bool,
ts_event: UnixNanos,
) -> Result<()>
fn generate_account_state( &self, balances: Vec<AccountBalance>, margins: Vec<MarginBalance>, reported: bool, ts_event: UnixNanos, ) -> Result<()>
Generates and publishes the account state event. Read more
Source§fn submit_order(&self, cmd: &SubmitOrder) -> Result<()>
fn submit_order(&self, cmd: &SubmitOrder) -> Result<()>
Submits a single order command to the execution venue. Read more
Source§fn submit_order_list(&self, cmd: &SubmitOrderList) -> Result<()>
fn submit_order_list(&self, cmd: &SubmitOrderList) -> Result<()>
Submits a list of orders to the execution venue. Read more
Source§fn cancel_all_orders(&self, cmd: &CancelAllOrders) -> Result<()>
fn cancel_all_orders(&self, cmd: &CancelAllOrders) -> Result<()>
Cancels all orders. Read more
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
§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>
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