Skip to main content

Module urls

Module urls 

Source

Enums§

UrlError
Error converting a URL scheme.

Functions§

backtest_ws_url
Build the backtest WebSocket URL from a user-supplied endpoint: a bare hostname becomes wss://{host}/backtest, while an explicit ws(s):// URL keeps its scheme (for local development against plain-ws:// servers) and gains the /backtest path only if missing. Any other scheme passes through untouched. Idempotent, so already-normalized URLs survive the crate::BacktestClient builder applying this to every url input.
http_base_from_ws_url
Derive an HTTP base URL from a WebSocket URL. wss://host:port/pathhttps://host:port
http_to_ws_url
Convert an http(s):// RPC endpoint URL to a ws(s):// URL.