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

#13 in #normalize

Download history 134/week @ 2024-07-03 174/week @ 2024-07-10 111/week @ 2024-07-17 156/week @ 2024-07-24 97/week @ 2024-07-31 99/week @ 2024-08-07 64/week @ 2024-08-14 63/week @ 2024-08-21 76/week @ 2024-08-28 62/week @ 2024-09-04 75/week @ 2024-09-11 60/week @ 2024-09-18 74/week @ 2024-09-25 62/week @ 2024-10-02 71/week @ 2024-10-09 84/week @ 2024-10-16

300 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–19MB
~227K SLoC