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

outcomePositions

A user's outcome positions. Parallel to clearinghouseState with accountType=outcome, but the response is only the assetPositions array — it does not include margin summaries or withdrawable.

Through the API gateway, each position is enriched with title, slug, outcomeNames, priceDecimals, sizeDecimals, and resolutionStatus from indexed Outcome metadata. These display fields are absent when calling the fullnode directly.

POST/infotype outcomePositions

List a user’s Outcome positions with event title and outcome names attached.

Request body
typestringrequired
userstringrequired

User address.

exchangeIdinteger · int32nullableoptional

Optional channel filter, same semantics as `clearinghouseState`.

instrumentIdsarraynullableoptional

Optional instrument id list. Empty or omitted returns every outcome position for the user.

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": "outcomePositions",
  "user": "0x0000000000000000000000000000000000000000",
  "instrumentIds": [
    9001
  ]
}'
Try it
POST https://rpc.txflow-testnet.xyz/info
Response · OutcomePositionsResponse 200
codeinteger

`0` on success.

dataOutcomePositionsResponse

Outcome positions only. Unlike `clearinghouseState`, this response is the `assetPositions` array — it does not include margin summaries or `withdrawable`.

positionPositionData
typestring
tpslarraynullable
successboolean

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

Response example
{
  "success": true,
  "code": 0,
  "data": [
    {
      "position": {
        "adlQuantile": 0,
        "asset": "4",
        "coin": "4",
        "cumFunding": {
          "allTime": "",
          "sinceChange": "",
          "sinceOpen": ""
        },
        "entryPx": "0",
        "leverage": {
          "rawUsd": "",
          "type": "",
          "value": 0
        },
        "liquidationPx": "0",
        "marginRatio": "",
        "marginUsed": "",
        "markPx": "0",
        "maxLeverage": 0,
        "positionValue": "",
        "returnOnEquity": "",
        "szi": "",
        "unrealizedPnl": "",
        "updateTime": 1700000000000
      },
      "tpsl": [
        {
          "createTime": 1700000000000,
          "quantity": "0",
          "slOid": "",
          "slOrderPrice": "0",
          "slOrderType": "",
          "slTriggerPrice": "0",
          "tpOid": "",
          "tpOrderPrice": "0",
          "tpOrderType": "",
          "tpTriggerPrice": "0"
        }
      ],
      "type": ""
    }
  ]
}