Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

allAssetCtxs

ChannelallAssetCtxsserver → client · type allAssetCtxs

Keep a perp markets table live — every instrument’s context in one subscription.

Subscribe
{
  "method": "subscribe",
  "type": "allAssetCtxs",
  "subscription": {
    "type": "allAssetCtxs"
  }
}
Try it
WS wss://rpc.txflow-testnet.xyz/ws
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
        }
      }
    ]
  }
}