pub struct PaperOrderExecutor { /* private fields */ }Expand description
Paper executor: instant fill at given price, no real exchange interaction.
Implementations§
Trait Implementations§
Source§impl Default for PaperOrderExecutor
impl Default for PaperOrderExecutor
Source§impl OrderExecutor for PaperOrderExecutor
impl OrderExecutor for PaperOrderExecutor
fn place_order<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 PlaybookOrderParams,
) -> Pin<Box<dyn Future<Output = Result<String, ExecutionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cancel_order<'life0, 'life1, 'async_trait>(
&'life0 self,
order_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), ExecutionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn is_filled<'life0, 'life1, 'async_trait>(
&'life0 self,
_order_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, ExecutionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn close_position<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
position_id: &'life1 str,
reason: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, ExecutionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !Freeze for PaperOrderExecutor
impl RefUnwindSafe for PaperOrderExecutor
impl Send for PaperOrderExecutor
impl Sync for PaperOrderExecutor
impl Unpin for PaperOrderExecutor
impl UnsafeUnpin for PaperOrderExecutor
impl UnwindSafe for PaperOrderExecutor
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