Struct kraapi::api::private::KOOrderInfo[][src]

pub struct KOOrderInfo {
    pub refid: Option<String>,
    pub userref: Option<u32>,
    pub status: KOOrderStatus,
    pub opentm: f64,
    pub starttm: f64,
    pub expiretm: f64,
    pub descr: KOOrderDescription,
    pub vol: String,
    pub vol_exec: String,
    pub cost: String,
    pub fee: String,
    pub price: String,
    pub stopprice: Option<String>,
    pub limitprice: Option<String>,
    pub misc: String,
    pub oflags: String,
    pub trades: Option<Vec<String>>,
    pub closetm: Option<f64>,
    pub reason: Option<String>,
}

Order info data | See KOOpenOrders - KOClosedOrders - KOQueryOrders

Fields

refid: Option<String>

Referral order transaction id that created this order

userref: Option<u32>

user reference id

status: KOOrderStatus

status of order:

opentm: f64

unix timestamp of when order was placed

starttm: f64

unix timestamp of order start time (or 0 if not set)

expiretm: f64

unix timestamp of order end time (or 0 if not set)

descr: KOOrderDescription

order description info

vol: String

volume of order (base currency unless viqc set in oflags)

vol_exec: String

volume executed (base currency unless viqc set in oflags)

cost: String

total cost (quote currency unless unless viqc set in oflags)

fee: String

total fee (quote currency)

price: String

average price (quote currency unless viqc set in oflags)

stopprice: Option<String>

stop price (quote currency, for trailing stops)

limitprice: Option<String>

triggered limit price (quote currency, when limit based order type triggered)

misc: String

comma delimited list of miscellaneous info: + stopped = triggered by stop price + touched = triggered by touch price + liquidated = liquidation + partial = partial fill

oflags: String

comma delimited list of order flags: + viqc = volume in quote currency + fcib = prefer fee in base currency (default if selling) + fciq = prefer fee in quote currency (default if buying) + nompp = no market price protection

trades: Option<Vec<String>>

array of trade ids related to order (if trades info requested and data available)

closetm: Option<f64>

unix timestamp of when order was closed. Field only present when calling ClosedOrders endpoint

reason: Option<String>

additional info on status (if any). Field only present when calling ClosedOrders

Trait Implementations

impl Debug for KOOrderInfo[src]

impl<'de> Deserialize<'de> for KOOrderInfo[src]

impl Serialize for KOOrderInfo[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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, 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.