marketTicker
Returns the ticker for one perp instrument: last, mark, and oracle price, open interest, the current funding rate and its bounds, and 24-hour change and volume. Use it to fill a market header on first load, then keep it live with the ticker stream.
marketTickerFill a perp market header on first load: last, mark, oracle, funding, 24h change and volume.
Numeric instrument id from `perpMeta` (`index`), sent as a JSON number.
Must be `marketTicker`.
"marketTicker"curl -X POST https://rpc.txflow-testnet.xyz/info \
-H "Content-Type: application/json" \
-H "x-api-version: 2026-08-16" \
-d '{
"type": "marketTicker",
"instrumentId": 1
}'`0` on success.
Block time of this snapshot, Unix ms.
`lastPrice` minus `prevDayPx`.
24h change in percent.
Base name.
24h notional volume in USDC.
Funding rate for the current interval, in percent (`0.01` means 0.01%).
Last traded price.
Mark price.
Next funding settlement, Unix ms.
Open interest in base units.
Oracle price.
Price 24 hours ago.
Upper bound of one funding settlement, in percent.
Lower bound of one funding settlement, in percent.
Funding settlement interval in ms.
`false` on error, with `code` set and the text in `message` instead of `data`.
{
"success": true,
"code": 0,
"data": {
"coin": "BTC",
"instrumentId": 1,
"lastPrice": "83387.4",
"markPx": "83388.4",
"oraclePx": "83420.1",
"openInterest": "776.5054",
"fundingRate": "0.00125000",
"nextFundingTime": 1792576800000,
"blockTime": 1792575637530,
"dayNtlVlm": "22527876.25983",
"prevDayPx": "81309.9",
"change24h": "2077.5",
"change24hPct": "2.56",
"settlementIntervalMs": 3600000,
"rateCap": "0.20000000",
"rateFloor": "-0.20000000"
}
}instrumentId is the numeric index from perpMeta, sent as a JSON number.
fundingRate, rateCap, and rateFloor are percent per settlement interval: 0.00125 means 0.00125% every settlementIntervalMs. See Funding.