|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
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. | |
One REST call, before signing and serialisation.
| HttpMethod binance::common::RestRequest::method = HttpMethod::Get |
| std::string binance::common::RestRequest::endpoint |
Path relative to base_path, e.g. /api/v3/order.
| Params binance::common::RestRequest::query |
| Params binance::common::RestRequest::body |
Sent as an application/x-www-form-urlencoded body.
| std::optional<TimeUnit> binance::common::RestRequest::time_unit |
Sent as X-MBX-TIME-UNIT. Products that support it pass RestApiConfig::time_unit.
| bool binance::common::RestRequest::is_signed = false |
Adds timestamp and signature.
| 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.