% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_auth.R
\name{.build_request}
\alias{.build_request}
\title{Build a full OKX request object}
\usage{
.build_request(
  httr_method,
  base_url,
  api_path,
  query_string,
  config = NULL,
  body_json = "",
  auth = TRUE
)
}
\arguments{
\item{httr_method}{HTTP method ("GET" or "POST").}

\item{base_url}{Base URL of the OKX API.}

\item{api_path}{API path (e.g., "/api/v5/account/balance").}

\item{query_string}{Query string starting with "?" or empty.}

\item{config}{List with API credentials.}

\item{body_json}{Optional JSON string for POST body.}

\item{auth}{Logical. Whether to sign the request with OKX credentials.}
}
\value{
A list with elements: `method`, `url`, `full_path`, `headers`, and `body_json`.
}
\description{
Assemble URL, headers, and body for an OKX API call.
}
