Skip to main content

LT Nav

Subscribe to the leveraged token nav stream.

Push frequency: 300ms

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

Response Parameters

ParameterTypeComments
topicstringTopic name
typestringData type. snapshot
tsnumberThe timestamp (ms) that the system generates the data
dataarrayObject
> timenumberThe generated timestamp of nav
> symbolstringSymbol name
> navstringNet asset value
> basketPositionstringTotal position value = basket value * total circulation
> leveragestringLeverage
> basketLoanstringBasket loan
> circulationstringCirculation
> basketstringBasket

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_nav_stream(
symbol="EOS3LUSDT",
callback=handle_message
)
while True:
sleep(1)

Response Example

{
"topic": "lt.EOS3LUSDT",
"ts": 1672325564669,
"type": "snapshot",
"data": {
"symbol": "EOS3LUSDT",
"time": 1672325564554,
"nav": "0.413517419653406162",
"basketPosition": "1.261060779498318641",
"leverage": "2.656197506416192150",
"basketLoan": "-0.684866519289629374",
"circulation": "72767.309468460367138199",
"basket": "91764.000000292013277472"
}
}