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

cryptoPrice

Returns the price-to-beat at the start of a crypto Outcome window and its settlement price after the window closes.

Before the window starts, both prices are null. During the window, openPrice is present and closePrice remains null. After the window ends, both are present and completed is true.

eventStartTime must be earlier than eventEndTime. Supported variants are fivemin, fifteenmin, and onehour.

POST/infotype cryptoPrice

Show the price-to-beat and settlement price of a crypto Outcome window.

Request body
eventEndTimeinteger · int64required
eventStartTimeinteger · int64required
symbolstringrequired
typestringrequired

Must be `cryptoPrice`.

"cryptoPrice"
variantstringrequired
"fivemin""fifteenmin""onehour"
topicstringnullableoptional
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": "cryptoPrice",
  "symbol": "btc",
  "eventStartTime": 1787567400000,
  "eventEndTime": 1787567700000,
  "variant": "fivemin"
}'
Try it
POST https://rpc.txflow-testnet.xyz/info
Response 200
codeinteger

`0` on success.

dataCryptoPriceResponse
cachedboolean
closePricestringnullable

Null until the window has completed.

completedboolean
incompleteboolean
openPricestringnullable
timestampinteger · int64
successboolean

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

Response example
{
  "success": true,
  "code": 0,
  "data": {
    "openPrice": "65120.5",
    "closePrice": "65234.12",
    "timestamp": 1787567700000,
    "completed": true,
    "incomplete": false,
    "cached": false
  }
}