Function map_instrument_info
pub fn map_instrument_info(
info: &InstrumentInfo,
class_code: &str,
) -> InstrumentExpand description
Maps the directory record of an instrument, for the board class_code.
- Name:
displayName, elseshortName, else the ticker. - Kind: from the BCS type text (contains
STOCK,BOND,FUTURE,OPTION,ETF,FUND,CURRENCY), anything else isOther. - Currency: the trading currency,
RUBwhen the record has none (an assumption). - Exchange: the exchange of the board with this class code,
MOEXwhen the board is not listed (an assumption).