Jackson668 commited on
Commit
41aaf63
·
verified ·
1 Parent(s): 4d4b57f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +75 -3
README.md CHANGED
@@ -1,3 +1,75 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - time-series-forecasting
5
+ - tabular-classification
6
+ tags:
7
+ - finance
8
+ - defi
9
+ - amm
10
+ - ethereum
11
+ - cryptocurrency
12
+ - transaction
13
+ - microstructure
14
+ pretty_name: AMM-Events (Event-Aware DeFi Dataset)
15
+ size_categories:
16
+ - 100M<n<1B
17
+ ---
18
+
19
+ # AMM-Events: A Multi-Protocol DeFi Event Dataset
20
+
21
+ ## Dataset Description
22
+
23
+ **AMM-Events** is a high-fidelity, block-level dataset capturing **8.9 million on-chain events** from the Ethereum mainnet, specifically designed for event-aware forecasting and market microstructure analysis in Decentralized Finance (DeFi).
24
+
25
+ Unlike traditional financial datasets based on Limit Order Books (LOB), this dataset focuses on **Automated Market Makers (AMMs)**, where price dynamics are triggered exclusively by discrete on-chain events (e.g., swaps, mints, burns) rather than continuous off-chain information.
26
+
27
+ - **Paper Title:** Towards Event-Aware Forecasting in DeFi: Insights from On-chain Automated Market Maker Protocols
28
+ - **Total Events:** 8,917,353
29
+ - **Time Span:** Jan 1, 2024 – Sep 16, 2025
30
+ - **Block Range:** 18,908,896 – 23,374,292
31
+ - **Protocols:** Uniswap V3, Aave, Morpho, Pendle
32
+ - **Granularity:** Block-level timestamps & transaction-level event types
33
+
34
+ ### Supported Tasks
35
+ - **Event Forecasting:** Predicting the next event type (classification/TPP) and time-to-next-event (regression/TPP).
36
+ - **Market Microstructure Analysis:** Analyzing causal synchronization between liquidity events and price shocks.
37
+ - **Anomaly Detection:** Identifying "Black Swan" traffic surges or congestion events.
38
+
39
+ ---
40
+
41
+ ## Dataset Structure
42
+
43
+ The data is organized into a standardized JSON format. Each entry decouples complex smart contract logic into interpretable metrics.
44
+
45
+ ### Data Fields
46
+
47
+ - `block_number` (int): The Ethereum block height where the event occurred.
48
+ - `timestamp` (int): Unix timestamp of the block.
49
+ - `transaction_hash` (string): Unique identifier for the transaction.
50
+ - `protocol` (string): Origin protocol (`Uniswap V3`, `Aave`, `Morpho`, or `Pendle`).
51
+ - `event_type` (string): The category of the event (`Swap`, `Mint`, `Burn`, `UpdateImpliedRate`, etc.).
52
+ - `payload` (dict): Protocol-specific metrics (e.g., `amount0`, `amount1`, `liquidity`, `tick` for Uniswap).
53
+
54
+ ### Data Splits
55
+
56
+ The dataset covers **359 liquidity pools** selected for high activity and representativeness:
57
+ - **Pendle:** 296 pools (Yield Trading)
58
+ - **Aave:** 53 pools (Lending)
59
+ - **Uniswap V3:** 5 pools (Spot Trading)
60
+ - **Morpho:** 5 pools (Lending Optimization)
61
+
62
+ ---
63
+
64
+ ## Usage
65
+
66
+ ### Loading the Data
67
+ You can load this dataset directly using the Hugging Face `datasets` library:
68
+
69
+ ```python
70
+ from datasets import load_dataset
71
+
72
+ dataset = load_dataset("Jackson668/AMM-Events")
73
+
74
+ # Example: Accessing the first train example
75
+ print(dataset['train'])