Skip to main content

Module urls

Module urls 

Source
Expand description

URL helpers and endpoint metadata for OKX services.

Enums§

OKXEndpointType
OKX endpoint types for determining URL and authentication requirements.

Functions§

get_http_base_url
Returns the HTTP base URL.
get_ws_base_url_business
Returns the WebSocket base URL for business data (bars/candlesticks).
get_ws_base_url_private
Returns the WebSocket base URL for private data (account/order management).
get_ws_base_url_public
Returns the WebSocket base URL for public data (market data).
get_ws_url
Returns WebSocket URL by endpoint type.
requires_authentication
Checks if endpoint requires authentication.