1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
mod account; mod general; mod market; mod userstream; use transport::Transport; pub struct Binance { pub transport: Transport, } impl Binance { pub fn new() -> Self { Binance { transport: Transport::new() } } pub fn with_credential(api_key: &str, api_secret: &str) -> Self { Binance { transport: Transport::with_credential(api_key, api_secret), } } }