Bitso · AsyncAPI Specification
Bitso WebSocket API
Version 1.0.0
Bitso's public real-time WebSocket feed for the Bitso cryptocurrency exchange. Clients connect to a single endpoint and subscribe to one or more channels per order book (e.g. btc_mxn). Three public channels are documented: trades, orders (top 20 bid/ask snapshot updates), and diff-orders (order-book deltas with a sequence number for gap detection). The server also emits periodic keep-alive messages.
View Spec
View on GitHub
CryptocurrencyExchangeTradingStablecoinsPayoutsCross BorderLatin AmericaMexicoFintechAsyncAPIWebhooksEvents
Channels
/
Subscribe to a channel for a given order book.
Single WebSocket endpoint. Clients send a subscribe action specifying the order book and channel type, and receive a stream of envelope messages tagged with type and book, plus periodic keep-alive frames.
Messages
Subscribe
Subscribe to a channel
Sent by the client after the connection opens to subscribe to a channel for a specific order book.
SubscribeAck
Subscription acknowledgement
Server confirmation that a subscription was accepted.
KeepAlive
Keep-alive frame
Periodic server keep-alive message.
TradesMessage
Trade event
Emitted whenever the matching engine executes a trade in the subscribed order book.
OrdersMessage
Top-of-book orders update
Snapshot-style update of the top 20 bids and asks for the subscribed book. Emitted when the top of book changes.
DiffOrdersMessage
Order-book delta
Incremental order-book change (new order, modification, cancellation, or partial fill). Includes a sequence number so clients can detect dropped messages and resync.
Servers
wss
production
ws.bitso.com
Bitso production WebSocket endpoint (wss://ws.bitso.com).