Expand description
HTTP client for Bybit v5 API
Handles all HTTP requests, authentication, and response parsing. Provides methods for public and authenticated API endpoints.
§Authentication
For authenticated endpoints, provide credentials via BybitClient::with_credentials.
Authentication uses HMAC-SHA256 signature generation.
§Example
use rusty_bybit::BybitClient;
#[tokio::main]
async fn main() {
let client = BybitClient::testnet();
let time = client.get_server_time().await.unwrap();
println!("Server time: {}", time.time_second);
}
```