kucoin_arbitrage 0.0.2

Kucoin Arbitrage Framework in Async Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::io::Write;

pub fn log_init() {
    env_logger::Builder::new()
        .format(|buf, record| {
            writeln!(
                buf,
                "{} [{}]: {}",
                chrono::Local::now().format("%m-%dT%H:%M:%S"),
                record.level(),
                record.args()
            )
        })
        .filter(None, log::LevelFilter::Info)
        .init();
}