Expand description
The authorized HTTP client: token handling, the 401 retry and the mapping of error replies.
The methods in this file are generic (BcsHttpClient::get, BcsHttpClient::post and so on).
The endpoint-specific methods (get_order_book, create_order, …) are in super::endpoints.
Structs§
- BcsHttp
Client - The authorized HTTP client of the BCS Trade API.
Constants§
- AUTH_
TOKEN_ PATH - Path of the token endpoint on the REST host (
POST, form-encoded). - HTTP_
BASE_ URL - Production base URL of the REST API.
BcsConfig::newandBcsConfig::from_envuse it. - REQUEST_
TIMEOUT - A request timeout of 30 seconds.
- WS_
BASE_ URL - Production base URL of the WebSocket API.
BcsConfig::newandBcsConfig::from_envuse it.