pub struct OrderbookImpact {
pub exchange_ts: Option<DateTime<Utc>>,
pub openpx_ts: DateTime<Utc>,
pub asset_id: String,
pub size: f64,
pub mid: Option<f64>,
pub buy_avg_price: Option<f64>,
pub buy_slippage_bps: Option<f64>,
pub buy_fill_pct: f64,
pub sell_avg_price: Option<f64>,
pub sell_slippage_bps: Option<f64>,
pub sell_fill_pct: f64,
}Expand description
Slippage curve at one requested size.
Fields§
§exchange_ts: Option<DateTime<Utc>>Upstream snapshot time in UTC; null when not provided.
openpx_ts: DateTime<Utc>Wall-clock time OpenPX served the response (UTC).
asset_id: StringOrderable asset id (e.g. "KXBTCD-25APR1517").
size: f64Requested order size in contracts (e.g. 100.0).
mid: Option<f64>Mid price as YES probability (e.g. 0.62).
buy_avg_price: Option<f64>Average fill price hitting asks (e.g. 0.625).
buy_slippage_bps: Option<f64>Buy-side slippage vs mid in basis points (e.g. 80.0).
buy_fill_pct: f64Buy-side fill percentage in [0, 100] (e.g. 100.0).
sell_avg_price: Option<f64>Average fill price hitting bids (e.g. 0.615).
sell_slippage_bps: Option<f64>Sell-side slippage vs mid in basis points (e.g. 80.0).
sell_fill_pct: f64Sell-side fill percentage in [0, 100] (e.g. 100.0).
Trait Implementations§
Source§impl Clone for OrderbookImpact
impl Clone for OrderbookImpact
Source§fn clone(&self) -> OrderbookImpact
fn clone(&self) -> OrderbookImpact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderbookImpact
impl Debug for OrderbookImpact
Source§impl<'de> Deserialize<'de> for OrderbookImpact
impl<'de> Deserialize<'de> for OrderbookImpact
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
Auto Trait Implementations§
impl Freeze for OrderbookImpact
impl RefUnwindSafe for OrderbookImpact
impl Send for OrderbookImpact
impl Sync for OrderbookImpact
impl Unpin for OrderbookImpact
impl UnsafeUnpin for OrderbookImpact
impl UnwindSafe for OrderbookImpact
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