extract_instrument_from_channel

Function extract_instrument_from_channel 

Source
pub fn extract_instrument_from_channel(channel: &str) -> Option<&str>
Expand description

Extracts the instrument name from a channel string.

For example: “trades.BTC-PERPETUAL.raw” -> “BTC-PERPETUAL”