RBudzynski commited on
Commit
8c05537
·
verified ·
1 Parent(s): 015da0d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -69
README.md CHANGED
@@ -16,76 +16,12 @@ tags:
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
 
16
  pretty_name: BlockDB Swap Prints - Sample
17
  size_categories:
18
  - 10M<n<100M
19
+ dataset_info:
20
+ homepage: https://docs.blockdb.io/data-catalog/evm/prices/token-to-token-prices-swap-prints
21
  ---
22
 
23
+ *Small evaluation sample.*
24
 
25
+ **`0302`** · `blockdb_evm.b0302_token_to_token_prices_swap_prints_v1` - Executed swap prints (realized token_in token_out price & sizes) per on-chain swap event.
 
26
 
27
+ **🌐 [BlockDB docs schema, API, WebSocket & signup](https://docs.blockdb.io/data-catalog/evm/prices/token-to-token-prices-swap-prints)**