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

# useMarketsStream

> Hook to stream 24h ticker data for all markets via WebSocket.

Subscribe to all [tickers](/sdks/tech-doc/interfaces/orderly_network_types.WSMessage.Ticker) via Websockets.

* [Tech docs](/sdks/tech-doc/modules/orderly_network_hooks#usemarketsstream)

### Example

```ts theme={null}
const { data } = useMarketsStream();
```

The returned data is an array of objects containing the following fields:

```json theme={null}
{
  "24h_amount": 48108.464865,
  "24h_close": 0.04286,
  "24h_high": 0.044604,
  "24h_low": 0.042574,
  "24h_open": 0.042944,
  "24h_volume": 1096083,
  "24h_volumn": 1096083,
  "change": 0.00195,
  "est_funding_rate": 0.00012004,
  "index_price": 0.042851,
  "last_funding_rate": 0.0002316,
  "mark_price": 0.042877,
  "next_funding_time": 1732809600000,
  "open_interest": 571430,
  "sum_unitary_funding": 0.00118,
  "symbol": "PERP_1000BONK_USDC"
}
```
