> ## Documentation Index
> Fetch the complete documentation index at: https://docs.struct.to/llms.txt
> Use this file to discover all available pages before exploring further.

# Native Prices

> Stream native-coin USD prices.

> [!NOTE]
>
> **Room ID:** `native_prices` \
> **Endpoint:** `wss://staging-api.struct.to/ws`

Live USD price of a native currency, sent as `data.price_usd`. Ethereum, Base, and Robinhood use `eth`. Arc uses `usdc`. At most one changed price arrives per interval.

## Subscribe

This room does not take a chain selector. Subscribe with `currencies` to receive one deduped update per native currency.

### Filters

| Filter | Type | Required | Description |
| - | - | - | - |
| `currencies` | `string[]` | Yes | `sol`, `eth`, `bnb`, `usdc` |
| `interval_ms` | `integer` | No | `500`, `1000`, `2500`, `5000`, `10000`. Default 500 |

### Example

```json theme={null}
{
  "type": "join_room",
  "payload": {
    "room_id": "native_prices"
  }
}
```

```json theme={null}
{
  "type": "room_message",
  "payload": {
    "room_id": "native_prices",
    "message": {
      "action": "subscribe",
      "currencies": [
        "sol",
        "eth",
        "bnb",
        "usdc"
      ],
      "interval_ms": 1000
    }
  }
}
```

## Events

The room emits `native_prices_update`. Pick **Response (Long)** or **Response (Short)** in the right-hand panel. WebSocket defaults to short. See [long and short field names](https://docs.struct.to/api-reference/response-format.md#long-and-short-field-names).

```json Response (Long) theme={null}
{
  "type": "native_prices_update",
  "room_id": "native_prices",
  "interval_ms": 1000,
  "timeframe": "all",
  "data": {
    "currency": "sol",
    "chain_id": -1,
    "price_usd": 148.22
  }
}
```

```jsonc Response (Short) theme={null}
{
  "type": "native_prices_update",
  "room_id": "native_prices",
  "interval_ms": 1000,
  "timeframe": "all",
  "data": {
    "cur": "sol",
    "ci": -1,
    "pu": 148.22
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.