pub struct LiquidityHeatmapConfig {
pub brightness: f32,
pub lower_cutoff: f64,
pub full_intensity_size: Option<f64>,
}Expand description
Brightness and resting-size range of the liquidity heatmap. Defaults retain logarithmic shading against each column’s largest size, at 75% opacity. Does not change the sampled depth, best bid/ask lines or live book profile. Serializable for host chart settings.
Fields§
§brightness: f32Multiplies cell opacity, including order tier marks, saturating at full opacity. Defaults to 1. Negative values act as zero; non-finite values use the default.
lower_cutoff: f64Cells with total resting size at or below this value stay transparent, including marks. Defaults to 0. Negative or non-finite values act as zero.
full_intensity_size: Option<f64>Size that reaches full intensity: ln(1 + size) / ln(1 + full_intensity_size), capped at 1.
None, the default, uses each column’s largest total. Non-positive or non-finite sizes
also use that per-column scale. The cutoff does not shift the logarithmic curve.
Trait Implementations§
Source§impl Clone for LiquidityHeatmapConfig
impl Clone for LiquidityHeatmapConfig
Source§fn clone(&self) -> LiquidityHeatmapConfig
fn clone(&self) -> LiquidityHeatmapConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for LiquidityHeatmapConfig
Source§impl Debug for LiquidityHeatmapConfig
impl Debug for LiquidityHeatmapConfig
Source§impl Default for LiquidityHeatmapConfig
impl Default for LiquidityHeatmapConfig
Source§impl<'de> Deserialize<'de> for LiquidityHeatmapConfigwhere
LiquidityHeatmapConfig: Default,
impl<'de> Deserialize<'de> for LiquidityHeatmapConfigwhere
LiquidityHeatmapConfig: Default,
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>,
Source§impl PartialEq for LiquidityHeatmapConfig
impl PartialEq for LiquidityHeatmapConfig
Source§impl Serialize for LiquidityHeatmapConfig
impl Serialize for LiquidityHeatmapConfig
impl StructuralPartialEq for LiquidityHeatmapConfig
Auto Trait Implementations§
impl Freeze for LiquidityHeatmapConfig
impl RefUnwindSafe for LiquidityHeatmapConfig
impl Send for LiquidityHeatmapConfig
impl Sync for LiquidityHeatmapConfig
impl Unpin for LiquidityHeatmapConfig
impl UnsafeUnpin for LiquidityHeatmapConfig
impl UnwindSafe for LiquidityHeatmapConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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 more