use std::env; use log::LevelFilter; use crypto_botters::{Client, bybit::{BybitOption, BybitHttpAuth}}; #[tokio::main] async fn main() { env_logger::builder() .filter_level(LevelFilter::Debug) .init(); let key = env::var("BYBIT_API_KEY").expect("no API key found"); let secret = env::var("BYBIT_API_SECRET").expect("no API secret found"); let mut client = Client::new(); client.update_default_option(BybitOption::Key(key)); client.update_default_option(BybitOption::Secret(secret)); // private GET let internal_transfers: serde_json::Value = client.get_no_query( "/asset/v1/private/transfer/list", [BybitOption::HttpAuth(BybitHttpAuth::BelowV3)], ).await.expect("failed to get internal transfer list"); println!("Internal transfers:\n{}", internal_transfers); }