% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_post_generator.R
\name{.make_post_function}
\alias{.make_post_function}
\title{Create a POST request function from an API spec}
\usage{
.make_post_function(api)
}
\arguments{
\item{api}{A list containing the POST API spec. Must include:
\code{okx_path}, \code{schema}, and optional \code{mode}.}
}
\value{
A function with signature \code{(body_list, tz, config)} that:
\itemize{
  \item Converts the body list to JSON,
  \item Signs and sends the POST request,
  \item Parses and returns the response using the schema-aware parser.
}
}
\description{
Converts a single entry from \code{.api_POST_specs} into a function that sends
a POST request to the OKX API and returns the parsed response using the provided schema.
}
\keyword{internal}
