LT Nav
Subscribe to the leveraged token nav stream.
Push frequency: 300ms
Topic:
lt.{symbol}
e.g.,lt.BTC3SUSDT
Response Parameters
Parameter | Type | Comments |
---|---|---|
topic | string | Topic name |
type | string | Data type. snapshot |
ts | number | The timestamp (ms) that the system generates the data |
data | array | Object |
> time | number | The generated timestamp of nav |
> symbol | string | Symbol name |
> nav | string | Net asset value |
> basketPosition | string | Total position value = basket value * total circulation |
> leverage | string | Leverage |
> basketLoan | string | Basket loan |
> circulation | string | Circulation |
> basket | string | Basket |
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"
}
}