pub struct KalshiPriceGrid { /* private fields */ }Expand description
Exact market bands used for admission and explicit price validation.
Native limit submission enforces the lattice through contains; simulation does not.
Storage uses six decimal places independently of the current venue grid.
Implementations§
Source§impl KalshiPriceGrid
impl KalshiPriceGrid
Sourcepub fn new(ranges: &[PriceRange]) -> Result<Self>
pub fn new(ranges: &[PriceRange]) -> Result<Self>
Validates ordered, non-overlapping bands within the binary payout interval.
§Errors
Returns an error if bands are missing, bounds or steps are invalid, or precision exceeds six places.
Sourcepub const fn increment(&self) -> Price
pub const fn increment(&self) -> Price
Returns the base quantum; full band validation remains required.
Trait Implementations§
Source§impl Clone for KalshiPriceGrid
impl Clone for KalshiPriceGrid
Auto Trait Implementations§
impl Freeze for KalshiPriceGrid
impl RefUnwindSafe for KalshiPriceGrid
impl Send for KalshiPriceGrid
impl Sync for KalshiPriceGrid
impl Unpin for KalshiPriceGrid
impl UnsafeUnpin for KalshiPriceGrid
impl UnwindSafe for KalshiPriceGrid
Blanket Implementations§
impl<T> Allocation for T
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
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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