> 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/subscribe-stream.md).

# Subscribe Stream

**Functionality:** To subscribe stream by stream name

**Authentication:** Required[^1]

**Stream Name Format:**

Stream names follow the format: **`SYMBOL@suffix`**

* Symbol prefix must be UPPERCASE (e.g. `BTC_IDR`, `ETH_IDR`)
* Suffix must follow the convention case exactly as documented (e.g. `trade`, `depth5`, `bookTicker`)

> ⚠️ Using incorrect casing in either part may result in a failed or unrecognized subscription.

Request Sample

```
{
  "method": "SUBSCRIBE",
  "params": [
    "BTC_IDR@trade",
    "BTC_IDR@depth5"
  ],
  "id": "1"
}

```

Response Sample

{% tabs %}
{% tab title="Success" %}

```javascript
{
  "result": null,
  "id": 1
}
```

{% endtab %}
{% endtabs %}

[^1]:
