Repository navigation
Lighter order book support - #186
Merged
Merged
Conversation
hacheigriega
force-pushed
the
feat/trades
branch
2 times, most recently
from
October 6, 2026 19:21
a2b860a to
4361473
Compare
hacheigriega
force-pushed
the
feat/order-books
branch
from
October 6, 2026 20:18
3f7f8a2 to
06e6456
Compare
hacheigriega
marked this pull request as ready for review
October 6, 2026 21:30
hacheigriega
force-pushed
the
feat/order-books
branch
from
October 6, 2026 21:37
06e6456 to
2d41a82
Compare
Apply incremental Lighter order-book deltas when begin_nonce matches the cached nonce. Drop the book and resubscribe when the sequence breaks or the update is unusable.
hacheigriega
force-pushed
the
feat/order-books
branch
from
October 6, 2026 22:45
2d41a82 to
c3a463d
Compare
Thomasvdam
approved these changes
Oct 8, 2026
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.
Motivation
Lighter order book support with
Explanation of Changes
Lighter's order book channel (doc) requires verifying continuity of the stream by checking that
begin_nonceon the current update matches thenonceof the previous update. We support this by adding an optional field to the output type ofVenueWS'sparseInboundFrame, where the module can specify whether to "write", "ignore", or "resubscribe".Testing
Added test cases
Related PRs and Issues
Related: #183