Skip to content

fix(exchange): rename code 0 to Composite#477

Merged
userFRM merged 1 commit into
mainfrom
fix/476-rename-exchange-0
May 5, 2026
Merged

fix(exchange): rename code 0 to Composite#477
userFRM merged 1 commit into
mainfrom
fix/476-rename-exchange-0

Conversation

@userFRM

@userFRM userFRM commented May 5, 2026

Copy link
Copy Markdown
Owner

What

Rename the name field of EXCHANGES[0] from a third-party product mark to neutral SIP terminology (Composite).

Why

crates/tdbe/src/exchange.rs:17 seeded code 0 from an upstream NxCore-style exchange dictionary that embeds a peer-vendor product mark. The published vendor exchange table at https://docs.thetadata.us/Articles/Errors-Exchanges-Conditions/Exchanges.html starts at code 1, so code 0 is internal-only and never appears in user-facing data. The authored source tree should not carry third-party product marks for an internal sentinel.

How

name: "NanexComp" -> name: "Composite". Symbol stays COMP (already generic for the consolidated tape). Test assertion at :437 updated to match. Array length unchanged (78); wire byte 0 still resolves to the same slot.

Closes #476.

Test plan

  • cargo test -p tdbe exchange (5 tests pass)
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo fmt --all -- --check
  • rg 'Nanex' returns no matches in tracked sources

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.
@userFRM userFRM merged commit 3230827 into main May 5, 2026
31 checks passed
@userFRM userFRM deleted the fix/476-rename-exchange-0 branch May 5, 2026 23:10
userFRM added a commit that referenced this pull request May 6, 2026
#477 (Composite rename) merged after the [8.0.26] section was drafted.
Add the bullet under "Changed" so the release notes reflect everything
that ships with v8.0.26.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop peer-vendor product name from EXCHANGES table (code 0)

1 participant