Datasets:

wangdx25 commited on
Commit
e2f51a2
·
verified ·
1 Parent(s): 3e7552b

Add TsFile (converted from CarlosSilva1/xauusd-ticks)

Browse files
.gitattributes CHANGED
@@ -58,3 +58,32 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ xauusd_ticks_1.tsfile filter=lfs diff=lfs merge=lfs -text
62
+ xauusd_ticks_10.tsfile filter=lfs diff=lfs merge=lfs -text
63
+ xauusd_ticks_11.tsfile filter=lfs diff=lfs merge=lfs -text
64
+ xauusd_ticks_12.tsfile filter=lfs diff=lfs merge=lfs -text
65
+ xauusd_ticks_13.tsfile filter=lfs diff=lfs merge=lfs -text
66
+ xauusd_ticks_14.tsfile filter=lfs diff=lfs merge=lfs -text
67
+ xauusd_ticks_15.tsfile filter=lfs diff=lfs merge=lfs -text
68
+ xauusd_ticks_16.tsfile filter=lfs diff=lfs merge=lfs -text
69
+ xauusd_ticks_17.tsfile filter=lfs diff=lfs merge=lfs -text
70
+ xauusd_ticks_18.tsfile filter=lfs diff=lfs merge=lfs -text
71
+ xauusd_ticks_19.tsfile filter=lfs diff=lfs merge=lfs -text
72
+ xauusd_ticks_2.tsfile filter=lfs diff=lfs merge=lfs -text
73
+ xauusd_ticks_20.tsfile filter=lfs diff=lfs merge=lfs -text
74
+ xauusd_ticks_21.tsfile filter=lfs diff=lfs merge=lfs -text
75
+ xauusd_ticks_22.tsfile filter=lfs diff=lfs merge=lfs -text
76
+ xauusd_ticks_23.tsfile filter=lfs diff=lfs merge=lfs -text
77
+ xauusd_ticks_24.tsfile filter=lfs diff=lfs merge=lfs -text
78
+ xauusd_ticks_25.tsfile filter=lfs diff=lfs merge=lfs -text
79
+ xauusd_ticks_26.tsfile filter=lfs diff=lfs merge=lfs -text
80
+ xauusd_ticks_27.tsfile filter=lfs diff=lfs merge=lfs -text
81
+ xauusd_ticks_28.tsfile filter=lfs diff=lfs merge=lfs -text
82
+ xauusd_ticks_29.tsfile filter=lfs diff=lfs merge=lfs -text
83
+ xauusd_ticks_3.tsfile filter=lfs diff=lfs merge=lfs -text
84
+ xauusd_ticks_4.tsfile filter=lfs diff=lfs merge=lfs -text
85
+ xauusd_ticks_5.tsfile filter=lfs diff=lfs merge=lfs -text
86
+ xauusd_ticks_6.tsfile filter=lfs diff=lfs merge=lfs -text
87
+ xauusd_ticks_7.tsfile filter=lfs diff=lfs merge=lfs -text
88
+ xauusd_ticks_8.tsfile filter=lfs diff=lfs merge=lfs -text
89
+ xauusd_ticks_9.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - time-series-forecasting
5
+ language:
6
+ - en
7
+ tags:
8
+ - tsfile
9
+ - timeseries
10
+ - time-series
11
+ - format:tsfile
12
+ pretty_name: XAUUSD Tick Data (2021-2026) (TsFile)
13
+ configs:
14
+ - config_name: default
15
+ data_files:
16
+ - split: xauusd_ticks_1
17
+ path: xauusd_ticks_1.tsfile
18
+ - split: xauusd_ticks_10
19
+ path: xauusd_ticks_10.tsfile
20
+ - split: xauusd_ticks_11
21
+ path: xauusd_ticks_11.tsfile
22
+ - split: xauusd_ticks_12
23
+ path: xauusd_ticks_12.tsfile
24
+ - split: xauusd_ticks_13
25
+ path: xauusd_ticks_13.tsfile
26
+ - split: xauusd_ticks_14
27
+ path: xauusd_ticks_14.tsfile
28
+ - split: xauusd_ticks_15
29
+ path: xauusd_ticks_15.tsfile
30
+ - split: xauusd_ticks_16
31
+ path: xauusd_ticks_16.tsfile
32
+ - split: xauusd_ticks_17
33
+ path: xauusd_ticks_17.tsfile
34
+ - split: xauusd_ticks_18
35
+ path: xauusd_ticks_18.tsfile
36
+ - split: xauusd_ticks_19
37
+ path: xauusd_ticks_19.tsfile
38
+ - split: xauusd_ticks_2
39
+ path: xauusd_ticks_2.tsfile
40
+ - split: xauusd_ticks_20
41
+ path: xauusd_ticks_20.tsfile
42
+ - split: xauusd_ticks_21
43
+ path: xauusd_ticks_21.tsfile
44
+ - split: xauusd_ticks_22
45
+ path: xauusd_ticks_22.tsfile
46
+ - split: xauusd_ticks_23
47
+ path: xauusd_ticks_23.tsfile
48
+ - split: xauusd_ticks_24
49
+ path: xauusd_ticks_24.tsfile
50
+ - split: xauusd_ticks_25
51
+ path: xauusd_ticks_25.tsfile
52
+ - split: xauusd_ticks_26
53
+ path: xauusd_ticks_26.tsfile
54
+ - split: xauusd_ticks_27
55
+ path: xauusd_ticks_27.tsfile
56
+ - split: xauusd_ticks_28
57
+ path: xauusd_ticks_28.tsfile
58
+ - split: xauusd_ticks_29
59
+ path: xauusd_ticks_29.tsfile
60
+ - split: xauusd_ticks_3
61
+ path: xauusd_ticks_3.tsfile
62
+ - split: xauusd_ticks_4
63
+ path: xauusd_ticks_4.tsfile
64
+ - split: xauusd_ticks_5
65
+ path: xauusd_ticks_5.tsfile
66
+ - split: xauusd_ticks_6
67
+ path: xauusd_ticks_6.tsfile
68
+ - split: xauusd_ticks_7
69
+ path: xauusd_ticks_7.tsfile
70
+ - split: xauusd_ticks_8
71
+ path: xauusd_ticks_8.tsfile
72
+ - split: xauusd_ticks_9
73
+ path: xauusd_ticks_9.tsfile
74
+ ---
75
+
76
+ # XAUUSD Tick Data (2021-2026) (TsFile)
77
+
78
+ Apache TsFile version of [`CarlosSilva1/xauusd-ticks`](https://huggingface.co/datasets/CarlosSilva1/xauusd-ticks).
79
+
80
+ ## Overview
81
+
82
+ Tick-level quote data for **XAUUSD** (spot gold vs. US dollar), one row per quote update with the best bid/ask price and the bid/ask size. The source publishes one Parquet shard per month from May 2021 to 2026 under Hive-style `year=/month=` partitions.
83
+
84
+ - **TsFile shards:** 29 (1605.2 MB total, 286,823,542 rows).
85
+
86
+ ## Conversion notes
87
+
88
+ - One TsFile per Parquet row group; all shards belong to the same single device and the same strictly increasing timeline, so read them in file name order (`xauusd_ticks_1`, `_2`, ... `_29`) to reconstruct the full series.
89
+ - Time = the source `timestamp` (millisecond precision, UTC) as INT64 milliseconds.
90
+ - No TAG column: the dataset is one instrument, so `bid_price`, `ask_price`, `bid_volume` and `ask_volume` are the FIELDs and the table is a single device. No column and no row is dropped.
91
+ - The source `timestamp` column is consumed into `Time`; the schema therefore has Time plus the four quote FIELDs.
92
+ - The TsFiles are written with the `zstd` compressor. The Apache TsFile **Java** SDK reads every compressor, but the **Python** SDK (`pip install tsfile`) implements only `UNCOMPRESSED`, `SNAPPY`, `GZIP` and `LZ4`; opening these files with it returns no rows. Read them with the Java SDK, as shown below.
93
+
94
+ ## Usage
95
+
96
+ > **Read this dataset with the Java SDK.** It is written with the `zstd` compressor. The Apache TsFile Java SDK reads every compressor, but the Python SDK (`pip install tsfile`) implements only `UNCOMPRESSED`, `SNAPPY`, `GZIP` and `LZ4`; opening this file with it yields no rows.
97
+
98
+ Read a converted file with the Apache TsFile Java SDK (`org.apache.tsfile:tsfile`):
99
+
100
+ ```java
101
+ import org.apache.tsfile.file.metadata.IDeviceID;
102
+ import org.apache.tsfile.read.TsFileReader;
103
+ import org.apache.tsfile.read.TsFileSequenceReader;
104
+ import org.apache.tsfile.read.common.Path;
105
+ import org.apache.tsfile.read.expression.QueryExpression;
106
+ import org.apache.tsfile.read.query.dataset.QueryDataSet;
107
+ import org.apache.tsfile.write.schema.MeasurementSchema;
108
+
109
+ import java.util.ArrayList;
110
+ import java.util.List;
111
+
112
+ String path = "xauusd_ticks_1.tsfile";
113
+ try (TsFileReader reader = new TsFileReader(new TsFileSequenceReader(path))) {
114
+ for (String deviceId : reader.getAllDeviceIds()) {
115
+ IDeviceID device = IDeviceID.Factory.DEFAULT_FACTORY.create(deviceId);
116
+ List<Path> paths = new ArrayList<>();
117
+ for (MeasurementSchema schema : reader.getMeasurement(device)) {
118
+ String name = schema.getMeasurementName();
119
+ if (name != null && !name.isEmpty() && !name.equalsIgnoreCase("Time")) {
120
+ paths.add(new Path(device, name, true));
121
+ }
122
+ }
123
+ QueryDataSet dataSet = reader.query(QueryExpression.create(paths, null));
124
+ while (dataSet.hasNext()) {
125
+ System.out.println(dataSet.next());
126
+ }
127
+ }
128
+ }
129
+ ```
130
+
131
+ ## Source & license
132
+
133
+ - Original dataset: [`CarlosSilva1/xauusd-ticks`](https://huggingface.co/datasets/CarlosSilva1/xauusd-ticks)
134
+ - License: cc-by-4.0 (as declared by the original dataset).
xauusd_ticks_1.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a63f293f3604e498dafacb1299a2ec912e2a7d9a2f52602a21332fd9fb50dec9
3
+ size 113008964
xauusd_ticks_10.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9257ff88c3dbe82f1e86b3a21f9df6df58b8b216ea230944554f7c39859dc04
3
+ size 2137378
xauusd_ticks_11.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3e6675d5b729e46b548fcee8391a2f228de96645e1d931b529d24d438ffb761
3
+ size 109288953
xauusd_ticks_12.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d466f61eacff89c30743977fdb56759aab5cdfe2b0b6f103bc629b60e53d2eb
3
+ size 1967036
xauusd_ticks_13.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d39fc170c0519287e187e39cda43c87cd0824163616ba5e9ebf204a6c594e102
3
+ size 113987845
xauusd_ticks_14.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa05333e2b9b258b03adce59f9c591688bdb2c704396873d59ea2985592cf673
3
+ size 1287376
xauusd_ticks_15.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26cfff650499f376172a7c27f7ae593ff2c189c19bab8a7237229b64469ea38a
3
+ size 112890530
xauusd_ticks_16.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3a5632e50c0156b122b46676b97db493900654dea43a98e5001661ea19fc142
3
+ size 1349821
xauusd_ticks_17.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f19587419857575976a3790e0685a13e93cf230983255ec3175bc28212343b95
3
+ size 108069335
xauusd_ticks_18.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:678af3a3b36157664080c901b800ce1a3b14d2b53f0b46a8f111597ef2798df5
3
+ size 1051510
xauusd_ticks_19.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f0dcf63fe8df6c18b9911b8c3f64f6f033adf52b962a2b1fae2099b4a4cf09a
3
+ size 106446302
xauusd_ticks_2.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e63a27469ba9b1887ce65d4100d49d8f9dcb943f77ddcb27a3d210d7917b6e8
3
+ size 1621679
xauusd_ticks_20.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:504e2f0107567d046a9d90e3671f2aefed4d8be75508856c7f0f5e4afb3deda5
3
+ size 1622010
xauusd_ticks_21.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae3dc35138e703f3c6540cdb434ec0a97209a5f335afd66935cee0991c8a3ecd
3
+ size 108347605
xauusd_ticks_22.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d98df4ae4ae05216d3c2b4e8045cc4a2192d2eb4520543af1ac90fecfd3d5ae
3
+ size 1352948
xauusd_ticks_23.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d40cb7c42bfb0695b548959c7cb5f147f75b9b5f1f45a11ac0bf236e60f1857
3
+ size 108746579
xauusd_ticks_24.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0c0c462cb5ccb71aa044d1b8cdc1a0fce8490e8ce139869668b48b49704fe2f
3
+ size 1304084
xauusd_ticks_25.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c6e9b5fdae181d9e49061143e878a0e4033d9b660a598788e12e899ced42df5
3
+ size 113364659
xauusd_ticks_26.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbcd4e674d1a830aba2b9b218095299ab84c14c57b38f1cf691eddb8737f8d37
3
+ size 1499608
xauusd_ticks_27.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0afd639d3b24756092b23f5acc3d6689018f624fbfccff9d7859ff905e54f89a
3
+ size 110616691
xauusd_ticks_28.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9352b0ca56262736cda83a7bc8448cf3dd47d33ba91a9293b2a3d96f8c79be5
3
+ size 1008827
xauusd_ticks_29.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86f72fee5db8921e1151f685ee268afcb635711c17ead6e4f56258f384bfccb9
3
+ size 15691065
xauusd_ticks_3.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c286b8a2e66857f315129611ffffb66dc11ba5c2af3173b7356c844aa95d193
3
+ size 117207661
xauusd_ticks_4.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb7615176274c6d59b88c5e2eaea66397082865590831e3415d2ff8cc94e2cf2
3
+ size 1060010
xauusd_ticks_5.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3925917794a8ad141736370ef1cc95b869e75e2587db42ec0c8c008bb276737
3
+ size 117650803
xauusd_ticks_6.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9d65f1a5407cd409600fa53fdd6a19d01bf97dde9211f39666c579bd494cbbc
3
+ size 1709500
xauusd_ticks_7.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18568d6ae41b375e7c5e01f8bb5b05ad29075236eb260f815e0ef0d944ce2524
3
+ size 121803296
xauusd_ticks_8.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82886e296fc24f1a60afb6d883efd138ebbf822001bde055303b5ce3f305a947
3
+ size 1055966
xauusd_ticks_9.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bca38b052b2eaeb342a117f71e1ce8b80cb4844cbf4d69c3a97d59f53fe885ae
3
+ size 108013478