# Best bid offer (BBO)

Refer to [Websocket](https://pacifica.gitbook.io/docs/api-documentation/api/websocket) for establishing the websocket connection.

### Params

```json
{
  "method": "subscribe",
  "params": {
    "source": "bbo",
    "symbol": "BTC"
  }
}
```

### Stream

```json
{
  "channel": "bbo",
  "data": {
    "s": "BTC",
    "i": 1234567890,
    "li": 1325476098,
    "t": 1764133203991,
    "b": "87185",
    "B": "1.234",
    "a": "87186",
    "A": "0.567"
  }
}
```

| Field  | Type           | Description                       |
| ------ | -------------- | --------------------------------- |
| `'s'`  | string         | Symbol                            |
| `'i'`  | integer        | Order id                          |
| `'li'` | integer        | Last order id                     |
| `'t'`  | integer        | Timestamp in milliseconds         |
| `'b'`  | decimal string | Best bid price                    |
| `'B'`  | decimal string | Best bid amount (in token amount) |
| `'a'`  | decimal string | Best ask price                    |
| `'A'`  | decimal string | Best ask amount (in token amount) |
