REST and other synchronous API are well defined via OpenAPI specification, and docs&code can be generated with Swagger or other platforms. It is not suited to describe Websockets.
This question has already been asked 6 years ago on stack, and i would like to know the current status of your websocket API and their documentation.
AsyncAPI has been designed to define asynchronous API, but it does not seems well suited to websocket, it seems more oriented to publish/subscribe protocols like MQTT.
For reference, trading platforms defines public websocket API :