Optionalagentwebsocket agent
OptionalapiThe API key used for authentication (optional).
OptionalapiThe API secret used for authentication (optional).
OptionalbaseThe base URL of the REST API (optional).
Optionalcompressionuse compression for websocket messages
Optionalmodethe mode of the connection, either 'single' or 'pool'.
Optionalpoolthe size of the connection pool, if the mode is set to 'pool'.
OptionalprivateThe private key used for authentication (optional).
OptionalprivateThe passphrase for the private key (optional).
Optionalreconnectreconnction delay
OptionaltimetimeUnit (used only on SPOT API)
OptionalwsThe WebSocket token provided by the user (optional).
OptionalwsThe endpoint to fetch the WebSocket token (optional).
Optionalwsoverride websocket url
Represents the configuration options for the WebSocket Streams.
Remarks
wsTokenis provided, it will be used directly for WebSocket connections.apiKeyis provided, a token will be fetched from the REST API and renewed automatically.wsTokennorapiKeyis provided, an error will be thrown when attempting to connect.