Skip to content

Stream Quotes (Ticks)

Subscription required

Real-time price updates for subscribed symbols.

Subscribe / Unsubscribe examples

{ "command": "Subscribe",    "extID": "1", "data": { "chanels": ["EURUSD","BTCUSD"] } }
{ "command": "SubscribeAll", "extID": "2", "data": {} }
{ "command": "Unsubscribe",  "extID": "2", "data": { "chanels": ["EURUSD"] } }
{ "command": "UnsubscribeAll", "extID": "3", "data": {} }

SubscribeAll enables delivery of quotes from all channels available to the TCP session. UnsubscribeAll clears exact channel subscriptions and disables that global mode.

Outgoing Message Format

Compact JSON array (5 elements):

Index Field Type Description
0 "t" string Event marker
1 symbol string Trading symbol (e.g. "EURUSD")
2 bid number Current bid price
3 ask number Current ask price
4 ctm int Server timestamp (ms)

Example

["t","EURUSD",1.08850,1.08870,1734312345678]

Client notes

  • Extremely high frequency possible (hundreds per second on volatile symbols)
  • Always expect an array and verify that arr[0] === "t".
  • bid/ask values are floating point numbers.
  • The format is stable: no additional fields are added.