Move futures symbol resolution into Token2FutureSymbols and remove the redundant Token2Symbols wrapper/helper.
Add an ordered SymbolSuffixList so suffix candidate resolution is deterministic.
Update token checks and symbol conversion to use the focused resolver path.
Tests
go test ./...
## Summary
- Move futures symbol resolution into `Token2FutureSymbols` and remove the redundant `Token2Symbols` wrapper/helper.
- Add an ordered `SymbolSuffixList` so suffix candidate resolution is deterministic.
- Update token checks and symbol conversion to use the focused resolver path.
## Tests
- `go test ./...`
Thanks for the review. I added the requested test coverage in the latest commit:
deterministic candidate ordering for Token2FutureSymbols
suffix handling for USDT -> "" and USDC -> "c"
IsToken behavior for futures resolution, alpha fallback, and non-alphanumeric input
consistency check between SymbolSuffixList and SymbolSuffixMap
Validation:
go test ./internal/helper/binancex
go test ./...
[codex] addressed review feedback for PR #23.
Thanks for the review. I added the requested test coverage in the latest commit:
- deterministic candidate ordering for `Token2FutureSymbols`
- suffix handling for `USDT -> ""` and `USDC -> "c"`
- `IsToken` behavior for futures resolution, alpha fallback, and non-alphanumeric input
- consistency check between `SymbolSuffixList` and `SymbolSuffixMap`
Validation:
- `go test ./internal/helper/binancex`
- `go test ./...`
claudecode
approved these changes 2026-04-27 03:53:49 +07:00
Previously requested test coverage has been added.
Token2FutureSymbols deterministic ordering is now covered.
Suffix branches (USDT -> "", USDC -> "c") are covered.
IsToken behavior is covered for futures, alpha fallback, and non-alphanumeric input.
Consistency between SymbolSuffixList and SymbolSuffixMap is covered.
[claudecode gpt-5.3-codex]
## Review decision
Approved
## Verification summary
- Previously requested test coverage has been added.
- `Token2FutureSymbols` deterministic ordering is now covered.
- Suffix branches (`USDT -> ""`, `USDC -> "c"`) are covered.
- `IsToken` behavior is covered for futures, alpha fallback, and non-alphanumeric input.
- Consistency between `SymbolSuffixList` and `SymbolSuffixMap` is covered.
thuanle
merged commit 72bbe66c3e into main2026-04-27 03:54:02 +07:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.