This project analyzes how Bitcoin market sentiment (Fear vs Greed) relates to trader behavior and performance on Hyperliquid.
To uncover patterns between market sentiment and trading outcomes that could inform smarter trading strategies.
Two datasets are used:
-
Bitcoin Market Sentiment (Fear/Greed)
- Columns: Date, Classification (Fear/Greed)
- Frequency: Daily
-
Hyperliquid Historical Trader Data
- Trade-level data including account, price, size, side, time, closedPnL, leverage, etc.
Place both CSV files in the project directory before running the analysis:
fear_greed.csvhyperliquid_trades.csv
-
Data Cleaning
- Converted timestamps to datetime format
- Removed duplicates
- Aggregated trade data to daily level per trader
-
Feature Engineering Created daily metrics per trader:
- Daily PnL
- Win rate
- Number of trades
- Average trade size
- Average leverage
- Long/Short ratio
-
Data Integration
- Merged trader metrics with daily market sentiment
-
Analysis
- Compared performance across Fear vs Greed periods
- Examined behavioral changes
- Segmented traders by leverage and activity
The analysis generates:
- Performance comparison by sentiment
- Behavioral insights (trade frequency, leverage, bias)
- Trader segmentation
- Visualization charts
Install required libraries:
pip install -r requirements.txt
Run the analysis script:
python analysis.py
or open and run all cells if using Jupyter Notebook.
analysis.pyoranalysis.ipynb— Main analysis coderequirements.txt— Dependenciesreport.md— Summary of findings- Dataset files (not included)
Market sentiment significantly influences trader behavior and performance.
Incorporating sentiment-aware risk management strategies can improve trading consistency and reduce downside risk.