59 stable releases

2.3.20 Mar 10, 2024
2.3.19 Dec 24, 2023
2.3.18 Nov 27, 2023
2.3.15 May 6, 2023
1.0.4 Dec 29, 2020

#15 in #normalize

Download history 102/week @ 2024-08-05 71/week @ 2024-08-12 60/week @ 2024-08-19 84/week @ 2024-08-26 56/week @ 2024-09-02 79/week @ 2024-09-09 55/week @ 2024-09-16 75/week @ 2024-09-23 68/week @ 2024-09-30 56/week @ 2024-10-07 95/week @ 2024-10-14 101/week @ 2024-10-21 80/week @ 2024-10-28 80/week @ 2024-11-04 56/week @ 2024-11-11 56/week @ 2024-11-18

283 downloads per month
Used in 6 crates (5 directly)

Apache-2.0

46KB
1K SLoC

crypto-pair

Parse exchange-specific symbols to unified format.

Usage

use crypto_pair::normalize_pair;

fn main() {
    assert_eq!(Some("BTC/USD".to_string()), normalize_pair("XBTH21", "BitMEX"));
}

Dependencies

~4–16MB
~216K SLoC