pub struct OrderBookEntry {
pub concentrated_amount: u64,
pub concentrated_amount_quote: u64,
pub concentrated_total: u64,
pub concentrated_total_quote: u64,
pub limit_amount: u64,
pub limit_amount_quote: u64,
pub limit_total: u64,
pub limit_total_quote: u64,
pub price: f64,
pub ask_side: bool,
}
Fields§
§concentrated_amount: u64
§concentrated_amount_quote: u64
§concentrated_total: u64
§concentrated_total_quote: u64
§limit_amount: u64
§limit_amount_quote: u64
§limit_total: u64
§limit_total_quote: u64
§price: f64
§ask_side: bool
True for the ASK side of an order book and false for the BID one. ASK-side liquidity is denominated in token A. Quote amounts indicate how much of token B you need to spend to purchase the available liquidity (swap fees not included). BID-side liquidity is denominated in token B. Quote amounts indicate how much of token A you need to spend to purchase the available liquidity (swap fees not included).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OrderBookEntry
impl RefUnwindSafe for OrderBookEntry
impl Send for OrderBookEntry
impl Sync for OrderBookEntry
impl Unpin for OrderBookEntry
impl UnwindSafe for OrderBookEntry
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