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

crypto-execution-costs: 2026-09-15

Browse files
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  license: odc-by
3
- pretty_name: "Ethereum swap quotes, routing and perpetual order-book depth"
4
  tags:
5
  - dex
6
  - ethereum
@@ -16,87 +16,69 @@ task_categories:
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
40
 
41
- Ethereum swap quotes, route details and selected perpetual-futures order-book snapshots. The tables support comparisons of quoted output, provider fees, routing choices and available depth at the time of collection.
 
 
 
42
 
43
  ## Contents
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
-
53
- Compare quotes for the same pair, direction and size at comparable observation times. Inspect the provider-fee fields before attributing differences in output to routing quality.
54
 
55
- Route detail varies by provider. Some responses identify individual pools and amounts; others supply only venue names. Null `pool` and `swap_amount_raw` fields may therefore indicate unavailable detail rather than a failed quote.
56
 
57
- Depth fields summarise cumulative resting notional within a specified distance of the midpoint. A narrow band can contain zero depth when the bid-ask spread is wider than that band.
 
58
 
59
- ## Limitations
 
 
60
 
61
- - Quotes and resting orders are observations, not completed trades. Execution costs also depend on latency, slippage, network fees and available size.
62
- - Provider coverage differs across pairs. Check `error` for failed requests and rate-limit skips before calculating comparisons.
63
- - The depth panel covers a single venue and periodic snapshots, not a consolidated or tick-level order book.
64
- - A price difference between quotes does not establish profitable arbitrage. That requires executable prices for the complete trading cycle and all associated costs.
65
 
66
- ## Files and access
67
 
68
- Data is stored as Parquet files under `dataset/YYYY/MM/`, with partitions for collection windows. Each measurement table has a fixed 7-day sample beginning at its configured collection start date. The sample windows in this repository span 2026-08-25 to 2026-09-03. Availability within each window depends on successful collection. The public sample dates remain fixed as additional history accumulates privately. Contact DataForge through the discussions tab to enquire about additional history.
 
 
 
 
 
 
 
 
 
 
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>
 
1
  ---
2
  license: odc-by
3
+ pretty_name: "Ethereum DEX swap quotes, routing, and perpetual order-book depth"
4
  tags:
5
  - dex
6
  - ethereum
 
16
  - time-series-forecasting
17
  size_categories:
18
  - 10K<n<100K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ---
20
 
21
+ # Crypto execution costs
22
 
23
+ What it costs to trade, quoted at the moment someone would have traded.
24
+
25
+ Executed trades are on chain forever. Quotes for trades nobody placed are computed on demand and
26
+ kept by nobody, so they only exist if they were recorded when they were served.
27
 
28
  ## Contents
29
 
30
+ | name | one row is |
31
  |---|---|
32
+ | `e10_quote_benchmark` | one swap quote at a fixed size, with the provider fee separated out |
33
+ | `e16_dex_routes` | one leg of a route a router chose: venue, pool, amount, and how many venues the trade was split across |
34
+ | `e17_perp_depth` | one order book snapshot: spread, level counts, resting notional within fixed distances of mid |
 
 
 
 
35
 
36
+ ## Reading it
37
 
38
+ Quotes are what a provider served, which is not what you would necessarily have filled. Provider
39
+ fees are separated from price so that a fee policy is not mistaken for routing quality.
40
 
41
+ `e16_dex_routes` maps where routable liquidity sits rather than where volume went, and it
42
+ surfaces venues too small to appear in volume rankings. The split widens sharply with size: one
43
+ observation put the same pair through a single venue at small size and ten venues at large size.
44
 
45
+ `e17_perp_depth` stores book shape rather than raw ladders, as cumulative resting notional within
46
+ a band of mid. Where a spread is wider than a band, that band is correctly zero, which happens
47
+ often on thinner markets.
 
48
 
49
+ ## Before you build on this
50
 
51
+ - Not every provider answers every request. Refusals and rate-limit skips are written as explicit
52
+ error rows rather than omitted, so a provider that was unavailable is distinguishable from one
53
+ that had nothing to offer. Check the `error` column before treating absence as meaning.
54
+ - One provider is queried on a subset of pairs. Its coverage is deliberately narrower than the
55
+ others and should not be read as a market-wide view.
56
+ - Only some routers expose a leg breakdown. Rows from the others carry the venue name alone,
57
+ which is why `pool` and `swap_amount_raw` are frequently null.
58
+ - Depth rows are snapshots at the observation interval, not a tick-level book. A move that
59
+ reverses between observations is invisible.
60
+ - Depth covers a single venue, so it sizes that one book rather than the market. Treat it as
61
+ one participant's view; a second venue would be a control and there is not one here.
62
 
63
+ Partitions are parquet, one file per collection window, under `dataset/YYYY/MM/`. Every dataset here carries a FIXED 7-day sample WINDOW starting at its own first day of collection, together spanning 2026-08-25 to 2026-09-03, so you can check schema, coverage and quality before asking for more. It does not advance, so there is nothing to gain by re-downloading it. The full history is held privately, available on request.
 
 
64
 
65
  ```python
66
+ from huggingface_hub import snapshot_download
67
+ import pandas as pd, glob
68
 
69
+ path = snapshot_download("dataforge-labs/crypto-execution-costs", repo_type="dataset",
70
+ allow_patterns="e10_quote_benchmark/**")
71
+ df = pd.concat(map(pd.read_parquet,
72
+ glob.glob(f"{path}/e10_quote_benchmark/**/*.parquet", recursive=True)))
73
  ```
74
 
75
  ## Coverage
76
 
77
+ `e0_run_manifest` lists every collection window with its poll counts and failure counts, and is
78
+ published in full rather than windowed. Gaps between windows are real, cannot be filled in
79
+ afterwards, and nothing here is interpolated.
80
 
81
  ## License and contact
82
 
83
+ ODC-BY: use it freely, credit "DataForge (dataforge-labs)". Questions and requests for the full
84
+ history via the discussions tab.
 
 
 
 
 
 
 
 
 
 
 
 
 
e0_run_manifest/2026/09/2026-09-15T0614Z.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce4aa936b71bce832631c826a92fce496172d7d07141dcbbdd04965393fc7bc1
3
+ size 13290