tensortrade.data.cdd module¶
Contains methods and classes to collect data from https://www.cryptodatadownload.com.
-
class
tensortrade.data.cdd.
CryptoDataDownload
[source]¶ Bases:
object
Provides methods for retrieving data on different cryptocurrencies from https://www.cryptodatadownload.com/cdd/.
-
fetch
(exchange_name, base_symbol, quote_symbol, timeframe, include_all_volumes=False)[source]¶ Fetches data for different exchanges and cryptocurrency pairs.
-
fetch
(exchange_name: str, base_symbol: str, quote_symbol: str, timeframe: str, include_all_volumes: bool = False) → pandas.core.frame.DataFrame[source] Fetches data for different exchanges and cryptocurrency pairs.
Parameters: - exchange_name (str) – The name of the exchange.
- base_symbol (str) – The base symbol fo the cryptocurrency pair.
- quote_symbol (str) – The quote symbol fo the cryptocurrency pair.
- timeframe ({"d", "h", "m"}) – The timeframe to collect data from.
- include_all_volumes (bool, optional) – Whether or not to include both base and quote volume.
Returns: pd.DataFrame – A open, high, low, close and volume for the specified exchange and cryptocurrency pair.
-
fetch_default
(exchange_name: str, base_symbol: str, quote_symbol: str, timeframe: str, include_all_volumes: bool = False) → pandas.core.frame.DataFrame[source]¶ Fetches data from all exchanges that match the evaluation structure.
Parameters: - exchange_name (str) – The name of the exchange.
- base_symbol (str) – The base symbol fo the cryptocurrency pair.
- quote_symbol (str) – The quote symbol fo the cryptocurrency pair.
- timeframe ({"d", "h", "m"}) – The timeframe to collect data from.
- include_all_volumes (bool, optional) – Whether or not to include both base and quote volume.
Returns: pd.DataFrame – A open, high, low, close and volume for the specified exchange and cryptocurrency pair.
-