allAssetCtxs
ChannelallAssetCtxsserver → client · type
allAssetCtxsKeep a perp markets table live — every instrument’s context in one subscription.
Subscribe
{
"method": "subscribe",
"type": "allAssetCtxs",
"subscription": {
"type": "allAssetCtxs"
}
}Try it
Subscription parameters
typestringrequired
"allAssetCtxs"exchangeIdExchangeScopeoptional
Filter by an instrument's configured exchange_id. Same three-state semantics as the HTTP /info ExchangeScope: missing, null, or 0 -> Default (only instruments with no configured exchange_id); the string "all" (case-insensitive) -> All (no filter, every exchange); a positive integer n -> Exchange(n) (only that exchange_id).
oneOf · variant 1
null
oneOf · variant 2
integer
oneOf · variant 3
string
Server message
channelstring
"allAssetCtxs"dataWsAllAssetCtxs
ctxsWsActiveAssetCtx[]
Message example
{
"channel": "allAssetCtxs",
"data": {
"ctxs": [
{
"coin": "4",
"ctx": {
"funding": "",
"openInterest": "",
"prevDayPx": "0",
"dayNtlVlm": "",
"premium": "",
"oraclePx": "0",
"markPx": "0",
"midPx": "0",
"impactPxs": [
""
],
"dayBaseVlm": "",
"lastPrice": "0",
"nextFundingTime": 1700000000000,
"prevFundingTime": 1700000000000,
"blockTime": 1700000000000
}
}
]
}
}