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

activeAssetCtx

Public market context for one instrument. Perpetuals expose funding, oracle, mark price, and open interest. Outcome markets reuse the same channel with coin set to the numeric instrument_id; Outcome consumers use its live price, 24-hour volume, and open-interest fields.

ChannelactiveAssetCtxserver → client · type activeAssetCtx

Keep one market header live: mark, oracle, funding, OI (Outcome: price, volume, OI).

Subscribe
{
  "method": "subscribe",
  "type": "activeAssetCtx",
  "subscription": {
    "type": "activeAssetCtx",
    "coin": "4"
  }
}
Try it
WS wss://rpc.txflow-testnet.xyz/ws
Subscription parameters
coinstringrequired
typestringrequired
"activeAssetCtx"
Server message
channelstring
"activeAssetCtx"
dataWsActiveAssetCtx
coinstring
ctxWsActiveAssetCtxData
Message example
{
  "channel": "activeAssetCtx",
  "data": {
    "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
    }
  }
}