pub struct BacktestExecutionClient { /* private fields */ }
Expand description
Execution client implementation for backtesting trading operations.
The BacktestExecutionClient
provides an execution client interface for
backtesting environments, handling order management and trade execution
through simulated exchanges. It processes trading commands and coordinates
with the simulation infrastructure to provide realistic execution behavior.
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 modify_order(&self, cmd: &ModifyOrder) -> Result<()>
fn modify_order(&self, cmd: &ModifyOrder) -> Result<()>
Modifies an existing order. Read more
Source§fn cancel_order(&self, cmd: &CancelOrder) -> Result<()>
fn cancel_order(&self, cmd: &CancelOrder) -> Result<()>
Cancels a specific order. Read more
Source§fn cancel_all_orders(&self, cmd: &CancelAllOrders) -> Result<()>
fn cancel_all_orders(&self, cmd: &CancelAllOrders) -> Result<()>
Cancels all orders. Read more
Source§fn batch_cancel_orders(&self, cmd: &BatchCancelOrders) -> Result<()>
fn batch_cancel_orders(&self, cmd: &BatchCancelOrders) -> Result<()>
Cancels a batch of orders. Read more
Source§fn query_order(&self, cmd: &QueryOrder) -> Result<()>
fn query_order(&self, cmd: &QueryOrder) -> Result<()>
Queries the status of an order. 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
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