[−][src]Function sec_ticker_parser::ticker
pub fn ticker(map: &HashMap<String, u64>, cik: &u64) -> String
Give a valid map and cik, return the ticket symbol. This will iterate over the hashmap until value is found matching. If no ticker matches, will return the string "none".
Example
let map = sec_ticker_parser::list().unwrap(); let my_ticker = sec_ticker_parser::ticker(&map, &732712); assert_eq!(my_ticker, "vz");