# `CCXT.WS.Helpers`
[🔗](https://github.com/ZenHive/ccxt_client/blob/main/lib/ccxt/ws/helpers.ex#L1)

Pure helpers for WS URL resolution.

Subscribe-frame construction lives in the pattern modules under
`CCXT.WS.Subscription.*` (T94); this module now only holds the hostname
interpolation helper used by `CCXT.WS.URLRouting`.

# `interpolate_hostname`

```elixir
@spec interpolate_hostname(String.t(), String.t() | nil) :: String.t()
```

Replaces the `{hostname}` placeholder in a URL template. Nil hostname returns
the template unchanged (mirrors the private helper of the same name in `CCXT.Exchange`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
