Coinbase · AsyncAPI Specification
Coinbase Exchange WebSocket Feed
Version 1.0
The Coinbase Exchange WebSocket Feed provides real-time market data for the Exchange platform. It supports multiple channels including heartbeat, ticker, level2 order book, full order feed, and user order updates. The WebSocket feed delivers low-latency streaming data for professional and institutional traders.
View Spec
View on GitHub
BlockchainCryptocurrencyCustodyExchangeOnrampPaymentsTradingWalletWeb3AsyncAPIWebhooksEvents
Channels
/heartbeat
Receive heartbeat messages
Heartbeat channel that sends messages once per second for subscribed products. Used to track the last trade ID and detect any missed messages from the REST API.
/ticker
Receive ticker updates
Ticker channel that provides real-time price updates when bids and offers are matched. Provides snapshot-level market data.
/level2
Receive level 2 order book updates
Level 2 channel that guarantees delivery of all order book updates. Sends an initial snapshot followed by l2update messages with price level changes. The easiest way to maintain an accurate order book.
/level2_batch
Receive batched level 2 updates
Level 2 batch channel that delivers order book updates in batches every 50 milliseconds. Does not require authentication and provides a good balance between accuracy and bandwidth usage.
/matches
Receive trade match events
Matches channel that provides real-time trade execution data. Each message represents a trade that has been executed on the exchange.
/full
Receive full order lifecycle events
Full channel that provides the complete order lifecycle feed including received, open, done, match, and change messages. Provides the most detailed view of order book activity but generates significant traffic.
/status
Receive product status updates
Status channel that provides product status updates including trading status and currency details.
Messages
HeartbeatMessage
Heartbeat
Periodic heartbeat message with last trade ID
TickerMessage
Ticker
Real-time ticker update on match
Level2SnapshotMessage
Level 2 Snapshot
Full order book snapshot
Level2UpdateMessage
Level 2 Update
Incremental order book update
MatchMessage
Match
Trade execution match event
ReceivedMessage
Order Received
New order received by the exchange
OpenMessage
Order Opened
Order placed on the order book
DoneMessage
Order Done
Order removed from the order book
ChangeMessage
Order Changed
Order size or funds changed
StatusMessage
Product Status
Product trading status update
Servers
wss
production
wss://ws-feed.exchange.coinbase.com
Production WebSocket feed for Exchange market data