VinterAPIWS
vinter_sdk_ws
VinterAPIWS
VinterAPIWS(
    symbol: str,
    token: str,
    asset_type: WsAssetType,
    on_message: callable,
    on_error: callable,
    on_close: callable,
    on_open: callable,
)
Parameters:
- 
        symbol(str) –The symbol of the asset you want to get data for. 
- 
        token(str) –The API token. 
- 
        asset_type(WsAssetType(str)) –The type of asset you want to get data for. 
- 
        on_message(callable) –Callback function for when a message is received. 
- 
        on_error(callable) –Callback function for when an error occurs. 
- 
        on_close(callable) –Callback function for when the connection is closed. 
- 
        on_open(callable) –Callback function for when the connection is opened. 
Source code in vintersdk/vinter_sdk_ws.py
                close
get_ws_url
It takes the asset type and symbol and returns the websocket url
Returns:
- 
            The websocket url for the asset type and symbol.–
open
The function opens a websocket connection to the url specified in the constructor