Skip to main content

extract_base_coin

Function extract_base_coin 

Source
pub fn extract_base_coin(symbol: &str) -> &str
Expand description

Extracts the base coin from a Bybit option symbol.

For example, "BTC-27MAR26-70000-P" returns "BTC".