From 6d29b3b669930c8fe8e9c4c78dfca1342487d797 Mon Sep 17 00:00:00 2001 From: userFRM Date: Wed, 6 May 2026 00:42:36 +0200 Subject: [PATCH] fix(exchange): rename code 0 to Composite (#476) Code 0 was seeded from an upstream NxCore-style dictionary that embeds a peer-vendor product mark in the display name. The published vendor exchange table at docs.thetadata.us starts at code 1, so code 0 is internal-only and never user-visible. Use neutral SIP/CTA terminology (`Composite` / `COMP`) so the authored source carries no third-party product marks. Wire byte 0 still maps to the same array slot; symbol unchanged. --- crates/tdbe/src/exchange.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/tdbe/src/exchange.rs b/crates/tdbe/src/exchange.rs index cd1a8d13d..cf0cdbca3 100644 --- a/crates/tdbe/src/exchange.rs +++ b/crates/tdbe/src/exchange.rs @@ -14,7 +14,7 @@ pub struct Exchange { pub const EXCHANGES: [Exchange; 78] = [ Exchange { code: 0, - name: "NanexComp", + name: "Composite", symbol: "COMP", }, Exchange { @@ -434,7 +434,7 @@ mod tests { #[test] fn exchange_name_valid() { - assert_eq!(exchange_name(0), "NanexComp"); + assert_eq!(exchange_name(0), "Composite"); assert_eq!(exchange_name(3), "NewYorkStockExchange"); assert_eq!(exchange_name(68), "InvestorsExchange"); assert_eq!(exchange_name(77), "24XNationalExchange");