market:spot:tickers [ENT]

Subscribes/Unsubscribes to market ticker data.

Make sure you're connected. Either the pair or exchange have to be specified - one needs to be specified, but both cannot be empty.

Note that there is a dedicated URL for this subscription: wss://


  "jsonrpc" : "2.0",
  "id"      : 1,
  "method"  : "subscribe",
  "params"  : [ "market:spot:tickers", { "pair": "eth_btc", "exchange": "gdax" } ]
pairstringThe asset pair.
exchangestringThe exchange for which to retrieve asset pairs.


"result": {
  "exchange": "gdax",
  "pair": "eth_btc",
  "exchangeTimestamp": 1561495569991,
  "exchangeTimestampNanoseconds": 0,
  "timestamp": 1561495560000,
  "bid": 0.02713,
  "ask": 0.02715,
  "mid": 0.02714,
  "last": 0.02715,
  "sequence": null
exchangestringThe exchange.
pairstringThe asset pair.
exchangeTimestampnumberThe exchange provided timestamp at which the trade took place.
exchangeTimestampNanosecondsnumberThe exchange provided nano second part of the timestampMilliseconds (if available from exchange).
bidnumberThe bid of the pair.
asknumberThe ask of the pair.
midnumberThe mid of the pair.
lastnumberThe last of the pair.
sequencenumberThe sequence number (equal to null if it is not provided by the exchange).


const WebSocket = require('ws');
const ws = new WebSocket('wss://', {headers: {x-api-key:'<api_key>'}});

ws.on('open', () => {
      jsonrpc: '2.0',
      method: 'subscribe',
      params: ['market:spot:tickers', {'pair': 'eth_btc', 'exchange': 'gdax'}],
      id: 1,

ws.on('message', data => {
  console.log(JSON.stringify(JSON.parse(data), null, 2));