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
Gets the HTTP base URL.
get_ws_base_url
Gets the WebSocket base URL (backward compatibility - defaults to private).
get_ws_base_url_business
Gets the WebSocket base URL for business data (bars/candlesticks).
get_ws_base_url_private
Gets the WebSocket base URL for private data (account/order management).
get_ws_base_url_public
Gets the WebSocket base URL for public data (market data).
get_ws_url
Gets WebSocket URL by endpoint type.
requires_authentication
Checks if endpoint requires authentication.