Repository navigation
Conversation
dboyliao
force-pushed
the
dboy/orderbook/poll-source-book-on-stale
branch
from
November 25, 2026 02:05
3c2fa94 to
ca3364c
Compare
dboyliao
force-pushed
the
dboy/orderbook/update-monitor
branch
from
November 25, 2026 02:05
1900037 to
ccffc05
Compare
This was referenced Nov 25, 2026
dboyliao
force-pushed
the
dboy/orderbook/poll-source-book-on-stale
branch
from
November 25, 2026 02:31
ca3364c to
c74b950
Compare
dboyliao
force-pushed
the
dboy/orderbook/update-monitor
branch
from
November 25, 2026 02:31
ccffc05 to
19f0dc0
Compare
c9s
approved these changes
Nov 25, 2026
dboyliao
force-pushed
the
dboy/orderbook/poll-source-book-on-stale
branch
2 times, most recently
from
November 25, 2026 03:19
339ac26 to
7ea198f
Compare
dboyliao
force-pushed
the
dboy/orderbook/update-monitor
branch
from
November 25, 2026 03:20
19f0dc0 to
4676312
Compare
3 tasks done
dboyliao
force-pushed
the
dboy/orderbook/update-monitor
branch
from
November 25, 2026 07:32
4676312 to
8ce869c
Compare
dboyliao
force-pushed
the
dboy/orderbook/poll-source-book-on-stale
branch
from
November 25, 2026 07:32
7ea198f to
219ed36
Compare
Wires types.StreamBookMonitor into the strategy as an optional sourceBookUpdateMonitor config block, bound to the source book right after BindStream. In the quote loop, when it reports the book stale, the hedge exchange is polled for a fresh depth snapshot via REST (if it implements types.ExchangeDepthQueryService) before reading best bid/ask. The existing PriceHeartBeat/reconnect safety net is unchanged and still applies if the book remains stale. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
dboyliao
force-pushed
the
dboy/orderbook/poll-source-book-on-stale
branch
from
November 25, 2026 07:52
219ed36 to
458c32c
Compare
dboyliao
force-pushed
the
dboy/orderbook/update-monitor
branch
from
November 25, 2026 07:52
8ce869c to
02b4a69
Compare
This branch has not been deployed
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
types.StreamBookMonitorinto the strategy as an optionalsourceBookUpdateMonitorconfig block, bound to the source book right afterBindStream.types.ExchangeDepthQueryService) before reading best bid/ask.PriceHeartBeat/reconnect safety net is unchanged and still applies if the book remains stale after the poll.Test plan
go build ./pkg/strategy/xmaker/...go test ./pkg/strategy/xmaker/...gofmt -s -l/go vetclean🤖 Generated with Claude Code