Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::common::RestRequest Struct Reference

One REST call, before signing and serialisation. More...

#include <rest.hpp>

Public Attributes

HttpMethod method = HttpMethod::Get
std::string endpoint
 Path relative to base_path, e.g. /api/v3/order.
Params query
Params body
 Sent as an application/x-www-form-urlencoded body.
std::optional< TimeUnit > time_unit
 Sent as X-MBX-TIME-UNIT. Products that support it pass RestApiConfig::time_unit.
bool is_signed = false
 Adds timestamp and signature.
std::vector< std::pair< std::string, std::string > > headers
 Per-request headers.

Detailed Description

One REST call, before signing and serialisation.

Member Data Documentation

◆ method

HttpMethod binance::common::RestRequest::method = HttpMethod::Get

◆ endpoint

std::string binance::common::RestRequest::endpoint

Path relative to base_path, e.g. /api/v3/order.

◆ query

Params binance::common::RestRequest::query

◆ body

Params binance::common::RestRequest::body

Sent as an application/x-www-form-urlencoded body.

◆ time_unit

std::optional<TimeUnit> binance::common::RestRequest::time_unit

Sent as X-MBX-TIME-UNIT. Products that support it pass RestApiConfig::time_unit.

◆ is_signed

bool binance::common::RestRequest::is_signed = false

Adds timestamp and signature.

◆ headers

std::vector<std::pair<std::string, std::string> > binance::common::RestRequest::headers

Per-request headers.

Applied after custom_headers, with the same validation. They cannot replace the headers the SDK sets.