How to pass referenceCurrencyUuid to real-time web socket?


I am trying to make a web socket connection in a javascript environment.

I want to know, How or where can I use the referenceCurrencyUuid parameter in the request?

My current code is like below.

new WebSocket(`wss://${Config.API_KEY}&referenceCurrencyUuid=${selectedCurrency}`)

Here selectedCurrency is uuid of currency in which I want to receive an update.

I also tried this.

ws.onopen = () => {
      const subscriptions = {
        throttle: '10s',
        referenceCurrencyUuid: selectedCurrency,
        uuids: [

but this did not work either.

Thanks for your help in advance.


Thanks for the question. It has been answered by one of my colleagues via private message.