Struct kraken_client::api::add_order::AddOrderRequest [−][src]
#[must_use = "Does nothing until you send or execute it"]pub struct AddOrderRequest { /* fields omitted */ }
- https://www.kraken.com/features/api#add-standard-order
- https://api.kraken.com/0/private/AddOrder
- https://support.kraken.com/hc/en-us/articles/205893708-Minimum-order-size-volume-for-trading
Implementations
impl AddOrderRequest
[src]
impl AddOrderRequest
[src]pub fn flags(self, flags: &str) -> Self
[src]
pub fn flags(self, flags: &str) -> Self
[src]oflags = comma delimited list of order flags: fcib = prefer fee in base currency fciq = prefer fee in quote currency nompp = no market price protection post = post only order (available when ordertype = limit)
pub fn post_only(self) -> Self
[src]
pub fn post_only(self) -> Self
[src]A post only order prohibits a limit order to get immediately filled ‘at market’ and incur (potentially increased) market-order fees.
pub fn starttm(self, starttm: &str) -> Self
[src]
pub fn starttm(self, starttm: &str) -> Self
[src]Start time
+
pub fn start_after(self, seconds: u32) -> Self
[src]
pub fn expiretm(self, expiretm: &str) -> Self
[src]
pub fn expiretm(self, expiretm: &str) -> Self
[src]Expiration time
+
pub fn expire_after(self, seconds: u32) -> Self
[src]
pub fn userref(self, userref: i32) -> Self
[src]
pub fn close_order(
self,
close_order_type: OrderType,
close_price: Option<String>,
close_price2: Option<String>
) -> Self
[src]
self,
close_order_type: OrderType,
close_price: Option<String>,
close_price2: Option<String>
) -> Self
pub fn close_limit_order(self, close_price: &str) -> Self
[src]
pub fn validate(self, validate: bool) -> Self
[src]
pub fn validate_only(self) -> Self
[src]
pub async fn execute<T: DeserializeOwned>(self) -> Result<T>
[src]
pub async fn send(self) -> Result<AddOrderResponse>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for AddOrderRequest
impl Send for AddOrderRequest
impl Sync for AddOrderRequest
impl Unpin for AddOrderRequest
impl !UnwindSafe for AddOrderRequest
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self