Skip to content

Refactor account resolution and broker selection logic#6

Merged
smallfish06 merged 1 commit intomainfrom
feat/broker
Mar 1, 2026
Merged

Refactor account resolution and broker selection logic#6
smallfish06 merged 1 commit intomainfrom
feat/broker

Conversation

@smallfish06
Copy link
Owner

  • Introduced resolveBrokerByAccountID and normalizeAccountIDAlias for unified broker resolution.
  • Enhanced account matching with suffix handling and deterministic sorting.
  • Replaced getBrokerStrict with resolveBrokerByAccountID throughout server handlers.
  • Added new test cases for ambiguous account ID handling, broker selection, and sandbox preference.
  • Updated OpenAPI documentation to include optional account_id query parameter for relevant endpoints.

- Introduced `resolveBrokerByAccountID` and `normalizeAccountIDAlias` for unified broker resolution.
- Enhanced account matching with suffix handling and deterministic sorting.
- Replaced `getBrokerStrict` with `resolveBrokerByAccountID` throughout server handlers.
- Added new test cases for ambiguous account ID handling, broker selection, and sandbox preference.
- Updated OpenAPI documentation to include optional `account_id` query parameter for relevant endpoints.
@smallfish06 smallfish06 merged commit 1839111 into main Mar 1, 2026
2 checks passed
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.

1 participant