Skip to main content

Crate digdigdig3_station

Crate digdigdig3_station 

Source
Expand description

digdigdig3-station — Layer 2 of the digdigdig3 workspace.

High-level consumer-facing builder over digdigdig3::connector_manager::ExchangeHub. See docs/plans/station-architecture.md for design, docs/plans/station-phase-1-plan.md for the phase-by-phase implementation roadmap.

Phase 1 scope (current): skeleton only. Modules below are stubs.

Re-exports§

pub use builder::StationBuilder;
pub use cache::ticker_cache;
pub use cache::CacheConfig;
pub use cache::TickerKey;
pub use error::Result;
pub use error::StationError;
pub use gap_heal::GapHealConfig;
pub use persistence::PersistenceConfig;
pub use series::DataPoint;
pub use series::DiskStore;
pub use series::Kind;
pub use series::Series;
pub use series::SeriesKey;
pub use series::SharedSeriesMap;
pub use station::Station;
pub use subscription::Event;
pub use subscription::Stream;
pub use subscription::SubscriptionHandle;
pub use subscription::SubscriptionSet;
pub use storage::EventLog;
pub use storage::EventLogIter;
pub use storage::EventRecord;
pub use storage::StorageManager;
pub use storage::StorageConfig;
pub use storage::StreamKey;
pub use replay::ReplayHub;
pub use replay::ReplayConfig;
pub use replay::ReplayRate;
pub use orderbook::OrderBookTracker;
pub use orderbook::OrderBookError;
pub use rest_cache::RestCache;
pub use cure::IntegrityChecker;
pub use cure::IntegrityReport;
pub use cure::Deduper;
pub use cure::GapDetector;
pub use cure::GapInfo;
pub use cure::RepairPipeline;
pub use cure::RepairReport;

Modules§

backfill
REST backfill for warm-start.
builder
cache
Cache layer — Phase 1: a thin Station-level wrapper around digdigdig3::core::rest_cache::RestCache keyed by (ExchangeId, AccountType, raw_symbol) for get_ticker.
cure
Dataset cure utilities — integrity check, deduplication, sequence-gap detection.
data
DataPoint implementations for each market-data class Station persists.
error
gap_heal
Auto-heal on WS disconnect — klines only.
orderbook
OrderBookTracker — in-memory orderbook reconstruction from snapshot + delta stream.
persistence
Persistence configuration for the Station builder.
reconnect
Reconnect — phase 1 stub. Will hold gap-heal / silence-timeout overrides on top of the transport’s internal reconnect. See docs/plans/station-architecture.md §7.
replay
Phase ν — replay layer for dig3.
rest_cache
Generic TTL cache for REST responses (instrument metadata, exchange info, etc).
series
Unified time-series infrastructure for Station data-classes.
station
storage
Storage subsystem — Phase μ.
subscription

Enums§

AccountType
Тип аккаунта/рынка
ExchangeId
Идентификатор биржи