outcomeL2Book
Order-book snapshots for one or more Outcome instruments, returned in request order — for example every market of one event. Each book is the YES book; derive NO prices as 1 − price. For a single instrument, use l2Book with the instrument id as coin.
POST/infotype
outcomeL2BookSnapshot the books of several Outcome instruments at once (e.g. every market of an event).
Request body
typestringrequired
instrumentIdsinteger · int64[]optional
Instrument id list. Empty list returns an empty array. Numeric strings are also accepted. Unknown, non-outcome, or failed ids are skipped.
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": "outcomeL2Book",
"instrumentIds": [
9001,
9002
]
}'Try it
Response · OutcomeL2BookResponse 200
codeinteger
`0` on success.
dataOutcomeL2BookResponse
coinstring
Instrument name.
instrumentIdinteger · int64
Instrument id, matching the request list.
levelsBookLevel[][]
`levels[0]` is bids, `levels[1]` is asks.
timeinteger · int64
successboolean
`false` on error, with `code` set and the text in `message` instead of `data`.
Response example
{
"success": true,
"code": 0,
"data": [
{
"instrumentId": 9001,
"coin": "4",
"time": 1700000000000,
"levels": [
[
{
"n": 0,
"px": "0",
"sz": "0"
}
]
]
}
]
}