pub fn instrument_id(key: &InstrumentKey) -> InstrumentIdExpand description
Builds an [InstrumentId] from a BCS instrument key. The native id is
[NativeId::TickerClass], the form every BCS call wants.
§Examples
use brokapi_bcs_protocol::models::instrument::InstrumentKey;
use brokapi_bcs::map::instrument_id;
use brokapi_core::NativeId;
let id = instrument_id(&InstrumentKey::new("SBER", "TQBR"));
assert!(matches!(id.native, NativeId::TickerClass { .. }));