Skip to main content

is_etf

Function is_etf 

Source
pub fn is_etf(symbol: &str) -> bool
Expand description

Whether a user-supplied symbol resolves to an ETF (e.g. QQQ.US, SPY.US).

Determined by checking the embedded special counter_id set: a symbol is an ETF when symbol_to_counter_id maps it to an ETF/... counter_id.