| Stream | What you get | Coverage | Endpoint |
|---|---|---|---|
| Quote stream | Top-of-book bid and ask | Direct and one-hop routes | /quote-stream |
| Book stream | Ten levels of depth per side | Direct routes only | /book-stream |
Access to the quote and book streams is gated. Reach out to the team to request access.
Quotes and book levels are approximations. DFlow computes them at runtime
from current routes, so they may differ from the quote you receive at order
time. Treat them as a live read on the market, not a guaranteed execution
price.
Quote Stream
The quote stream returns a live bid and ask for any pair of token mints, across direct and one-hop routes. New quotes stream out as the underlying liquidity moves, so you read prices as they change without polling. DFlow builds each quote by routing a $10 USDC equivalent trade through the best path in each direction, so the bid and ask are the rates that trade would execute at. Prediction-market outcome tokens are ordinary SPL tokens, so the same stream covers them. Sendsubscribe_all_prediction_markets to subscribe to every
active outcome mint against USDC in a single message, and DFlow adds and drops
markets as they open and resolve.
For the full message format and parameters, see the Quote Stream API. The Stream Top-of-Book Quotes recipe shows how to connect and read updates in code.