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

bbo

Channelbboserver → client · type bbo

Stream best bid / best ask for one instrument (spread display, quoting bots).

Subscribe
{
  "method": "subscribe",
  "type": "bbo",
  "subscription": {
    "type": "bbo",
    "coin": "4"
  }
}
Try it
WS wss://rpc.txflow-testnet.xyz/ws
Subscription parameters
coinstringrequired
typestringrequired
"bbo"
Server message
channelstring
"bbo"
dataWsBbo
bboobject[]

[bestBid, bestAsk]. Either side is null when there is no resting liquidity on that side.

coinstring
timeinteger

Timestamp, milliseconds.

impactBuyPriceDecimalStringnullable

Decimal number encoded as a string to avoid floating-point precision loss.

impactSellPriceDecimalStringnullable

Decimal number encoded as a string to avoid floating-point precision loss.

Message example
{
  "channel": "bbo",
  "data": {
    "coin": "4",
    "time": 1700000000000,
    "bbo": [
      null
    ],
    "impactBuyPrice": "0",
    "impactSellPrice": "0"
  }
}