pub struct SimulatedPosition { /* private fields */ }Expand description
A simulated position used by position-builder and simulated-margin requests.
Implementations§
Source§impl SimulatedPosition
impl SimulatedPosition
Sourcepub fn average_price(self, avg_px: impl Into<String>) -> Self
pub fn average_price(self, avg_px: impl Into<String>) -> Self
Set the simulated average price.
Trait Implementations§
Source§impl Clone for SimulatedPosition
impl Clone for SimulatedPosition
Source§fn clone(&self) -> SimulatedPosition
fn clone(&self) -> SimulatedPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimulatedPosition
impl Debug for SimulatedPosition
Auto Trait Implementations§
impl Freeze for SimulatedPosition
impl RefUnwindSafe for SimulatedPosition
impl Send for SimulatedPosition
impl Sync for SimulatedPosition
impl Unpin for SimulatedPosition
impl UnsafeUnpin for SimulatedPosition
impl UnwindSafe for SimulatedPosition
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