pub struct ExecutionClientAdapter {
pub client_id: ClientId,
pub venue: Venue,
pub account_id: AccountId,
pub oms_type: OmsType,
/* private fields */
}Expand description
Wraps an [ExecutionClient], managing its lifecycle and providing access to the client.
Fields§
§client_id: ClientId§venue: Venue§account_id: AccountId§oms_type: OmsTypeImplementations§
Source§impl ExecutionClientAdapter
impl ExecutionClientAdapter
Sourcepub fn new(client: Box<dyn ExecutionClient>) -> Self
pub fn new(client: Box<dyn ExecutionClient>) -> Self
Creates a new ExecutionClientAdapter with the given client.
Sourcepub async fn disconnect(&mut self) -> Result<()>
pub async fn disconnect(&mut self) -> Result<()>
Sourcepub async fn generate_order_status_report(
&self,
cmd: &GenerateOrderStatusReport,
) -> Result<Option<OrderStatusReport>>
pub async fn generate_order_status_report( &self, cmd: &GenerateOrderStatusReport, ) -> Result<Option<OrderStatusReport>>
Sourcepub async fn generate_order_status_reports(
&self,
cmd: &GenerateOrderStatusReports,
) -> Result<Vec<OrderStatusReport>>
pub async fn generate_order_status_reports( &self, cmd: &GenerateOrderStatusReports, ) -> Result<Vec<OrderStatusReport>>
Sourcepub async fn generate_fill_reports(
&self,
cmd: GenerateFillReports,
) -> Result<Vec<FillReport>>
pub async fn generate_fill_reports( &self, cmd: GenerateFillReports, ) -> Result<Vec<FillReport>>
Generates fill reports based on execution results.
§Errors
Returns an error if fill report generation fails.
Sourcepub async fn generate_position_status_reports(
&self,
cmd: &GeneratePositionStatusReports,
) -> Result<Vec<PositionStatusReport>>
pub async fn generate_position_status_reports( &self, cmd: &GeneratePositionStatusReports, ) -> Result<Vec<PositionStatusReport>>
Trait Implementations§
Source§impl Debug for ExecutionClientAdapter
impl Debug for ExecutionClientAdapter
Source§impl Deref for ExecutionClientAdapter
impl Deref for ExecutionClientAdapter
Auto Trait Implementations§
impl Freeze for ExecutionClientAdapter
impl !RefUnwindSafe for ExecutionClientAdapter
impl !Send for ExecutionClientAdapter
impl !Sync for ExecutionClientAdapter
impl Unpin for ExecutionClientAdapter
impl !UnwindSafe for ExecutionClientAdapter
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> 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