Skip to main content

to_instrument_id

Function to_instrument_id 

Source
pub fn to_instrument_id(
    exchange_id: &str,
    market_id: &str,
) -> Result<InstrumentId, Error>
Expand description

Maps an exact exchange and outcome ID to a provider-owned instrument ID.

Native adapters use separate venues and remain independent definition sources.

ยงErrors

Returns an error if the exchange is unknown or the outcome ID is invalid.