Skip to content

fix(grvt): fix watch_orders not receiving updates for symbol-specific…#28462

Closed
Ghraven wants to merge 1 commit into
ccxt:masterfrom
Ghraven:fix-grvt-watch-orders-message-hash
Closed

fix(grvt): fix watch_orders not receiving updates for symbol-specific…#28462
Ghraven wants to merge 1 commit into
ccxt:masterfrom
Ghraven:fix-grvt-watch-orders-message-hash

Conversation

@Ghraven
Copy link
Copy Markdown

@Ghraven Ghraven commented Apr 27, 2026

… subscriptions

Fixes two bugs reported in #28455:

  1. Message hash mismatch: watch_orders() registered per-symbol hashes as 'order::' + symbol (singular) but handle_order() resolved to 'orders::' + symbol (plural). This caused watch_orders(symbol=X) to hang indefinitely. Fix: align watch_orders to use 'orders::' prefix.

  2. Premature filtering in handle_order(): the handler called filter_by_symbol_since_limit before resolving, which could silently drop orders. Fix: resolve the full orders cache directly and let watch_orders' own filter_by_symbol_since_limit handle post-filtering.

… subscriptions

Fixes two bugs reported in ccxt#28455:

1. Message hash mismatch: watch_orders() registered per-symbol hashes as 'order::' + symbol (singular) but handle_order() resolved to 'orders::' + symbol (plural). This caused watch_orders(symbol=X) to hang indefinitely. Fix: align watch_orders to use 'orders::' prefix.

2. Premature filtering in handle_order(): the handler called filter_by_symbol_since_limit before resolving, which could silently drop orders. Fix: resolve the full orders cache directly and let watch_orders' own filter_by_symbol_since_limit handle post-filtering.
@carlosmiei
Copy link
Copy Markdown
Collaborator

@Ghraven thanks for your contribution, but the issues were addressed in this PR #28461

Besides that, we need to fix the TS version (the py version is transpiled from it)

@carlosmiei carlosmiei closed this Apr 27, 2026
@Ghraven
Copy link
Copy Markdown
Author

Ghraven commented Apr 27, 2026

Thanks for the heads up @carlosmiei! Understood — I wasn't aware PR #28461 was already in flight covering this. Good to know the fix also requires updating the TypeScript source since the Python is transpiled from it. I'll keep that in mind for future contributions to ccxt. Feel free to close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants