pub struct SmartIcebergTriggerRequest { /* private fields */ }Expand description
One trigger definition used by a smart_iceberg request.
Implementations§
Source§impl SmartIcebergTriggerRequest
impl SmartIcebergTriggerRequest
Sourcepub fn new(trigger_strategy: impl Into<String>) -> Self
pub fn new(trigger_strategy: impl Into<String>) -> Self
Create a start trigger with strategy instant, price, or rsi.
Sourcepub fn price(self, trigger_px: impl Into<String>) -> Self
pub fn price(self, trigger_px: impl Into<String>) -> Self
Set a price trigger and optional crossing condition.
Sourcepub fn threshold(self, value: impl Into<String>) -> Self
pub fn threshold(self, value: impl Into<String>) -> Self
Set the RSI threshold from 1 through 100.
Sourcepub fn time_period(self, value: impl Into<String>) -> Self
pub fn time_period(self, value: impl Into<String>) -> Self
Set the RSI period. OKX currently fixes this value at 14.
Trait Implementations§
Source§impl Clone for SmartIcebergTriggerRequest
impl Clone for SmartIcebergTriggerRequest
Source§fn clone(&self) -> SmartIcebergTriggerRequest
fn clone(&self) -> SmartIcebergTriggerRequest
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 SmartIcebergTriggerRequest
impl Debug for SmartIcebergTriggerRequest
Auto Trait Implementations§
impl Freeze for SmartIcebergTriggerRequest
impl RefUnwindSafe for SmartIcebergTriggerRequest
impl Send for SmartIcebergTriggerRequest
impl Sync for SmartIcebergTriggerRequest
impl Unpin for SmartIcebergTriggerRequest
impl UnsafeUnpin for SmartIcebergTriggerRequest
impl UnwindSafe for SmartIcebergTriggerRequest
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