MetaTrader®, MT4® and MT5® are trademarks of MetaQuotes Ltd. This is an independent service and is not affiliated with, authorized by, or endorsed by MetaQuotes. Trustpilot4.0
LIVE · WebSocket streaming

Stream MT4 & MT5 prices in real time — one WebSocket, zero polling.

Subscribe to any symbol and receive every tick the instant the broker's server prints it. Quotes, trade events and connection state pushed straight to your app — no request loops, no rate limits, no missed moves.

wss://hrx.info/v1/stream · MT4 + MT5 · JSON frames
Works with every MT4 & MT5 broker 3,100+ symbols per account Quotes · trades · connection state Also on REST & gRPC
// what it is

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.

// polling vs streaming

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.
// three lines to live data

Connected in under a minute.

1

Get a key

Connect an MT4/MT5 account in the dashboard and copy its API key.

2

Open the socket

Point a WebSocket at wss://hrx.info/v1/stream with your key and account id.

3

Subscribe

Send {action:"subscribe",symbol:"EURUSD"} and read the frames.

stream.js — live quotes in the browser or Node
// 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);
};
// who it's for

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.

→ SaaS & fintech builders

Algo & signal bots

Fire strategy logic on the tick, not on a timer. Trade events tell you the moment a fill lands.

→ Algorithmic traders

Price alerts & copy tools

Watch dozens of symbols on one connection and react to level crossings in milliseconds.

→ Alert & copy-trading services
// the numbers

One socket does the work of thousands of requests.

1
connection streams every symbol on the account
3,100+
symbols subscribable per MT4/MT5 account
0ms
polling delay — frames are pushed on change
// questions

Frequently asked

What is the MetaTrader WebSocket API?+
It is a real-time streaming interface to a live MT4 or MT5 account. You open one WebSocket to 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?+
REST returns one snapshot per request, so you only see the price at the moments you ask, and you spend a request each time. The WebSocket pushes every tick automatically as it happens — no gaps between polls and no per-quote request cost.
Does it work with both MT4 and MT5?+
Yes. The same streaming surface covers MT4 and MT5 accounts, and works with any broker, because it drives a real terminal logged into your account.
What data does each quote frame contain?+
Each 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?+
Yes. Alongside quotes you can subscribe to trade events (positions opening and closing) and connection-state changes, all delivered over the one connection.
Is there a REST or gRPC option too?+
Yes. The same account is reachable over REST for request/response calls and gRPC for typed, high-throughput clients, using the same API key. Use whichever fits your app.
Start free

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.