Skip to content

Event info

Info

Some events require an active subscription.
Make sure you subscribe to the required channels before receiving event updates.


Subscription examples

Subscribe (merge with existing subscriptions)

This command adds the specified channels to the current subscription list
without removing existing ones.

{
  "command": "Subscribe",
  "extID": "vgvg556",
  "data": {
    "chanels": ["EURUSD", "BTCUSD"]
  }
}

Subscribe to all channels

Use this command if you want to receive the full TCP broadcast stream for the session. After SubscribeAll, the connection receives events from all channels, not only from channels listed in chanels.

{
  "command": "SubscribeAll",
  "extID": "vgvg556-all",
  "data": {}
}

SubscribeSync (replace subscriptions)

Use this command if you want to subscribe only to the specified channels. All previously active subscriptions will be removed.

{
  "command": "SubscribeSync",
  "extID": "vgvg556",
  "data": {
    "chanels": ["EURUSD", "BTCUSD"]
  }
}

Unsubscribe from specific channels

Removes the specified channels from the active subscriptions.

{
  "command": "Unsubscribe",
  "extID": "vgvg5776",
  "data": {
    "chanels": ["EURUSD"]
  }
}

Unsubscribe from all channels

Stops receiving updates from all subscribed channels and also disables the global SubscribeAll mode for the current session.

{
  "command": "UnsubscribeAll",
  "extID": "vgvg5776",
  "data": {}
}