skdatasets.repositories.forex.fetch

skdatasets.repositories.forex.fetch(start=datetime.date(2015, 1, 1), end=datetime.date(2022, 8, 12), currency_1='USD', currency_2='EUR', return_X_y=False)[source]

Fetch Forex datasets.

Fetches the ECB Forex and Coindesk Bitcoin datasets. More info at http://forex-python.readthedocs.io.

Parameters:
  • start (date, default=2015-01-01) – Initial date.

  • end (date, default=today) – Final date.

  • currency_1 (str, default='USD') – Currency 1.

  • currency_2 (str, default='EUR') – Currency 2.

  • return_X_y (bool, default=False) – If True, returns (data, target) instead of a Bunch object.

Returns:

  • data (Bunch) – Dictionary-like object with all the data and metadata.

  • (data, target) (tuple if return_X_y is True)