dot-make_post_function: Create a POST request function from an API spec

.make_post_functionR Documentation

Create a POST request function from an API spec

Description

Converts a single entry from .api_POST_specs into a function that sends a POST request to the OKX API and returns the parsed response using the provided schema.

Usage

.make_post_function(api)

Arguments

api

A list containing the POST API spec. Must include: okx_path, schema, and optional mode.

Value

A function with signature (body_list, tz, config) that:

  • Converts the body list to JSON,

  • Signs and sends the POST request,

  • Parses and returns the response using the schema-aware parser.


okxr documentation built on May 8, 2026, 5:09 p.m.