Versions in this module Expand all Collapse all v1 v1.0.1 Aug 5, 2026 Changes in this version + const EngineVersion + const MetadataFile + const SchemaVersion + const SnapshotBinFile + const TempDirPrefix + type MarketSegment struct + Checksum uint32 + Length int64 + MarketID string + Offset int64 + type OrderBookSnapshot struct + Asks []*order.Order + Bids []*order.Order + LastCmdSeqID uint64 + MarketID string + MinLotSize decimal.Decimal + SeqID uint64 + State protocol.OrderBookState + TradeID uint64 + type Reader struct + func NewReader(snapshotDir string) *Reader + func (r *Reader) ReadSnapshot() (*SnapshotMetadata, []*OrderBookSnapshot, error) + type SnapshotFileFooter struct + Markets []MarketSegment + type SnapshotMetadata struct + EngineVersion string + GlobalLastCmdSeqID uint64 + SchemaVersion int + SnapshotChecksum uint32 + Timestamp int64 + type Writer struct + func NewWriter(targetDir string) *Writer + func (w *Writer) WriteSnapshot(snapshots []*OrderBookSnapshot, globalSeqID uint64) error v1.0.0 Jul 31, 2026