pub struct DarkIceBuilder { /* private fields */ }Expand description
Builder for Dark Ice algorithmic orders.
Hidden order with randomized display sizes - the user-supplied display size is randomized in increments to camouflage the actual order size.
§Example
use ibapi::orders::builder::dark_ice;
let algo = dark_ice()
.display_size(100)
.start_time("09:30:00 US/Eastern")
.end_time("16:00:00 US/Eastern")
.build()?;Implementations§
Source§impl DarkIceBuilder
impl DarkIceBuilder
Sourcepub fn display_size(self, size: i32) -> Self
pub fn display_size(self, size: i32) -> Self
Set the display size (the visible portion of the order).
Sourcepub fn start_time(self, time: impl Into<String>) -> Self
pub fn start_time(self, time: impl Into<String>) -> Self
Set start time (format: “HH:MM:SS TZ”, e.g., “09:30:00 US/Eastern”).
Sourcepub fn end_time(self, time: impl Into<String>) -> Self
pub fn end_time(self, time: impl Into<String>) -> Self
Set end time (format: “HH:MM:SS TZ”, e.g., “16:00:00 US/Eastern”).
Sourcepub fn allow_past_end_time(self, allow: bool) -> Self
pub fn allow_past_end_time(self, allow: bool) -> Self
Allow trading past the end time.
Sourcepub fn build(self) -> Result<AlgoParams, ValidationError>
pub fn build(self) -> Result<AlgoParams, ValidationError>
Build the algo parameters.
Trait Implementations§
Source§impl Clone for DarkIceBuilder
impl Clone for DarkIceBuilder
Source§fn clone(&self) -> DarkIceBuilder
fn clone(&self) -> DarkIceBuilder
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 DarkIceBuilder
impl Debug for DarkIceBuilder
Source§impl Default for DarkIceBuilder
impl Default for DarkIceBuilder
Source§fn default() -> DarkIceBuilder
fn default() -> DarkIceBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DarkIceBuilder
impl RefUnwindSafe for DarkIceBuilder
impl Send for DarkIceBuilder
impl Sync for DarkIceBuilder
impl Unpin for DarkIceBuilder
impl UnsafeUnpin for DarkIceBuilder
impl UnwindSafe for DarkIceBuilder
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