Bitmex: Fix deprecated API endpoints and add config migration support (#1901)

* Bitmex: Fix configured WS url ignored

* Bitmex: Replace deprecated WS api endpoint

* [Bitmex deprecated the old WS multiplexing endpoint](https://blog.bitmex.com/api_announcement/api-update-remove-support-realtimemd/)
* [Bitmex deprecated the www WS endpoint in 2021](https://blog.bitmex.com/api_announcement/change-of-websocket-endpoint/). Apparently still in service though.

Fixes #1894
This commit is contained in:
Gareth Kirwan
2025-05-14 05:56:53 +02:00
committed by GitHub
parent 61fc778818
commit c2bb050eac
6 changed files with 189 additions and 102 deletions

View File

@@ -184,7 +184,7 @@ func (b *Bitmex) Setup(exch *config.Exchange) error {
return b.Websocket.SetupNewConnection(&websocket.ConnectionSetup{
ResponseCheckTimeout: exch.WebsocketResponseCheckTimeout,
ResponseMaxLimit: exch.WebsocketResponseMaxLimit,
URL: bitmexWSURL,
URL: wsEndpoint,
})
}