A push feed for live MetaTrader market data.
The MetaTrader WebSocket API lets any application subscribe to a live MT4 or MT5 account and receive market data as a continuous stream instead of repeatedly asking for it. You open one connection to wss://hrx.info/v1/stream, send a subscribe message per symbol, and the server pushes a JSON frame on every price change — bid, ask, last, real volume and trade flags — plus trade-event and connection-state frames on the same socket. It removes the polling loop that makes REST-based quote apps slow, expensive and always a step behind the market.
Why not just poll a REST quote endpoint?
Because the market moves between your requests. Streaming gives you every tick; polling gives you snapshots with gaps — and burns requests doing it.
REST POLLING The old way
- You ask "what's the price?" 10× a second and hope you didn't miss a spike between calls.
- Thousands of wasted requests when nothing changed.
- Latency = your polling interval. Fast enough hits rate limits.
WEBSOCKET With streaming
- Every tick arrives the moment the broker prints it — nothing skipped.
- One connection, many symbols. No request accounting.
- Trade events and connection state on the same socket.
Connected in under a minute.
Get a key
Connect an MT4/MT5 account in the dashboard and copy its API key.
Open the socket
Point a WebSocket at wss://hrx.info/v1/stream with your key and account id.
Subscribe
Send {action:"subscribe",symbol:"EURUSD"} and read the frames.
// One socket, every tick — no polling loop const ws = new WebSocket("wss://hrx.info/v1/stream?apiKey=sk_live_…&id=<accountId>"); ws.onopen = () => { ws.send(JSON.stringify({ action:"subscribe", symbol:"EURUSD" })); ws.send(JSON.stringify({ action:"subscribe", symbol:"XAUUSD" })); }; ws.onmessage = (e) => { const f = JSON.parse(e.data); // { type:"QUOTE", data:{ symbol:"EURUSD", bid:1.16395, ask:1.16403, // timeMsc:1788975235949, last:0.0, volumeReal:0 } } console.log(f.data.symbol, f.data.bid, f.data.ask); };
Built for anyone who can't wait for the next poll.
Trading dashboards
Live tick charts and blotters that update the instant the price does, without hammering an endpoint.
Algo & signal bots
Fire strategy logic on the tick, not on a timer. Trade events tell you the moment a fill lands.
Price alerts & copy tools
Watch dozens of symbols on one connection and react to level crossings in milliseconds.
One socket does the work of thousands of requests.
Frequently asked
What is the MetaTrader WebSocket API?+
wss://hrx.info/v1/stream, subscribe to symbols, and receive a JSON frame on every quote change, trade event and connection-state change — instead of polling a REST endpoint.How is streaming different from the REST quotes endpoint?+
Does it work with both MT4 and MT5?+
What data does each quote frame contain?+
QUOTE frame carries the symbol, bid, ask, last price, tick volume, real volume, a millisecond timestamp (timeMsc) and trade flags — enough to build tick charts, VWAP or microstructure analytics.Can I get trade events and connection status on the same socket?+
Is there a REST or gRPC option too?+
Point a WebSocket at your account and watch it tick.
Connect an MT4 or MT5 account, grab your key, and stream live prices in three lines of code.