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]

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]

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]

Start time + = expire seconds from now = unix timestamp of expiration time

pub fn start_after(self, seconds: u32) -> Self[src]

pub fn expiretm(self, expiretm: &str) -> Self[src]

Expiration time + = expire seconds from now = unix timestamp of 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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[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]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.