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

webData2

Returns two lists in one call: the user's open orders, and a 24-hour stats row for every listed instrument. Use it to fill a markets table and an order list on page load.

POST/infotype webData2

Fill a markets table with 24h stats for every instrument, plus the user’s open orders, in one call.

Request body
typestringrequired

Must be `webData2`.

"webData2"
userstring · addressrequired

Account whose open orders to return.

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": "webData2",
  "user": "0x0000000000000000000000000000000000000001"
}'
Try it
POST https://rpc.txflow-testnet.xyz/info
Response 200
codeinteger

`0` on success.

dataobject
assetCtxsobject[]

One row per listed instrument.

openOrdersobject[]

The user’s open orders, newest first.

successboolean

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

Response example
{
  "success": true,
  "code": 0,
  "data": {
    "openOrders": [
      {
        "coin": "BTC",
        "side": "A",
        "limitPx": "63348.2",
        "sz": "0.0674",
        "oid": 160904123628,
        "timestamp": 1784032333182,
        "triggerCondition": "N/A",
        "isTrigger": false,
        "triggerPx": "0.0",
        "children": [],
        "isPositionTpsl": false,
        "reduceOnly": false,
        "dir": "Sell",
        "orderType": "Limit",
        "origSz": "0.0709",
        "tif": "GTC",
        "cloid": "0x08c1a869b51e0669d42b",
        "avgFillPrice": "63348.2",
        "positionMode": "OneWay",
        "marginMode": "Cross",
        "leverage": 8,
        "pnl": "2.2266",
        "roe": "8.1155",
        "fee": "0.099773415",
        "filledAmount": "221.7187",
        "status": "PartialFilled",
        "marketType": "perps"
      }
    ],
    "assetCtxs": [
      {
        "coin": "BTC",
        "instrumentId": 1,
        "dayNtlVlm": "22528397.36778",
        "coinVlm": "275.59",
        "prevDayPx": "81309.6",
        "lastPrice": "83394.6",
        "dayHighPx": "83590.2",
        "dayLowPx": "80925",
        "openInterest": "",
        "oraclePx": "",
        "markPx": "",
        "blockTime": 0,
        "tagIds": [
          1
        ]
      }
    ]
  }
}

assetCtxs carries last price, 24h high, low, previous price, and volume. Read mark price, oracle price, and open interest from marketTicker or activeAssetCtx. Resolve tagIds with tags.

This is the /info type of the same name as the node webData2 stream, which pushes positions and margin with open orders. For an Open Orders tab with trigger and TP/SL detail, use frontendOpenOrders.