Skip to main content
Subscribe to a quote channel to receive the price of a ramp every time the rate changes, instead of polling Quote Ramp (Send Based). The server uses Socket.IO (protocol v4). Use an official Socket.IO client, such as socket.io-client for JavaScript or python-socketio for Python.

Subscribe

The acknowledgement is {"status": "ok"}, or {"status": "error", "reason": "..."}: Each connection has one subscription: emitting subscribe again replaces it. To stop receiving updates, disconnect.

Updates

rate_update carries the same fields as Quote Ramp (Send Based), plus the date of the rate. Fields whose value is zero are omitted.
If the quote cannot be calculated, rate_update carries {"status": "error", "reason": "..."}. Updates are sent every time the rate of the pair changes. For COP pairs, the rate is updated every minute between 8:00 and 22:00 (Bogotá time).
Socket quotes are informative and do not include a quoteId. To lock a price, request a quote with Quote Ramp (Send Based) and send its quoteId when you create the ramp.