pub fn determine_venue_from_contract(
contract: &Contract,
symbol_to_mic_venue: &HashMap<String, String>,
convert_exchange_to_mic_venue: bool,
valid_exchanges: Option<&str>,
) -> StringExpand description
Determine venue from contract using provider configuration.
This implements the same logic as Python’s determine_venue_from_contract:
- Check symbol-specific venue mapping first (prefix matching)
- Use VENUE_MEMBERS mapping if convert_exchange_to_mic_venue is enabled
- Fall back to exchange
§Arguments
contract- The IB contractsymbol_to_mic_venue- Symbol prefix to venue mappingconvert_exchange_to_mic_venue- Whether to convert exchange to MIC venue
§Returns
The determined venue as a string.