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

how to keep listenKey alive? #522

Open
csquan opened this issue Nov 8, 2023 · 1 comment
Open

how to keep listenKey alive? #522

csquan opened this issue Nov 8, 2023 · 1 comment

Comments

@csquan
Copy link

csquan commented Nov 8, 2023

follow test code:
client.NewKeepaliveUserStreamService().ListenKey(listenKey).Do(newContext()),
I have few questions.
how long is the listenKey valid?

@ldt116
Copy link

ldt116 commented Mar 22, 2024

Binance document https://binance-docs.github.io/apidocs/futures/en/#user-data-streams already mentioned that.

A User Data Stream listenKey is valid for 60 minutes after creation.
Doing a PUT on a listenKey will extend its validity for 60 minutes

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

2 participants