Module header_keys

Source
Expand description

Bybit V5 API header key constants for type safety and performance

Constants§

APPLICATION_FORM
The value for the application/x-www-form-urlencoded content type.
APPLICATION_JSON
The value for the application/json content type.
CONTENT_TYPE
The header key for the content type.
X_BAPI_API_KEY
The header key for the API key.
X_BAPI_RECV_WINDOW
The header key for the receive window.
X_BAPI_SIGN
The header key for the signature.
X_BAPI_TIMESTAMP
The header key for the timestamp.

Functions§

application_form
Returns the application/x-www-form-urlencoded content type as a SmartString.
application_json
Returns the application/json content type as a SmartString.
content_type
Returns the Content-Type header value as a SmartString.
x_bapi_api_key
Pre-allocated SmartString constants for zero-allocation header creation
x_bapi_recv_window
Returns the X-BAPI-RECV-WINDOW header key as a SmartString.
x_bapi_sign
Returns the X-BAPI-SIGN header key as a SmartString.
x_bapi_timestamp
Returns the X-BAPI-TIMESTAMP header key as a SmartString.