Skip to content

Exchanges

QuantConnect.Exchanges

Bases: Object

Defines Lean exchanges codes and names

get_primary_exchange

get_primary_exchange(
    exchange: str,
    security_type: SecurityType = ...,
    market: str = ...,
) -> Exchange

Gets the exchange as PrimaryExchange object.

get_primary_exchange_code_get_primary_exchange

get_primary_exchange_code_get_primary_exchange(
    exchange: str,
    security_type: SecurityType = ...,
    market: str = ...,
) -> str

Gets the exchange as single character representation.