Plans & Support/FAQ
WebSocket API FAQ
What is FCS API WebSocket?
FCS API WebSocket provides real-time streaming of market data with 5-second to real-time updates, depending on the plan. Unlike REST API that requires polling, WebSocket pushes live price updates directly to your application - ideal for trading bots, live dashboards, and financial apps.
How do I connect to the WebSocket API?
Connect to wss://ws-v4.fcsapi.com/ws?access_key=YOUR_KEY with your WebSocket API key. Send a JSON join message: {"type":"join_symbol","symbol":"BINANCE:BTCUSDT","timeframe":"60"}. You will receive real-time price updates for subscribed symbols.
What data is streamed via WebSocket?
Each price message includes the symbol, timeframe and a prices object. In candle mode it holds the candle open time (t), open (o), high (h), low (l), close or current price (c) and volume (v); in askbid mode it holds the update time (update), current price (c), ask price (a), bid price (b) and candle period time (t). Data format is optimized for low bandwidth.
What markets are available via WebSocket?
WebSocket streams data for: Forex (4,500+ forex symbols), Cryptocurrency (15,000+ crypto symbols), Stocks (100,000+ stocks), Indices (S&P 500, NASDAQ, Dow Jones), Commodities (Gold, Silver, Oil), and Funds. Market access depends on your plan level.
Is WebSocket API suitable for trading bots?
Yes, FCS API WebSocket is designed for algorithmic trading with low-latency data delivery. The WebSocket Enterprise plan provides real-time updates with 2,000 concurrent connections - perfect for high-frequency trading applications.
How many symbols can I subscribe to?
One connection can join several symbols, each with its own timeframe. The number of concurrent connections depends on the plan: WebSocket Free (1), WebSocket Basic (15), WebSocket Pro (40), WebSocket Business (250), WebSocket Enterprise (2,000).
What programming languages are supported?
WebSocket is protocol-based and works with any language: JavaScript (browser/Node.js), Python (websocket-client), PHP, Java, C#, Go, Ruby. We provide code examples for all major languages in our documentation.
Is there a free WebSocket plan?
Yes, the WebSocket Free plan uses the demo key fcs_socket_demo for testing, with 1 connection. Paid plans start at $99/month for more connections.