Skip to content

Interface: WsTopicRequest<TWSTopic extends string = string, TWSPayload = unknown> ​

Normalised internal format for a request (subscribe/unsubscribe/etc) on a topic, with optional parameters.

  • Topic: the topic this event is for
  • Payload: the parameters to include, optional. E.g. auth requires key + sign. Some topics allow configurable parameters.
  • Category: required for bybit, since different categories have different public endpoints

Type Parameters ​

Type ParameterDefault type
TWSTopic extends stringstring
TWSPayloadunknown

Properties ​

PropertyType
category?WSCategoryV5
payload?TWSPayload
topicTWSTopic

Built by Siebly. Open source SDKs for exchange APIs.