RBudzynski commited on
Commit
e44ec74
·
verified ·
1 Parent(s): 1c999ad

Upload 5 files

Browse files
README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ tags:
4
+ - ethereum
5
+ - evm
6
+ - blockchain
7
+ - cryptocurrency
8
+ - crypto
9
+ - onchain-data
10
+ - tabular
11
+ - timeseries
12
+ - datasets
13
+ - pandas
14
+ - polars
15
+ - duckdb
16
+ pretty_name: BlockDB Swap Prints - Sample
17
+ size_categories:
18
+ - 10M<n<100M
19
+ ---
20
+
21
+ ## Sample Notice
22
+
23
+ This dataset contains **a small sample** of the full BlockDB Swap Prints dataset.
24
+ It is provided **for evaluation, research, and interoperability testing only**.
25
+
26
+ If you need full historical coverage, real-time streaming, or end-of-day (EOD) exports
27
+ please contact us directly:
28
+
29
+ 📧 **support@blockdb.io**
30
+ 🌐 https://www.blockdb.io
31
+
32
+
33
+ ## Dataset Overview
34
+ Executed swap "prints": realized price from actual swap events. Each row represents a single swap execution with directional token pair (token_in → token_out), amounts, and computed execution price. No liquidity or quote data—only realized trades.
35
+
36
+
37
+ ## Chains and Coverage
38
+ ETH, BSC, Base, Arbitrum, Unichain, Avalanche, Polygon, Celo, Linea, Optimism (others on request).
39
+ Full history from chain genesis; reorg-aware real-time ingestion and updates.
40
+
41
+
42
+ ## Schema
43
+ List of columns exactly as delivered:
44
+
45
+ • id BIGINT – Unique swap print identifier (primary key)
46
+ • pool_uid BYTEA – Unique pool identifier (FK to liquidity_pools)
47
+ • exchange_id INTEGER – Exchange/DEX identifier
48
+ • type_id INTEGER – Pool type identifier (FK to liquidity_pool_types)
49
+ • block_number BIGINT – Block when the swap was executed
50
+ • block_time TIMESTAMPTZ – UTC timestamp when the block was mined
51
+ • tx_index INTEGER – Transaction index within the block
52
+ • log_index INTEGER – Log index within the block
53
+ • token_in BYTEA – 20-byte address of input token
54
+ • token_out BYTEA – 20-byte address of output token
55
+ • amount_in NUMERIC(78,0) – Raw input amount (lossless)
56
+ • amount_out NUMERIC(78,0) – Raw output amount (lossless)
57
+ • exec_price NUMERIC(78,18) – Realized execution price (token_out per 1 token_in, decimals-adjusted)
58
+ • exec_price_exact TEXT – Lossless exact price representation
59
+ • _tracing_id BYTEA – Tracing ID of this swap print record
60
+ • _genesis_tracing_ids BYTEA[] – Tracing IDs of the genesis records leading to this record
61
+ • _parent_tracing_ids BYTEA[] – Tracing IDs of the parent records leading to this record
62
+ • _created_at TIMESTAMPTZ – Record creation timestamp
63
+ • _updated_at TIMESTAMPTZ – Record last update timestamp
64
+
65
+
66
+ ### Notes
67
+ • Direction: The "print" is token_in → token_out; exec_price = amount_out / amount_in (decimals-adjusted).
68
+ • Unique constraint: (pool_uid, token_in, token_out, block_number, tx_index, log_index) guarantees one print per swap log per direction.
69
+ • exec_price may be NULL for extreme values; exec_price_exact is always populated.
70
+ • Indexes on (pool_uid, block_number DESC, tx_index DESC, log_index DESC), (block_number, tx_index, log_index), block_time, and (token_in, token_out, block_time DESC) support fast lookups.
71
+
72
+
73
+ ## Lineage
74
+ Each swap print record includes deterministic _tracing_id, _genesis_tracing_ids, and _parent_tracing_ids, providing:
75
+
76
+ • Provenance tracking from raw logs to decoded swap events
77
+ • Reproducible analytics and signal extraction
78
+ • Cross-system consistency checks (RPC vs. indexers vs. internal warehouses)
79
+
80
+
81
+ ## Common Use Cases
82
+ • Building trade-level analytics and execution quality metrics
83
+ • TWAP/VWAP calculation from realized trades
84
+ • MEV detection and sandwich attack analysis
85
+ • Arbitrage opportunity identification across pools
86
+
87
+
88
+ ## Quality
89
+ • Verifiable lineage: deterministic cryptographic hashes per row
90
+ • Reorg-aware ingestion: continuity and consistency across forks
91
+ • Complete historical coverage: from chain genesis to present
assets/banner.jpg ADDED

Git LFS Details

  • SHA256: bb1b2b215c7ac7ee8251c3bbb54d7de218cdbda551b7f035db465483d799e5e5
  • Pointer size: 132 Bytes
  • Size of remote file: 1.09 MB
data/blockdb0302_token_to_token_prices_swap_prints_v1.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/blockdb0302_token_to_token_prices_swap_prints_v1.json ADDED
The diff for this file is too large to render. See raw diff
 
data/blockdb0302_token_to_token_prices_swap_prints_v1.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa60455d53dde5fcde288726e50824c3b58829777c403211de2b31c84d9f0def
3
+ size 314652