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

POST/infotype activeAssetCtx

Show a perp market header: mark, oracle, funding rate, open interest.

Request body
coinstringrequired

Instrument external id (numeric string) — the `index` value from the `perpMeta` response.

typestringrequired
Request example
curl -X POST https://rpc.txflow-testnet.xyz/info \
  -H "Content-Type: application/json" \
  -H "x-api-version: 2026-08-16" \
  -d '{
  "type": "activeAssetCtx",
  "coin": "4"
}'
Try it
POST https://rpc.txflow-testnet.xyz/info
Response · ActiveAssetCtxResponse 200
codeinteger

`0` on success.

dataActiveAssetCtxResponse
blockTimeinteger · int64

Latest block time, milliseconds.

coinstring
coinVlmstring

24h base-asset volume.

dayHighPxstring
dayLowPxstring
dayNtlVlmstring

24h notional volume.

instrumentIdinteger · int64
lastPricestring
markPxstring
openIntereststring
oraclePxstring
prevDayPxstring
nodeCtxActiveAssetCtxData

Node-native perps market context. Omitted on instruments the node has no context for.

successboolean

`false` on error, with `code` set and the text in `message` instead of `data`.

Response example
{
  "success": true,
  "code": 0,
  "data": {
    "coin": "4",
    "instrumentId": 9001,
    "dayNtlVlm": "",
    "coinVlm": "",
    "prevDayPx": "0",
    "lastPrice": "0",
    "dayHighPx": "0",
    "dayLowPx": "0",
    "openInterest": "",
    "oraclePx": "0",
    "markPx": "0",
    "blockTime": 1700000000000,
    "nodeCtx": {
      "funding": "",
      "openInterest": "",
      "oraclePx": "0",
      "markPx": "0",
      "midPx": "0",
      "impactPxs": [
        ""
      ],
      "lastPrice": "0",
      "nextFundingTime": 1700000000000,
      "prevFundingTime": 1700000000000,
      "blockTime": 1700000000000
    }
  }
}