dataforge-labs commited on
Commit
b597d26
·
verified ·
1 Parent(s): 176187b

Use descriptive dataset table names and update loading examples

Browse files
Files changed (1) hide show
  1. README.md +42 -10
README.md CHANGED
@@ -16,6 +16,24 @@ task_categories:
16
  - time-series-forecasting
17
  size_categories:
18
  - 10K<n<100K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ---
20
 
21
  # Crypto execution quotes and order-book depth
@@ -26,9 +44,9 @@ Ethereum swap quotes, route details and selected perpetual-futures order-book sn
26
 
27
  | Table | Record |
28
  |---|---|
29
- | `e10_quote_benchmark` | A swap quote at a specified size, with available provider-fee details |
30
- | `e16_dex_routes` | A route leg, with venue, pool and amount where supplied |
31
- | `e17_perp_depth` | An order-book snapshot summarising spread and resting notional within bands around the midpoint |
32
 
33
  ## Using the data
34
 
@@ -51,20 +69,34 @@ 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-execution-costs", repo_type="dataset",
59
- allow_patterns="e10_quote_benchmark/**")
60
- df = pd.concat(map(pd.read_parquet,
61
- glob.glob(f"{path}/e10_quote_benchmark/**/*.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
  - 10K<n<100K
19
+ configs:
20
+ - config_name: ethereum_swap_quotes
21
+ data_files:
22
+ - split: train
23
+ path: e10_quote_benchmark/**/*.parquet
24
+ default: true
25
+ - config_name: ethereum_swap_routes
26
+ data_files:
27
+ - split: train
28
+ path: e16_dex_routes/**/*.parquet
29
+ - config_name: perpetual_order_book_depth
30
+ data_files:
31
+ - split: train
32
+ path: e17_perp_depth/**/*.parquet
33
+ - config_name: collection_runs
34
+ data_files:
35
+ - split: train
36
+ path: e0_run_manifest/**/*.parquet
37
  ---
38
 
39
  # Crypto execution quotes and order-book depth
 
44
 
45
  | Table | Record |
46
  |---|---|
47
+ | `ethereum_swap_quotes` | A swap quote at a specified size, with available provider-fee details |
48
+ | `ethereum_swap_routes` | A route leg, with venue, pool and amount where supplied |
49
+ | `perpetual_order_book_depth` | An order-book snapshot summarising spread and resting notional within bands around the midpoint |
50
 
51
  ## Using the data
52
 
 
69
 
70
  ### Load a table
71
 
72
+ 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.
73
+
74
  ```python
75
+ from datasets import load_dataset
 
76
 
77
+ data = load_dataset("dataforge-labs/crypto-execution-costs",
78
+ "ethereum_swap_quotes", split="train")
79
+ df = data.to_pandas()
 
80
  ```
81
 
82
  ## Coverage
83
 
84
+ `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.
85
 
86
  ## License and contact
87
 
88
  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.
89
+
90
+ <details>
91
+ <summary>File paths and compatibility</summary>
92
+
93
+ 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.
94
+
95
+ | Table name | Storage directory |
96
+ |---|---|
97
+ | `ethereum_swap_quotes` | `e10_quote_benchmark/` |
98
+ | `ethereum_swap_routes` | `e16_dex_routes/` |
99
+ | `perpetual_order_book_depth` | `e17_perp_depth/` |
100
+ | `collection_runs` | `e0_run_manifest/` |
101
+
102
+ </details>