Trader Behavior Insights – Junior Data Scientist Task
This project analyzes the relationship between Bitcoin market sentiment and trader performance.
The goal is to uncover patterns that can drive smarter trading strategies in the Web3 space.
-
Historical Trader Data (Hyperliquid)**
Contains detailed trade records including:
account,symbol,execution_price,size,side,time,start_position,event,closedPnL,leverage, etc. -
Bitcoin Fear & Greed Index
Contains daily sentiment classifications:
date,classification(Fear / Greed / Extreme Fear / Extreme Greed)
- Load datasets and inspect basic structure
- Convert timestamps and align on a common date format
- Merge trader data with sentiment data by date
- Calculate key performance metrics:
- Average and median closed PnL
- Win rate per sentiment class
- Trade counts
- Analyze long vs short performance under different sentiments
- Explore leverage patterns
- Visualize findings using bar charts, scatter plots, violin plots, and heatmaps
- Summarize insights for trading strategy implications
- Highest average PnL tends to occur during Greed sentiment.
- Lowest average PnL observed during Extreme Fear.
- Long positions perform better in Greed phases, while short positions fare better during Fear.
- Leverage usage spikes during Greed, increasing both profit potential and loss risk.
- Sentiment shifts often precede changes in average PnL.
- Open the Jupyter Notebook in Google Colab.
- Upload the datasets when prompted:
historical_data.csvfear_greed_index.csv
- Run all cells sequentially.
- Review visualizations and summary insights.
Author: DEBANKSH GUHA Date: 09/08/2025