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 Parameter | Default type |
|---|---|
TWSTopic extends string | string |
TWSPayload | unknown |
Properties
| Property | Type |
|---|---|
category? | WSCategoryV5 |
payload? | TWSPayload |
topic | TWSTopic |