mylittleindicators 0.1.2

Multi-stream financial indicators library — 559 bar indicators + 21 event primitives across 35 categories. Consumes OHLCV bars, ticks, orderbook (snapshot/delta), funding, mark price, open interest, liquidations, ticker, agg trades, and 12+ extended stream types from digdigdig3 exchange connectors.
Documentation
//! Trait for indicators that consume auction event snapshots.

use crate::core::types::AuctionEvent;
use crate::bar_indicators::indicator_value::IndicatorValue;

/// Indicators that process exchange auction event data.
pub trait AuctionEventConsumer {
    /// Process a new auction event and return the updated value.
    fn update_auction(&mut self, a: &AuctionEvent) -> IndicatorValue;

    /// Current value without updating.
    fn value(&self) -> IndicatorValue;

    /// Reset internal state.
    fn reset(&mut self);

    /// True if the indicator has enough data to produce reliable signals.
    fn is_ready(&self) -> bool;
}