pub struct PlacedOrder {
pub oid: Option<u64>,
pub status: String,
pub asset: String,
pub side: String,
pub size: String,
pub price: Option<String>,
pub filled_size: Option<String>,
pub avg_price: Option<String>,
pub error: Option<String>,
pub raw_response: Value,
/* private fields */
}Expand description
A placed order with methods for cancellation and modification.
Fields§
§oid: Option<u64>Order ID (None if order failed)
status: StringOrder status
asset: StringAsset name
side: StringOrder side
size: StringOrder size
price: Option<String>Limit price (if applicable)
filled_size: Option<String>Filled size
avg_price: Option<String>Average fill price
error: Option<String>Error message (if failed)
raw_response: ValueRaw response from the API
Implementations§
Source§impl PlacedOrder
impl PlacedOrder
Sourcepub fn is_resting(&self) -> bool
pub fn is_resting(&self) -> bool
Is the order resting on the book?
Trait Implementations§
Source§impl Clone for PlacedOrder
impl Clone for PlacedOrder
Source§fn clone(&self) -> PlacedOrder
fn clone(&self) -> PlacedOrder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PlacedOrder
impl !RefUnwindSafe for PlacedOrder
impl Send for PlacedOrder
impl Sync for PlacedOrder
impl Unpin for PlacedOrder
impl UnsafeUnpin for PlacedOrder
impl !UnwindSafe for PlacedOrder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request