go-binance icon indicating copy to clipboard operation
go-binance copied to clipboard

how to keep listenKey alive?

Open csquan opened this issue 1 year ago • 1 comments

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

csquan avatar Nov 08 '23 09:11 csquan

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

ldt116 avatar Mar 22 '24 06:03 ldt116

completed, close this.

xyq-c-cpp avatar Jun 21 '24 01:06 xyq-c-cpp