Skip to content

Function: getNormalisedTopicRequests() ​

ts
function getNormalisedTopicRequests(wsTopicRequests: WSTopicRequestOrStringTopic<WSTopic, any>[]): WSTopicRequest<WSTopic, any>[];

Convert string topics to objects with topic and an undefined payload. Existing topic objects are returned unchanged.

Parameters ​

ParameterType
wsTopicRequestsWSTopicRequestOrStringTopic<WSTopic, any>[]

Returns ​

WSTopicRequest<WSTopic, any>[]

Built by Siebly. Open source SDKs for exchange APIs.