You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Low Risk
Comment-only changes with no runtime, API, or security impact.
Overview
Documentation-only updates so consumers interpret CLOB data and market subscriptions correctly.
OrderBook now documents that bids are sorted ascending (lowest bid first) and asks descending (highest ask first), which matters when reading top-of-book from full book snapshots.
MarketSpec docstrings clarify that token_ids selects which tokens receive events, and that custom_feature_enabled=True also enables MarketBestBidAskEvent, NewMarketEvent, and MarketResolvedEvent on top of the default market stream behavior.
Reviewed by Cursor Bugbot for commit cb5fc33. Bugbot is set up for automated code reviews on this repo. Configure here.
The event list (MarketBestBidAskEvent, NewMarketEvent, MarketResolvedEvent) matches match_for in _internal/streams/clob/market_protocol.py:91-108 exactly. tick_size_change / last_trade_price are correctly omitted because those fire regardless of the flag.
The OrderBook field docstrings line up 1:1 with what the live API returns (verified against an active high-volume market: 60 ask levels in descending order, 8 bid levels in ascending order).
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
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
Verification
Linear: DEV-135
Closes #42
Closes #43
Note
Low Risk
Comment-only changes with no runtime, API, or security impact.
Overview
Documentation-only updates so consumers interpret CLOB data and market subscriptions correctly.
OrderBooknow documents thatbidsare sorted ascending (lowest bid first) andasksdescending (highest ask first), which matters when reading top-of-book from full book snapshots.MarketSpecdocstrings clarify thattoken_idsselects which tokens receive events, and thatcustom_feature_enabled=Truealso enablesMarketBestBidAskEvent,NewMarketEvent, andMarketResolvedEventon top of the default market stream behavior.Reviewed by Cursor Bugbot for commit cb5fc33. Bugbot is set up for automated code reviews on this repo. Configure here.