fix: omit user stream market filter for all markets#103
Open
cesarenaldi wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
marketsfilter when subscribing to all marketsmarkets: [...]Verification
uv run pytest tests/unit/test_streams_user_protocol.py tests/unit/test_streams_user_manager.py tests/unit/test_streams_user_events.py -quv run ruff format --check .uv run ruff check .uv run pyrightuv run pytest -qNotes
markets: []for broad subscriptions too, so the same behavior likely needs a follow-up there.Note
Low Risk
Small WebSocket protocol shape change with focused tests; risk is mainly if a server required
markets: []rather than a missing field.Overview
Fixes the CLOB user WebSocket initial subscribe frame when the client wants all markets: it no longer sends
markets: []and instead omits themarketsfield entirely. Narrow subscriptions are unchanged and still sendmarketswith the explicit market list.build_initial_frameinuser_protocol.pygatesmarketsoninclude_all_markets. Unit and manager tests were updated to expect nomarketskey for broad subscriptions (including all-markets demotion/promotion flows).Reviewed by Cursor Bugbot for commit 65f3ece. Bugbot is set up for automated code reviews on this repo. Configure here.