AsyncAPI 2.6 description of Amberdata's **real-time WebSocket streaming** surface. Unlike the Groq reference (which exposes no WebSocket), Amberdata DOES publish a documented public WebSocket API. Clients open a secure WebSocket connection to `wss://ws.web3api.io` and authenticate with the same `x-api-key` header used for REST. Subscriptions are managed with **JSON-RPC 2.0** request messages (`method: "subscribe"` / `method: "unsubscribe"`); the server then pushes a stream of update messages for each subscribed topic. Example connection (from Amberdata docs): `wscat -c "wss://ws.web3api.io" -H "x-api-key: "` Topics are colon-delimited channel names such as `market:spot:trades`, `market:spot:prices`, and on-chain event channels. A subscription's params array carries the channel name plus a filter object (e.g. exchange + pair). This document models the JSON-RPC subscribe/unsubscribe control messages and the streamed update messages. REST request/response shapes are modeled in the companion OpenAPI document at `openapi/amberdata-openapi.yml`.
View SpecView on GitHubCryptoBlockchainMarket DataDigital AssetsDerivativesDeFiOnchainReal-TimeAsyncAPIEventsWebSockets
Channels
market:spot:trades
publishsubscribeSpotTrades
Send a JSON-RPC subscribe/unsubscribe request for spot trades.
Real-time spot trade stream. Subscribe with a JSON-RPC 2.0 message whose params are `["market:spot:trades", { "exchange": "binance", "pair": "btc_usdt" }]`. The server then pushes a trade update message for each executed trade matching the filter.
market:spot:prices
publishsubscribeSpotPrices
Send a JSON-RPC subscribe/unsubscribe request for spot prices.
Real-time spot price stream. Subscribe with params `["market:spot:prices", { "pair": "eth_usd" }]` to receive latest price updates as they occur.
Messages
✉
SubscribeRequest
JSON-RPC subscribe request
Client message that subscribes to a topic.
✉
UnsubscribeRequest
JSON-RPC unsubscribe request
Client message that unsubscribes from a topic by subscription id.
✉
SpotTradeUpdate
Spot trade update
A single real-time spot trade event pushed by the server.
✉
SpotPriceUpdate
Spot price update
A real-time latest-price event pushed by the server.
Servers
wss
web3apiws.web3api.io
Amberdata real-time WebSocket endpoint for blockchain and market data. Authenticate by sending the `x-api-key` header on the connection upgrade request. After connecting, send JSON-RPC 2.0 `subscribe` messages to begin receiving topic updates.
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.