dot-get_headers: Create OKX API request headers

.get_headersR Documentation

Create OKX API request headers

Description

Generate the required signed headers for an OKX REST request.

Usage

.get_headers(config, httr_method, httr_path, body_json = "")

Arguments

config

List with 'api_key', 'secret_key', and 'passphrase'.

httr_method

HTTP method as a string (e.g., "GET" or "POST").

httr_path

Path portion of the API endpoint.

body_json

Optional JSON string of the request body.

Value

A 'httr::add_headers' object containing the signed headers.


okxr documentation built on May 8, 2026, 5:09 p.m.