use chrono::{Utc, TimeZone}; use omglib::exch::okv5::rest_client::fetch_candlesticks; #[tokio::main] async fn main() { let symbol = "BTC-USDT"; let client = reqwest::Client::new(); match fetch_candlesticks(&client, symbol, "1m", 200).await { Ok(candles) => { for candle in candles { let datetime = Utc.timestamp_millis_opt(candle.time_ms.parse::().unwrap()); println!("Time {:?} Open {} High {} Low {} Close {} Confirm {}", datetime, candle.open, candle.high, candle.low, candle.close, candle.confirm); } }, Err(e) => eprintln!("Error fetching candlesticks: {}", e), } }