Skip to content

[pull] master from thrasher-corp:master#102

Merged
pull[bot] merged 1 commit intosyther-labs:masterfrom
thrasher-corp:master
Feb 9, 2026
Merged

[pull] master from thrasher-corp:master#102
pull[bot] merged 1 commit intosyther-labs:masterfrom
thrasher-corp:master

Conversation

@pull
Copy link

@pull pull bot commented Feb 9, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…n websocket (#2109)

* feat: Enhance websocket management and subscription handling for OKX exchange

- Implemented connection management for business websocket channels.
- Refactored subscription methods to accept connection parameters.
- Added error handling for subscription generation and flushing channels.
- Improved websocket connection setup with dedicated methods for public, private, and business connections.
- Updated tests to reflect changes in subscription handling and connection management.
- Introduced chunking for subscription requests to manage byte limits effectively.
- Enhanced error handling in websocket data processing and subscription management.

* okx: re-integrate test for business

* Update exchange/websocket/manager.go

Co-authored-by: Scott <gloriousCode@users.noreply.github.com>

* Update exchanges/okx/okx_business_websocket.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update exchanges/okx/okx_websocket.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* glorious: nits, fix test and linter

* glorious: slice usage

* glorious: test coverage

* linter: fix

* spelling: kween

* revert waitgroup Go func call as its producing some raceyness which I don't want to tackle right now

* glorious: patch

* Enhance websocket connection management with rate limiting support

- Added ConnectionRateLimit function to ConnectionSetup for dynamic rate limiting.
- Updated getConnectionFromSetup to utilize ConnectionRateLimit if defined.
- Adjusted websocket request handling to use websocketRequestEPL for consistency.
- Modified OKX exchange setup to implement specific rate limits for websocket connections.

* rm loggig

* bossking: nits

* Update exchange/websocket/connection.go

Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>

* Update exchange/websocket/manager.go

Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>

* gk: nits v1

* gk: Add subscription store management to websocket connections

* gk: rename connectionWrapper to websocket

* rename wrapper var to ws where needed

* Update exchange/websocket/connection.go

Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>

* Update exchange/websocket/connection.go

Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>

* gk: nits

* Update exchange/websocket/manager.go

Co-authored-by: Scott <gloriousCode@users.noreply.github.com>

* Update exchange/websocket/connection_test.go

Co-authored-by: Scott <gloriousCode@users.noreply.github.com>

* Update exchange/websocket/connection_test.go

Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>

* gk: nits

* glorious: nits

* glorious: nits

* misc: fix

* Update exchange/websocket/subscriptions.go

Co-authored-by: Scott <gloriousCode@users.noreply.github.com>

* Update exchange/websocket/subscriptions.go

Co-authored-by: Scott <gloriousCode@users.noreply.github.com>

* Update exchange/websocket/subscriptions.go

Co-authored-by: Scott <gloriousCode@users.noreply.github.com>

* glorious: nits

* fix intermittent test panic when routine calls GetURL() on fixture connection

* fix: shutdown error: nil pointer: *websocket.Conn issue: #2142

* Update exchange/websocket/manager_test.go

Co-authored-by: Scott <gloriousCode@users.noreply.github.com>

* feat: implement spot margin subscription evaluator and related functionality

* fix: re-thread context after merge + linter fix

* Dazi: fix panic when zero pair is supplied

* test: fix block and error logs when testing business channel subscriptions

* glorious: nits

* glorious: nits increase time for assert.Eventually tick

---------

Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
Co-authored-by: Scott <gloriousCode@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
@pull pull bot locked and limited conversation to collaborators Feb 9, 2026
@pull pull bot added the ⤵️ pull label Feb 9, 2026
@pull pull bot merged commit 804ec7b into syther-labs:master Feb 9, 2026
5 of 12 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant