WebSocket API

Integral WebSocket API provides real-time market data with the performance and management advantages of bi-directional, full-duplex, event-driven communication between client and server.

Users subscribe to a channel to start receiving messages. Each message is designed as a key/value pair, where key is the name of the channel and value is the actual message. All the messages are encoded as JSON objects. The WebSocket API is private and requires authentication. After successful authentication users can connect to the websocket endpoint /v2/fxstream using the wss protocol.

Connection

After successful authentication you can open the socket by connecting to /v2/fxstream using the wss protocol. After successful connection, messages can be exchanged over various channels.