mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
binance: adjust listen key keep alive to 20 minutes
This commit is contained in:
parent
457ca79517
commit
0df26e0570
|
@ -409,7 +409,7 @@ func (s *Stream) ping(ctx context.Context) {
|
|||
// Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes.
|
||||
// It's recommended to send a ping about every 30 minutes.
|
||||
func (s *Stream) listenKeyKeepAlive(ctx context.Context, listenKey string) {
|
||||
keepAliveTicker := time.NewTicker(1 * time.Minute)
|
||||
keepAliveTicker := time.NewTicker(20 * time.Minute)
|
||||
defer keepAliveTicker.Stop()
|
||||
|
||||
// if we exit, we should invalidate the existing listen key
|
||||
|
|
Loading…
Reference in New Issue
Block a user