Market
QuantConnect.Market
Bases: Object
Markets Collection: Soon to be expanded to a collection of items specifying the market hour, timezones and country codes.
USA
USA: str = 'usa'
USA Market
OANDA
OANDA: str = 'oanda'
Oanda Market
FXCM
FXCM: str = 'fxcm'
FXCM Market Hours
DUKASCOPY
DUKASCOPY: str = 'dukascopy'
Dukascopy Market
BITFINEX
BITFINEX: str = 'bitfinex'
Bitfinex market
GLOBEX
GLOBEX: str = 'cmeglobex'
CME Globex
NYMEX
NYMEX: str = 'nymex'
NYMEX
CBOT
CBOT: str = 'cbot'
CBOT
ICE
ICE: str = 'ice'
ICE
CBOE
CBOE: str = 'cboe'
CBOE
CFE
CFE: str = 'cfe'
CFE
INDIA
INDIA: str = 'india'
NSE - National Stock Exchange
COMEX
COMEX: str = 'comex'
Comex
CME
CME: str = 'cme'
CME
EUREX
EUREX: str = 'eurex'
EUREX
SGX
SGX: str = 'sgx'
Singapore Exchange
HKFE
HKFE: str = 'hkfe'
Hong Kong Exchange
OSE
OSE: str = 'ose'
Osaka Stock Exchange
NYSELIFFE
NYSELIFFE: str = 'nyseliffe'
London International Financial Futures and Options Exchange
GDAX
GDAX: str = ...
GDAX
The GDAX constant is deprecated. Please use Coinbase instead.
KRAKEN
KRAKEN: str = 'kraken'
Kraken
BITSTAMP
BITSTAMP: str = 'bitstamp'
Bitstamp
OK_COIN
OK_COIN: str = 'okcoin'
OkCoin
BITHUMB
BITHUMB: str = 'bithumb'
Bithumb
BINANCE
BINANCE: str = 'binance'
Binance
POLONIEX
POLONIEX: str = 'poloniex'
Poloniex
COINONE
COINONE: str = 'coinone'
Coinone
HIT_BTC
HIT_BTC: str = 'hitbtc'
HitBTC
BITTREX
BITTREX: str = 'bittrex'
Bittrex
FTX
FTX: str = 'ftx'
FTX
FTXUS
FTXUS: str = 'ftxus'
FTX.US
BINANCE_US
BINANCE_US: str = 'binanceus'
Binance.US
BYBIT
BYBIT: str = 'bybit'
Bybit
COINBASE
COINBASE: str = 'coinbase'
Coinbase
INTERACTIVE_BROKERS
INTERACTIVE_BROKERS: str = 'interactivebrokers'
InteractiveBrokers market
add
add(market: str, identifier: int) -> None
Adds the specified market to the map of available markets with the specified identifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
market
|
str
|
The market string to add |
required |
identifier
|
int
|
The identifier for the market, this value must be positive and less than 1000 |
required |
decode
decode(code: int) -> str
Gets the market string for the specified market code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code
|
int
|
The market code to be decoded |
required |
Returns:
| Type | Description |
|---|---|
str
|
The string representation of the market, or null if not found. |
encode
encode(market: str) -> Optional[int]
Gets the market code for the specified market. Returns null if the market is not found
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
market
|
str
|
The market to check for (case sensitive) |
required |
Returns:
| Type | Description |
|---|---|
Optional[int]
|
The internal code used for the market. Corresponds to the value used when calling add. |
supported_markets
supported_markets() -> List[str]
Returns a list of the supported markets