dataforge-labs commited on
Commit
5c1a8c2
·
verified ·
1 Parent(s): a727128

solana-dex-execution: 2026-09-15

Browse files
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  license: odc-by
3
- pretty_name: "Solana swap quotes and route details"
4
  tags:
5
  - solana
6
  - dex
@@ -14,80 +14,80 @@ task_categories:
14
  - time-series-forecasting
15
  size_categories:
16
  - 1M<n<10M
17
- configs:
18
- - config_name: solana_swap_quotes
19
- data_files:
20
- - split: train
21
- path: e24_solana_quotes/**/*.parquet
22
- default: true
23
- - config_name: solana_swap_routes
24
- data_files:
25
- - split: train
26
- path: e24_solana_routes/**/*.parquet
27
- - config_name: collection_runs
28
- data_files:
29
- - split: train
30
- path: e0_run_manifest/**/*.parquet
31
  ---
32
 
33
- # Solana DEX quotes and routing
34
 
35
- Jupiter swap quotes at fixed SOL input sizes, with the route legs returned for each quote. The panel supports comparisons of quoted output, reported price impact and routing across sizes and observation times.
 
 
 
 
 
36
 
37
  ## Contents
38
 
39
- | Table | Record |
40
  |---|---|
41
- | `solana_swap_quotes` | A pair and input amount, with quoted output, price impact, value and route-leg count |
42
- | `solana_swap_routes` | A leg of the chosen route, including venue, amounts and allocation |
 
 
43
 
44
- ## Using the data
 
45
 
46
- Join quotes and routes on `(round_ts, input_symbol, output_symbol, in_amount)`. Inspect `n_legs` and each leg's `percent` when analysing split routes. The configured size ladder is 1, 50 and 1,000 SOL across five pairs, all with SOL as the input.
 
 
 
47
 
48
- `price_impact_pct` is Jupiter's reported estimate. `amm_report_raw` preserves the provider's venue report as JSON. Entries may refer to amounts outside the requested pair or contain error strings; they should not be converted directly into competing-venue prices.
 
 
49
 
50
- ## Limitations
51
 
52
- - The panel records one aggregator's responses. Its selected route does not establish the best price available across the entire market.
53
- - Quotes are indicative and are not executed by the collector. Transaction landing, priority fees, slippage and intervening pool changes affect actual results.
54
- - SOL-input quotes do not provide both legs of a closed trading cycle.
55
- - Failed requests have explicit error rows with null measurements. Separate these from successful quotes with unusual routes.
56
- - Sampling captures periodic snapshots and misses changes between requests.
57
 
58
- ## Files and access
 
 
 
 
 
59
 
60
- 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-30 to 2026-09-05. 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.
61
 
62
- ### Load a table
 
 
 
 
 
 
 
63
 
64
- 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.
65
 
66
  ```python
67
- from datasets import load_dataset
 
68
 
69
- data = load_dataset("dataforge-labs/solana-dex-execution",
70
- "solana_swap_quotes", split="train")
71
- df = data.to_pandas()
 
72
  ```
73
 
74
  ## Coverage
75
 
76
- `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.
 
 
77
 
78
  ## License and contact
79
 
80
- 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.
81
-
82
- <details>
83
- <summary>File paths and compatibility</summary>
84
-
85
- 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.
86
-
87
- | Table name | Storage directory |
88
- |---|---|
89
- | `solana_swap_quotes` | `e24_solana_quotes/` |
90
- | `solana_swap_routes` | `e24_solana_routes/` |
91
- | `collection_runs` | `e0_run_manifest/` |
92
-
93
- </details>
 
1
  ---
2
  license: odc-by
3
+ pretty_name: "Solana swap quotes and the venues an aggregator routes them through"
4
  tags:
5
  - solana
6
  - dex
 
14
  - time-series-forecasting
15
  size_categories:
16
  - 1M<n<10M
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  ---
18
 
19
+ # Solana DEX execution costs and routing
20
 
21
+ What a swap was quoted at on Solana, and which venues the aggregator split it across to get
22
+ there.
23
+
24
+ A quote is computed per request against pool state that has already changed by the time anyone
25
+ asks again. The fill that follows may land on chain; the quote never does, and neither does the
26
+ route the aggregator considered and rejected.
27
 
28
  ## Contents
29
 
30
+ | name | one row is |
31
  |---|---|
32
+ | `e24_solana_quotes` | one pair at one size at one moment: output, price impact, dollar value, leg count |
33
+ | `e24_solana_routes` | one leg of the chosen route: venue, amounts, and the percentage of the order it carried |
34
+
35
+ ## Reading it
36
 
37
+ Join the two on `(round_ts, input_symbol, output_symbol, in_amount)`. A quote with `n_legs` above
38
+ one was split, and `percent` on each leg says how the order was divided.
39
 
40
+ The size ladder is fixed at 1, 50 and 1,000 SOL so that impact is comparable over time rather
41
+ than against a moving notional. Impact rises with size on every pair, which is the sanity check
42
+ this table has to pass: one observation ran 0.0000%, 0.0013% and 0.065% on a thin pair against
43
+ 0.0000%, 0.000018% and 0.000068% on the deepest one.
44
 
45
+ Routing is the part that is hard to get elsewhere. The same pair goes through one venue at small
46
+ size and four or five at large size, and the venue mix changes between rounds, which maps where
47
+ routable liquidity actually sits rather than where volume was reported.
48
 
49
+ ## A column that is raw on purpose
50
 
51
+ `amm_report_raw` is the aggregator's own report on the venues it considered, stored verbatim as
52
+ JSON rather than parsed into a comparison.
 
 
 
53
 
54
+ It is kept raw because it is NOT restricted to the pair being quoted. A request for SOL into a
55
+ memecoin returns values on the scale of a stablecoin quote, and at least one entry has been the
56
+ string "Pair insufficient liquidity" rather than a number. An earlier version derived a
57
+ "chosen route versus best single venue" spread from this field and produced 340 million basis
58
+ points, which is what exposed the mismatch. The raw object keeps the information without
59
+ publishing a derived number that means nothing.
60
 
61
+ ## Before you build on this
62
 
63
+ - One aggregator. It is the dominant one on Solana, but a quote is what it would route, not the
64
+ best price obtainable anywhere.
65
+ - Quotes are indicative. A real swap adds transaction landing risk, priority fees and slippage
66
+ against a moving pool, none of which a quote reflects.
67
+ - `price_impact_pct` is the aggregator's own estimate, not something recomputed here.
68
+ - Five pairs, all with SOL as the input. That is a slice of Solana, not a census.
69
+ - A failed request is written as an explicit error row with the measurements null, so an
70
+ unavailable aggregator is distinguishable from a pair with no route.
71
 
72
+ 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-30 to 2026-09-05, 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.
73
 
74
  ```python
75
+ from huggingface_hub import snapshot_download
76
+ import pandas as pd, glob
77
 
78
+ path = snapshot_download("dataforge-labs/solana-dex-execution", repo_type="dataset",
79
+ allow_patterns="e24_solana_quotes/**")
80
+ df = pd.concat(map(pd.read_parquet,
81
+ glob.glob(f"{path}/e24_solana_quotes/**/*.parquet", recursive=True)))
82
  ```
83
 
84
  ## Coverage
85
 
86
+ `e0_run_manifest` lists every collection window with its poll counts and failure counts, and is
87
+ published in full rather than windowed. Gaps between windows are real, cannot be filled in
88
+ afterwards, and nothing here is interpolated.
89
 
90
  ## License and contact
91
 
92
+ ODC-BY: use it freely, credit "DataForge (dataforge-labs)". Questions and requests for the full
93
+ 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