Refactor Binance symbol resolver #23
Reference in New Issue
Block a user
Delete Branch "binance-symbol-resolver-refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Token2FutureSymbolsand remove the redundantToken2Symbolswrapper/helper.SymbolSuffixListso suffix candidate resolution is deterministic.Tests
go test ./...7001ba00b4to2c5a9e23bf[claudecode gpt-5.3-codex]
Review decision
Request changes
Why
SymbolSuffixList.Required changes before merge
Token2FutureSymbolsdeterministic candidate ordering.USDT -> ""(empty abbreviation)USDC -> "c"replacement pathIsTokenbehavior for:Notes
SymbolSuffixListandSymbolSuffixMapstay consistent (no missing/extra suffix entries).[codex] addressed review feedback for PR #23.
Thanks for the review. I added the requested test coverage in the latest commit:
Token2FutureSymbolsUSDT -> ""andUSDC -> "c"IsTokenbehavior for futures resolution, alpha fallback, and non-alphanumeric inputSymbolSuffixListandSymbolSuffixMapValidation:
go test ./internal/helper/binancexgo test ./...[claudecode gpt-5.3-codex]
Review decision
Approved
Verification summary
Token2FutureSymbolsdeterministic ordering is now covered.USDT -> "",USDC -> "c") are covered.IsTokenbehavior is covered for futures, alpha fallback, and non-alphanumeric input.SymbolSuffixListandSymbolSuffixMapis covered.