# Hyperliquid Market Context - Mids and Asset Data

The V3 market-context family provides current default-DEX perpetual-market values. `StreamAllMids` sends the complete mid-price map, while `StreamActiveAssetCtx` sends detailed context for one perp.

## Access

| Availability | Access                                                                                                                           | Details                                                                                                                                                         |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Live         | [StreamAllMids](https://www.dwellir.com/docs/hyperliquid/stream_all_mids) and [StreamActiveAssetCtx](https://www.dwellir.com/docs/hyperliquid/stream_active_asset_ctx)         | Provides the current full perp mid map and current context for one perp.                                                                                        |
| Live         | [Info endpoint active asset data](https://www.dwellir.com/docs/hyperliquid/active-asset-data)                                                           | Request-response alternative for asset context.                                                                                                                 |
| Historical   | [Hyperliquid Index OHLCV](https://www.dwellir.com/docs/hyperliquid/hyperliquid-index/ohlcv-data) and [fills](https://www.dwellir.com/docs/hyperliquid/hyperliquid-index/fills) | Provides candle and execution history only. It does not reproduce historical `ActiveAssetCtx` state or standalone funding, open-interest, or mid-price history. |

## Method family

[StreamAllMids](https://www.dwellir.com/docs/hyperliquid/stream_all_mids) takes an empty request. Each frame contains the complete map and supersedes the previous frame. A bookless market can use its last trade as the available midpoint value.

[StreamActiveAssetCtx](https://www.dwellir.com/docs/hyperliquid/stream_active_asset_ctx) requires one default-DEX perp coin. It reports funding, open interest, previous-day price, rolling volume, oracle and mark prices, and optional book-dependent fields. `premium` and `mid_px` can be unset, and `impact_pxs` can be empty, when no book is available.

Both are current-state streams with no historical replay. Their `time` is when the endpoint made the update available, not a block timestamp. Each frame replaces the prior state. Reconnect after `ABORTED`; `UNAVAILABLE` means fresh current data is not available.

## Sample data

These synthetic V3 protobuf payloads visibly redact the market identifier:

```protobuf
time: 1785736814057
mids: { key: "<redacted-market>" value: "114250.5" }
```

```protobuf
coin: "<redacted-market>"
time: 1785736814057
funding: "0.0000125"
open_interest: "19234.55"
prev_day_px: "112500.0"
day_ntl_vlm: "985000000.25"
premium: "0.00018"
oracle_px: "114230.0"
mark_px: "114250.0"
mid_px: "114250.5"
impact_pxs: "114249.0"
impact_pxs: "114252.0"
day_base_vlm: "8650.75"
```

Do not interpret the update time as execution time or block position.

## Related pages

- [Funding rates guide](https://www.dwellir.com/guides/hyperliquid-funding-rates) — Fetch and interpret current, predicted, and historical funding.
- [Whale tracking guide](https://www.dwellir.com/guides/hyperliquid-whale-tracking) — Combine current market context with fills, books, and account data.
