Skip to main content
Don’t have an API key? Start your free trial — WebSocket access is included from the Pro plan onwards. No credit card required.
1

Install WebSocket client

We recommend using websocat for testing WebSocket connections.
2

Connect

Connect to the WebSocket API using your API key. Replace <YOUR_API_KEY> with your actual key. You can connect to any of the supported channels, such as currencies/quotes.
Upon connecting, you will receive a status message indicating the current subscriptions (initially empty):
3

Subscribe

Once connected, paste the following JSON message to subscribe to currency pairs:
4

Receive Data

You will receive a status message confirming your subscription, followed by live quote updates.
5

Unsubscribe

To stop receiving updates for specific symbols, send an unsubscribe message:
You will receive a confirmation message with the list of remaining subscribed symbols:

What’s Next

Now that you’re connected, check out these resources to build your integration:

API Reference

Explore the full WebSocket API reference documentation.

HTTP API Quickstart

Need on-demand data? Get started with the REST API.
If the connection closes unexpectedly or a subscription does not produce data, see Errors & Troubleshooting.

Start streaming live market data →

Get your API key and connect to real-time Forex, Crypto, Stocks, and Indices feeds in minutes.