Versions in this module Expand all Collapse all v1 v1.0.0 Jun 16, 2026 Changes in this version + type Cache struct + func New() *Cache + func (c *Cache) Account(id model.AccountID) (model.AccountSnapshot, bool) + func (c *Cache) AccountHistory(id model.AccountID) []model.AccountSnapshot + func (c *Cache) Bar(barType model.BarType) (model.Bar, bool) + func (c *Cache) ClearDeferredFillsForOrder(accountID model.AccountID, orderID model.OrderID) + func (c *Cache) ClosedOrders(accountID model.AccountID) []model.OrderStatusReport + func (c *Cache) ClosedPositions(accountID model.AccountID) []model.PositionStatusReport + func (c *Cache) CustomData(instrumentID model.InstrumentID, typ string) (model.CustomData, bool) + func (c *Cache) DeferredFillsForOrder(accountID model.AccountID, orderID model.OrderID) []model.FillReport + func (c *Cache) FillByTradeID(accountID model.AccountID, tradeID model.TradeID) (model.FillReport, bool) + func (c *Cache) FillsByVenueOrderID(accountID model.AccountID, venueOrderID model.VenueOrderID) []model.FillReport + func (c *Cache) FillsForOrder(accountID model.AccountID, orderID model.OrderID) []model.FillReport + func (c *Cache) FundingRate(instrumentID model.InstrumentID) (model.FundingRate, bool) + func (c *Cache) Instrument(id model.InstrumentID) (model.Instrument, bool) + func (c *Cache) Instruments() []model.Instrument + func (c *Cache) LatestBar(instrumentID model.InstrumentID) (model.Bar, bool) + func (c *Cache) OpenOrders(accountID model.AccountID) []model.OrderStatusReport + func (c *Cache) OpenPositions(accountID model.AccountID) []model.PositionStatusReport + func (c *Cache) Order(accountID model.AccountID, orderID model.OrderID) (model.OrderStatusReport, bool) + func (c *Cache) OrderBook(instrumentID model.InstrumentID) (model.OrderBook, bool) + func (c *Cache) OrderByClientID(accountID model.AccountID, clientOrderID model.ClientOrderID) (model.OrderStatusReport, bool) + func (c *Cache) OrderByVenueID(accountID model.AccountID, venueOrderID model.VenueOrderID) (model.OrderStatusReport, bool) + func (c *Cache) Orders(accountID model.AccountID) []model.OrderStatusReport + func (c *Cache) OrdersByExecSpawnID(accountID model.AccountID, execSpawnID model.ExecSpawnID) []model.OrderStatusReport + func (c *Cache) OrdersByOrderListID(accountID model.AccountID, orderListID model.OrderListID) []model.OrderStatusReport + func (c *Cache) OrdersByPositionID(accountID model.AccountID, positionID model.PositionID) []model.OrderStatusReport + func (c *Cache) OrdersByStrategy(accountID model.AccountID, strategyID model.StrategyID) []model.OrderStatusReport + func (c *Cache) Position(accountID model.AccountID, positionID model.PositionID) (model.PositionStatusReport, bool) + func (c *Cache) PositionByInstrument(accountID model.AccountID, instrumentID model.InstrumentID) (model.PositionStatusReport, bool) + func (c *Cache) PositionByVenueID(accountID model.AccountID, venuePositionID model.VenuePositionID) (model.PositionStatusReport, bool) + func (c *Cache) Positions(accountID model.AccountID) []model.PositionStatusReport + func (c *Cache) PositionsByStrategy(accountID model.AccountID, strategyID model.StrategyID) []model.PositionStatusReport + func (c *Cache) PositionsForInstrument(instrumentID model.InstrumentID) []model.PositionStatusReport + func (c *Cache) Purge(accountID model.AccountID, policy PurgePolicy) PurgeResult + func (c *Cache) PutAccount(account model.AccountSnapshot) + func (c *Cache) PutDeferredFill(fill model.FillReport) (bool, error) + func (c *Cache) PutFill(fill model.FillReport) (bool, error) + func (c *Cache) PutInstrument(inst model.Instrument) error + func (c *Cache) PutMarketEvent(event model.MarketEvent) error + func (c *Cache) PutOrder(order model.OrderStatusReport) error + func (c *Cache) PutPosition(position model.PositionStatusReport) error + func (c *Cache) PutSyntheticInstrument(inst model.SyntheticInstrument) error + func (c *Cache) QuoteTick(instrumentID model.InstrumentID) (model.QuoteTick, bool) + func (c *Cache) Residuals(accountID model.AccountID) Residuals + func (c *Cache) Snapshot(accountID model.AccountID) Snapshot + func (c *Cache) SyntheticInstrument(id model.InstrumentID) (model.SyntheticInstrument, bool) + func (c *Cache) SyntheticInstruments() []model.SyntheticInstrument + func (c *Cache) Ticker(instrumentID model.InstrumentID) (model.Ticker, bool) + func (c *Cache) TradeTick(instrumentID model.InstrumentID) (model.TradeTick, bool) + type PurgePolicy struct + AccountSnapshotsLimit int + ClosedOrdersLimit int + ClosedPositionsLimit int + type PurgeResult struct + AccountSnapshots int + ClosedOrders int + ClosedPositions int + type Residuals struct + DeferredFills int + InconsistentOrderMappings int + InconsistentPositionMappings int + OpenOrders int + OpenPositions int + type Snapshot struct + Account model.AccountSnapshot + AccountHistory []model.AccountSnapshot + AccountID model.AccountID + ClosedOrders []model.OrderStatusReport + ClosedPositions []model.PositionStatusReport + DeferredFills []model.FillReport + OpenOrders []model.OrderStatusReport + OpenPositions []model.PositionStatusReport + Residuals Residuals