dataforge-labs commited on
Commit
3a4d607
·
verified ·
1 Parent(s): df8b111

Use descriptive dataset table names and update loading examples

Browse files
Files changed (1) hide show
  1. README.md +36 -9
README.md CHANGED
@@ -16,6 +16,20 @@ task_categories:
16
  - time-series-forecasting
17
  size_categories:
18
  - 1M<n<10M
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ---
20
 
21
  # Crypto options surface and order books
@@ -26,8 +40,8 @@ Snapshots of listed options on Aevo, including marks, implied volatility, Greeks
26
 
27
  | Table | Record |
28
  |---|---|
29
- | `e22_options_surface` | An instrument's strike, expiry, mark, forward, implied volatility and Greeks |
30
- | `e22_options_book` | Best bid and ask, available sizes and quoted implied volatility for a selected instrument |
31
 
32
  ## Using the data
33
 
@@ -51,20 +65,33 @@ Data is stored as Parquet files under `dataset/YYYY/MM/`, with partitions for co
51
 
52
  ### Load a table
53
 
 
 
54
  ```python
55
- from huggingface_hub import snapshot_download
56
- import pandas as pd, glob
57
 
58
- path = snapshot_download("dataforge-labs/crypto-options-surface", repo_type="dataset",
59
- allow_patterns="e22_options_surface/**")
60
- df = pd.concat(map(pd.read_parquet,
61
- glob.glob(f"{path}/e22_options_surface/**/*.parquet", recursive=True)))
62
  ```
63
 
64
  ## Coverage
65
 
66
- `e0_run_manifest` records collection windows, poll counts and failures. It is published in full and may cover dates beyond the fixed data sample. Collection gaps are not interpolated. Use the manifest together with table timestamps and error fields to assess coverage.
67
 
68
  ## License and contact
69
 
70
  The public sample is published under ODC-BY. Attribute it to "DataForge (dataforge-labs)". For questions about the data or access to additional history, open a discussion in this repository.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  - time-series-forecasting
17
  size_categories:
18
  - 1M<n<10M
19
+ configs:
20
+ - config_name: options_surface
21
+ data_files:
22
+ - split: train
23
+ path: e22_options_surface/**/*.parquet
24
+ default: true
25
+ - config_name: options_order_book
26
+ data_files:
27
+ - split: train
28
+ path: e22_options_book/**/*.parquet
29
+ - config_name: collection_runs
30
+ data_files:
31
+ - split: train
32
+ path: e0_run_manifest/**/*.parquet
33
  ---
34
 
35
  # Crypto options surface and order books
 
40
 
41
  | Table | Record |
42
  |---|---|
43
+ | `options_surface` | An instrument's strike, expiry, mark, forward, implied volatility and Greeks |
44
+ | `options_order_book` | Best bid and ask, available sizes and quoted implied volatility for a selected instrument |
45
 
46
  ## Using the data
47
 
 
65
 
66
  ### Load a table
67
 
68
+ Install `datasets` and `pandas` to run this example. The `train` split contains all observations in the selected table; it is not a predefined modelling split.
69
+
70
  ```python
71
+ from datasets import load_dataset
 
72
 
73
+ data = load_dataset("dataforge-labs/crypto-options-surface",
74
+ "options_surface", split="train")
75
+ df = data.to_pandas()
 
76
  ```
77
 
78
  ## Coverage
79
 
80
+ `collection_runs` records collection windows, poll counts and failures. It is published in full and may cover dates beyond the fixed data sample. Collection gaps are not interpolated. Use this table together with measurement timestamps and error fields to assess coverage.
81
 
82
  ## License and contact
83
 
84
  The public sample is published under ODC-BY. Attribute it to "DataForge (dataforge-labs)". For questions about the data or access to additional history, open a discussion in this repository.
85
+
86
+ <details>
87
+ <summary>File paths and compatibility</summary>
88
+
89
+ The table names above are Hugging Face dataset configurations. Each configuration reads the original Parquet files, whose paths remain unchanged for existing downloads and scripts. No records are copied, moved or renamed.
90
+
91
+ | Table name | Storage directory |
92
+ |---|---|
93
+ | `options_surface` | `e22_options_surface/` |
94
+ | `options_order_book` | `e22_options_book/` |
95
+ | `collection_runs` | `e0_run_manifest/` |
96
+
97
+ </details>