Module client

Module client 

Source
Expand description

Provides an ergonomic wrapper around the OKX v5 REST APIhttps://www.okx.com/docs-v5/en/.

The core type exported by this module is OKXHttpClient. It offers a strongly-typed interface to all exchange endpoints currently required by NautilusTrader.

Key responsibilities handled internally: • Request signing and header composition for private routes (HMAC-SHA256). • Rate-limiting based on the public OKX specification. • Zero-copy deserialization of large JSON payloads into domain models. • Conversion of raw exchange errors into the rich OKXHttpError enum.

Structs§

OKXHttpClient
Provides a higher-level HTTP client for the OKX REST API.
OKXHttpInnerClient
Provides a HTTP client for connecting to the OKX REST API.
OKXResponse
Represents an OKX HTTP response.

Statics§

OKX_REST_QUOTA
Default OKX REST API rate limit: 500 requests per 2 seconds.