crypto-pair 2.3.20

Parse exchange-specific symbols to unified format
Documentation
1
2
3
4
5
6
7
8
pub(crate) fn normalize_pair(symbol: &str) -> Option<String> {
    if symbol.contains('-') {
        let result = str::replace(symbol, "-", "/");
        Some(result)
    } else {
        None
    }
}