Expand description
Generic signed request builder for authenticated API requests.
This module provides a reusable infrastructure for building authenticated
requests across different cryptocurrency exchanges. Each exchange implements
the SigningStrategy trait to define its specific signing behavior.
§Architecture
SignedRequestBuilder: Generic builder handling parameter management and request executionSigningStrategy: Trait for exchange-specific signing (timestamp, signature, headers)HasHttpClient: Trait for exchanges that can execute HTTP requestsSigningContext: Data structure containing all signing-related information
§Example
ⓘ
// Exchange implements HasHttpClient and provides a SigningStrategy
let response = exchange
.signed_request("/api/v3/account")
.param("symbol", "BTCUSDT")
.optional_param("limit", Some(100))
.execute()
.await?;Structs§
- Signed
Request Builder - Generic builder for creating authenticated API requests.
- Signing
Context - Context containing all data needed for request signing.
Enums§
- Http
Method - HTTP request methods supported by signed requests.
Traits§
- HasHttp
Client - Trait for exchanges that can execute HTTP requests.
- Signing
Strategy - Trait for exchange-specific request signing strategies.
Functions§
- build_
query_ string - Build URL-encoded query string from parameters.
- build_
query_ string_ raw - Build query string without URL encoding (for signing).