Room ID:
Endpoint:
price_metrics Endpoint:
wss://staging-api.struct.to/wsdata.metrics for 5m, 1h, 6h, and 24h. interval_ms is 0: updates push whenever metrics change.
The listed token’s current price and market_cap sit at the top of data; each window adds its all-time high (price_ath, market_cap_ath, …) and window-open price (price_historical, …). Every price and market cap comes in three units: unsuffixed = token B (counter-token) units, _usd = USD, _native = the chain’s native coin. The current price fields are omitted until the pool has a priced swap.
Migrations
pool_ids subscriptions follow migrations automatically. When a subscribed pool migrates (for example a bonding curve graduating to an AMM pool), your pool_ids filter moves to the destination pool and its metrics start arriving. This room sends no migration event: watch the address room (an address_update for the destination pool with migrated_from_pool_id, dirty kind pool) to be notified. Pools that had already migrated when you subscribe are followed immediately: the subscribe response’s pool_ids holds the destination and migrations lists each hop. tokens filters need nothing: the token keeps its address.
Subscribe
Combinedpool_ids + tokens + protocols is capped at 500. Empty filters or subscribe_all: true receive every update.
Filters
Provide either
chain or chain_id. Do not send both.
Example
Events
Everysubscribe and unsubscribe_all is answered with price_metrics_stream_subscribe_response (keys are always long). Here the subscribed pool had already migrated:
price_metrics_update. Pick Response (Long) or Response (Short) in the right-hand panel. WebSocket defaults to short. See long and short field names.