{"record":{"id":"8b43eedcacf4df4a","repo":"nautechsystems/nautilus_trader","slug":"loading-market-data-for-redis-cache-adapter-not-su","errorCode":null,"errorMessage":"Loading market data for Redis cache adapter not supported","messagePattern":"Loading market data for Redis cache adapter not supported","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/infrastructure/src/redis/cache.rs","lineNumber":1613,"sourceCode":"        &self,\n        _client_order_id: &ClientOrderId,\n    ) -> anyhow::Result<Option<OrderSnapshot>> {\n        anyhow::bail!(\"Loading order snapshots from Redis cache adapter not supported\")\n    }\n\n    fn load_position_snapshot(\n        &self,\n        _position_id: &PositionId,\n    ) -> anyhow::Result<Option<PositionSnapshot>> {\n        anyhow::bail!(\"Loading position snapshots from Redis cache adapter not supported\")\n    }\n\n    fn load_quotes(&self, _instrument_id: &InstrumentId) -> anyhow::Result<Vec<QuoteTick>> {\n        anyhow::bail!(\"Loading quote data for Redis cache adapter not supported\")\n    }\n\n    fn load_trades(&self, _instrument_id: &InstrumentId) -> anyhow::Result<Vec<TradeTick>> {\n        anyhow::bail!(\"Loading market data for Redis cache adapter not supported\")\n    }\n\n    fn load_funding_rates(\n        &self,\n        _instrument_id: &InstrumentId,\n    ) -> anyhow::Result<Vec<FundingRateUpdate>> {\n        anyhow::bail!(\"Loading market data for Redis cache adapter not supported\")\n    }\n\n    fn load_bars(&self, _instrument_id: &InstrumentId) -> anyhow::Result<Vec<Bar>> {\n        anyhow::bail!(\"Loading market data for Redis cache adapter not supported\")\n    }\n\n    fn add(&self, key: String, value: Bytes) -> anyhow::Result<()> {\n        let key = format!(\"{GENERAL}{REDIS_DELIMITER}{key}\");\n        self.database.insert(key, Some(vec![value]))\n    }\n","sourceCodeStart":1595,"sourceCodeEnd":1631,"githubUrl":"https://github.com/nautechsystems/nautilus_trader/blob/18893faf8b356be3320add8de2f861b0b647cf06/crates/infrastructure/src/redis/cache.rs#L1595-L1631","documentation":"Intentional capability stub in the Redis cache adapter: loading market data (quotes/trades/bars) is out of scope for Redis persistence, so the trait method always bails instead of returning empty data.","triggerScenarios":"Thrown at crates/infrastructure/src/redis/cache.rs:1613 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Load historical market data from the Parquet data catalog instead of the Redis cache","Implement a custom CacheAdapter if Redis-backed market data is required"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"18893faf8b356be3320add8de2f861b0b647cf06","analyzedAt":"2026-09-08T20:49:34.690Z","contentChangedAt":"2026-09-08T20:49:34.690Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}