pub struct OrderbookMicrostructure {
pub exchange_ts: Option<DateTime<Utc>>,
pub openpx_ts: DateTime<Utc>,
pub asset_id: String,
pub depth_buckets: DepthBuckets,
pub bid_slope: Option<f64>,
pub ask_slope: Option<f64>,
pub max_gap: MaxGap,
pub level_count: LevelCount,
}Expand description
Microstructure signals for one orderbook.
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").
depth_buckets: DepthBucketsCumulative depth at 10/50/100 bps from mid.
bid_slope: Option<f64>OLS slope of cumulative bid size vs distance-from-mid (e.g. 12.5).
ask_slope: Option<f64>OLS slope of cumulative ask size vs distance-from-mid (e.g. 12.5).
max_gap: MaxGapLargest consecutive-level price gap on each side, in basis points.
level_count: LevelCountNumber of levels per side.
Trait Implementations§
Source§impl Clone for OrderbookMicrostructure
impl Clone for OrderbookMicrostructure
Source§fn clone(&self) -> OrderbookMicrostructure
fn clone(&self) -> OrderbookMicrostructure
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 moreSource§impl Debug for OrderbookMicrostructure
impl Debug for OrderbookMicrostructure
Source§impl<'de> Deserialize<'de> for OrderbookMicrostructure
impl<'de> Deserialize<'de> for OrderbookMicrostructure
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 OrderbookMicrostructure
impl RefUnwindSafe for OrderbookMicrostructure
impl Send for OrderbookMicrostructure
impl Sync for OrderbookMicrostructure
impl Unpin for OrderbookMicrostructure
impl UnsafeUnpin for OrderbookMicrostructure
impl UnwindSafe for OrderbookMicrostructure
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