File size: 1,648 Bytes
8f9d9ac
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
license: cc0-1.0
task_categories:
- time-series-forecasting
language:
- en
tags:
- forex
- oanda
- trading
- financial-data
pretty_name: OANDA Trading Data - 10 Year Backfill
---

# OANDA Trading Data - 10 Year Backfill

Historical forex (FX) candle data collected from OANDA v3 API for machine learning model training.

## Dataset Summary

- **Period**: 10 years of historical data
- **Instruments**: EUR_USD, GBP_USD, USD_JPY, AUD_USD, USD_CHF
- **Granularities**: H1 (1-hour candles) - optimized for model training
- **Total Records**: ~310,000 rows (62k rows × 5 instruments)
- **Format**: CSV with OHLCV columns

## Data Format

Each CSV file contains:
- `instrument`: Currency pair (e.g., EUR_USD)
- `granularity`: Timeframe (H1 = 1-hour)
- `time`: Candle timestamp (ISO 8601)
- `open`: Opening price
- `high`: Highest price in period
- `low`: Lowest price in period
- `close`: Closing price
- `volume`: Volume (pip-based for OANDA)

## Files

- `EUR_USD_H1_10y_*.csv` - Euro/US Dollar hourly data
- `GBP_USD_H1_10y_*.csv` - British Pound/US Dollar hourly data
- `USD_JPY_H1_10y_*.csv` - US Dollar/Japanese Yen hourly data
- `AUD_USD_H1_10y_*.csv` - Australian Dollar/US Dollar hourly data
- `USD_CHF_H1_10y_*.csv` - US Dollar/Swiss Franc hourly data

## Usage

```python
from datasets import load_dataset

# Load specific instrument
df = load_dataset('keeprich/oanda-trading-data', data_files='EUR_USD_H1_10y_*.csv')

# Or load all instruments
df = load_dataset('keeprich/oanda-trading-data', split='train')
```

## Citation

OANDA trading data for ML model training. Collected July 2026.

## License

CC0 1.0 Universal (Public Domain)