Skip to content

ByBit one symbol per frame - #184

Merged
hacheigriega merged 3 commits into
mainfrom
feat/hydro-trade
Sep 29, 2026
Merged

hacheigriega merged 3 commits into
mainfrom
feat/hydro-trade

Conversation

@hacheigriega

@hacheigriega hacheigriega commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Two problems:

  • ByBit rejects all symbols in the request if any of the symbols is invalid. And since we currently do not process acks in the shared WS, the module could mistakenly believe that requested symbols have been successfully subscribed. This results in invalid empty results for OP.
  • The module currently has a rather restrictive maxSymbolsPerRequest at 10, which was set based on ByBit's limit on the number of arguments per request for its spot endpoint.

Explanation of Changes

It seemed the simplest solution is to send one symbol per subscribe or unsubscribe frame. This also made sense given that ByBit does not rate limit on the number of messages.

Also includes a small commit that adds config check for duplicate module names.

@hacheigriega hacheigriega changed the title Feat/hydro trade ByBit split request frames Sep 28, 2026
@hacheigriega
hacheigriega requested review from a team and gluax September 28, 2026 20:04
@hacheigriega
hacheigriega marked this pull request as draft September 28, 2026 20:26
The ByBit module now sends one symbol per subscribe or unsubscribe frame
since ByBit rejects all symbols in the request if any of the symbols is
invalid. This change also allows the module's `maxSymbolsPerRequest` to
go above 10, which was set based on ByBit's limit on the number of
arguments for its spot endpoint.
@hacheigriega
hacheigriega marked this pull request as ready for review September 28, 2026 20:42
@hacheigriega hacheigriega changed the title ByBit split request frames ByBit one symbol per request Sep 28, 2026
@hacheigriega hacheigriega changed the title ByBit one symbol per request ByBit one symbol per frame Sep 28, 2026
@hacheigriega
hacheigriega merged commit 5cd9995 into main Sep 29, 2026
2 checks passed
@hacheigriega
hacheigriega deleted the feat/hydro-trade branch September 29, 2026 12:47
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