Skip to main content
Robinhood Chain, partner keys. Add stream to any /quote request and the response is a stream of server-sent events instead of one JSON body. All other /quote parameters work as usual, except prefer, gasless and vault zaps.

Events

Each event’s data is a complete /quote response body plus a few fields. Lines starting with : are heartbeats; ignore them.
  • Each quote event is strictly better than the previous one. Every stream has its final event within about 2 seconds.
  • update events carry the current price and can be worse than the previous event: the market moved.
  • With recipient, the first event can arrive priced but without a transaction (txPending: true). Its transaction follows in the next event, typically 10 to 30 ms later.
  • With streamTx=changed, an update rebuilds the transaction only when the plan changed or the output moved more than 2 bps, at most once a second. Other updates are price-only: no tx, plus txStale: true, txNetOut and txDeadline for the transaction you already have.
Sign the tx of the most recent event that has one. For a transaction at the very latest price, use streamTx=always or make a normal /quote request. Errors found before the stream starts (bad parameters, limits, pool state not fresh) are ordinary JSON responses with their usual status. A live stream counts against your key’s live stream cap.