cryptoPriceHistory
Returns ascending timestamp/value samples used to seed crypto Outcome charts. Timestamps are Unix milliseconds and prices are decimal strings.
to is required. from may be supplied to narrow the range; otherwise the
server derives the lookback from variant. Supported variants are
fivemin, fifteenmin, and onehour.
POST/infotype
cryptoPriceHistorySeed the underlying-asset price chart on a crypto Outcome market.
Request body
symbolstringrequired
tointeger · int64required
typestringrequired
Must be `cryptoPriceHistory`.
"cryptoPriceHistory"variantstringrequired
"fivemin""fifteenmin""onehour"frominteger · int64nullableoptional
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": "cryptoPriceHistory",
"symbol": "btc",
"to": 1787567718116,
"variant": "fivemin"
}'Try it
Response 200
codeinteger
`0` on success.
dataCryptoPriceHistoryPoint[]
timestampinteger · int64
valuestring
USD price as a decimal string.
successboolean
`false` on error, with `code` set and the text in `message` instead of `data`.
Response example
{
"success": true,
"code": 0,
"data": [
{
"timestamp": 1787567718116,
"value": "65234.12"
}
]
}