pub struct HFTEngine { /* private fields */ }Expand description
Main HFT trading engine
Implementations§
Source§impl HFTEngine
impl HFTEngine
Sourcepub async fn new(config: EngineConfig) -> Result<Self, EngineError>
pub async fn new(config: EngineConfig) -> Result<Self, EngineError>
Create new engine with configuration
Sourcepub async fn start(&mut self) -> Result<(), EngineError>
pub async fn start(&mut self) -> Result<(), EngineError>
Start the trading engine
Sourcepub async fn stop(&mut self) -> Result<(), EngineError>
pub async fn stop(&mut self) -> Result<(), EngineError>
Stop the trading engine
Sourcepub async fn get_statistics(&self) -> Result<EngineStatistics, EngineError>
pub async fn get_statistics(&self) -> Result<EngineStatistics, EngineError>
Get engine statistics
Auto Trait Implementations§
impl !RefUnwindSafe for HFTEngine
impl !UnwindSafe for HFTEngine
impl Freeze for HFTEngine
impl Send for HFTEngine
impl Sync for HFTEngine
impl Unpin for HFTEngine
impl UnsafeUnpin for HFTEngine
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