CCXT.WS.Helpers (ccxt_client v0.6.1)

Copy Markdown View Source

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.

Summary

Functions

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).

Functions

interpolate_hostname(url, hostname)

@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).