Skip to main content

LT Ticker

Subscribe to the leveraged token ticker stream.

Push frequency: 300ms

Topic:
tickers_lt.{symbol} e.g.,tickers_lt.BTC3SUSDT

Response Parameters

ParameterTypeComments
topicstringTopic name
typestringData type. snapshot
tsnumberThe timestamp (ms) that the system generates the data
dataarrayObject
> symbolstringSymbol name
> price24hPcntstringMarket price change percentage in the past 24 hours
> lastPricestringThe last price
> prevPrice24hstringMarket price 24 hours ago
> highPrice24hstringHighest price in the past 24 hours
> lowPrice24hstringLowest price in the past 24 hours

Subscribe Example

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

Response Example

{
"topic": "tickers_lt.EOS3LUSDT",
"ts": 1672325446847,
"type": "snapshot",
"data": {
"symbol": "EOS3LUSDT",
"lastPrice": "0.41477848043290448",
"highPrice24h": "0.435285472510871305",
"lowPrice24h": "0.394601507960931382",
"prevPrice24h": "0.431502290172376349",
"price24hPcnt": "-0.0388"
}
}