pub struct PlaceOrderOptions { /* private fields */ }Expand description
Options for order placement.
Implementations§
Source§impl PlaceOrderOptions
impl PlaceOrderOptions
Sourcepub fn with_client_id(&mut self, id: Option<impl AsRef<str>>) -> &mut Self
pub fn with_client_id(&mut self, id: Option<impl AsRef<str>>) -> &mut Self
Set the client id to place.
Sourcepub fn with_margin(&mut self, currency: &Asset) -> &mut Self
pub fn with_margin(&mut self, currency: &Asset) -> &mut Self
Set the margin currency preffered to use.
§Warning
It is up to the exchange to decide if this option applies, so please check the documents of the exchange you use.
Sourcepub fn insert<K, V>(&mut self, key: K, value: V) -> &mut Self
pub fn insert<K, V>(&mut self, key: K, value: V) -> &mut Self
Insert an exchange-defined custom option.
Sourcepub fn instrument(&self) -> &str
pub fn instrument(&self) -> &str
Get the instrument name to trade.
Trait Implementations§
Source§impl Clone for PlaceOrderOptions
impl Clone for PlaceOrderOptions
Source§fn clone(&self) -> PlaceOrderOptions
fn clone(&self) -> PlaceOrderOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PlaceOrderOptions
impl RefUnwindSafe for PlaceOrderOptions
impl Send for PlaceOrderOptions
impl Sync for PlaceOrderOptions
impl Unpin for PlaceOrderOptions
impl UnwindSafe for PlaceOrderOptions
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