Skip to content

quantpylib.datapoller.exchange

Exchange

Bases: BasePoller

A class for interacting with exchange-related data sources.

check_exchange_open(**kwargs)

Check if the exchange is open for trading. @poller

Parameters:

Name Type Description Default
**kwargs

Data-source specific keyword arguments for endpoint specification.

{}

Returns:

Type Description

The exchange trading status from the selected data source.

get_delisted_tickers_in_exchange(**kwargs)

Retrieve the collection of delisted tickers in a specific exchange. @poller

Parameters:

Name Type Description Default
**kwargs

Data-source specific keyword arguments for endpoint specification.

{}

Returns:

Type Description

The collection of delisted tickers in the specified exchange from the selected data source.

get_exchange_holidays(**kwargs)

Retrieve the exchange holidays for a specific exchange. @poller

Parameters:

Name Type Description Default
**kwargs

Data-source specific keyword arguments for endpoint specification.

{}

Returns:

Type Description

The exchange holidays for the specified exchange from the selected data source.

get_exchange_hours(**kwargs)

Retrieve the trading hours for a specific exchange. @poller

Parameters:

Name Type Description Default
**kwargs

Data-source specific keyword arguments for endpoint specification.

{}

Returns:

Type Description

The trading hours for the specified exchange from the selected data source.

get_exchange_server_timestamp(**kwargs)

Retrieve the server timestamp for a specific exchange. @poller

Parameters:

Name Type Description Default
**kwargs

Data-source specific keyword arguments for endpoint specification.

{}

Returns:

Type Description

The server timestamp for the specified exchange from the selected data source.

get_exchange_tz(**kwargs)

Retrieve the time zone for a specific exchange. @poller

Parameters:

Name Type Description Default
**kwargs

Data-source specific keyword arguments for endpoint specification.

{}

Returns:

Type Description

The time zone for the specified exchange from the selected data source.

get_supported_exchanges(**kwargs)

Retrieve the collection of supported exchanges. @poller

Parameters:

Name Type Description Default
**kwargs

Data-source specific keyword arguments for endpoint specification.

{}

Returns:

Type Description

The collection of supported exchanges from the selected data source.

get_tickers_in_exchange(**kwargs)

Retrieve the collection of tickers in a specific exchange. @poller

Parameters:

Name Type Description Default
**kwargs

Data-source specific keyword arguments for endpoint specification.

{}

Returns:

Type Description

The collection of tickers in the specified exchange from the selected data source.

Examples:

>>> tickers = datapoller.exchange.get_tickers_in_exchange(exchange="US",src="eodhd")
>>> tickers = datapoller.exchange.get_tickers_in_exchange(src="binance")