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

# Priority Fees Stream

> Stream Trading API priority fee estimates over WebSocket

Use this stream to receive real-time priority fee estimate updates.

<Info>
  No subscribe message is required. Connect to the endpoint and start reading
  messages.
</Info>

## Connection

See the [Websockets Overview](/resources/trading-api/websockets/overview#connection)
for endpoint details.

## Message Format

Each message is a JSON object with the same shape as
[`GET /priority-fees`](/resources/trading-api/priority-fees/priority-fees):

```json theme={null}
{
  "mediumMicroLamports": 100000,
  "highMicroLamports": 150000,
  "veryHighMicroLamports": 220000
}
```

## Example (TypeScript)

```typescript theme={null}
import WebSocket from "ws";

const WS_URL = "wss://dev-quote-api.dflow.net/priority-fees/stream";
const ws = new WebSocket(WS_URL);

ws.onopen = () => {
  console.log("Connected — waiting for priority fee updates");
};

ws.onmessage = (event) => {
  const fees = JSON.parse(event.data.toString());
  console.log("Priority fees (micro-lamports/CU):", fees);
};
```

## Related

* [Websockets Overview](/resources/trading-api/websockets/overview)
* [GET /priority-fees](/resources/trading-api/priority-fees/priority-fees)
