mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-30 23:16:52 +00:00
stream: set connection monitor delay. (#1120)
* stream: set connection monitor delay. - this fixes a bug where the connection monitor delay config value does not get set to the websocket on intialization. * multi: add connection monitor delay to exchange config. - this adds the connection monitor delay config option to the exchange type. - the validate function of the exchange type has been updated to validate the connection monitor delay value as well. * multi: resolve review issues.
This commit is contained in:
@@ -204,15 +204,16 @@ func (by *Bybit) Setup(exch *config.Exchange) error {
|
||||
|
||||
err = by.Websocket.Setup(
|
||||
&stream.WebsocketSetup{
|
||||
ExchangeConfig: exch,
|
||||
DefaultURL: bybitWSBaseURL + wsSpotPublicTopicV2,
|
||||
RunningURL: wsRunningEndpoint,
|
||||
RunningURLAuth: bybitWSBaseURL + wsSpotPrivate,
|
||||
Connector: by.WsConnect,
|
||||
Subscriber: by.Subscribe,
|
||||
Unsubscriber: by.Unsubscribe,
|
||||
GenerateSubscriptions: by.GenerateDefaultSubscriptions,
|
||||
Features: &by.Features.Supports.WebsocketCapabilities,
|
||||
ExchangeConfig: exch,
|
||||
DefaultURL: bybitWSBaseURL + wsSpotPublicTopicV2,
|
||||
RunningURL: wsRunningEndpoint,
|
||||
RunningURLAuth: bybitWSBaseURL + wsSpotPrivate,
|
||||
Connector: by.WsConnect,
|
||||
Subscriber: by.Subscribe,
|
||||
Unsubscriber: by.Unsubscribe,
|
||||
GenerateSubscriptions: by.GenerateDefaultSubscriptions,
|
||||
ConnectionMonitorDelay: exch.ConnectionMonitorDelay,
|
||||
Features: &by.Features.Supports.WebsocketCapabilities,
|
||||
OrderbookBufferConfig: buffer.Config{
|
||||
SortBuffer: true,
|
||||
SortBufferByUpdateIDs: true,
|
||||
|
||||
Reference in New Issue
Block a user