improvement: Set bybit exe gw websocket timeout to 5s
The default (1s) is too strict in practice.
This commit is contained in:
1 parent
b3566155a3
commit
c281bc49b5
1 file changed
+2
@@ -194,6 +194,7 @@ class BybitExecutionGateway(ExecutionGateway):
|
||||
"api_secret": self.secret_key,
|
||||
"testnet": self.use_testnet,
|
||||
"channel_type": "private",
|
||||
"private_auth_expire": 5,
|
||||
"trace_logging": False,
|
||||
}
|
||||
self.logger.info("[bybit_gw_stream_sub.json]%s" % JsonElement(params))
|
||||
@@ -205,6 +206,7 @@ class BybitExecutionGateway(ExecutionGateway):
|
||||
"api_key": self.api_key,
|
||||
"api_secret": self.secret_key,
|
||||
"testnet": self.use_testnet,
|
||||
"private_auth_expire": 5,
|
||||
}
|
||||
self.logger.info("[bybit_gw_start_trd_cli.json]%s" % JsonElement(params))
|
||||
self.trade_cli = WebSocketTrading(**params)
|
||||
|
||||
Reference in new issue
Block a user