Struct krakenrs::OrderInfo [−][src]
pub struct OrderInfo {Show 13 fields
pub userref: UserRefId,
pub status: OrderStatus,
pub opentm: Decimal,
pub starttm: Option<Decimal>,
pub expiretm: Option<Decimal>,
pub descr: OrderDescriptionInfo,
pub vol: Decimal,
pub vol_exec: Decimal,
pub cost: Decimal,
pub fee: Decimal,
pub price: Decimal,
pub oflags: BTreeSet<OrderFlag>,
pub misc: BTreeSet<MiscInfo>,
}
Expand description
Order-info used in OpenOrders and QueryOrders APIs
Fields
userref: UserRefId
User reference id for the order
status: OrderStatus
Status of the order
opentm: Decimal
unix timestamp of when the order was placed
starttm: Option<Decimal>
unix timestamp of order start time
expiretm: Option<Decimal>
unix timestamp of order end time
descr: OrderDescriptionInfo
order description info
vol: Decimal
volume of order (base currency unless viqc set in oflags)
vol_exec: Decimal
volume executed (base currency unless viqc set in oflags)
cost: Decimal
total cost (quote currency unless unless viqc set in oflags)
fee: Decimal
total fee (quote currency)
price: Decimal
average price (quote currency unless viqc set in oflags)
oflags: BTreeSet<OrderFlag>
order flags (comma separated list)
misc: BTreeSet<MiscInfo>
misc info (comma separated list)
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for OrderInfo
impl UnwindSafe for OrderInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more