use gateio_rs::{api::spot, ureq::GateHttpClient};
use serde_json::Value;
fn main() -> Result<(), Box<gateio_rs::ureq::Error>> {
dotenv::dotenv().ok();
let client = GateHttpClient::default();
// Get server time (public endpoint, no credentials needed)
let req = spot::get_server_time();
let resp = client.send(req)?;
let body = resp.into_body_str()?;
let resp_obj: Value = serde_json::from_str(&body).unwrap();
println!("{:?}", resp_obj);
Ok(())
}