outcomeProbability
Returns the historical YES probability for one Outcome instrument. Use it to
backfill a probability chart, then append live closes from the
candle channel.
range selects both the lookback window and the server-side sampling cadence.
Valid values are 1H, 6H, 1D, 1W, 1M, and ALL. Each t is Unix
seconds and each p is a probability in [0, 1].
This query is served by the API host and may briefly lag the latest trade.
POST/infotype
outcomeProbabilityBackfill a YES-probability chart; append live closes from candle.
Request body
instrumentIdinteger · uint64required
rangestringrequired
"1H""6H""1D""1W""1M""ALL"typestringrequired
Must be `outcomeProbability`.
"outcomeProbability"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": "outcomeProbability",
"instrumentId": 19127212,
"range": "1D"
}'Try it
Response 200
codeinteger
`0` on success.
dataOutcomeProbabilityResponse
historyOutcomeProbabilityPoint[]
successboolean
`false` on error, with `code` set and the text in `message` instead of `data`.
Response example
{
"success": true,
"code": 0,
"data": {
"history": [
{
"t": 1787567400,
"p": 0.55
}
]
}
}