Skip to main content

parse_instrument_id

Function parse_instrument_id 

Source
pub fn parse_instrument_id(ticker: &str) -> Result<InstrumentId>
Expand description

Converts a native, case-sensitive ticker to its canonical instrument ID.

Accepts ASCII letters, digits, hyphens, and decimal points between digits.

ยงErrors

Returns an error if the ticker is empty or contains unsupported characters.