Enum kraapi::api::OrderType[][src]

pub enum OrderType {
    Market,
    Limit(String),
    StopLoss(String),
    TakeProfit(String),
    StopLossLimit(StringString),
    TakeProfitLimit(StringString),
    SettlePosition,
}

Order Type | See KIAddOrder

Prices can be preceded by +, -, or # to signify the price as a relative amount (with the exception of trailing stops, which are always relative). + adds the amount to the current offered price. - subtracts the amount from the current offered price.

will either add or subtract the amount to the current offered price, depending on

the type and order type used. Relative prices can be suffixed with a % to signify the relative amount as a percentage of the offered price.

Variants

Market

Market order type with market price inferred

Limit(String)

Limit order along with the limit price

StopLoss(String)

Stop Loss order with the stop loss price

TakeProfit(String)

Take Profit order with the take profit price

StopLossLimit(StringString)

Stop Loss Limit order with the stop loss trigger price and the triggered limit price

TakeProfitLimit(StringString)

Take Profit Limit order with the take profit trigger price and the triggered limit price

SettlePosition

Trait Implementations

impl Display for OrderType[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

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.