This repository contains my submission for the Data Science Internship evaluation. The analysis uncovers patterns relating market sentiment (Fear/Greed) to trader behavior and performance on the Hyperliquid platform.
data/: Directory intended for thesentiment.csvandhyperliquid.csvfiles.analysis.ipynb: The primary Jupyter Notebook containing the data preparation, analysis, metrics formulation, and visualization steps.report.md: A 1-page write-up summarizing the methodology, insights, and actionable trading rules.*.png: The resulting charts used as evidence to back up our insights.
-
Clone the repository:
git clone <repository_url> cd primetrade-assignment
-
Add Datasets: Ensure that the two datasets (
sentiment.csvand the historical trader data renamed tohyperliquid.csv) are placed within thedata/subdirectory. -
Environment Setup: Create a Python virtual environment and install the required dependencies:
python3 -m venv venv source venv/bin/activate pip install pandas numpy matplotlib seaborn jupyter -
Execute Analysis: Launch Jupyter and open the notebook to view or re-run the analysis:
jupyter notebook analysis.ipynb
Alternatively, you can run all cells head-to-tail to reproduce the metrics and charts.
Traders tend to generate lower average PnL during Fear periods compared to Greed periods, indicating cautious or reactive trading behavior.
High leverage traders show greater losses during Fear conditions, suggesting amplified downside risk when market sentiment is negative.
Trade frequency significantly increases during Greed periods, reflecting more aggressive participation and confidence in the market.
To better understand behavioral patterns, traders were segmented into:
- High vs Low Leverage Traders
- Frequent vs Infrequent Traders
- Consistent Winners vs Inconsistent Traders
These segments reveal how different trader types respond uniquely to market sentiment.
Reduce leverage exposure during Fear periods to minimize potential drawdowns, especially for high-risk traders.
Increase trading activity during Greed phases, but only for traders with historically consistent performance.