Loading...
Stock Range Finder
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- junior, mid, senior
Problem
The quant team needs to analyze daily price volatility for a specific stock ticker. Given CSV stock data (Date,Ticker,Open,High,Low,Close,Volume), filter for a given ticker and return a dict with three keys: 'max_range_date' (the date with the largest High minus Low), 'max_range' (that value as a float), and 'avg_volume' (average volume as a float). Return an empty dict if the ticker is not found.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.