| .build_request | R Documentation |
Assemble URL, headers, and body for an OKX API call.
.build_request(
httr_method,
base_url,
api_path,
query_string,
config = NULL,
body_json = "",
auth = TRUE
)
httr_method |
HTTP method ("GET" or "POST"). |
base_url |
Base URL of the OKX API. |
api_path |
API path (e.g., "/api/v5/account/balance"). |
query_string |
Query string starting with "?" or empty. |
config |
List with API credentials. |
body_json |
Optional JSON string for POST body. |
auth |
Logical. Whether to sign the request with OKX credentials. |
A list with elements: 'method', 'url', 'full_path', 'headers', and 'body_json'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.