% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_get_generator.R
\name{.make_get_function}
\alias{.make_get_function}
\title{Create a GET request function from an API spec}
\usage{
.make_get_function(api)
}
\arguments{
\item{api}{A list containing API spec fields: \code{okx_path}, \code{query} (string or function),
\code{schema} (data.frame), and optional \code{mode} ("named" or "positional").}
}
\value{
A function with signature \code{(tz = "Asia/Hong_Kong", config, ...)} that:
\itemize{
  \item builds the query string using \code{api$query} (if a function),
  \item signs and sends the GET request,
  \item parses and returns the data using the schema-aware parser.
}
}
\description{
Converts a single entry from \code{.api_GET_specs} into a ready-to-use function
that executes the HTTP GET request, parses the response, and returns a typed data frame.
}
\keyword{internal}
