pub struct Order {
pub cid: Vec<u8>,
pub id: OrderId,
pub owner: Vec<u8>,
pub is_bid: bool,
pub price: u64,
pub amnt: u64,
pub iqty: u64,
pub pqty: u64,
pub cqty: u64,
pub timestamp: i64,
pub expires_at: i64,
pub fee_bps: i16,
}Expand description
Represents an order stored in the order book.
Fields§
§cid: Vec<u8>client order id
id: OrderIdorder id
owner: Vec<u8>owner of the order
is_bid: boolis bid order
price: u64price of the order in 8 decimals
amnt: u64whole amount of the order in 8 decimals without iceberg protection
iqty: u64iceberg quantity of the order in 8 decimals to hide the order from the public
pqty: u64public quantity of the order in 8 decimals with iceberg protection
cqty: u64current quantity of the order in 8 decimals without iceberg protection
timestamp: i64timestamp of the order in milliseconds
expires_at: i64expires at timestamp in milliseconds
fee_bps: i16fee basis points of the order (maker or taker)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Order
impl<'de> Deserialize<'de> for Order
Source§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
impl Eq for Order
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Forget for Order
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
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