> For the complete documentation index, see [llms.txt](https://ajaib.gitbook.io/ajaib-exchange-open-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajaib.gitbook.io/ajaib-exchange-open-api/websocket-references/web-socket-streams/editor.md).

# Live Subscribing/Unsubscribing to Streams

#### Request

<table><thead><tr><th width="195">Name</th><th width="99">Type</th><th width="160" data-type="checkbox">Mandatory</th><th>Description</th></tr></thead><tbody><tr><td>method</td><td>string</td><td>true</td><td>Websocket method / action (<code>SUBSCRIBE</code> / <code>UNSUBSCRIBE</code> / <code>LIST_SUBSCRIPTIONS</code>)</td></tr><tr><td>params</td><td>List of String</td><td>false</td><td>List of event stream to be subscribed.</td></tr><tr><td>id</td><td>string</td><td>true</td><td>WebSocket message id.</td></tr></tbody></table>

**Response**

<table><thead><tr><th width="145">Name</th><th width="97">Type</th><th>Description</th></tr></thead><tbody><tr><td>result</td><td>string</td><td>Result of subscribe request</td></tr><tr><td>id</td><td>string</td><td>WebSocket message id.</td></tr></tbody></table>

* The `id` is used as an identifier to uniquely identify the messages going back and forth. The following formats are accepted:
  * 64-bit signed integer
  * alphanumeric strings; max length 36
  * `null`
* In the response, if the `result` received is `null` this means the request sent was a success for non-query requests (e.g. Subscribing/Unsubscribing).
