Available Endpoints
The WebSocket API offers several endpoints for different types of market data. Connect to the endpoint relevant to the data you need.| Endpoint | Description |
|---|---|
| Currencies | Real-time quotes for currency pairs (Forex). |
| Crypto | Real-time quotes for cryptocurrencies. |
| Indices | Real-time quotes for global indices. |
| Stocks | Real-time quotes for stocks. |
| Commodities | Real-time quotes for commodities like Gold, Silver, and Oil. |
General Considerations
- To establish a connection with the TradeWatch WebSocket API, TLS with Server Name Indication (SNI) is required.
- Messages exchanged through WebSocket are encoded in JSON format. To maintain accuracy, all decimal fields, including timestamps, are presented in quotes.
- It’s important to note that timestamps are not unique and should not be used as substitutes for IDs.
- To ensure the client connection remains open, at least one item must be subscribed to.
-
For retrieving the list of pairs available for subscription via the WebSocket API, please refer to the REST API
Available symbolsmethods. - The recommended reconnection behavior is to immediately attempt reconnection if the WebSocket connection drops unexpectedly.
