1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Gate.io asynchronous HTTP client using Hyper.
//!
//! This module provides an async HTTP client implementation for the Gate.io API
//! using the [`hyper`] library. It's designed for high-performance applications
//! that need non-blocking I/O operations.
//!
//! # Features
//!
//! To use this async client, enable the `enable-hyper` feature:
//!
//! ```toml
//! [dependencies]
//! gateio-rs = { version = "0.1", features = ["enable-hyper"], default-features = false }
//! ```
//!
//! # Example
//!
//! ```no_run
//! use gateio_rs::{
//! api::spot::get_ticker,
//! http::Credentials,
//! hyper::{GateHttpClient, Error},
//! };
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Error> {
//! // Set up credentials for authenticated requests
//! let credentials = Credentials::new("your_api_key".to_string(), "your_api_secret".to_string());
//! let client = GateHttpClient::default().credentials(credentials);
//!
//! // Get ticker data for BTC_USDT
//! let request = get_ticker().currency_pair("BTC_USDT");
//! let response = client.send(request).await?;
//! let data = response.into_body_str().await?;
//! println!("Ticker data: {}", data);
//!
//! Ok(())
//! }
//! ```
pub use *;
pub use *;
pub use *;