import { createVertexClient } from'@vertex-protocol/client';constvertexClient=awaitcreateVertexClient('testnet',...);// Builds a subscription stream param as expected by the server via Websocket. constwsTradeStream=vertexClient.ws.subscription.buildSubscriptionParams('trade', { product_id:0, }, );// Builds a subscription request message as expected by the server via Websocket.constwsTradeSubscriptionReq=vertexClient.ws.subscription.buildSubscriptionMessage(1,'subscribe', wsTradeStream, );