Skip to content

Conversation

@thefabus
Copy link
Contributor

Pull Request

NautilusTrader prioritizes correctness and reliability, please follow existing patterns for validation and testing.

  • I have reviewed the CONTRIBUTING.md and followed the established practices

Summary

My last fix #2963 adressed only part of the recent changes and I have reverted it.
Polymarket introduced some breaking changes: https://docs.polymarket.com/developers/CLOB/websocket/market-channel-migration-guide
This PR adresses them and I confirmed that I'm able to receive OrderbookDeltas and Quotes again.

Related Issues/PRs

Type of change

  • Bug fix (non-breaking)
  • New feature (non-breaking)
  • Breaking change (impacts existing behavior)
  • Documentation update
  • Maintenance / chore

Breaking change details (if applicable)

Documentation

  • Documentation changes follow the style guide (docs/developer_guide/docs.md)

Release notes

  • I added a concise entry to RELEASES.md that follows the existing conventions (when applicable)

Testing

Ensure new or changed logic is covered by tests.

  • Affected code paths are already covered by the test suite
  • I added/updated tests to cover new or changed logic

This reverts commit 6f59400.

More changes are needed that would change these as well.
As a result of this breaking change:
https://docs.polymarket.com/developers/CLOB/websocket/market-channel-migration-guide

It looks like ws messages only contain single objects as per
documentation now as opposed to lists.
@cjdsellers cjdsellers changed the title Fix polymarket adapter Fix Polymarket ws message handling Sep 18, 2025
@cjdsellers
Copy link
Member

Hi @thefabus

Thanks for the fix and confirming in production 🙏.

We'll need to get some more comprehensive automated testing going eventually.

@cjdsellers cjdsellers merged commit b9a00c6 into nautechsystems:develop Sep 18, 2025
17 checks passed
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