Function crypto_msg_parser::extract_symbol
source ยท pub fn extract_symbol(
exchange: &str,
market_type: MarketType,
msg: &str,
) -> Result<String, SimpleError>Expand description
Extract the symbol from the message.
- If the message contains multiple symbols,
ALLis returned; - If the message has no symbol,
NONEis returned.