Function crypto_crawler::crawl_trade[][src]

pub fn crawl_trade(
    exchange: &str,
    market_type: MarketType,
    symbols: Option<&[String]>,
    on_msg: Arc<Mutex<dyn FnMut(Message) + Send + 'static>>,
    duration: Option<u64>
)

Crawl realtime trades.

If symbols is None, this function will crawl all trading symbols in the market_type, and fetch the latest symbols every hour.