[][src]Function sec_ticker_parser::cik

pub fn cik(map: &HashMap<String, u64>, ticker: &str) -> u64

Given a valid map and ticker, return the cik. If no valid cik matches, then will return 0.

Example

let map = sec_ticker_parser::list().unwrap();
let my_cik = sec_ticker_parser::cik(&map, "vz");
assert_eq!(my_cik, 732712);