pub fn bcs_instrument_key(id: &InstrumentId) -> Option<InstrumentKey>Expand description
Returns the BCS instrument key of an [InstrumentId], or None when its native id is not
[NativeId::TickerClass] (the id came from another broker).
§Examples
use brokapi_bcs::map::{bcs_instrument_key, instrument_id_ticker};
let id = instrument_id_ticker("SBER", "TQBR");
assert_eq!(bcs_instrument_key(&id).unwrap().ticker, "SBER");