validate_ticker_format

Function validate_ticker_format 

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

Validates that a ticker has the correct format (BASE-QUOTE).

§Errors

Returns an error if the ticker is not in the format “BASE-QUOTE”.