pub fn crawl_l2_snapshot(
    exchange: &str,
    market_type: MarketType,
    symbols: Option<&[String]>,
    on_msg: Arc<Mutex<dyn FnMut(Message) + 'static + Send>>,
    interval: Option<u64>,
    duration: Option<u64>,
) {
    crawlers::crawl_snapshot(
        exchange,
        market_type,
        MessageType::L2Snapshot,
        symbols,
        on_msg,
        interval,
        duration,
    )
}
/// Crawl level2 orderbook snapshots through RESTful APIs.
Crawl level2 orderbook snapshots through RESTful APIs.
Crawl level2 orderbook snapshots through RESTful APIs .
pub fn crawl_l2_snapshot(
    exchange: &str,
    market_type: MarketType,
    symbols: Option<&[String]>,
    on_msg: Arc<Mutex<dyn FnMut(Message) + 'static + Send>>,
    interval: Option<u64>,
    duration: Option<u64>,
) {
    crawlers::crawl_snapshot(
        exchange,
        market_type,
        MessageType::L2Snapshot,
        symbols,
        on_msg,
        interval,
        duration,
    )
}
pub fn crawl_l2_snapshot ( exchange : & str , market_type : MarketType , symbols : Option < & [ String ] > , on_msg : Arc < Mutex < dyn FnMut ( Message ) + ' static + Send > > , interval : Option < u64 > , duration : Option < u64 > , ) { crawlers :: crawl_snapshot ( exchange , market_type , MessageType :: L2Snapshot , symbols , on_msg , interval , duration , ) }
Crawl level2 orderbook snapshots through RESTful APIs.
Crawl level2 orderbook snapshots through RESTful APIs .
exchange
&str
market_type
MarketType
symbols
Option<&[String]>
on_msg
Arc<Mutex<dyn FnMut(Message) + 'static + Send>>
interval
Option<u64>
duration
Option<u64>