adshao / go-binance

A Go SDK for Binance API
MIT License
1.54k stars 676 forks source link

how to keep listenKey alive? #522

Closed csquan closed 3 months ago

csquan commented 10 months ago

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

ldt116 commented 6 months ago

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

xyq-c-cpp commented 3 months ago

completed, close this.