| .get_headers | R Documentation |
Generate the required signed headers for an OKX REST request.
.get_headers(config, httr_method, httr_path, body_json = "")
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. |
A 'httr::add_headers' object containing the signed headers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.