snm-brightdata-client 0.4.0

Bright Data Wrapper Client Highly compacted Data implemented in Rust with Actix Web
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// /snm-brightdata-client/src/symbols/mutual_fund_symbol.rs

use std::collections::HashMap;

fn known_name_to_symbol_map() -> HashMap<&'static str, &'static str> {
    HashMap::from([
    ])
}

pub fn match_symbol_from_query(query: &str) -> String {
    let lower_query = query.to_lowercase();
    for (name, symbol) in known_name_to_symbol_map() {
        if lower_query.contains(name) {
            return symbol.to_string();
        }
    }
    query.to_string()
}