startSubscription
Open a persistent WebSocket subscription to any Bybit topic, returning a subscription ID for reading or stopping later. Auto-closes after 5 minutes without reads; supports multiple subscriptions.
Instructions
开启一个持久 WebSocket 订阅,后台持续积累消息。 返回 subscriptionId,用于后续 readMessages / stopSubscription 调用。 订阅在 5 分钟内未被 readMessages 访问时自动关闭。 同一 topic 可同时存在多个独立订阅。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | 完整 topic 字符串,如 "orderbook.50.BTCUSDT" 或 "execution.linear" | |
| category | Yes | WS 端点分类 | |
| maxMessages | No | 单个订阅的消息缓冲上限,超出时丢弃最旧的消息(默认 500) | |
| requiresAuth | No | 私有频道(execution、order、position、wallet 等)设为 true |