solana, ETH on base and robinhood, BNB on bsc.
Subscribe on an open stream connection. See WebSocket streams for connections, frames and reconnection.
Filters
string[]
Chain slugs whose prices to send. Omit it or send
[] to include every chain. arc is accepted, but its gas asset is USDC, so it receives no updates.{} sends the price of every chain. Each subscription uses one unit of the address limit, whatever its chains.
Message format
Each update’sdata is the price of one whole unit of one chain’s gas asset. It has the same row shape that Native prices returns, and price.native is always "1".
An update is sent for each chain about every 10 seconds, whether or not the price changed. Each update counts against the organization’s credits, so a {} subscription uses about one credit per chain every 10 seconds. List only the chains you need.
Keep one price per chain, choosing the row with the later observedAt.
Initial snapshot
- Subscribe.
- Read Native prices with
chainsset to the subscription’s chains. - Merge the REST response and the updates using the rule above.