Skip to main content

Market Channel

Get the 24-hour market ticker data

Request Parameters

ParameterTypeRequiredDescription
opstringYesOperation, subscribe unsubscribe
argslistYesList of channels to request subscription
> instTypestringYesProduct type: SPOT
> channelstringYesChannel name: ticker
> instIdstringYesProduct ID E.g. BTCUSDT

Request Example

{
"op": "subscribe",
"args": [
{
"instType": "SPOT",
"channel": "ticker",
"instId": "BTCUSDT"
}
]
}

Response Parameters

ParameterTypeDescription
eventstringEvent
argobjectSubscribed channels
> instTypestringProduct type
> channelstringChannel name
> instIdstringProduct ID E.g. BTCUSDT
codestringError code
msgstringError message

Response Example

{
"event": "subscribe",
"arg": {
"instType": "SPOT",
"channel": "ticker",
"instId": "BTCUSDT"
}
}

Push Parameters

ParameterTypeDescription
eventstringEvent type: ticker
dataobjectTicker data
> instIdstringProduct ID
> lastPrstringLast price
> open24hstringOpen price in the past 24 hours
> high24hstringHighest price in the past 24 hours
> low24hstringLowest price in the past 24 hours
> change24hstringPrice change percentage (24h)
> bidPrstringBest bid price
> askPrstringBest ask price
> bidSzstringBest bid size
> askSzstringBest ask size
> baseVolumestring24h trading volume in base currency
> quoteVolumestring24h trading volume in quote currency
> openUtcstringOpen price at UTC 00:00
> changeUtc24hstringPrice change percentage from UTC 00:00
> tsstringTimestamp

Push Data

{
"event": "ticker",
"data": {
"instId": "BTCUSDT",
"lastPr": "27000.5",
"open24h": "26500",
"high24h": "27500",
"low24h": "26000",
"change24h": "1.89",
"bidPr": "27000",
"askPr": "27001",
"bidSz": "0.5",
"askSz": "0.3",
"baseVolume": "12500.5000",
"quoteVolume": "337513500.2500",
"openUtc": "26500",
"changeUtc24h": "1.89",
"ts": "1695716760565"
}
}