timestamp timestamp[ms]date 2021-05-24 00:00:00 2026-05-22 20:59:58 | bid_price float64 1.61k 5.6k | ask_price float64 1.62k 5.6k | bid_volume float64 0 0.03 | ask_volume float64 0 0.02 |
|---|---|---|---|---|
2021-05-24T00:00:00.256000 | 1,883.345 | 1,883.722 | 0.00037 | 0.00037 |
2021-05-24T00:00:00.307000 | 1,883.335 | 1,883.722 | 0.00037 | 0.00037 |
2021-05-24T00:00:00.358000 | 1,883.315 | 1,883.722 | 0.00037 | 0.00037 |
2021-05-24T00:00:00.409000 | 1,883.295 | 1,883.692 | 0.00037 | 0.00037 |
2021-05-24T00:00:00.510000 | 1,883.325 | 1,883.736 | 0.00037 | 0.00019 |
2021-05-24T00:00:00.560000 | 1,883.335 | 1,883.736 | 0.00037 | 0.00019 |
2021-05-24T00:00:00.611000 | 1,883.335 | 1,883.742 | 0.00037 | 0.00037 |
2021-05-24T00:00:00.712000 | 1,883.335 | 1,883.752 | 0.00037 | 0.00015 |
2021-05-24T00:00:00.781000 | 1,883.335 | 1,883.742 | 0.00037 | 0.00037 |
2021-05-24T00:00:00.831000 | 1,883.315 | 1,883.742 | 0.00037 | 0.00037 |
2021-05-24T00:00:00.882000 | 1,883.315 | 1,883.736 | 0.00037 | 0.00019 |
2021-05-24T00:00:00.983000 | 1,883.375 | 1,883.772 | 0.00037 | 0.00037 |
2021-05-24T00:00:01.275000 | 1,883.385 | 1,883.772 | 0.00037 | 0.00037 |
2021-05-24T00:00:01.562000 | 1,883.385 | 1,883.806 | 0.00037 | 0.00019 |
2021-05-24T00:00:01.613000 | 1,883.425 | 1,883.822 | 0.00037 | 0.00037 |
2021-05-24T00:00:01.663000 | 1,883.425 | 1,883.832 | 0.00037 | 0.00037 |
2021-05-24T00:00:01.986000 | 1,883.425 | 1,883.822 | 0.00037 | 0.00037 |
2021-05-24T00:00:02.666000 | 1,883.425 | 1,883.802 | 0.00037 | 0.00037 |
2021-05-24T00:00:02.767000 | 1,883.355 | 1,883.732 | 0.00037 | 0.00037 |
2021-05-24T00:00:02.868000 | 1,883.265 | 1,883.632 | 0.00037 | 0.00037 |
2021-05-24T00:00:02.918000 | 1,883.245 | 1,883.632 | 0.00037 | 0.00037 |
2021-05-24T00:00:03.967000 | 1,883.245 | 1,883.675 | 0.00037 | 0.00037 |
2021-05-24T00:00:04.017000 | 1,883.265 | 1,883.672 | 0.00037 | 0.00037 |
2021-05-24T00:00:04.130000 | 1,883.245 | 1,883.672 | 0.00037 | 0.00037 |
2021-05-24T00:00:04.180000 | 1,883.235 | 1,883.645 | 0.00037 | 0.00037 |
2021-05-24T00:00:04.480000 | 1,883.245 | 1,883.645 | 0.00037 | 0.00037 |
2021-05-24T00:00:04.531000 | 1,883.215 | 1,883.625 | 0.00037 | 0.00037 |
2021-05-24T00:00:05.101000 | 1,883.225 | 1,883.605 | 0.00037 | 0.00037 |
2021-05-24T00:00:06.763000 | 1,883.205 | 1,883.595 | 0.00037 | 0.00037 |
2021-05-24T00:00:08.473000 | 1,883.225 | 1,883.605 | 0.00037 | 0.00037 |
2021-05-24T00:00:08.523000 | 1,883.225 | 1,883.615 | 0.00037 | 0.00037 |
2021-05-24T00:00:10.620000 | 1,883.205 | 1,883.605 | 0.00037 | 0.00037 |
2021-05-24T00:00:11.144000 | 1,883.215 | 1,883.605 | 0.00037 | 0.00037 |
2021-05-24T00:00:11.297000 | 1,883.225 | 1,883.615 | 0.00037 | 0.00037 |
2021-05-24T00:00:13.212000 | 1,883.245 | 1,883.645 | 0.00037 | 0.00037 |
2021-05-24T00:00:13.312000 | 1,883.275 | 1,883.685 | 0.00037 | 0.00037 |
2021-05-24T00:00:13.363000 | 1,883.295 | 1,883.685 | 0.00037 | 0.00037 |
2021-05-24T00:00:13.931000 | 1,883.315 | 1,883.705 | 0.00037 | 0.00037 |
2021-05-24T00:00:14.082000 | 1,883.465 | 1,883.855 | 0.00037 | 0.00037 |
2021-05-24T00:00:14.132000 | 1,883.445 | 1,883.856 | 0.00037 | 0.00019 |
2021-05-24T00:00:14.183000 | 1,883.445 | 1,883.865 | 0.00037 | 0.00037 |
2021-05-24T00:00:14.234000 | 1,883.435 | 1,883.855 | 0.00037 | 0.00037 |
2021-05-24T00:00:14.385000 | 1,883.395 | 1,883.815 | 0.00037 | 0.00037 |
2021-05-24T00:00:16.161000 | 1,883.395 | 1,883.795 | 0.00037 | 0.00037 |
2021-05-24T00:00:16.598000 | 1,883.465 | 1,883.832 | 0.00037 | 0.0001 |
2021-05-24T00:00:16.649000 | 1,883.475 | 1,883.875 | 0.00037 | 0.00037 |
2021-05-24T00:00:16.750000 | 1,883.495 | 1,883.885 | 0.00037 | 0.00037 |
2021-05-24T00:00:17.197000 | 1,883.475 | 1,883.865 | 0.00037 | 0.00037 |
2021-05-24T00:00:18.222000 | 1,883.535 | 1,883.945 | 0.00037 | 0.00037 |
2021-05-24T00:00:18.613000 | 1,883.525 | 1,883.935 | 0.00037 | 0.00037 |
2021-05-24T00:00:18.764000 | 1,883.505 | 1,883.915 | 0.00037 | 0.00037 |
2021-05-24T00:00:18.865000 | 1,883.545 | 1,883.955 | 0.00037 | 0.00037 |
2021-05-24T00:00:18.966000 | 1,883.555 | 1,883.955 | 0.00037 | 0.00037 |
2021-05-24T00:00:22.997000 | 1,883.565 | 1,883.955 | 0.00037 | 0.00037 |
2021-05-24T00:00:24.172000 | 1,883.595 | 1,883.995 | 0.00037 | 0.00037 |
2021-05-24T00:00:24.222000 | 1,883.615 | 1,884.006 | 0.00037 | 0.00019 |
2021-05-24T00:00:24.273000 | 1,883.625 | 1,884.045 | 0.00037 | 0.00037 |
2021-05-24T00:00:24.324000 | 1,883.595 | 1,884.005 | 0.00037 | 0.00037 |
2021-05-24T00:00:24.624000 | 1,883.595 | 1,883.995 | 0.00037 | 0.00037 |
2021-05-24T00:00:25.421000 | 1,883.625 | 1,884.035 | 0.00037 | 0.00037 |
2021-05-24T00:00:26.742000 | 1,883.605 | 1,884.005 | 0.00037 | 0.00037 |
2021-05-24T00:00:27.001000 | 1,883.585 | 1,883.995 | 0.00037 | 0.00037 |
2021-05-24T00:00:29.969000 | 1,883.585 | 1,883.992 | 0.00037 | 0.00037 |
2021-05-24T00:00:30.120000 | 1,883.575 | 1,883.985 | 0.00037 | 0.00037 |
2021-05-24T00:00:30.171000 | 1,883.565 | 1,883.952 | 0.00037 | 0.00037 |
2021-05-24T00:00:30.221000 | 1,883.525 | 1,883.945 | 0.00037 | 0.00037 |
2021-05-24T00:00:31.486000 | 1,883.525 | 1,883.935 | 0.00037 | 0.00037 |
2021-05-24T00:00:32.023000 | 1,883.505 | 1,883.925 | 0.00037 | 0.00037 |
2021-05-24T00:00:34.837000 | 1,883.525 | 1,883.925 | 0.00037 | 0.00037 |
2021-05-24T00:00:34.888000 | 1,883.525 | 1,883.932 | 0.00037 | 0.00037 |
2021-05-24T00:00:35.822000 | 1,883.505 | 1,883.925 | 0.00037 | 0.00037 |
2021-05-24T00:00:36.415000 | 1,883.525 | 1,883.942 | 0.00037 | 0.00037 |
2021-05-24T00:00:37.254000 | 1,883.395 | 1,883.795 | 0.00037 | 0.00037 |
2021-05-24T00:00:37.405000 | 1,883.385 | 1,883.785 | 0.00037 | 0.00037 |
2021-05-24T00:00:37.556000 | 1,883.295 | 1,883.685 | 0.00037 | 0.00037 |
2021-05-24T00:00:41.765000 | 1,883.325 | 1,883.725 | 0.00037 | 0.00037 |
2021-05-24T00:00:41.866000 | 1,883.315 | 1,883.725 | 0.00037 | 0.00037 |
2021-05-24T00:00:42.169000 | 1,883.325 | 1,883.742 | 0.00037 | 0.00037 |
2021-05-24T00:00:42.679000 | 1,883.315 | 1,883.735 | 0.00037 | 0.00037 |
2021-05-24T00:00:42.730000 | 1,883.285 | 1,883.695 | 0.00037 | 0.00037 |
2021-05-24T00:00:42.881000 | 1,883.285 | 1,883.685 | 0.00037 | 0.00037 |
2021-05-24T00:00:43.108000 | 1,883.458 | 1,883.815 | 0.00037 | 0.00037 |
2021-05-24T00:00:43.158000 | 1,883.464 | 1,883.835 | 0.00019 | 0.00037 |
2021-05-24T00:00:43.209000 | 1,883.515 | 1,883.925 | 0.00037 | 0.00037 |
2021-05-24T00:00:44.283000 | 1,883.495 | 1,883.925 | 0.00037 | 0.00037 |
2021-05-24T00:00:47.466000 | 1,883.475 | 1,883.895 | 0.00037 | 0.00037 |
2021-05-24T00:00:47.681000 | 1,883.475 | 1,883.885 | 0.00037 | 0.00037 |
2021-05-24T00:00:47.997000 | 1,883.485 | 1,883.895 | 0.00037 | 0.00037 |
2021-05-24T00:00:48.047000 | 1,883.505 | 1,883.925 | 0.00037 | 0.00037 |
2021-05-24T00:00:48.098000 | 1,883.515 | 1,883.935 | 0.00037 | 0.00037 |
2021-05-24T00:00:49.157000 | 1,883.495 | 1,883.915 | 0.00037 | 0.00037 |
2021-05-24T00:00:49.258000 | 1,883.435 | 1,883.852 | 0.00037 | 0.00037 |
2021-05-24T00:00:49.308000 | 1,883.415 | 1,883.845 | 0.00037 | 0.00037 |
2021-05-24T00:00:49.602000 | 1,883.415 | 1,883.832 | 0.00037 | 0.00037 |
2021-05-24T00:00:54.005000 | 1,883.415 | 1,883.822 | 0.00037 | 0.00037 |
2021-05-24T00:00:54.055000 | 1,883.335 | 1,883.752 | 0.00037 | 0.00037 |
2021-05-24T00:00:54.156000 | 1,883.315 | 1,883.735 | 0.00037 | 0.00037 |
2021-05-24T00:00:54.616000 | 1,883.315 | 1,883.732 | 0.00037 | 0.00037 |
2021-05-24T00:00:54.717000 | 1,883.305 | 1,883.715 | 0.00037 | 0.00037 |
2021-05-24T00:00:54.768000 | 1,883.305 | 1,883.725 | 0.00037 | 0.00037 |
XAU/USD Tick Data (May 2021 – May 2026)
Five years of tick-by-tick bid/ask quotes for gold against the US dollar (XAU/USD) at millisecond resolution. Suitable for backtesting high-frequency strategies, market-microstructure research, and time-series modeling.
Dataset details
| Instrument | XAU/USD (spot gold) |
| Period | 2021-05-24 → 2026-05-24 |
| Granularity | Tick (millisecond timestamps) |
| Rows | ~hundreds of millions |
| Format | Apache Parquet (Snappy) |
| Partitioning | Hive-style by year/month |
Schema
| Column | Type | Description |
|---|---|---|
timestamp |
timestamp[ms] |
UTC tick time, millisecond precision |
bid_price |
float64 |
Best bid price in USD |
ask_price |
float64 |
Best ask price in USD |
bid_volume |
float64 |
Bid-side volume |
ask_volume |
float64 |
Ask-side volume |
Layout
year=2021/
├── month=05/XAUUSD-2021-05-part0000.parquet
├── month=05/XAUUSD-2021-05-part0001.parquet
├── month=06/XAUUSD-2021-06-part0000.parquet
└── ...
year=2022/
└── ...
year=2026/
└── month=05/XAUUSD-2026-05-part000N.parquet
Hive partitioning lets you read a single month without scanning the rest:
import pyarrow.dataset as ds
dataset = ds.dataset(".", partitioning="hive")
march_2024 = dataset.to_table(filter=(ds.field("year") == 2024) & (ds.field("month") == 3))
Quick start
Hugging Face datasets library
from datasets import load_dataset
ds = load_dataset("CarlosSilva1/xauusd-ticks", split="train", streaming=True)
for row in ds.take(5):
print(row)
Streaming mode avoids downloading the whole dataset upfront.
Direct Parquet with pandas
import pandas as pd
# Read a single month part
df = pd.read_parquet(
"https://huggingface.co/datasets/CarlosSilva1/xauusd-ticks/resolve/main/"
"year=2024/month=03/XAUUSD-2024-03-part0001.parquet"
)
print(df.head())
Bulk download via huggingface_hub
from huggingface_hub import snapshot_download
local_path = snapshot_download(
repo_id="CarlosSilva1/xauusd-ticks",
repo_type="dataset",
)
print("Downloaded to:", local_path)
Typical use cases
- Backtesting intraday and high-frequency trading strategies
- Studying bid-ask spread dynamics for gold
- Training time-series forecasting models (transformers, LSTM, N-BEATS, etc.)
- Volatility and market microstructure research
- Calibrating execution simulators
Source and provenance
Aggregated tick feed reconstructed from broker data for personal backtesting research. Timestamps are in UTC. Prices reflect the broker feed at the time of capture and may differ slightly from other venues.
License
Creative Commons Attribution 4.0 (CC-BY-4.0).
You may use, share and adapt the data, including commercially, provided you give appropriate credit. Citation suggestion:
Silva, C. (2026). XAU/USD Tick Data (May 2021 – May 2026)
[Data set]. Hugging Face. https://huggingface.co/datasets/CarlosSilva1/xauusd-ticks
Disclaimer
This dataset is provided as-is for research and educational purposes. It is not investment advice. Past price action is not indicative of future performance. The author is not responsible for any losses incurred from strategies developed using this data.
- Downloads last month
- 229