| Crates.io | crypto-pair |
| lib.rs | crypto-pair |
| version | 2.3.20 |
| created_at | 2020-12-25 05:35:36.2854+00 |
| updated_at | 2024-03-10 04:42:47.761948+00 |
| description | Parse exchange-specific symbols to unified format |
| homepage | |
| repository | https://github.com/crypto-crawler/crypto-msg-parser/tree/main/crypto-pair |
| max_upload_size | |
| id | 327086 |
| size | 97,348 |
Parse exchange-specific symbols to unified format.
use crypto_pair::normalize_pair;
fn main() {
assert_eq!(Some("BTC/USD".to_string()), normalize_pair("XBTH21", "BitMEX"));
}