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, ALL is returned;
  • If the message has no symbol, NONE is returned.