Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Cleaned XAUUSD Dataset

Dataset Description

This dataset contains cleaned and preprocessed minute-level historical price data for the XAU/USD (Gold vs. US Dollar) pair. The data spans from November 1, 2011, to January 3, 2024, and includes the following columns:

  • open: The opening price of the minute.
  • high: The highest price during the minute.
  • low: The lowest price during the minute.
  • close: The closing price of the minute.
  • tickvol: The number of price changes (ticks) during the minute.

The dataset is cleaned, with missing values removed and unnecessary columns (e.g., VOLUME, SPREAD) dropped. The data is indexed by a datetime column, making it suitable for time-series analysis.

Dataset Structure

  • Rows: Minute-level price data.
  • Columns:
    • datetime: The timestamp for each minute (used as the index).
    • open: Opening price.
    • high: Highest price.
    • low: Lowest price.
    • close: Closing price.
    • tickvol: Number of price changes (ticks).

Example Usage

Here’s how you can load and use the dataset in Python:

import pandas as pd

# Load the dataset from Hugging Face
file_path = "hf://datasets/Pcitycrypto/xauusd/XAUUSD_1m.csv"
df = pd.read_csv(file_path, parse_dates=['datetime'], index_col='datetime')

# Display the first few rows
print(df.head())
Downloads last month
31