> For the complete documentation index, see [llms.txt](https://docs.unix.market/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unix.market/websocket/public-channels/bbo.md).

# BBO

Push the best bid and ask whenever the BBO changes for `symbol_id`.

{% hint style="info" %}
**No auth.** Quiet markets produce no push — events are change-driven, not periodic.
{% endhint %}

## Subscribe

```json
{ "channel": "bbo", "symbol_id": 100001 }
```

## Payload

| Field | Type         | REST equivalent     |
| :---: | ------------ | ------------------- |
|  `bp` | string       | `best_bid_price`    |
|  `bq` | string       | `best_bid_quantity` |
|  `ap` | string       | `best_ask_price`    |
|  `aq` | string       | `best_ask_quantity` |
|  `t`  | integer (ms) | `time`              |

## Example Push

```json
{
  "channel": "bbo",
  "symbol_id": 100001,
  "ts": 1719500000125,
  "finality": "final",
  "data": { "bp": "67499.50", "bq": "2.4", "ap": "67500.50", "aq": "1.8", "t": 1719500000120 }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.unix.market/websocket/public-channels/bbo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
