Skip to main content

Ticker

Subscribe to the ticker stream.

note
  • This topic utilises the snapshot field and delta field. If a response param is not found in the message, then its value has not changed.
  • Spot & Option tickers message are snapshot only

Push frequency: Derivatives & Options - 100ms, Spot - 50ms

Topic:
tickers.{symbol}

Response Parameters

ParameterTypeComments
topicstringTopic name
typestringData type. snapshot,delta
csintegerCross sequence
tsnumberThe timestamp (ms) that the system generates the data
dataarrayObject
> symbolstringSymbol name
> tickDirectionstringTick direction
> price24hPcntstringPercentage change of market price in the last 24 hours
> lastPricestringLast price
> prevPrice24hstringMarket price 24 hours ago
> highPrice24hstringThe highest price in the last 24 hours
> lowPrice24hstringThe lowest price in the last 24 hours
> prevPrice1hstringMarket price an hour ago
> markPricestringMark price
> indexPricestringIndex price
> openIntereststringOpen interest size
> openInterestValuestringOpen interest value
> turnover24hstringTurnover for 24h
> volume24hstringVolume for 24h
> nextFundingTimestringNext funding timestamp (ms)
> fundingRatestringFunding rate
> bid1PricestringBest bid price
> bid1SizestringBest bid size
> ask1PricestringBest ask price
> ask1SizestringBest ask size
> deliveryTimedatetimeDelivery date time (UTC+0), applicable to expired futures only
> basisRatestringBasis rate. Unique field for inverse futures & USDT/USDC futures
> deliveryFeeRatestringDelivery fee rate. Unique field for inverse futures & USDT/USDC futures
> predictedDeliveryPricestringPredicated delivery price. Unique field for inverse futures & USDT/USDC futures
> preOpenPricestringEstimated pre-market contract open price
  • The value is meaningless when entering continuous trading phase
  • USDC Futures and Inverse Futures do not have this field
> preQtystringEstimated pre-market contract open qty
  • The value is meaningless when entering continuous trading phase
  • USDC Futures and Inverse Futures do not have this field
> curPreListingPhasestringThe current pre-market contract phase
  • USDC Futures and Inverse Futures do not have this field
> fundingIntervalHourstringFunding interval hour
  • This value currently only supports whole hours
  • Only for Perpetual,For Futures,this field will not return
> fundingCapstringFunding rate upper and lower limits
  • Only for Perpetual,For Futures,this field will not return
> basisRateYearstringAnnual basis rate
  • Only for Futures,For Perpetual,this field will not return

Subscribe Example

from pybit.unified_trading import WebSocket
from time import sleep
ws = WebSocket(
testnet=True,
channel_type="linear",
)
def handle_message(message):
print(message)
ws.ticker_stream(
symbol="BTCUSDT",
callback=handle_message
)
while True:
sleep(1)

Response Example

LinearPerpetual
{
"topic": "tickers.BTCUSDT",
"type": "snapshot",
"data": {
"symbol": "BTCUSDT",
"tickDirection": "MinusTick",
"price24hPcnt": "-0.158315",
"lastPrice": "66666.60",
"prevPrice24h": "79206.20",
"highPrice24h": "79266.30",
"lowPrice24h": "65076.90",
"prevPrice1h": "66666.60",
"markPrice": "66666.60",
"indexPrice": "115418.19",
"openInterest": "492373.72",
"openInterestValue": "32824881841.75",
"turnover24h": "4936790807.6521",
"volume24h": "73191.3870",
"fundingIntervalHour": "8",
"fundingCap": "0.005",
"nextFundingTime": "1760342400000",
"fundingRate": "-0.005",
"bid1Price": "66666.60",
"bid1Size": "23789.165",
"ask1Price": "66666.70",
"ask1Size": "23775.469",
"preOpenPrice": "",
"preQty": "",
"curPreListingPhase": ""
},
"cs": 9532239429,
"ts": 1760325052630
}
LinearFutures
{
"topic": "tickers.BTC-26DEC25",
"type": "snapshot",
"data": {
"symbol": "BTC-26DEC25",
"tickDirection": "ZeroMinusTick",
"price24hPcnt": "0",
"lastPrice": "109401.50",
"prevPrice24h": "109401.50",
"highPrice24h": "109401.50",
"lowPrice24h": "109401.50",
"prevPrice1h": "109401.50",
"markPrice": "121144.63",
"indexPrice": "114132.51",
"openInterest": "6.622",
"openInterestValue": "802219.74",
"turnover24h": "0.0000",
"volume24h": "0.0000",
"deliveryTime": "2025-12-26T08:00:00Z",
"basisRate": "0.06129209",
"deliveryFeeRate": "0",
"predictedDeliveryPrice": "0.00",
"basis": "-4730.84",
"basisRateYear": "0.30655351",
"nextFundingTime": "",
"fundingRate": "",
"bid1Price": "111254.50",
"bid1Size": "0.176",
"ask1Price": "131001.00",
"ask1Size": "0.580"
},
"cs": 31337927919,
"ts": 1760409119857
}