Function extract_raw_symbol
Source pub fn extract_raw_symbol(symbol: &str) -> &str
Expand description
Extracts the raw symbol from a Bybit symbol by removing the product type suffix.
§Examples
ⓘassert_eq!(extract_raw_symbol("ETHUSDT-LINEAR"), "ETHUSDT");
assert_eq!(extract_raw_symbol("BTCUSDT-SPOT"), "BTCUSDT");
assert_eq!(extract_raw_symbol("ETHUSDT"), "ETHUSDT");