-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-875] Simplify indexer messages for short term order replacement #1593
Merged
chenyaoy
merged 18 commits into
main
from
chenyao/short-term-order-replacement-indexer-messages
Jun 3, 2024
Merged
Changes from 12 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1719980
Send correct indexer messages for short term order replacement
chenyaoy e5233de
update ci
chenyaoy bbd916e
update replacement logic
chenyaoy 9c68b0a
revert ci change
chenyaoy 9eff317
fix tests
chenyaoy 1c131a9
Merge branch 'main' into chenyao/short-term-order-replacement-indexer…
chenyaoy 2412d02
remove sending orderbook message in order-place-handler
chenyaoy 45f7950
always send order place message
chenyaoy 7ff8fc4
Merge branch 'main' into chenyao/short-term-order-replacement-indexer…
chenyaoy 1bbaee8
lint
chenyaoy 096c8b4
fix vulcan tests
chenyaoy 0f3185a
fix membclob tests
chenyaoy e6aef53
lint
chenyaoy 8983496
Add TODO
chenyaoy 50f7b64
Merge branch 'main' into chenyao/short-term-order-replacement-indexer…
chenyaoy b8df623
don't update OrderbookLevelsCache in order-place-handler
chenyaoy fea1f86
Merge branch 'main' into chenyao/short-term-order-replacement-indexer…
chenyaoy 0d900eb
remove unused code
chenyaoy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing because this is sending a websocket message to remove the unfilled amount of the original order from the orderbook price level. This is not expected to be called currently (before my changes) because we expect order removal to always happen before order place so the updatedQuantums should always be undefined (because an existing order in the Orders Cache should have already been removed at this point)
On order replacement there are 2 cases:
I am concerned that the data sent through socks will not match the data in OpenOrdersCache and OrderbookLevelsCache for the short amount of time between this handler and when the Order Update Handler finishes running, I'm not sure if this is okay or not.