Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the Update Speed for Web Sockets Stream API? #112

Open
mrksph opened this issue May 28, 2024 · 1 comment
Open

Set the Update Speed for Web Sockets Stream API? #112

mrksph opened this issue May 28, 2024 · 1 comment

Comments

@mrksph
Copy link

mrksph commented May 28, 2024

Hi,

Looking the documentation for Web Socket Stream API I can see that the Update Speed for most of the streams is 1000ms which I think is too high.

Inspecting the Binance home page with the devtools I can see they are using the following stream
image

So I was thinking if there is a way to configure the update speed for a given stream? I see that the current api exposes separate methods for each stream so it would involve including a new parameter to specify the update speed, if possible

E.g.:

webSocketStreamClient.allRollingWindowTicker("1h", "3000", (event) -> {
        try {
            symbolDataSocketHandler.broadcast(event);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
});
@mrksph mrksph changed the title Is there a way to set the Update Speed for Web Sockets Stream API? Set the Update Speed for Web Sockets Stream API? May 28, 2024
@mrksph
Copy link
Author

mrksph commented May 28, 2024

@aisling-2

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

No branches or pull requests

1 participant