How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Bybit

Cryptocurrency data feed and algorithmic trading

This event API exposes 29 operations across 15 channels, and defines 19 schemas. It is described by AsyncAPI 2.6.0, at version 5.0.0.

The API connects through 11 servers: stream.bybit.com/v5/public/spot (wss), stream.bybit.com/v5/public/linear (wss), stream.bybit.com/v5/public/inverse (wss), stream.bybit.com/v5/public/option (wss), stream.bybit.com/v5/public/spread (wss), stream.bybit.com/v5/private (wss), stream-testnet.bybit.com/v5/public/spot (wss), stream-testnet.bybit.com/v5/public/linear (wss), stream-testnet.bybit.com/v5/public/inverse (wss), stream-testnet.bybit.com/v5/public/option (wss), stream-testnet.bybit.com/v5/private (wss).

29 operations 15 channels 19 schemas

Metadata

The identity and technical contract details declared by the specification.

Specification
AsyncAPI 2.6.0
API Version
5.0.0
Base URL
https://bybit-exchange.github.io/docs/linear/#t-introduction
Resource Areas
1

Channels & Operations 29

Across 15 channels, the API surfaces 29 operations. Each is listed below with its action, channel, parameters, and response codes.

Channels 29
SUB
orderbook.{depth}.{symbol}
Receive orderbook snapshots and deltas.
subOrderbook 2 params body
PUB
orderbook.{depth}.{symbol}
Subscribe to orderbook topic.
pubSubscribeOrderbook 2 params body
SUB
publicTrade.{symbol}
Public trade stream. For options the parameter is the base coin (e.g. BTC), for all other categories it is the contract symbol (e.g. BTCUSDT). A single message may contain up to 1024 trades.
subPublicTrade 1 param body
PUB
publicTrade.{symbol}
Public trade stream. For options the parameter is the base coin (e.g. BTC), for all other categories it is the contract symbol (e.g. BTCUSDT). A single message may contain up to 1024 trades.
pubSubscribePublicTrade 1 param body
SUB
tickers.{symbol}
Ticker stream. Spot pushes snapshots only at 50ms. Linear, inverse and option push a full snapshot followed by deltas at 100ms.
subTickers 1 param body
PUB
tickers.{symbol}
Ticker stream. Spot pushes snapshots only at 50ms. Linear, inverse and option push a full snapshot followed by deltas at 100ms.
pubSubscribeTickers 1 param body
SUB
kline.{interval}.{symbol}
Kline (candlestick) stream. Pushed every 1-60s. confirm=true indicates the candle is closed.
subKline 2 params body
PUB
kline.{interval}.{symbol}
Kline (candlestick) stream. Pushed every 1-60s. confirm=true indicates the candle is closed.
pubSubscribeKline 2 params body
SUB
liquidation.{symbol}
DEPRECATED. Liquidation stream for a contract symbol. At most one liquidation per second per symbol. Replaced by allLiquidation.{symbol}.
subLiquidation 1 param body
PUB
liquidation.{symbol}
DEPRECATED. Liquidation stream for a contract symbol. At most one liquidation per second per symbol. Replaced by allLiquidation.{symbol}.
pubSubscribeLiquidation 1 param body
SUB
allLiquidation.{symbol}
All-liquidation stream. Pushed at 500ms intervals. Covers USDT, USDC and inverse contracts.
subAllLiquidation 1 param body
PUB
allLiquidation.{symbol}
All-liquidation stream. Pushed at 500ms intervals. Covers USDT, USDC and inverse contracts.
pubSubscribeAllLiquidation 1 param body
SUB
order
Private order stream. Subscribe to order (all categories) or to the categorised variants order.spot, order.linear, order.inverse, order.option. Categorised and all-in-one topics cannot be mixed in a…
subOrder body
PUB
order
Private order stream. Subscribe to order (all categories) or to the categorised variants order.spot, order.linear, order.inverse, order.option. Categorised and all-in-one topics cannot be mixed in a…
pubSubscribeOrder body
SUB
execution
Private execution stream. Subscribe to execution or categorised execution.spot|linear|inverse|option.
subExecution body
PUB
execution
Private execution stream. Subscribe to execution or categorised execution.spot|linear|inverse|option.
pubSubscribeExecution body
SUB
execution.fast
Fast execution stream. Lower latency than execution, only trade-type executions, with a reduced field set. Categorised variants: execution.fast.spot, execution.fast.linear, execution.fast.inverse, ex…
subFastExecution body
PUB
execution.fast
Fast execution stream. Lower latency than execution, only trade-type executions, with a reduced field set. Categorised variants: execution.fast.spot, execution.fast.linear, execution.fast.inverse, ex…
pubSubscribeFastExecution body
SUB
position
Private position stream. Subscribe to position or categorised position.linear|inverse|option. Spot does not push position updates.
subPosition body
PUB
position
Private position stream. Subscribe to position or categorised position.linear|inverse|option. Spot does not push position updates.
pubSubscribePosition body
SUB
wallet
Private wallet stream. Pushes balance changes for the unified trading account. No snapshot on subscribe.
subWallet body
PUB
wallet
Private wallet stream. Pushes balance changes for the unified trading account. No snapshot on subscribe.
pubSubscribeWallet body
SUB
greeks
Private greeks stream (options only). Pushes account-wide totals per base coin.
subGreeks body
PUB
greeks
Private greeks stream (options only). Pushes account-wide totals per base coin.
pubSubscribeGreeks body
PUB
dcp
Disconnect-Cancel-Protect trigger stream. Subscribe variants: dcp.future, dcp.spot, dcp.option. When all private connections that subscribe to a dcp topic become inactive within the configured time w…
pubSubscribeDcp body
SUB
auth
Auth handshake. Send before subscribing on the private endpoint. Signature: HMACSHA256(secret, "GET/realtime" + expires) where expires is a millisecond Unix timestamp at least 1s in the future.
subAuthAck body
PUB
auth
Auth handshake. Send before subscribing on the private endpoint. Signature: HMACSHA256(secret, "GET/realtime" + expires) where expires is a millisecond Unix timestamp at least 1s in the future.
pubAuth body
SUB
ping
Heartbeat. Clients must send a ping every 20 seconds; server responds with a pong. Idle connections are closed after ~5 minutes.
subPong body
PUB
ping
Heartbeat. Clients must send a ping every 20 seconds; server responds with a pong. Idle connections are closed after ~5 minutes.
pubPing body

Messages & Schemas 19

The contract defines 19 schemas that model the data carried by its messages. Each schema is shown below with its type and property counts.

SubscribeRequest
message
Subscribe or unsubscribe to one or more topics.
AuthRequest
message
PingRequest
message
PongMessage
message
OpAck
message
OrderbookMessage
message
PublicTradeMessage
message
TickerSpotMessage
message
TickerLinearInverseMessage
message
TickerOptionMessage
message
KlineMessage
message
LiquidationMessage
message
AllLiquidationMessage
message
OrderMessage
message
ExecutionMessage
message
FastExecutionMessage
message
PositionMessage
message
WalletMessage
message
GreeksMessage
message

Specification

The full machine-readable AsyncAPI contract behind this narrative.

Source

bybit-asyncapi.yml Raw ↑
Where this information came from

This is an independent, third-party profile of Bybit, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.